From 2e893761c84f1625c2dd16588640df82a82899bf Mon Sep 17 00:00:00 2001 From: "openapi-bot[bot]" <37845953+openapi-bot[bot]@users.noreply.github.com> Date: Mon, 29 Jul 2019 06:43:18 +0000 Subject: [PATCH] Generated from 04df2c4ad1350ec47a500e1a1d1a609d43398aee (#4643) support dataset v2 split name --- .../resource-manager/v2018_06_01/pom.xml | 133 + .../v2018_06_01/AccessPolicyResponse.java | 35 + .../datafactory/v2018_06_01/Activity.java | 158 ++ .../v2018_06_01/ActivityDependency.java | 97 + .../v2018_06_01/ActivityPolicy.java | 179 ++ .../datafactory/v2018_06_01/ActivityRuns.java | 31 + .../ActivityRunsQueryResponse.java | 32 + .../v2018_06_01/AmazonMWSLinkedService.java | 292 +++ .../v2018_06_01/AmazonMWSObjectDataset.java | 50 + .../v2018_06_01/AmazonMWSSource.java | 48 + .../AmazonRedshiftLinkedService.java | 187 ++ .../v2018_06_01/AmazonRedshiftSource.java | 76 + .../v2018_06_01/AmazonS3Dataset.java | 238 ++ .../v2018_06_01/AmazonS3LinkedService.java | 136 + .../v2018_06_01/AmazonS3Location.java | 71 + .../v2018_06_01/AmazonS3ReadSettings.java | 205 ++ .../v2018_06_01/AppendVariableActivity.java | 75 + .../datafactory/v2018_06_01/AvroFormat.java | 20 + .../v2018_06_01/AzureBatchLinkedService.java | 185 ++ .../v2018_06_01/AzureBlobDataset.java | 211 ++ .../v2018_06_01/AzureBlobFSDataset.java | 130 + .../v2018_06_01/AzureBlobFSLinkedService.java | 188 ++ .../v2018_06_01/AzureBlobFSLocation.java | 44 + .../v2018_06_01/AzureBlobFSReadSettings.java | 178 ++ .../v2018_06_01/AzureBlobFSSink.java | 47 + .../v2018_06_01/AzureBlobFSSource.java | 102 + .../v2018_06_01/AzureBlobFSWriteSettings.java | 16 + .../AzureBlobStorageLinkedService.java | 268 ++ .../v2018_06_01/AzureBlobStorageLocation.java | 44 + .../AzureBlobStorageReadSettings.java | 178 ++ .../AzureBlobStorageWriteSettings.java | 16 + .../AzureDataExplorerCommandActivity.java | 78 + .../AzureDataExplorerLinkedService.java | 160 ++ .../v2018_06_01/AzureDataExplorerSink.java | 102 + .../v2018_06_01/AzureDataExplorerSource.java | 102 + .../AzureDataExplorerTableDataset.java | 51 + .../AzureDataLakeAnalyticsLinkedService.java | 242 ++ .../AzureDataLakeStoreDataset.java | 131 + .../AzureDataLakeStoreLinkedService.java | 241 ++ .../AzureDataLakeStoreLocation.java | 16 + .../AzureDataLakeStoreReadSettings.java | 178 ++ .../v2018_06_01/AzureDataLakeStoreSink.java | 73 + .../v2018_06_01/AzureDataLakeStoreSource.java | 48 + .../AzureDataLakeStoreWriteSettings.java | 16 + .../AzureDatabricksLinkedService.java | 378 +++ .../v2018_06_01/AzureFunctionActivity.java | 134 + .../AzureFunctionActivityMethod.java | 56 + .../AzureFunctionLinkedService.java | 105 + .../AzureKeyVaultLinkedService.java | 51 + .../AzureKeyVaultSecretReference.java | 102 + .../AzureMLBatchExecutionActivity.java | 111 + .../v2018_06_01/AzureMLLinkedService.java | 214 ++ .../AzureMLUpdateResourceActivity.java | 105 + .../v2018_06_01/AzureMLWebServiceFile.java | 72 + .../v2018_06_01/AzureMySqlLinkedService.java | 105 + .../v2018_06_01/AzureMySqlSource.java | 47 + .../v2018_06_01/AzureMySqlTableDataset.java | 51 + .../AzurePostgreSqlLinkedService.java | 105 + .../v2018_06_01/AzurePostgreSqlSink.java | 48 + .../v2018_06_01/AzurePostgreSqlSource.java | 48 + .../AzurePostgreSqlTableDataset.java | 105 + .../v2018_06_01/AzureQueueSink.java | 20 + .../v2018_06_01/AzureSearchIndexDataset.java | 51 + .../v2018_06_01/AzureSearchIndexSink.java | 48 + .../AzureSearchIndexWriteBehaviorType.java | 41 + .../v2018_06_01/AzureSearchLinkedService.java | 105 + .../v2018_06_01/AzureSqlDWLinkedService.java | 187 ++ .../v2018_06_01/AzureSqlDWTableDataset.java | 105 + .../AzureSqlDatabaseLinkedService.java | 186 ++ .../v2018_06_01/AzureSqlMILinkedService.java | 186 ++ .../v2018_06_01/AzureSqlMITableDataset.java | 105 + .../datafactory/v2018_06_01/AzureSqlSink.java | 156 ++ .../v2018_06_01/AzureSqlSource.java | 129 + .../v2018_06_01/AzureSqlTableDataset.java | 105 + .../AzureStorageLinkedService.java | 159 ++ .../v2018_06_01/AzureTableDataset.java | 51 + .../v2018_06_01/AzureTableSink.java | 129 + .../v2018_06_01/AzureTableSource.java | 75 + .../AzureTableStorageLinkedService.java | 159 ++ .../v2018_06_01/BinaryDataset.java | 76 + .../datafactory/v2018_06_01/BinarySink.java | 47 + .../datafactory/v2018_06_01/BinarySource.java | 47 + .../v2018_06_01/BlobEventTypes.java | 41 + .../v2018_06_01/BlobEventsTrigger.java | 134 + .../datafactory/v2018_06_01/BlobSink.java | 128 + .../datafactory/v2018_06_01/BlobSource.java | 102 + .../datafactory/v2018_06_01/BlobTrigger.java | 101 + .../v2018_06_01/CassandraLinkedService.java | 186 ++ .../v2018_06_01/CassandraSource.java | 82 + .../CassandraSourceReadConsistencyLevels.java | 65 + .../v2018_06_01/CassandraTableDataset.java | 78 + ...CommonDataServiceForAppsEntityDataset.java | 51 + ...CommonDataServiceForAppsLinkedService.java | 277 ++ .../CommonDataServiceForAppsSink.java | 82 + .../CommonDataServiceForAppsSource.java | 49 + .../v2018_06_01/ConcurLinkedService.java | 213 ++ .../v2018_06_01/ConcurObjectDataset.java | 50 + .../datafactory/v2018_06_01/ConcurSource.java | 48 + .../v2018_06_01/ControlActivity.java | 33 + .../datafactory/v2018_06_01/CopyActivity.java | 369 +++ .../datafactory/v2018_06_01/CopySink.java | 214 ++ .../datafactory/v2018_06_01/CopySource.java | 212 ++ .../v2018_06_01/CosmosDbLinkedService.java | 105 + .../CosmosDbMongoDbApiCollectionDataset.java | 51 + .../CosmosDbMongoDbApiLinkedService.java | 79 + .../v2018_06_01/CosmosDbMongoDbApiSink.java | 50 + .../v2018_06_01/CosmosDbMongoDbApiSource.java | 105 + .../v2018_06_01/CouchbaseLinkedService.java | 105 + .../v2018_06_01/CouchbaseSource.java | 48 + .../v2018_06_01/CouchbaseTableDataset.java | 50 + ...CreateLinkedIntegrationRuntimeRequest.java | 124 + .../v2018_06_01/CreateRunResponse.java | 25 + .../v2018_06_01/CustomActivity.java | 185 ++ .../CustomActivityReferenceObject.java | 70 + .../CustomDataSourceLinkedService.java | 48 + .../v2018_06_01/CustomDataset.java | 48 + .../DataLakeAnalyticsUSQLActivity.java | 214 ++ .../DatabricksNotebookActivity.java | 108 + .../DatabricksSparkJarActivity.java | 106 + .../DatabricksSparkPythonActivity.java | 105 + .../v2018_06_01/DatasetBZip2Compression.java | 20 + .../v2018_06_01/DatasetCompression.java | 55 + .../DatasetDeflateCompression.java | 47 + .../v2018_06_01/DatasetFolder.java | 44 + .../v2018_06_01/DatasetGZipCompression.java | 47 + .../v2018_06_01/DatasetLocation.java | 124 + .../v2018_06_01/DatasetReference.java | 104 + .../v2018_06_01/DatasetResource.java | 149 ++ .../v2018_06_01/DatasetStorageFormat.java | 108 + .../DatasetZipDeflateCompression.java | 47 + .../datafactory/v2018_06_01/Datasets.java | 53 + .../datafactory/v2018_06_01/DayOfWeek.java | 68 + .../datafactory/v2018_06_01/DaysOfWeek.java | 68 + .../v2018_06_01/Db2AuthenticationType.java | 38 + .../v2018_06_01/Db2LinkedService.java | 186 ++ .../datafactory/v2018_06_01/Db2Source.java | 47 + .../v2018_06_01/DeleteActivity.java | 157 ++ .../v2018_06_01/DelimitedTextDataset.java | 295 +++ .../DelimitedTextReadSettings.java | 44 + .../v2018_06_01/DelimitedTextSink.java | 73 + .../v2018_06_01/DelimitedTextSource.java | 73 + .../DelimitedTextWriteSettings.java | 71 + .../v2018_06_01/DependencyCondition.java | 47 + .../v2018_06_01/DependencyReference.java | 25 + .../v2018_06_01/DistcpSettings.java | 100 + .../DocumentDbCollectionDataset.java | 51 + .../v2018_06_01/DocumentDbCollectionSink.java | 75 + .../DocumentDbCollectionSource.java | 74 + .../v2018_06_01/DrillLinkedService.java | 105 + .../datafactory/v2018_06_01/DrillSource.java | 48 + .../v2018_06_01/DrillTableDataset.java | 105 + .../v2018_06_01/DynamicsAXLinkedService.java | 190 ++ .../DynamicsAXResourceDataset.java | 51 + .../v2018_06_01/DynamicsAXSource.java | 48 + .../DynamicsAuthenticationType.java | 41 + .../v2018_06_01/DynamicsCrmEntityDataset.java | 51 + .../v2018_06_01/DynamicsCrmLinkedService.java | 276 ++ .../v2018_06_01/DynamicsCrmSink.java | 82 + .../v2018_06_01/DynamicsCrmSource.java | 49 + .../v2018_06_01/DynamicsDeploymentType.java | 41 + .../v2018_06_01/DynamicsEntityDataset.java | 51 + .../v2018_06_01/DynamicsLinkedService.java | 274 ++ .../datafactory/v2018_06_01/DynamicsSink.java | 82 + .../v2018_06_01/DynamicsSource.java | 49 + .../v2018_06_01/EloquaLinkedService.java | 213 ++ .../v2018_06_01/EloquaObjectDataset.java | 50 + .../datafactory/v2018_06_01/EloquaSource.java | 48 + .../v2018_06_01/EntityReference.java | 70 + .../v2018_06_01/ExecutePipelineActivity.java | 103 + .../ExecuteSSISPackageActivity.java | 339 +++ .../v2018_06_01/ExecutionActivity.java | 97 + .../v2018_06_01/ExposureControlRequest.java | 69 + .../v2018_06_01/ExposureControlResponse.java | 30 + .../v2018_06_01/ExposureControls.java | 38 + .../datafactory/v2018_06_01/Expression.java | 77 + .../datafactory/v2018_06_01/Factories.java | 57 + .../datafactory/v2018_06_01/Factory.java | 165 ++ .../FactoryGitHubConfiguration.java | 47 + .../v2018_06_01/FactoryIdentity.java | 82 + .../v2018_06_01/FactoryRepoConfiguration.java | 156 ++ .../v2018_06_01/FactoryRepoUpdate.java | 69 + .../v2018_06_01/FactoryTriggerResource.java | 149 ++ .../v2018_06_01/FactoryUpdateParameters.java | 70 + .../v2018_06_01/FactoryVSTSConfiguration.java | 73 + .../v2018_06_01/FileServerLinkedService.java | 132 + .../v2018_06_01/FileServerLocation.java | 16 + .../v2018_06_01/FileServerReadSettings.java | 178 ++ .../v2018_06_01/FileServerWriteSettings.java | 16 + .../v2018_06_01/FileShareDataset.java | 212 ++ .../v2018_06_01/FileSystemSink.java | 47 + .../v2018_06_01/FileSystemSource.java | 48 + .../v2018_06_01/FilterActivity.java | 75 + .../v2018_06_01/ForEachActivity.java | 130 + .../v2018_06_01/FormatReadSettings.java | 70 + .../v2018_06_01/FormatWriteSettings.java | 70 + .../v2018_06_01/FtpAuthenticationType.java | 41 + .../v2018_06_01/FtpReadSettings.java | 124 + .../v2018_06_01/FtpServerLinkedService.java | 242 ++ .../v2018_06_01/FtpServerLocation.java | 16 + .../v2018_06_01/GetMetadataActivity.java | 76 + .../GetSsisObjectMetadataRequest.java | 43 + .../v2018_06_01/GitHubAccessTokenRequest.java | 95 + .../GitHubAccessTokenResponse.java | 25 + .../GoogleAdWordsAuthenticationType.java | 41 + .../GoogleAdWordsLinkedService.java | 325 +++ .../GoogleAdWordsObjectDataset.java | 50 + .../v2018_06_01/GoogleAdWordsSource.java | 48 + .../GoogleBigQueryAuthenticationType.java | 41 + .../GoogleBigQueryLinkedService.java | 351 +++ .../GoogleBigQueryObjectDataset.java | 105 + .../v2018_06_01/GoogleBigQuerySource.java | 48 + .../v2018_06_01/GreenplumLinkedService.java | 105 + .../v2018_06_01/GreenplumSource.java | 48 + .../v2018_06_01/GreenplumTableDataset.java | 105 + .../v2018_06_01/HBaseAuthenticationType.java | 41 + .../v2018_06_01/HBaseLinkedService.java | 322 +++ .../v2018_06_01/HBaseObjectDataset.java | 50 + .../datafactory/v2018_06_01/HBaseSource.java | 48 + .../HDInsightActivityDebugInfoOption.java | 44 + .../v2018_06_01/HDInsightHiveActivity.java | 234 ++ .../v2018_06_01/HDInsightLinkedService.java | 239 ++ .../HDInsightMapReduceActivity.java | 233 ++ .../HDInsightOnDemandLinkedService.java | 916 +++++++ .../v2018_06_01/HDInsightPigActivity.java | 181 ++ .../v2018_06_01/HDInsightSparkActivity.java | 237 ++ .../HDInsightStreamingActivity.java | 340 +++ .../v2018_06_01/HdfsLinkedService.java | 161 ++ .../datafactory/v2018_06_01/HdfsLocation.java | 16 + .../v2018_06_01/HdfsReadSettings.java | 204 ++ .../datafactory/v2018_06_01/HdfsSource.java | 74 + .../v2018_06_01/HiveAuthenticationType.java | 47 + .../v2018_06_01/HiveLinkedService.java | 483 ++++ .../v2018_06_01/HiveObjectDataset.java | 105 + .../v2018_06_01/HiveServerType.java | 44 + .../datafactory/v2018_06_01/HiveSource.java | 48 + .../HiveThriftTransportProtocol.java | 44 + .../v2018_06_01/HttpAuthenticationType.java | 50 + .../datafactory/v2018_06_01/HttpDataset.java | 191 ++ .../v2018_06_01/HttpLinkedService.java | 247 ++ .../v2018_06_01/HttpReadSettings.java | 125 + .../v2018_06_01/HttpServerLocation.java | 44 + .../datafactory/v2018_06_01/HttpSource.java | 51 + .../v2018_06_01/HubspotLinkedService.java | 240 ++ .../v2018_06_01/HubspotObjectDataset.java | 50 + .../v2018_06_01/HubspotSource.java | 48 + .../v2018_06_01/IfConditionActivity.java | 110 + .../v2018_06_01/ImpalaAuthenticationType.java | 44 + .../v2018_06_01/ImpalaLinkedService.java | 325 +++ .../v2018_06_01/ImpalaObjectDataset.java | 105 + .../datafactory/v2018_06_01/ImpalaSource.java | 48 + .../v2018_06_01/InformixLinkedService.java | 188 ++ .../datafactory/v2018_06_01/InformixSink.java | 48 + .../v2018_06_01/InformixSource.java | 47 + .../v2018_06_01/InformixTableDataset.java | 51 + .../IntegrationRuntimeAuthKeyName.java | 41 + .../IntegrationRuntimeAuthKeys.java | 30 + .../IntegrationRuntimeAutoUpdate.java | 41 + .../IntegrationRuntimeComputeProperties.java | 177 ++ .../IntegrationRuntimeConnectionInfo.java | 56 + ...ionRuntimeCustomSetupScriptProperties.java | 70 + ...IntegrationRuntimeDataProxyProperties.java | 95 + .../IntegrationRuntimeEdition.java | 41 + ...IntegrationRuntimeEntityReferenceType.java | 41 + ...nRuntimeInternalChannelEncryptionMode.java | 44 + .../IntegrationRuntimeLicenseType.java | 41 + .../IntegrationRuntimeMonitoringData.java | 31 + .../IntegrationRuntimeNodeIpAddress.java | 25 + .../IntegrationRuntimeNodeMonitoringData.java | 164 ++ .../v2018_06_01/IntegrationRuntimeNodes.java | 68 + .../IntegrationRuntimeObjectMetadatas.java | 41 + .../IntegrationRuntimeReference.java | 104 + ...grationRuntimeRegenerateKeyParameters.java | 44 + .../IntegrationRuntimeResource.java | 148 ++ .../IntegrationRuntimeSsisCatalogInfo.java | 151 ++ ...egrationRuntimeSsisCatalogPricingTier.java | 47 + .../IntegrationRuntimeSsisProperties.java | 177 ++ .../v2018_06_01/IntegrationRuntimeState.java | 65 + .../v2018_06_01/IntegrationRuntimeStatus.java | 85 + .../IntegrationRuntimeStatusListResponse.java | 71 + .../IntegrationRuntimeStatusResponse.java | 30 + .../v2018_06_01/IntegrationRuntimeType.java | 41 + .../IntegrationRuntimeUpdateResult.java | 44 + .../IntegrationRuntimeVNetProperties.java | 96 + .../v2018_06_01/IntegrationRuntimes.java | 176 ++ .../v2018_06_01/JiraLinkedService.java | 242 ++ .../v2018_06_01/JiraObjectDataset.java | 50 + .../datafactory/v2018_06_01/JiraSource.java | 48 + .../datafactory/v2018_06_01/JsonFormat.java | 165 ++ .../v2018_06_01/LinkedIntegrationRuntime.java | 95 + ...kedIntegrationRuntimeKeyAuthorization.java | 47 + ...edIntegrationRuntimeRbacAuthorization.java | 47 + .../LinkedIntegrationRuntimeRequest.java | 43 + .../LinkedIntegrationRuntimeType.java | 25 + .../v2018_06_01/LinkedServiceReference.java | 104 + .../v2018_06_01/LinkedServiceResource.java | 149 ++ .../v2018_06_01/LinkedServices.java | 53 + .../v2018_06_01/LogStorageSettings.java | 97 + .../v2018_06_01/LookupActivity.java | 102 + .../v2018_06_01/MagentoLinkedService.java | 186 ++ .../v2018_06_01/MagentoObjectDataset.java | 50 + .../v2018_06_01/MagentoSource.java | 48 + .../ManagedIntegrationRuntime.java | 95 + .../ManagedIntegrationRuntimeError.java | 79 + .../ManagedIntegrationRuntimeNode.java | 75 + .../ManagedIntegrationRuntimeNodeStatus.java | 47 + ...agedIntegrationRuntimeOperationResult.java | 109 + .../ManagedIntegrationRuntimeStatus.java | 86 + .../v2018_06_01/MariaDBLinkedService.java | 105 + .../v2018_06_01/MariaDBSource.java | 48 + .../v2018_06_01/MariaDBTableDataset.java | 50 + .../v2018_06_01/MarketoLinkedService.java | 212 ++ .../v2018_06_01/MarketoObjectDataset.java | 50 + .../v2018_06_01/MarketoSource.java | 48 + .../MicrosoftAccessLinkedService.java | 188 ++ .../v2018_06_01/MicrosoftAccessSink.java | 48 + .../v2018_06_01/MicrosoftAccessSource.java | 47 + .../MicrosoftAccessTableDataset.java | 51 + .../MongoDbAuthenticationType.java | 41 + .../v2018_06_01/MongoDbCollectionDataset.java | 51 + .../MongoDbCursorMethodsProperties.java | 156 ++ .../v2018_06_01/MongoDbLinkedService.java | 297 +++ .../v2018_06_01/MongoDbSource.java | 48 + .../MongoDbV2CollectionDataset.java | 51 + .../v2018_06_01/MongoDbV2LinkedService.java | 79 + .../v2018_06_01/MongoDbV2Source.java | 105 + .../v2018_06_01/MultiplePipelineTrigger.java | 56 + .../v2018_06_01/MySqlLinkedService.java | 104 + .../datafactory/v2018_06_01/MySqlSource.java | 47 + .../v2018_06_01/MySqlTableDataset.java | 51 + .../v2018_06_01/NetezzaLinkedService.java | 105 + .../v2018_06_01/NetezzaPartitionOption.java | 44 + .../v2018_06_01/NetezzaPartitionSettings.java | 100 + .../v2018_06_01/NetezzaSource.java | 101 + .../v2018_06_01/NetezzaTableDataset.java | 50 + ...DataAadServicePrincipalCredentialType.java | 41 + .../v2018_06_01/ODataAuthenticationType.java | 50 + .../v2018_06_01/ODataLinkedService.java | 352 +++ .../v2018_06_01/ODataResourceDataset.java | 51 + .../datafactory/v2018_06_01/ODataSource.java | 48 + .../v2018_06_01/OdbcLinkedService.java | 188 ++ .../datafactory/v2018_06_01/OdbcSink.java | 48 + .../datafactory/v2018_06_01/OdbcSource.java | 47 + .../v2018_06_01/OdbcTableDataset.java | 51 + .../v2018_06_01/Office365Dataset.java | 79 + .../v2018_06_01/Office365LinkedService.java | 159 ++ .../v2018_06_01/Office365Source.java | 20 + .../datafactory/v2018_06_01/Operation.java | 40 + .../v2018_06_01/OperationDisplay.java | 121 + .../OperationLogSpecification.java | 95 + .../OperationMetricAvailability.java | 69 + .../v2018_06_01/OperationMetricDimension.java | 95 + .../OperationMetricSpecification.java | 278 ++ .../OperationServiceSpecification.java | 70 + .../datafactory/v2018_06_01/Operations.java | 27 + .../v2018_06_01/OracleLinkedService.java | 105 + .../v2018_06_01/OraclePartitionOption.java | 44 + .../v2018_06_01/OraclePartitionSettings.java | 126 + .../OracleServiceCloudLinkedService.java | 216 ++ .../OracleServiceCloudObjectDataset.java | 50 + .../v2018_06_01/OracleServiceCloudSource.java | 48 + .../datafactory/v2018_06_01/OracleSink.java | 48 + .../datafactory/v2018_06_01/OracleSource.java | 129 + .../v2018_06_01/OracleTableDataset.java | 105 + .../datafactory/v2018_06_01/OrcFormat.java | 20 + .../v2018_06_01/ParameterSpecification.java | 70 + .../v2018_06_01/ParameterType.java | 56 + .../v2018_06_01/ParquetDataset.java | 76 + .../v2018_06_01/ParquetFormat.java | 20 + .../datafactory/v2018_06_01/ParquetSink.java | 47 + .../v2018_06_01/ParquetSource.java | 47 + .../v2018_06_01/PaypalLinkedService.java | 212 ++ .../v2018_06_01/PaypalObjectDataset.java | 50 + .../datafactory/v2018_06_01/PaypalSource.java | 48 + .../PhoenixAuthenticationType.java | 44 + .../v2018_06_01/PhoenixLinkedService.java | 352 +++ .../v2018_06_01/PhoenixObjectDataset.java | 105 + .../v2018_06_01/PhoenixSource.java | 48 + .../v2018_06_01/PipelineFolder.java | 44 + .../v2018_06_01/PipelineReference.java | 103 + .../v2018_06_01/PipelineResource.java | 351 +++ .../datafactory/v2018_06_01/PipelineRun.java | 87 + .../v2018_06_01/PipelineRunInvokedBy.java | 62 + .../datafactory/v2018_06_01/PipelineRuns.java | 53 + .../PipelineRunsQueryResponse.java | 32 + .../datafactory/v2018_06_01/Pipelines.java | 64 + .../v2018_06_01/PolybaseSettings.java | 154 ++ .../PolybaseSettingsRejectType.java | 41 + .../v2018_06_01/PostgreSqlLinkedService.java | 104 + .../v2018_06_01/PostgreSqlSource.java | 47 + .../v2018_06_01/PostgreSqlTableDataset.java | 51 + .../v2018_06_01/PrestoAuthenticationType.java | 41 + .../v2018_06_01/PrestoLinkedService.java | 403 +++ .../v2018_06_01/PrestoObjectDataset.java | 105 + .../datafactory/v2018_06_01/PrestoSource.java | 48 + .../v2018_06_01/QuickBooksLinkedService.java | 235 ++ .../v2018_06_01/QuickBooksObjectDataset.java | 50 + .../v2018_06_01/QuickBooksSource.java | 48 + .../v2018_06_01/RecurrenceFrequency.java | 56 + .../v2018_06_01/RecurrenceSchedule.java | 175 ++ .../RecurrenceScheduleOccurrence.java | 97 + .../RedirectIncompatibleRowSettings.java | 100 + .../v2018_06_01/RedshiftUnloadSettings.java | 76 + .../v2018_06_01/RelationalSource.java | 47 + .../v2018_06_01/RelationalTableDataset.java | 51 + .../v2018_06_01/RerunTriggers.java | 68 + .../RerunTumblingWindowTrigger.java | 133 + ...TumblingWindowTriggerActionParameters.java | 99 + .../v2018_06_01/ResponsysLinkedService.java | 217 ++ .../v2018_06_01/ResponsysObjectDataset.java | 50 + .../v2018_06_01/ResponsysSource.java | 48 + .../v2018_06_01/RestResourceDataset.java | 159 ++ .../RestServiceAuthenticationType.java | 47 + .../v2018_06_01/RestServiceLinkedService.java | 293 +++ .../datafactory/v2018_06_01/RestSource.java | 76 + .../datafactory/v2018_06_01/RetryPolicy.java | 70 + .../v2018_06_01/RunFilterParameters.java | 152 ++ .../v2018_06_01/RunQueryFilter.java | 104 + .../v2018_06_01/RunQueryFilterOperand.java | 71 + .../v2018_06_01/RunQueryFilterOperator.java | 47 + .../v2018_06_01/RunQueryOrder.java | 41 + .../v2018_06_01/RunQueryOrderBy.java | 75 + .../v2018_06_01/RunQueryOrderByField.java | 62 + .../v2018_06_01/SSISAccessCredential.java | 95 + .../v2018_06_01/SSISExecutionCredential.java | 95 + .../v2018_06_01/SSISExecutionParameter.java | 44 + .../v2018_06_01/SSISLogLocation.java | 134 + .../v2018_06_01/SSISPackageLocation.java | 152 ++ .../v2018_06_01/SSISPropertyOverride.java | 71 + .../v2018_06_01/SalesforceLinkedService.java | 161 ++ ...SalesforceMarketingCloudLinkedService.java | 191 ++ ...SalesforceMarketingCloudObjectDataset.java | 50 + .../SalesforceMarketingCloudSource.java | 48 + .../v2018_06_01/SalesforceObjectDataset.java | 51 + .../SalesforceServiceCloudLinkedService.java | 188 ++ .../SalesforceServiceCloudObjectDataset.java | 51 + .../SalesforceServiceCloudSink.java | 108 + .../SalesforceServiceCloudSource.java | 74 + .../v2018_06_01/SalesforceSink.java | 108 + .../SalesforceSinkWriteBehavior.java | 41 + .../v2018_06_01/SalesforceSource.java | 74 + .../SalesforceSourceReadBehavior.java | 41 + .../v2018_06_01/SapBWLinkedService.java | 188 ++ .../SapCloudForCustomerLinkedService.java | 134 + .../SapCloudForCustomerResourceDataset.java | 51 + .../v2018_06_01/SapCloudForCustomerSink.java | 48 + .../SapCloudForCustomerSinkWriteBehavior.java | 41 + .../SapCloudForCustomerSource.java | 48 + .../v2018_06_01/SapEccLinkedService.java | 134 + .../v2018_06_01/SapEccResourceDataset.java | 51 + .../datafactory/v2018_06_01/SapEccSource.java | 48 + .../SapHanaAuthenticationType.java | 41 + .../v2018_06_01/SapHanaLinkedService.java | 186 ++ .../v2018_06_01/SapHanaSource.java | 74 + .../v2018_06_01/SapHanaTableDataset.java | 78 + .../v2018_06_01/SapOpenHubLinkedService.java | 217 ++ .../v2018_06_01/SapOpenHubSource.java | 21 + .../v2018_06_01/SapOpenHubTableDataset.java | 107 + .../v2018_06_01/SapTableLinkedService.java | 459 ++++ .../v2018_06_01/SapTablePartitionOption.java | 53 + .../SapTablePartitionSettings.java | 127 + .../v2018_06_01/SapTableResourceDataset.java | 51 + .../v2018_06_01/SapTableSource.java | 239 ++ .../v2018_06_01/ScheduleTrigger.java | 49 + .../ScheduleTriggerRecurrence.java | 202 ++ .../datafactory/v2018_06_01/ScriptAction.java | 121 + .../datafactory/v2018_06_01/SecretBase.java | 25 + .../datafactory/v2018_06_01/SecureString.java | 48 + ...endencyTumblingWindowTriggerReference.java | 75 + .../SelfHostedIntegrationRuntime.java | 50 + .../SelfHostedIntegrationRuntimeNode.java | 112 + ...elfHostedIntegrationRuntimeNodeStatus.java | 56 + .../SelfHostedIntegrationRuntimeStatus.java | 298 +++ .../ServiceNowAuthenticationType.java | 41 + .../v2018_06_01/ServiceNowLinkedService.java | 294 +++ .../v2018_06_01/ServiceNowObjectDataset.java | 50 + .../v2018_06_01/ServiceNowSource.java | 48 + .../v2018_06_01/SetVariableActivity.java | 75 + .../v2018_06_01/SftpAuthenticationType.java | 41 + .../datafactory/v2018_06_01/SftpLocation.java | 16 + .../v2018_06_01/SftpReadSettings.java | 152 ++ .../v2018_06_01/SftpServerLinkedService.java | 328 +++ .../v2018_06_01/ShopifyLinkedService.java | 187 ++ .../v2018_06_01/ShopifyObjectDataset.java | 50 + .../v2018_06_01/ShopifySource.java | 48 + .../v2018_06_01/SparkAuthenticationType.java | 47 + .../v2018_06_01/SparkLinkedService.java | 404 +++ .../v2018_06_01/SparkObjectDataset.java | 105 + .../v2018_06_01/SparkServerType.java | 44 + .../datafactory/v2018_06_01/SparkSource.java | 48 + .../SparkThriftTransportProtocol.java | 44 + .../datafactory/v2018_06_01/SqlDWSink.java | 101 + .../datafactory/v2018_06_01/SqlDWSource.java | 104 + .../datafactory/v2018_06_01/SqlMISink.java | 156 ++ .../datafactory/v2018_06_01/SqlMISource.java | 129 + .../v2018_06_01/SqlServerLinkedService.java | 132 + .../v2018_06_01/SqlServerSink.java | 156 ++ .../v2018_06_01/SqlServerSource.java | 129 + .../SqlServerStoredProcedureActivity.java | 78 + .../v2018_06_01/SqlServerTableDataset.java | 105 + .../datafactory/v2018_06_01/SqlSink.java | 156 ++ .../datafactory/v2018_06_01/SqlSource.java | 103 + .../v2018_06_01/SquareLinkedService.java | 239 ++ .../v2018_06_01/SquareObjectDataset.java | 50 + .../datafactory/v2018_06_01/SquareSource.java | 48 + .../v2018_06_01/SsisEnvironment.java | 74 + .../v2018_06_01/SsisEnvironmentReference.java | 121 + .../datafactory/v2018_06_01/SsisFolder.java | 20 + .../v2018_06_01/SsisObjectMetadata.java | 106 + .../SsisObjectMetadataListResponse.java | 31 + .../SsisObjectMetadataStatusResponse.java | 40 + .../v2018_06_01/SsisObjectMetadataType.java | 47 + .../datafactory/v2018_06_01/SsisPackage.java | 126 + .../v2018_06_01/SsisPackageLocationType.java | 41 + .../v2018_06_01/SsisParameter.java | 329 +++ .../datafactory/v2018_06_01/SsisProject.java | 126 + .../datafactory/v2018_06_01/SsisVariable.java | 199 ++ .../v2018_06_01/StagingSettings.java | 125 + .../v2018_06_01/StoreReadSettings.java | 97 + .../v2018_06_01/StoreWriteSettings.java | 123 + .../v2018_06_01/StoredProcedureParameter.java | 71 + .../StoredProcedureParameterType.java | 56 + .../v2018_06_01/SybaseAuthenticationType.java | 41 + .../v2018_06_01/SybaseLinkedService.java | 213 ++ .../datafactory/v2018_06_01/SybaseSource.java | 47 + .../TeradataAuthenticationType.java | 41 + .../v2018_06_01/TeradataLinkedService.java | 186 ++ .../v2018_06_01/TeradataPartitionOption.java | 44 + .../TeradataPartitionSettings.java | 100 + .../v2018_06_01/TeradataSource.java | 100 + .../v2018_06_01/TeradataTableDataset.java | 78 + .../datafactory/v2018_06_01/TextFormat.java | 270 ++ .../TriggerDependencyReference.java | 51 + .../TriggerFactoryTriggerResource.java | 135 + .../v2018_06_01/TriggerPipelineReference.java | 70 + .../v2018_06_01/TriggerReference.java | 77 + .../v2018_06_01/TriggerRunStatus.java | 44 + .../datafactory/v2018_06_01/TriggerRuns.java | 30 + .../v2018_06_01/TriggerRunsQueryResponse.java | 32 + .../v2018_06_01/TriggerRuntimeState.java | 44 + .../datafactory/v2018_06_01/Triggers.java | 75 + .../v2018_06_01/TumblingWindowFrequency.java | 41 + .../v2018_06_01/TumblingWindowTrigger.java | 273 ++ ...blingWindowTriggerDependencyReference.java | 75 + .../v2018_06_01/UntilActivity.java | 109 + .../UpdateIntegrationRuntimeNodeRequest.java | 45 + .../UpdateIntegrationRuntimeRequest.java | 72 + .../v2018_06_01/UserAccessPolicy.java | 152 ++ .../datafactory/v2018_06_01/UserProperty.java | 70 + .../v2018_06_01/ValidationActivity.java | 162 ++ .../v2018_06_01/VariableSpecification.java | 69 + .../datafactory/v2018_06_01/VariableType.java | 44 + .../v2018_06_01/VerticaLinkedService.java | 105 + .../v2018_06_01/VerticaSource.java | 48 + .../v2018_06_01/VerticaTableDataset.java | 105 + .../datafactory/v2018_06_01/WaitActivity.java | 49 + .../datafactory/v2018_06_01/WebActivity.java | 213 ++ .../WebActivityAuthentication.java | 148 ++ .../v2018_06_01/WebActivityMethod.java | 47 + .../WebAnonymousAuthentication.java | 21 + .../v2018_06_01/WebBasicAuthentication.java | 75 + .../WebClientCertificateAuthentication.java | 76 + .../v2018_06_01/WebHookActivity.java | 195 ++ .../v2018_06_01/WebHookActivityMethod.java | 38 + .../v2018_06_01/WebLinkedService.java | 48 + .../WebLinkedServiceTypeProperties.java | 55 + .../datafactory/v2018_06_01/WebSource.java | 20 + .../v2018_06_01/WebTableDataset.java | 78 + .../v2018_06_01/XeroLinkedService.java | 217 ++ .../v2018_06_01/XeroObjectDataset.java | 50 + .../datafactory/v2018_06_01/XeroSource.java | 48 + .../v2018_06_01/ZohoLinkedService.java | 186 ++ .../v2018_06_01/ZohoObjectDataset.java | 50 + .../datafactory/v2018_06_01/ZohoSource.java | 48 + .../AccessPolicyResponseImpl.java | 42 + .../AccessPolicyResponseInner.java | 96 + .../implementation/ActivityRunInner.java | 240 ++ .../implementation/ActivityRunsImpl.java | 43 + .../implementation/ActivityRunsInner.java | 164 ++ .../ActivityRunsQueryResponseImpl.java | 37 + .../ActivityRunsQueryResponseInner.java | 71 + .../implementation/CreateRunResponseImpl.java | 31 + .../CreateRunResponseInner.java | 43 + .../DataFactoryManagementClientImpl.java | 378 +++ .../implementation/DataFactoryManager.java | 255 ++ .../implementation/DatasetInner.java | 320 +++ .../implementation/DatasetResourceImpl.java | 157 ++ .../implementation/DatasetResourceInner.java | 89 + .../implementation/DatasetsImpl.java | 81 + .../implementation/DatasetsInner.java | 802 ++++++ .../ExposureControlResponseImpl.java | 36 + .../ExposureControlResponseInner.java | 47 + .../implementation/ExposureControlsImpl.java | 55 + .../implementation/ExposureControlsInner.java | 248 ++ .../implementation/FactoriesImpl.java | 179 ++ .../implementation/FactoriesInner.java | 1375 ++++++++++ .../implementation/FactoryImpl.java | 135 + .../implementation/FactoryInner.java | 164 ++ .../FactoryTriggerResourceImpl.java | 155 ++ .../GitHubAccessTokenResponseImpl.java | 31 + .../GitHubAccessTokenResponseInner.java | 43 + .../implementation/IdParsingUtils.java | 57 + .../IntegrationRuntimeAuthKeysImpl.java | 36 + .../IntegrationRuntimeAuthKeysInner.java | 69 + .../IntegrationRuntimeConnectionInfoImpl.java | 62 + ...IntegrationRuntimeConnectionInfoInner.java | 138 + .../IntegrationRuntimeInner.java | 80 + .../IntegrationRuntimeMonitoringDataImpl.java | 38 + ...IntegrationRuntimeMonitoringDataInner.java | 71 + .../IntegrationRuntimeNodeIpAddressImpl.java | 31 + .../IntegrationRuntimeNodeIpAddressInner.java | 32 + .../IntegrationRuntimeNodesImpl.java | 78 + .../IntegrationRuntimeNodesInner.java | 579 +++++ ...IntegrationRuntimeObjectMetadatasImpl.java | 55 + ...ntegrationRuntimeObjectMetadatasInner.java | 431 ++++ .../IntegrationRuntimeResourceImpl.java | 158 ++ .../IntegrationRuntimeResourceInner.java | 89 + .../IntegrationRuntimeStatusResponseImpl.java | 37 + ...IntegrationRuntimeStatusResponseInner.java | 59 + .../IntegrationRuntimesImpl.java | 194 ++ .../IntegrationRuntimesInner.java | 2250 +++++++++++++++++ .../implementation/LinkedServiceInner.java | 250 ++ .../LinkedServiceResourceImpl.java | 156 ++ .../LinkedServiceResourceInner.java | 89 + .../implementation/LinkedServicesImpl.java | 81 + .../implementation/LinkedServicesInner.java | 802 ++++++ .../implementation/OperationImpl.java | 48 + .../implementation/OperationInner.java | 125 + .../implementation/OperationsImpl.java | 49 + .../implementation/OperationsInner.java | 283 +++ .../v2018_06_01/implementation/PageImpl.java | 75 + .../implementation/PipelineResourceImpl.java | 205 ++ .../implementation/PipelineResourceInner.java | 280 ++ .../implementation/PipelineRunImpl.java | 101 + .../implementation/PipelineRunInner.java | 227 ++ .../implementation/PipelineRunsImpl.java | 67 + .../implementation/PipelineRunsInner.java | 441 ++++ .../PipelineRunsQueryResponseImpl.java | 37 + .../PipelineRunsQueryResponseInner.java | 71 + .../implementation/PipelinesImpl.java | 94 + .../implementation/PipelinesInner.java | 1004 ++++++++ .../RerunTriggerResourceInner.java | 90 + .../implementation/RerunTriggersImpl.java | 81 + .../implementation/RerunTriggersInner.java | 996 ++++++++ .../SelfHostedIntegrationRuntimeNodeImpl.java | 128 + ...SelfHostedIntegrationRuntimeNodeInner.java | 297 +++ .../SsisObjectMetadataListResponseImpl.java | 38 + .../SsisObjectMetadataListResponseInner.java | 71 + .../SsisObjectMetadataStatusResponseImpl.java | 46 + ...SsisObjectMetadataStatusResponseInner.java | 121 + .../TriggerFactoryTriggerResourceImpl.java | 149 ++ .../implementation/TriggerInner.java | 126 + .../implementation/TriggerResourceInner.java | 89 + .../implementation/TriggerRunInner.java | 168 ++ .../implementation/TriggerRunsImpl.java | 43 + .../implementation/TriggerRunsInner.java | 157 ++ .../TriggerRunsQueryResponseImpl.java | 37 + .../TriggerRunsQueryResponseInner.java | 71 + .../implementation/TriggersImpl.java | 93 + .../implementation/TriggersInner.java | 1153 +++++++++ .../implementation/package-info.java | 11 + .../datafactory/v2018_06_01/package-info.java | 11 + 661 files changed, 77007 insertions(+) create mode 100644 datafactory/resource-manager/v2018_06_01/pom.xml create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AccessPolicyResponse.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/Activity.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ActivityDependency.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ActivityPolicy.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ActivityRuns.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ActivityRunsQueryResponse.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AmazonMWSLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AmazonMWSObjectDataset.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AmazonMWSSource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AmazonRedshiftLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AmazonRedshiftSource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AmazonS3Dataset.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AmazonS3LinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AmazonS3Location.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AmazonS3ReadSettings.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AppendVariableActivity.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AvroFormat.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureBatchLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureBlobDataset.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureBlobFSDataset.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureBlobFSLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureBlobFSLocation.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureBlobFSReadSettings.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureBlobFSSink.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureBlobFSSource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureBlobFSWriteSettings.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureBlobStorageLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureBlobStorageLocation.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureBlobStorageReadSettings.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureBlobStorageWriteSettings.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureDataExplorerCommandActivity.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureDataExplorerLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureDataExplorerSink.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureDataExplorerSource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureDataExplorerTableDataset.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureDataLakeAnalyticsLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureDataLakeStoreDataset.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureDataLakeStoreLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureDataLakeStoreLocation.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureDataLakeStoreReadSettings.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureDataLakeStoreSink.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureDataLakeStoreSource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureDataLakeStoreWriteSettings.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureDatabricksLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureFunctionActivity.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureFunctionActivityMethod.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureFunctionLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureKeyVaultLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureKeyVaultSecretReference.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureMLBatchExecutionActivity.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureMLLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureMLUpdateResourceActivity.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureMLWebServiceFile.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureMySqlLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureMySqlSource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureMySqlTableDataset.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzurePostgreSqlLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzurePostgreSqlSink.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzurePostgreSqlSource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzurePostgreSqlTableDataset.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureQueueSink.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureSearchIndexDataset.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureSearchIndexSink.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureSearchIndexWriteBehaviorType.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureSearchLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureSqlDWLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureSqlDWTableDataset.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureSqlDatabaseLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureSqlMILinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureSqlMITableDataset.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureSqlSink.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureSqlSource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureSqlTableDataset.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureStorageLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureTableDataset.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureTableSink.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureTableSource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureTableStorageLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/BinaryDataset.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/BinarySink.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/BinarySource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/BlobEventTypes.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/BlobEventsTrigger.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/BlobSink.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/BlobSource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/BlobTrigger.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CassandraLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CassandraSource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CassandraSourceReadConsistencyLevels.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CassandraTableDataset.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CommonDataServiceForAppsEntityDataset.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CommonDataServiceForAppsLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CommonDataServiceForAppsSink.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CommonDataServiceForAppsSource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ConcurLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ConcurObjectDataset.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ConcurSource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ControlActivity.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CopyActivity.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CopySink.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CopySource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CosmosDbLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CosmosDbMongoDbApiCollectionDataset.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CosmosDbMongoDbApiLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CosmosDbMongoDbApiSink.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CosmosDbMongoDbApiSource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CouchbaseLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CouchbaseSource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CouchbaseTableDataset.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CreateLinkedIntegrationRuntimeRequest.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CreateRunResponse.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CustomActivity.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CustomActivityReferenceObject.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CustomDataSourceLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CustomDataset.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DataLakeAnalyticsUSQLActivity.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DatabricksNotebookActivity.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DatabricksSparkJarActivity.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DatabricksSparkPythonActivity.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DatasetBZip2Compression.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DatasetCompression.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DatasetDeflateCompression.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DatasetFolder.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DatasetGZipCompression.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DatasetLocation.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DatasetReference.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DatasetResource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DatasetStorageFormat.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DatasetZipDeflateCompression.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/Datasets.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DayOfWeek.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DaysOfWeek.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/Db2AuthenticationType.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/Db2LinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/Db2Source.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DeleteActivity.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DelimitedTextDataset.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DelimitedTextReadSettings.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DelimitedTextSink.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DelimitedTextSource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DelimitedTextWriteSettings.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DependencyCondition.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DependencyReference.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DistcpSettings.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DocumentDbCollectionDataset.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DocumentDbCollectionSink.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DocumentDbCollectionSource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DrillLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DrillSource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DrillTableDataset.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DynamicsAXLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DynamicsAXResourceDataset.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DynamicsAXSource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DynamicsAuthenticationType.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DynamicsCrmEntityDataset.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DynamicsCrmLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DynamicsCrmSink.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DynamicsCrmSource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DynamicsDeploymentType.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DynamicsEntityDataset.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DynamicsLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DynamicsSink.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DynamicsSource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/EloquaLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/EloquaObjectDataset.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/EloquaSource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/EntityReference.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ExecutePipelineActivity.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ExecuteSSISPackageActivity.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ExecutionActivity.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ExposureControlRequest.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ExposureControlResponse.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ExposureControls.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/Expression.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/Factories.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/Factory.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FactoryGitHubConfiguration.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FactoryIdentity.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FactoryRepoConfiguration.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FactoryRepoUpdate.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FactoryTriggerResource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FactoryUpdateParameters.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FactoryVSTSConfiguration.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FileServerLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FileServerLocation.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FileServerReadSettings.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FileServerWriteSettings.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FileShareDataset.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FileSystemSink.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FileSystemSource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FilterActivity.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ForEachActivity.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FormatReadSettings.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FormatWriteSettings.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FtpAuthenticationType.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FtpReadSettings.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FtpServerLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FtpServerLocation.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/GetMetadataActivity.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/GetSsisObjectMetadataRequest.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/GitHubAccessTokenRequest.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/GitHubAccessTokenResponse.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/GoogleAdWordsAuthenticationType.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/GoogleAdWordsLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/GoogleAdWordsObjectDataset.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/GoogleAdWordsSource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/GoogleBigQueryAuthenticationType.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/GoogleBigQueryLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/GoogleBigQueryObjectDataset.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/GoogleBigQuerySource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/GreenplumLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/GreenplumSource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/GreenplumTableDataset.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HBaseAuthenticationType.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HBaseLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HBaseObjectDataset.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HBaseSource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HDInsightActivityDebugInfoOption.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HDInsightHiveActivity.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HDInsightLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HDInsightMapReduceActivity.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HDInsightOnDemandLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HDInsightPigActivity.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HDInsightSparkActivity.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HDInsightStreamingActivity.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HdfsLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HdfsLocation.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HdfsReadSettings.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HdfsSource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HiveAuthenticationType.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HiveLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HiveObjectDataset.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HiveServerType.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HiveSource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HiveThriftTransportProtocol.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HttpAuthenticationType.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HttpDataset.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HttpLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HttpReadSettings.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HttpServerLocation.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HttpSource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HubspotLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HubspotObjectDataset.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HubspotSource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IfConditionActivity.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ImpalaAuthenticationType.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ImpalaLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ImpalaObjectDataset.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ImpalaSource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/InformixLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/InformixSink.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/InformixSource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/InformixTableDataset.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeAuthKeyName.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeAuthKeys.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeAutoUpdate.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeComputeProperties.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeConnectionInfo.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeCustomSetupScriptProperties.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeDataProxyProperties.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeEdition.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeEntityReferenceType.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeInternalChannelEncryptionMode.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeLicenseType.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeMonitoringData.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeNodeIpAddress.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeNodeMonitoringData.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeNodes.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeObjectMetadatas.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeReference.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeRegenerateKeyParameters.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeResource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeSsisCatalogInfo.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeSsisCatalogPricingTier.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeSsisProperties.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeState.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeStatus.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeStatusListResponse.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeStatusResponse.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeType.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeUpdateResult.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeVNetProperties.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimes.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/JiraLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/JiraObjectDataset.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/JiraSource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/JsonFormat.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/LinkedIntegrationRuntime.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/LinkedIntegrationRuntimeKeyAuthorization.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/LinkedIntegrationRuntimeRbacAuthorization.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/LinkedIntegrationRuntimeRequest.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/LinkedIntegrationRuntimeType.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/LinkedServiceReference.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/LinkedServiceResource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/LinkedServices.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/LogStorageSettings.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/LookupActivity.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MagentoLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MagentoObjectDataset.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MagentoSource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ManagedIntegrationRuntime.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ManagedIntegrationRuntimeError.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ManagedIntegrationRuntimeNode.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ManagedIntegrationRuntimeNodeStatus.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ManagedIntegrationRuntimeOperationResult.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ManagedIntegrationRuntimeStatus.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MariaDBLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MariaDBSource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MariaDBTableDataset.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MarketoLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MarketoObjectDataset.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MarketoSource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MicrosoftAccessLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MicrosoftAccessSink.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MicrosoftAccessSource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MicrosoftAccessTableDataset.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MongoDbAuthenticationType.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MongoDbCollectionDataset.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MongoDbCursorMethodsProperties.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MongoDbLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MongoDbSource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MongoDbV2CollectionDataset.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MongoDbV2LinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MongoDbV2Source.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MultiplePipelineTrigger.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MySqlLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MySqlSource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MySqlTableDataset.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/NetezzaLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/NetezzaPartitionOption.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/NetezzaPartitionSettings.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/NetezzaSource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/NetezzaTableDataset.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ODataAadServicePrincipalCredentialType.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ODataAuthenticationType.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ODataLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ODataResourceDataset.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ODataSource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/OdbcLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/OdbcSink.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/OdbcSource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/OdbcTableDataset.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/Office365Dataset.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/Office365LinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/Office365Source.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/Operation.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/OperationDisplay.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/OperationLogSpecification.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/OperationMetricAvailability.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/OperationMetricDimension.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/OperationMetricSpecification.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/OperationServiceSpecification.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/Operations.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/OracleLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/OraclePartitionOption.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/OraclePartitionSettings.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/OracleServiceCloudLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/OracleServiceCloudObjectDataset.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/OracleServiceCloudSource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/OracleSink.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/OracleSource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/OracleTableDataset.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/OrcFormat.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ParameterSpecification.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ParameterType.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ParquetDataset.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ParquetFormat.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ParquetSink.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ParquetSource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PaypalLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PaypalObjectDataset.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PaypalSource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PhoenixAuthenticationType.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PhoenixLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PhoenixObjectDataset.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PhoenixSource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PipelineFolder.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PipelineReference.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PipelineResource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PipelineRun.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PipelineRunInvokedBy.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PipelineRuns.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PipelineRunsQueryResponse.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/Pipelines.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PolybaseSettings.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PolybaseSettingsRejectType.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PostgreSqlLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PostgreSqlSource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PostgreSqlTableDataset.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PrestoAuthenticationType.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PrestoLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PrestoObjectDataset.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PrestoSource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/QuickBooksLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/QuickBooksObjectDataset.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/QuickBooksSource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/RecurrenceFrequency.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/RecurrenceSchedule.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/RecurrenceScheduleOccurrence.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/RedirectIncompatibleRowSettings.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/RedshiftUnloadSettings.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/RelationalSource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/RelationalTableDataset.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/RerunTriggers.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/RerunTumblingWindowTrigger.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/RerunTumblingWindowTriggerActionParameters.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ResponsysLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ResponsysObjectDataset.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ResponsysSource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/RestResourceDataset.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/RestServiceAuthenticationType.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/RestServiceLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/RestSource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/RetryPolicy.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/RunFilterParameters.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/RunQueryFilter.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/RunQueryFilterOperand.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/RunQueryFilterOperator.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/RunQueryOrder.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/RunQueryOrderBy.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/RunQueryOrderByField.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SSISAccessCredential.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SSISExecutionCredential.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SSISExecutionParameter.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SSISLogLocation.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SSISPackageLocation.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SSISPropertyOverride.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SalesforceLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SalesforceMarketingCloudLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SalesforceMarketingCloudObjectDataset.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SalesforceMarketingCloudSource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SalesforceObjectDataset.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SalesforceServiceCloudLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SalesforceServiceCloudObjectDataset.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SalesforceServiceCloudSink.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SalesforceServiceCloudSource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SalesforceSink.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SalesforceSinkWriteBehavior.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SalesforceSource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SalesforceSourceReadBehavior.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SapBWLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SapCloudForCustomerLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SapCloudForCustomerResourceDataset.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SapCloudForCustomerSink.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SapCloudForCustomerSinkWriteBehavior.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SapCloudForCustomerSource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SapEccLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SapEccResourceDataset.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SapEccSource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SapHanaAuthenticationType.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SapHanaLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SapHanaSource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SapHanaTableDataset.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SapOpenHubLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SapOpenHubSource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SapOpenHubTableDataset.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SapTableLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SapTablePartitionOption.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SapTablePartitionSettings.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SapTableResourceDataset.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SapTableSource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ScheduleTrigger.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ScheduleTriggerRecurrence.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ScriptAction.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SecretBase.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SecureString.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SelfDependencyTumblingWindowTriggerReference.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SelfHostedIntegrationRuntime.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SelfHostedIntegrationRuntimeNode.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SelfHostedIntegrationRuntimeNodeStatus.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SelfHostedIntegrationRuntimeStatus.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ServiceNowAuthenticationType.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ServiceNowLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ServiceNowObjectDataset.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ServiceNowSource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SetVariableActivity.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SftpAuthenticationType.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SftpLocation.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SftpReadSettings.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SftpServerLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ShopifyLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ShopifyObjectDataset.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ShopifySource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SparkAuthenticationType.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SparkLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SparkObjectDataset.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SparkServerType.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SparkSource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SparkThriftTransportProtocol.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SqlDWSink.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SqlDWSource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SqlMISink.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SqlMISource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SqlServerLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SqlServerSink.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SqlServerSource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SqlServerStoredProcedureActivity.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SqlServerTableDataset.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SqlSink.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SqlSource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SquareLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SquareObjectDataset.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SquareSource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SsisEnvironment.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SsisEnvironmentReference.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SsisFolder.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SsisObjectMetadata.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SsisObjectMetadataListResponse.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SsisObjectMetadataStatusResponse.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SsisObjectMetadataType.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SsisPackage.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SsisPackageLocationType.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SsisParameter.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SsisProject.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SsisVariable.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/StagingSettings.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/StoreReadSettings.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/StoreWriteSettings.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/StoredProcedureParameter.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/StoredProcedureParameterType.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SybaseAuthenticationType.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SybaseLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SybaseSource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/TeradataAuthenticationType.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/TeradataLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/TeradataPartitionOption.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/TeradataPartitionSettings.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/TeradataSource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/TeradataTableDataset.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/TextFormat.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/TriggerDependencyReference.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/TriggerFactoryTriggerResource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/TriggerPipelineReference.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/TriggerReference.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/TriggerRunStatus.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/TriggerRuns.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/TriggerRunsQueryResponse.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/TriggerRuntimeState.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/Triggers.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/TumblingWindowFrequency.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/TumblingWindowTrigger.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/TumblingWindowTriggerDependencyReference.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/UntilActivity.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/UpdateIntegrationRuntimeNodeRequest.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/UpdateIntegrationRuntimeRequest.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/UserAccessPolicy.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/UserProperty.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ValidationActivity.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/VariableSpecification.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/VariableType.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/VerticaLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/VerticaSource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/VerticaTableDataset.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/WaitActivity.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/WebActivity.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/WebActivityAuthentication.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/WebActivityMethod.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/WebAnonymousAuthentication.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/WebBasicAuthentication.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/WebClientCertificateAuthentication.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/WebHookActivity.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/WebHookActivityMethod.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/WebLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/WebLinkedServiceTypeProperties.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/WebSource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/WebTableDataset.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/XeroLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/XeroObjectDataset.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/XeroSource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ZohoLinkedService.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ZohoObjectDataset.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ZohoSource.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/AccessPolicyResponseImpl.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/AccessPolicyResponseInner.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/ActivityRunInner.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/ActivityRunsImpl.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/ActivityRunsInner.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/ActivityRunsQueryResponseImpl.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/ActivityRunsQueryResponseInner.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/CreateRunResponseImpl.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/CreateRunResponseInner.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/DataFactoryManagementClientImpl.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/DataFactoryManager.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/DatasetInner.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/DatasetResourceImpl.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/DatasetResourceInner.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/DatasetsImpl.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/DatasetsInner.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/ExposureControlResponseImpl.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/ExposureControlResponseInner.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/ExposureControlsImpl.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/ExposureControlsInner.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/FactoriesImpl.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/FactoriesInner.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/FactoryImpl.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/FactoryInner.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/FactoryTriggerResourceImpl.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/GitHubAccessTokenResponseImpl.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/GitHubAccessTokenResponseInner.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/IdParsingUtils.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/IntegrationRuntimeAuthKeysImpl.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/IntegrationRuntimeAuthKeysInner.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/IntegrationRuntimeConnectionInfoImpl.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/IntegrationRuntimeConnectionInfoInner.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/IntegrationRuntimeInner.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/IntegrationRuntimeMonitoringDataImpl.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/IntegrationRuntimeMonitoringDataInner.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/IntegrationRuntimeNodeIpAddressImpl.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/IntegrationRuntimeNodeIpAddressInner.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/IntegrationRuntimeNodesImpl.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/IntegrationRuntimeNodesInner.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/IntegrationRuntimeObjectMetadatasImpl.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/IntegrationRuntimeObjectMetadatasInner.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/IntegrationRuntimeResourceImpl.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/IntegrationRuntimeResourceInner.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/IntegrationRuntimeStatusResponseImpl.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/IntegrationRuntimeStatusResponseInner.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/IntegrationRuntimesImpl.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/IntegrationRuntimesInner.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/LinkedServiceInner.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/LinkedServiceResourceImpl.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/LinkedServiceResourceInner.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/LinkedServicesImpl.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/LinkedServicesInner.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/OperationImpl.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/OperationInner.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/OperationsImpl.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/OperationsInner.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/PageImpl.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/PipelineResourceImpl.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/PipelineResourceInner.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/PipelineRunImpl.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/PipelineRunInner.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/PipelineRunsImpl.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/PipelineRunsInner.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/PipelineRunsQueryResponseImpl.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/PipelineRunsQueryResponseInner.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/PipelinesImpl.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/PipelinesInner.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/RerunTriggerResourceInner.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/RerunTriggersImpl.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/RerunTriggersInner.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/SelfHostedIntegrationRuntimeNodeImpl.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/SelfHostedIntegrationRuntimeNodeInner.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/SsisObjectMetadataListResponseImpl.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/SsisObjectMetadataListResponseInner.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/SsisObjectMetadataStatusResponseImpl.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/SsisObjectMetadataStatusResponseInner.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/TriggerFactoryTriggerResourceImpl.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/TriggerInner.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/TriggerResourceInner.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/TriggerRunInner.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/TriggerRunsImpl.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/TriggerRunsInner.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/TriggerRunsQueryResponseImpl.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/TriggerRunsQueryResponseInner.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/TriggersImpl.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/TriggersInner.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/package-info.java create mode 100644 datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/package-info.java diff --git a/datafactory/resource-manager/v2018_06_01/pom.xml b/datafactory/resource-manager/v2018_06_01/pom.xml new file mode 100644 index 0000000000000..178a6cfddbbf3 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/pom.xml @@ -0,0 +1,133 @@ + + + 4.0.0 + com.microsoft.azure.datafactory.v2018_06_01 + + com.microsoft.azure + azure-arm-parent + 0.0.3-beta + ../../../pom.xml + + azure-mgmt-datafactory + 1.0.0-beta + jar + Microsoft Azure SDK for DataFactory Management + This package contains Microsoft DataFactory Management SDK. + https://github.com/Azure/azure-sdk-for-java + + + The MIT License (MIT) + http://opensource.org/licenses/MIT + repo + + + + scm:git:https://github.com/Azure/azure-sdk-for-java + scm:git:git@github.com:Azure/azure-sdk-for-java.git + HEAD + + + UTF-8 + + + + + microsoft + Microsoft + + + + + com.microsoft.azure + azure-client-runtime + + + com.microsoft.azure + azure-arm-client-runtime + + + junit + junit + test + + + com.microsoft.azure + azure-client-authentication + test + + + com.microsoft.azure + azure-mgmt-resources + test + + + com.microsoft.azure + azure-arm-client-runtime + test-jar + test + + + + + + org.apache.maven.plugins + maven-jar-plugin + + + + true + true + + + + + + org.codehaus.mojo + build-helper-maven-plugin + + + org.apache.maven.plugins + maven-compiler-plugin + 3.1 + + 1.7 + 1.7 + + + com.microsoft.azure.management.apigeneration.LangDefinitionProcessor + + + true + true + + true + true + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 2.8 + + *.implementation.*;*.utils.*;com.microsoft.schemas._2003._10.serialization;*.blob.core.search + + + /** +
* Copyright (c) Microsoft Corporation. All rights reserved. +
* Licensed under the MIT License. See License.txt in the project root for +
* license information. +
*/ + ]]> +
+
+
+
+
+
diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AccessPolicyResponse.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AccessPolicyResponse.java new file mode 100644 index 0000000000000..ac504ff7e750f --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AccessPolicyResponse.java @@ -0,0 +1,35 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DataFactoryManager; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.AccessPolicyResponseInner; + +/** + * Type representing AccessPolicyResponse. + */ +public interface AccessPolicyResponse extends HasInner, HasManager { + /** + * @return the accessToken value. + */ + String accessToken(); + + /** + * @return the dataPlaneUrl value. + */ + String dataPlaneUrl(); + + /** + * @return the policy value. + */ + UserAccessPolicy policy(); + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/Activity.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/Activity.java new file mode 100644 index 0000000000000..bfbe8224cd407 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/Activity.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.v2018_06_01; + +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; + + /** + * Activity user properties. + */ + @JsonProperty(value = "userProperties") + private List userProperties; + + /** + * Get unmatched properties from the message are deserialized this collection. + * + * @return the additionalProperties value + */ + public Map additionalProperties() { + return this.additionalProperties; + } + + /** + * Set unmatched properties from the message are deserialized this collection. + * + * @param additionalProperties the additionalProperties value to set + * @return the Activity object itself. + */ + public Activity withAdditionalProperties(Map additionalProperties) { + this.additionalProperties = additionalProperties; + return this; + } + + /** + * Get activity name. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Set activity name. + * + * @param name the name value to set + * @return the Activity object itself. + */ + public Activity withName(String name) { + this.name = name; + return this; + } + + /** + * Get activity description. + * + * @return the description value + */ + public String description() { + return this.description; + } + + /** + * Set activity description. + * + * @param description the description value to set + * @return the Activity object itself. + */ + public Activity withDescription(String description) { + this.description = description; + return this; + } + + /** + * Get activity depends on condition. + * + * @return the dependsOn value + */ + public List dependsOn() { + return this.dependsOn; + } + + /** + * Set activity depends on condition. + * + * @param dependsOn the dependsOn value to set + * @return the Activity object itself. + */ + public Activity withDependsOn(List dependsOn) { + this.dependsOn = dependsOn; + return this; + } + + /** + * Get activity user properties. + * + * @return the userProperties value + */ + public List userProperties() { + return this.userProperties; + } + + /** + * Set activity user properties. + * + * @param userProperties the userProperties value to set + * @return the Activity object itself. + */ + public Activity withUserProperties(List userProperties) { + this.userProperties = userProperties; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ActivityDependency.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ActivityDependency.java new file mode 100644 index 0000000000000..b61d7fb5eea89 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 unmatched properties from the message are deserialized this collection. + * + * @return the additionalProperties value + */ + public Map additionalProperties() { + return this.additionalProperties; + } + + /** + * Set unmatched properties from the message are deserialized this collection. + * + * @param additionalProperties the additionalProperties value to set + * @return the ActivityDependency object itself. + */ + public ActivityDependency withAdditionalProperties(Map additionalProperties) { + this.additionalProperties = additionalProperties; + return this; + } + + /** + * Get activity name. + * + * @return the activity value + */ + public String activity() { + return this.activity; + } + + /** + * Set activity name. + * + * @param activity the activity value to set + * @return the ActivityDependency object itself. + */ + public ActivityDependency withActivity(String activity) { + this.activity = activity; + return this; + } + + /** + * Get match-Condition for the dependency. + * + * @return the dependencyConditions value + */ + public List dependencyConditions() { + return this.dependencyConditions; + } + + /** + * Set match-Condition for the dependency. + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ActivityPolicy.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ActivityPolicy.java new file mode 100644 index 0000000000000..d7486d332fbcd --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ActivityPolicy.java @@ -0,0 +1,179 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +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, Input from activity is considered as secure and will + * not be logged to monitoring. + */ + @JsonProperty(value = "secureInput") + private Boolean secureInput; + + /** + * 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 unmatched properties from the message are deserialized this collection. + * + * @return the additionalProperties value + */ + public Map additionalProperties() { + return this.additionalProperties; + } + + /** + * Set unmatched properties from the message are deserialized this collection. + * + * @param additionalProperties the additionalProperties value to set + * @return the ActivityPolicy object itself. + */ + public ActivityPolicy withAdditionalProperties(Map additionalProperties) { + this.additionalProperties = additionalProperties; + return this; + } + + /** + * Get 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])). + * + * @return the timeout value + */ + public Object timeout() { + return this.timeout; + } + + /** + * Set 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])). + * + * @param timeout the timeout value to set + * @return the ActivityPolicy object itself. + */ + public ActivityPolicy withTimeout(Object timeout) { + this.timeout = timeout; + return this; + } + + /** + * Get maximum ordinary retry attempts. Default is 0. Type: integer (or Expression with resultType integer), minimum: 0. + * + * @return the retry value + */ + public Object retry() { + return this.retry; + } + + /** + * Set maximum ordinary retry attempts. Default is 0. Type: integer (or Expression with resultType integer), minimum: 0. + * + * @param retry the retry value to set + * @return the ActivityPolicy object itself. + */ + public ActivityPolicy withRetry(Object retry) { + this.retry = retry; + return this; + } + + /** + * Get interval between each retry attempt (in seconds). The default is 30 sec. + * + * @return the retryIntervalInSeconds value + */ + public Integer retryIntervalInSeconds() { + return this.retryIntervalInSeconds; + } + + /** + * Set interval between each retry attempt (in seconds). The default is 30 sec. + * + * @param retryIntervalInSeconds the retryIntervalInSeconds value to set + * @return the ActivityPolicy object itself. + */ + public ActivityPolicy withRetryIntervalInSeconds(Integer retryIntervalInSeconds) { + this.retryIntervalInSeconds = retryIntervalInSeconds; + return this; + } + + /** + * Get when set to true, Input from activity is considered as secure and will not be logged to monitoring. + * + * @return the secureInput value + */ + public Boolean secureInput() { + return this.secureInput; + } + + /** + * Set when set to true, Input from activity is considered as secure and will not be logged to monitoring. + * + * @param secureInput the secureInput value to set + * @return the ActivityPolicy object itself. + */ + public ActivityPolicy withSecureInput(Boolean secureInput) { + this.secureInput = secureInput; + return this; + } + + /** + * Get when set to true, Output from activity is considered as secure and will not be logged to monitoring. + * + * @return the secureOutput value + */ + public Boolean secureOutput() { + return this.secureOutput; + } + + /** + * Set when set to true, Output from activity is considered as secure and will not be logged to monitoring. + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ActivityRuns.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ActivityRuns.java new file mode 100644 index 0000000000000..411a77e428998 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ActivityRuns.java @@ -0,0 +1,31 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +import rx.Observable; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.ActivityRunsInner; +import com.microsoft.azure.arm.model.HasInner; + +/** + * Type representing ActivityRuns. + */ +public interface ActivityRuns extends HasInner { + /** + * Query 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 filterParameters Parameters to filter the activity runs. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable queryByPipelineRunAsync(String resourceGroupName, String factoryName, String runId, RunFilterParameters filterParameters); + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ActivityRunsQueryResponse.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ActivityRunsQueryResponse.java new file mode 100644 index 0000000000000..c459a931e4694 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ActivityRunsQueryResponse.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.v2018_06_01; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DataFactoryManager; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.ActivityRunsQueryResponseInner; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.ActivityRunInner; +import java.util.List; + +/** + * Type representing ActivityRunsQueryResponse. + */ +public interface ActivityRunsQueryResponse extends HasInner, HasManager { + /** + * @return the continuationToken value. + */ + String continuationToken(); + + /** + * @return the value value. + */ + List value(); + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AmazonMWSLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AmazonMWSLinkedService.java new file mode 100644 index 0000000000000..7239237790a34 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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 retrieve + * data from multiple Marketplace IDs, separate 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 of the Amazon MWS server, (i.e. mws.amazonservices.com). + * + * @return the endpoint value + */ + public Object endpoint() { + return this.endpoint; + } + + /** + * Set the endpoint of the Amazon MWS server, (i.e. mws.amazonservices.com). + * + * @param endpoint the endpoint value to set + * @return the AmazonMWSLinkedService object itself. + */ + public AmazonMWSLinkedService withEndpoint(Object endpoint) { + this.endpoint = endpoint; + return this; + } + + /** + * Get the Amazon Marketplace ID you want to retrieve data from. To retrieve data from multiple Marketplace IDs, separate them with a comma (,). (i.e. A2EUQ1WTGCTBG2). + * + * @return the marketplaceID value + */ + public Object marketplaceID() { + return this.marketplaceID; + } + + /** + * Set the Amazon Marketplace ID you want to retrieve data from. To retrieve data from multiple Marketplace IDs, separate them with a comma (,). (i.e. A2EUQ1WTGCTBG2). + * + * @param marketplaceID the marketplaceID value to set + * @return the AmazonMWSLinkedService object itself. + */ + public AmazonMWSLinkedService withMarketplaceID(Object marketplaceID) { + this.marketplaceID = marketplaceID; + return this; + } + + /** + * Get the Amazon seller ID. + * + * @return the sellerID value + */ + public Object sellerID() { + return this.sellerID; + } + + /** + * Set the Amazon seller ID. + * + * @param sellerID the sellerID value to set + * @return the AmazonMWSLinkedService object itself. + */ + public AmazonMWSLinkedService withSellerID(Object sellerID) { + this.sellerID = sellerID; + return this; + } + + /** + * Get the Amazon MWS authentication token. + * + * @return the mwsAuthToken value + */ + public SecretBase mwsAuthToken() { + return this.mwsAuthToken; + } + + /** + * Set the Amazon MWS authentication token. + * + * @param mwsAuthToken the mwsAuthToken value to set + * @return the AmazonMWSLinkedService object itself. + */ + public AmazonMWSLinkedService withMwsAuthToken(SecretBase mwsAuthToken) { + this.mwsAuthToken = mwsAuthToken; + return this; + } + + /** + * Get the access key id used to access data. + * + * @return the accessKeyId value + */ + public Object accessKeyId() { + return this.accessKeyId; + } + + /** + * Set the access key id used to access data. + * + * @param accessKeyId the accessKeyId value to set + * @return the AmazonMWSLinkedService object itself. + */ + public AmazonMWSLinkedService withAccessKeyId(Object accessKeyId) { + this.accessKeyId = accessKeyId; + return this; + } + + /** + * Get the secret key used to access data. + * + * @return the secretKey value + */ + public SecretBase secretKey() { + return this.secretKey; + } + + /** + * Set the secret key used to access data. + * + * @param secretKey the secretKey value to set + * @return the AmazonMWSLinkedService object itself. + */ + public AmazonMWSLinkedService withSecretKey(SecretBase secretKey) { + this.secretKey = secretKey; + return this; + } + + /** + * Get specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. + * + * @return the useEncryptedEndpoints value + */ + public Object useEncryptedEndpoints() { + return this.useEncryptedEndpoints; + } + + /** + * Set specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. + * + * @param useEncryptedEndpoints the useEncryptedEndpoints value to set + * @return the AmazonMWSLinkedService object itself. + */ + public AmazonMWSLinkedService withUseEncryptedEndpoints(Object useEncryptedEndpoints) { + this.useEncryptedEndpoints = useEncryptedEndpoints; + return this; + } + + /** + * Get specifies whether to require the host name in the server's certificate to match the host name of the server when connecting over SSL. The default value is true. + * + * @return the useHostVerification value + */ + public Object useHostVerification() { + return this.useHostVerification; + } + + /** + * Set specifies whether to require the host name in the server's certificate to match the host name of the server when connecting over SSL. The default value is true. + * + * @param useHostVerification the useHostVerification value to set + * @return the AmazonMWSLinkedService object itself. + */ + public AmazonMWSLinkedService withUseHostVerification(Object useHostVerification) { + this.useHostVerification = useHostVerification; + return this; + } + + /** + * Get specifies whether to verify the identity of the server when connecting over SSL. The default value is true. + * + * @return the usePeerVerification value + */ + public Object usePeerVerification() { + return this.usePeerVerification; + } + + /** + * Set specifies whether to verify the identity of the server when connecting over SSL. The default value is true. + * + * @param usePeerVerification the usePeerVerification value to set + * @return the AmazonMWSLinkedService object itself. + */ + public AmazonMWSLinkedService withUsePeerVerification(Object usePeerVerification) { + this.usePeerVerification = usePeerVerification; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the AmazonMWSLinkedService object itself. + */ + public AmazonMWSLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AmazonMWSObjectDataset.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AmazonMWSObjectDataset.java new file mode 100644 index 0000000000000..dd79b58520494 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AmazonMWSObjectDataset.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DatasetInner; + +/** + * Amazon Marketplace Web Service dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("AmazonMWSObject") +@JsonFlatten +public class AmazonMWSObjectDataset extends DatasetInner { + /** + * The table name. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; + + /** + * Get the table name. Type: string (or Expression with resultType string). + * + * @return the tableName value + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set the table name. Type: string (or Expression with resultType string). + * + * @param tableName the tableName value to set + * @return the AmazonMWSObjectDataset object itself. + */ + public AmazonMWSObjectDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AmazonMWSSource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AmazonMWSSource.java new file mode 100644 index 0000000000000..6faa8ad845abd --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 a query to retrieve data from source. Type: string (or Expression with resultType string). + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set a query to retrieve data from source. Type: string (or Expression with resultType string). + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AmazonRedshiftLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AmazonRedshiftLinkedService.java new file mode 100644 index 0000000000000..50ae2cc9963c1 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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 name of the Amazon Redshift server. Type: string (or Expression with resultType string). + * + * @return the server value + */ + public Object server() { + return this.server; + } + + /** + * Set the name of the Amazon Redshift server. Type: string (or Expression with resultType string). + * + * @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 of the Amazon Redshift source. Type: string (or Expression with resultType string). + * + * @return the username value + */ + public Object username() { + return this.username; + } + + /** + * Set the username of the Amazon Redshift source. Type: string (or Expression with resultType string). + * + * @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 of the Amazon Redshift source. + * + * @return the password value + */ + public SecretBase password() { + return this.password; + } + + /** + * Set the password of the Amazon Redshift source. + * + * @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 name of the Amazon Redshift source. Type: string (or Expression with resultType string). + * + * @return the database value + */ + public Object database() { + return this.database; + } + + /** + * Set the database name of the Amazon Redshift source. Type: string (or Expression with resultType string). + * + * @param database the database value to set + * @return the AmazonRedshiftLinkedService object itself. + */ + public AmazonRedshiftLinkedService withDatabase(Object database) { + this.database = database; + return this; + } + + /** + * Get the TCP port number that the Amazon Redshift server uses to listen for client connections. The default value is 5439. Type: integer (or Expression with resultType integer). + * + * @return the port value + */ + public Object port() { + return this.port; + } + + /** + * Set the TCP port number that the Amazon Redshift server uses to listen for client connections. The default value is 5439. Type: integer (or Expression with resultType integer). + * + * @param port the port value to set + * @return the AmazonRedshiftLinkedService object itself. + */ + public AmazonRedshiftLinkedService withPort(Object port) { + this.port = port; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the AmazonRedshiftLinkedService object itself. + */ + public AmazonRedshiftLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AmazonRedshiftSource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AmazonRedshiftSource.java new file mode 100644 index 0000000000000..5d3af52d5aed4 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 database query. Type: string (or Expression with resultType string). + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set database query. Type: string (or Expression with resultType string). + * + * @param query the query value to set + * @return the AmazonRedshiftSource object itself. + */ + public AmazonRedshiftSource withQuery(Object query) { + this.query = query; + return this; + } + + /** + * Get 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. + * + * @return the redshiftUnloadSettings value + */ + public RedshiftUnloadSettings redshiftUnloadSettings() { + return this.redshiftUnloadSettings; + } + + /** + * Set 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. + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AmazonS3Dataset.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AmazonS3Dataset.java new file mode 100644 index 0000000000000..9dce40a9346b7 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AmazonS3Dataset.java @@ -0,0 +1,238 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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 start of S3 object's modified datetime. Type: string (or Expression + * with resultType string). + */ + @JsonProperty(value = "typeProperties.modifiedDatetimeStart") + private Object modifiedDatetimeStart; + + /** + * The end of S3 object's modified datetime. Type: string (or Expression + * with resultType string). + */ + @JsonProperty(value = "typeProperties.modifiedDatetimeEnd") + private Object modifiedDatetimeEnd; + + /** + * 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 name of the Amazon S3 bucket. Type: string (or Expression with resultType string). + * + * @return the bucketName value + */ + public Object bucketName() { + return this.bucketName; + } + + /** + * Set the name of the Amazon S3 bucket. Type: string (or Expression with resultType string). + * + * @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 of the Amazon S3 object. Type: string (or Expression with resultType string). + * + * @return the key value + */ + public Object key() { + return this.key; + } + + /** + * Set the key of the Amazon S3 object. Type: string (or Expression with resultType string). + * + * @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 filter for the S3 object name. Type: string (or Expression with resultType string). + * + * @return the prefix value + */ + public Object prefix() { + return this.prefix; + } + + /** + * Set the prefix filter for the S3 object name. Type: string (or Expression with resultType string). + * + * @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 for the S3 object. Type: string (or Expression with resultType string). + * + * @return the version value + */ + public Object version() { + return this.version; + } + + /** + * Set the version for the S3 object. Type: string (or Expression with resultType string). + * + * @param version the version value to set + * @return the AmazonS3Dataset object itself. + */ + public AmazonS3Dataset withVersion(Object version) { + this.version = version; + return this; + } + + /** + * Get the start of S3 object's modified datetime. Type: string (or Expression with resultType string). + * + * @return the modifiedDatetimeStart value + */ + public Object modifiedDatetimeStart() { + return this.modifiedDatetimeStart; + } + + /** + * Set the start of S3 object's modified datetime. Type: string (or Expression with resultType string). + * + * @param modifiedDatetimeStart the modifiedDatetimeStart value to set + * @return the AmazonS3Dataset object itself. + */ + public AmazonS3Dataset withModifiedDatetimeStart(Object modifiedDatetimeStart) { + this.modifiedDatetimeStart = modifiedDatetimeStart; + return this; + } + + /** + * Get the end of S3 object's modified datetime. Type: string (or Expression with resultType string). + * + * @return the modifiedDatetimeEnd value + */ + public Object modifiedDatetimeEnd() { + return this.modifiedDatetimeEnd; + } + + /** + * Set the end of S3 object's modified datetime. Type: string (or Expression with resultType string). + * + * @param modifiedDatetimeEnd the modifiedDatetimeEnd value to set + * @return the AmazonS3Dataset object itself. + */ + public AmazonS3Dataset withModifiedDatetimeEnd(Object modifiedDatetimeEnd) { + this.modifiedDatetimeEnd = modifiedDatetimeEnd; + return this; + } + + /** + * Get the format of files. + * + * @return the format value + */ + public DatasetStorageFormat format() { + return this.format; + } + + /** + * Set the format of files. + * + * @param format the format value to set + * @return the AmazonS3Dataset object itself. + */ + public AmazonS3Dataset withFormat(DatasetStorageFormat format) { + this.format = format; + return this; + } + + /** + * Get the data compression method used for the Amazon S3 object. + * + * @return the compression value + */ + public DatasetCompression compression() { + return this.compression; + } + + /** + * Set the data compression method used for the Amazon S3 object. + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AmazonS3LinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AmazonS3LinkedService.java new file mode 100644 index 0000000000000..98019e04ab07a --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AmazonS3LinkedService.java @@ -0,0 +1,136 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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; + + /** + * This value specifies the endpoint to access with the S3 Connector. This + * is an optional property; change it only if you want to try a different + * service endpoint or want to switch between https and http. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.serviceUrl") + private Object serviceUrl; + + /** + * 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 access key identifier of the Amazon S3 Identity and Access Management (IAM) user. Type: string (or Expression with resultType string). + * + * @return the accessKeyId value + */ + public Object accessKeyId() { + return this.accessKeyId; + } + + /** + * Set the access key identifier of the Amazon S3 Identity and Access Management (IAM) user. Type: string (or Expression with resultType string). + * + * @param accessKeyId the accessKeyId value to set + * @return the AmazonS3LinkedService object itself. + */ + public AmazonS3LinkedService withAccessKeyId(Object accessKeyId) { + this.accessKeyId = accessKeyId; + return this; + } + + /** + * Get the secret access key of the Amazon S3 Identity and Access Management (IAM) user. + * + * @return the secretAccessKey value + */ + public SecretBase secretAccessKey() { + return this.secretAccessKey; + } + + /** + * Set the secret access key of the Amazon S3 Identity and Access Management (IAM) user. + * + * @param secretAccessKey the secretAccessKey value to set + * @return the AmazonS3LinkedService object itself. + */ + public AmazonS3LinkedService withSecretAccessKey(SecretBase secretAccessKey) { + this.secretAccessKey = secretAccessKey; + return this; + } + + /** + * Get this value specifies the endpoint to access with the S3 Connector. This is an optional property; change it only if you want to try a different service endpoint or want to switch between https and http. Type: string (or Expression with resultType string). + * + * @return the serviceUrl value + */ + public Object serviceUrl() { + return this.serviceUrl; + } + + /** + * Set this value specifies the endpoint to access with the S3 Connector. This is an optional property; change it only if you want to try a different service endpoint or want to switch between https and http. Type: string (or Expression with resultType string). + * + * @param serviceUrl the serviceUrl value to set + * @return the AmazonS3LinkedService object itself. + */ + public AmazonS3LinkedService withServiceUrl(Object serviceUrl) { + this.serviceUrl = serviceUrl; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the AmazonS3LinkedService object itself. + */ + public AmazonS3LinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AmazonS3Location.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AmazonS3Location.java new file mode 100644 index 0000000000000..c2afcb9837333 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AmazonS3Location.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The location of amazon S3 dataset. + */ +public class AmazonS3Location extends DatasetLocation { + /** + * Specify the bucketName of amazon S3. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "bucketName") + private Object bucketName; + + /** + * Specify the version of amazon S3. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "version") + private Object version; + + /** + * Get specify the bucketName of amazon S3. Type: string (or Expression with resultType string). + * + * @return the bucketName value + */ + public Object bucketName() { + return this.bucketName; + } + + /** + * Set specify the bucketName of amazon S3. Type: string (or Expression with resultType string). + * + * @param bucketName the bucketName value to set + * @return the AmazonS3Location object itself. + */ + public AmazonS3Location withBucketName(Object bucketName) { + this.bucketName = bucketName; + return this; + } + + /** + * Get specify the version of amazon S3. Type: string (or Expression with resultType string). + * + * @return the version value + */ + public Object version() { + return this.version; + } + + /** + * Set specify the version of amazon S3. Type: string (or Expression with resultType string). + * + * @param version the version value to set + * @return the AmazonS3Location object itself. + */ + public AmazonS3Location withVersion(Object version) { + this.version = version; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AmazonS3ReadSettings.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AmazonS3ReadSettings.java new file mode 100644 index 0000000000000..805ec1c8c2aa0 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AmazonS3ReadSettings.java @@ -0,0 +1,205 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Azure data lake store read settings. + */ +public class AmazonS3ReadSettings extends StoreReadSettings { + /** + * 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; + + /** + * AmazonS3 wildcardFolderPath. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "wildcardFolderPath") + private Object wildcardFolderPath; + + /** + * AmazonS3 wildcardFileName. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "wildcardFileName") + private Object wildcardFileName; + + /** + * The prefix filter for the S3 object name. Type: string (or Expression + * with resultType string). + */ + @JsonProperty(value = "prefix") + private Object prefix; + + /** + * Indicates whether to enable partition discovery. + */ + @JsonProperty(value = "enablePartitionDiscovery") + private Boolean enablePartitionDiscovery; + + /** + * The start of file's modified datetime. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "modifiedDatetimeStart") + private Object modifiedDatetimeStart; + + /** + * The end of file's modified datetime. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "modifiedDatetimeEnd") + private Object modifiedDatetimeEnd; + + /** + * Get if true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType boolean). + * + * @return the recursive value + */ + public Object recursive() { + return this.recursive; + } + + /** + * Set if true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType boolean). + * + * @param recursive the recursive value to set + * @return the AmazonS3ReadSettings object itself. + */ + public AmazonS3ReadSettings withRecursive(Object recursive) { + this.recursive = recursive; + return this; + } + + /** + * Get amazonS3 wildcardFolderPath. Type: string (or Expression with resultType string). + * + * @return the wildcardFolderPath value + */ + public Object wildcardFolderPath() { + return this.wildcardFolderPath; + } + + /** + * Set amazonS3 wildcardFolderPath. Type: string (or Expression with resultType string). + * + * @param wildcardFolderPath the wildcardFolderPath value to set + * @return the AmazonS3ReadSettings object itself. + */ + public AmazonS3ReadSettings withWildcardFolderPath(Object wildcardFolderPath) { + this.wildcardFolderPath = wildcardFolderPath; + return this; + } + + /** + * Get amazonS3 wildcardFileName. Type: string (or Expression with resultType string). + * + * @return the wildcardFileName value + */ + public Object wildcardFileName() { + return this.wildcardFileName; + } + + /** + * Set amazonS3 wildcardFileName. Type: string (or Expression with resultType string). + * + * @param wildcardFileName the wildcardFileName value to set + * @return the AmazonS3ReadSettings object itself. + */ + public AmazonS3ReadSettings withWildcardFileName(Object wildcardFileName) { + this.wildcardFileName = wildcardFileName; + return this; + } + + /** + * Get the prefix filter for the S3 object name. Type: string (or Expression with resultType string). + * + * @return the prefix value + */ + public Object prefix() { + return this.prefix; + } + + /** + * Set the prefix filter for the S3 object name. Type: string (or Expression with resultType string). + * + * @param prefix the prefix value to set + * @return the AmazonS3ReadSettings object itself. + */ + public AmazonS3ReadSettings withPrefix(Object prefix) { + this.prefix = prefix; + return this; + } + + /** + * Get indicates whether to enable partition discovery. + * + * @return the enablePartitionDiscovery value + */ + public Boolean enablePartitionDiscovery() { + return this.enablePartitionDiscovery; + } + + /** + * Set indicates whether to enable partition discovery. + * + * @param enablePartitionDiscovery the enablePartitionDiscovery value to set + * @return the AmazonS3ReadSettings object itself. + */ + public AmazonS3ReadSettings withEnablePartitionDiscovery(Boolean enablePartitionDiscovery) { + this.enablePartitionDiscovery = enablePartitionDiscovery; + return this; + } + + /** + * Get the start of file's modified datetime. Type: string (or Expression with resultType string). + * + * @return the modifiedDatetimeStart value + */ + public Object modifiedDatetimeStart() { + return this.modifiedDatetimeStart; + } + + /** + * Set the start of file's modified datetime. Type: string (or Expression with resultType string). + * + * @param modifiedDatetimeStart the modifiedDatetimeStart value to set + * @return the AmazonS3ReadSettings object itself. + */ + public AmazonS3ReadSettings withModifiedDatetimeStart(Object modifiedDatetimeStart) { + this.modifiedDatetimeStart = modifiedDatetimeStart; + return this; + } + + /** + * Get the end of file's modified datetime. Type: string (or Expression with resultType string). + * + * @return the modifiedDatetimeEnd value + */ + public Object modifiedDatetimeEnd() { + return this.modifiedDatetimeEnd; + } + + /** + * Set the end of file's modified datetime. Type: string (or Expression with resultType string). + * + * @param modifiedDatetimeEnd the modifiedDatetimeEnd value to set + * @return the AmazonS3ReadSettings object itself. + */ + public AmazonS3ReadSettings withModifiedDatetimeEnd(Object modifiedDatetimeEnd) { + this.modifiedDatetimeEnd = modifiedDatetimeEnd; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AppendVariableActivity.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AppendVariableActivity.java new file mode 100644 index 0000000000000..a2e269436aaaf --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AppendVariableActivity.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; + +/** + * Append value for a Variable of type Array. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("AppendVariable") +@JsonFlatten +public class AppendVariableActivity extends ControlActivity { + /** + * Name of the variable whose value needs to be appended to. + */ + @JsonProperty(value = "typeProperties.variableName") + private String variableName; + + /** + * Value to be appended. Could be a static value or Expression. + */ + @JsonProperty(value = "typeProperties.value") + private Object value; + + /** + * Get name of the variable whose value needs to be appended to. + * + * @return the variableName value + */ + public String variableName() { + return this.variableName; + } + + /** + * Set name of the variable whose value needs to be appended to. + * + * @param variableName the variableName value to set + * @return the AppendVariableActivity object itself. + */ + public AppendVariableActivity withVariableName(String variableName) { + this.variableName = variableName; + return this; + } + + /** + * Get value to be appended. Could be a static value or Expression. + * + * @return the value value + */ + public Object value() { + return this.value; + } + + /** + * Set value to be appended. Could be a static value or Expression. + * + * @param value the value value to set + * @return the AppendVariableActivity object itself. + */ + public AppendVariableActivity withValue(Object value) { + this.value = value; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AvroFormat.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AvroFormat.java new file mode 100644 index 0000000000000..00c7d629ecb49 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureBatchLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureBatchLinkedService.java new file mode 100644 index 0000000000000..bf3d0fa4178b4 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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 Azure Batch account name. Type: string (or Expression with resultType string). + * + * @return the accountName value + */ + public Object accountName() { + return this.accountName; + } + + /** + * Set the Azure Batch account name. Type: string (or Expression with resultType string). + * + * @param accountName the accountName value to set + * @return the AzureBatchLinkedService object itself. + */ + public AzureBatchLinkedService withAccountName(Object accountName) { + this.accountName = accountName; + return this; + } + + /** + * Get the Azure Batch account access key. + * + * @return the accessKey value + */ + public SecretBase accessKey() { + return this.accessKey; + } + + /** + * Set the Azure Batch account access key. + * + * @param accessKey the accessKey value to set + * @return the AzureBatchLinkedService object itself. + */ + public AzureBatchLinkedService withAccessKey(SecretBase accessKey) { + this.accessKey = accessKey; + return this; + } + + /** + * Get the Azure Batch URI. Type: string (or Expression with resultType string). + * + * @return the batchUri value + */ + public Object batchUri() { + return this.batchUri; + } + + /** + * Set the Azure Batch URI. Type: string (or Expression with resultType string). + * + * @param batchUri the batchUri value to set + * @return the AzureBatchLinkedService object itself. + */ + public AzureBatchLinkedService withBatchUri(Object batchUri) { + this.batchUri = batchUri; + return this; + } + + /** + * Get the Azure Batch pool name. Type: string (or Expression with resultType string). + * + * @return the poolName value + */ + public Object poolName() { + return this.poolName; + } + + /** + * Set the Azure Batch pool name. Type: string (or Expression with resultType string). + * + * @param poolName the poolName value to set + * @return the AzureBatchLinkedService object itself. + */ + public AzureBatchLinkedService withPoolName(Object poolName) { + this.poolName = poolName; + return this; + } + + /** + * Get the Azure Storage linked service reference. + * + * @return the linkedServiceName value + */ + public LinkedServiceReference linkedServiceName() { + return this.linkedServiceName; + } + + /** + * Set the Azure Storage linked service reference. + * + * @param linkedServiceName the linkedServiceName value to set + * @return the AzureBatchLinkedService object itself. + */ + public AzureBatchLinkedService withLinkedServiceName(LinkedServiceReference linkedServiceName) { + this.linkedServiceName = linkedServiceName; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the AzureBatchLinkedService object itself. + */ + public AzureBatchLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureBlobDataset.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureBlobDataset.java new file mode 100644 index 0000000000000..d17ca96a3e265 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureBlobDataset.java @@ -0,0 +1,211 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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 start of Azure Blob's modified datetime. Type: string (or Expression + * with resultType string). + */ + @JsonProperty(value = "typeProperties.modifiedDatetimeStart") + private Object modifiedDatetimeStart; + + /** + * The end of Azure Blob's modified datetime. Type: string (or Expression + * with resultType string). + */ + @JsonProperty(value = "typeProperties.modifiedDatetimeEnd") + private Object modifiedDatetimeEnd; + + /** + * 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 path of the Azure Blob storage. Type: string (or Expression with resultType string). + * + * @return the folderPath value + */ + public Object folderPath() { + return this.folderPath; + } + + /** + * Set the path of the Azure Blob storage. Type: string (or Expression with resultType string). + * + * @param folderPath the folderPath value to set + * @return the AzureBlobDataset object itself. + */ + public AzureBlobDataset withFolderPath(Object folderPath) { + this.folderPath = folderPath; + return this; + } + + /** + * Get the root of blob path. Type: string (or Expression with resultType string). + * + * @return the tableRootLocation value + */ + public Object tableRootLocation() { + return this.tableRootLocation; + } + + /** + * Set the root of blob path. Type: string (or Expression with resultType string). + * + * @param tableRootLocation the tableRootLocation value to set + * @return the AzureBlobDataset object itself. + */ + public AzureBlobDataset withTableRootLocation(Object tableRootLocation) { + this.tableRootLocation = tableRootLocation; + return this; + } + + /** + * Get the name of the Azure Blob. Type: string (or Expression with resultType string). + * + * @return the fileName value + */ + public Object fileName() { + return this.fileName; + } + + /** + * Set the name of the Azure Blob. Type: string (or Expression with resultType string). + * + * @param fileName the fileName value to set + * @return the AzureBlobDataset object itself. + */ + public AzureBlobDataset withFileName(Object fileName) { + this.fileName = fileName; + return this; + } + + /** + * Get the start of Azure Blob's modified datetime. Type: string (or Expression with resultType string). + * + * @return the modifiedDatetimeStart value + */ + public Object modifiedDatetimeStart() { + return this.modifiedDatetimeStart; + } + + /** + * Set the start of Azure Blob's modified datetime. Type: string (or Expression with resultType string). + * + * @param modifiedDatetimeStart the modifiedDatetimeStart value to set + * @return the AzureBlobDataset object itself. + */ + public AzureBlobDataset withModifiedDatetimeStart(Object modifiedDatetimeStart) { + this.modifiedDatetimeStart = modifiedDatetimeStart; + return this; + } + + /** + * Get the end of Azure Blob's modified datetime. Type: string (or Expression with resultType string). + * + * @return the modifiedDatetimeEnd value + */ + public Object modifiedDatetimeEnd() { + return this.modifiedDatetimeEnd; + } + + /** + * Set the end of Azure Blob's modified datetime. Type: string (or Expression with resultType string). + * + * @param modifiedDatetimeEnd the modifiedDatetimeEnd value to set + * @return the AzureBlobDataset object itself. + */ + public AzureBlobDataset withModifiedDatetimeEnd(Object modifiedDatetimeEnd) { + this.modifiedDatetimeEnd = modifiedDatetimeEnd; + return this; + } + + /** + * Get the format of the Azure Blob storage. + * + * @return the format value + */ + public DatasetStorageFormat format() { + return this.format; + } + + /** + * Set the format of the Azure Blob storage. + * + * @param format the format value to set + * @return the AzureBlobDataset object itself. + */ + public AzureBlobDataset withFormat(DatasetStorageFormat format) { + this.format = format; + return this; + } + + /** + * Get the data compression method used for the blob storage. + * + * @return the compression value + */ + public DatasetCompression compression() { + return this.compression; + } + + /** + * Set the data compression method used for the blob storage. + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureBlobFSDataset.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureBlobFSDataset.java new file mode 100644 index 0000000000000..65d7462c77d6a --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureBlobFSDataset.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DatasetInner; + +/** + * The Azure Data Lake Storage Gen2 storage. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("AzureBlobFSFile") +@JsonFlatten +public class AzureBlobFSDataset extends DatasetInner { + /** + * The path of the Azure Data Lake Storage Gen2 storage. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.folderPath") + private Object folderPath; + + /** + * The name of the Azure Data Lake Storage Gen2. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.fileName") + private Object fileName; + + /** + * The format of the Azure Data Lake Storage Gen2 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 path of the Azure Data Lake Storage Gen2 storage. Type: string (or Expression with resultType string). + * + * @return the folderPath value + */ + public Object folderPath() { + return this.folderPath; + } + + /** + * Set the path of the Azure Data Lake Storage Gen2 storage. Type: string (or Expression with resultType string). + * + * @param folderPath the folderPath value to set + * @return the AzureBlobFSDataset object itself. + */ + public AzureBlobFSDataset withFolderPath(Object folderPath) { + this.folderPath = folderPath; + return this; + } + + /** + * Get the name of the Azure Data Lake Storage Gen2. Type: string (or Expression with resultType string). + * + * @return the fileName value + */ + public Object fileName() { + return this.fileName; + } + + /** + * Set the name of the Azure Data Lake Storage Gen2. Type: string (or Expression with resultType string). + * + * @param fileName the fileName value to set + * @return the AzureBlobFSDataset object itself. + */ + public AzureBlobFSDataset withFileName(Object fileName) { + this.fileName = fileName; + return this; + } + + /** + * Get the format of the Azure Data Lake Storage Gen2 storage. + * + * @return the format value + */ + public DatasetStorageFormat format() { + return this.format; + } + + /** + * Set the format of the Azure Data Lake Storage Gen2 storage. + * + * @param format the format value to set + * @return the AzureBlobFSDataset object itself. + */ + public AzureBlobFSDataset withFormat(DatasetStorageFormat format) { + this.format = format; + return this; + } + + /** + * Get the data compression method used for the blob storage. + * + * @return the compression value + */ + public DatasetCompression compression() { + return this.compression; + } + + /** + * Set the data compression method used for the blob storage. + * + * @param compression the compression value to set + * @return the AzureBlobFSDataset object itself. + */ + public AzureBlobFSDataset withCompression(DatasetCompression compression) { + this.compression = compression; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureBlobFSLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureBlobFSLinkedService.java new file mode 100644 index 0000000000000..16d934545e3eb --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureBlobFSLinkedService.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.LinkedServiceInner; + +/** + * Azure Data Lake Storage Gen2 linked service. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("AzureBlobFS") +@JsonFlatten +public class AzureBlobFSLinkedService extends LinkedServiceInner { + /** + * Endpoint for the Azure Data Lake Storage Gen2 service. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.url", required = true) + private Object url; + + /** + * Account key for the Azure Data Lake Storage Gen2 service. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.accountKey") + private Object accountKey; + + /** + * The ID of the application used to authenticate against the Azure Data + * Lake Storage Gen2 account. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.servicePrincipalId") + private Object servicePrincipalId; + + /** + * The Key of the application used to authenticate against the Azure Data + * Lake Storage Gen2 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; + + /** + * 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 endpoint for the Azure Data Lake Storage Gen2 service. Type: string (or Expression with resultType string). + * + * @return the url value + */ + public Object url() { + return this.url; + } + + /** + * Set endpoint for the Azure Data Lake Storage Gen2 service. Type: string (or Expression with resultType string). + * + * @param url the url value to set + * @return the AzureBlobFSLinkedService object itself. + */ + public AzureBlobFSLinkedService withUrl(Object url) { + this.url = url; + return this; + } + + /** + * Get account key for the Azure Data Lake Storage Gen2 service. Type: string (or Expression with resultType string). + * + * @return the accountKey value + */ + public Object accountKey() { + return this.accountKey; + } + + /** + * Set account key for the Azure Data Lake Storage Gen2 service. Type: string (or Expression with resultType string). + * + * @param accountKey the accountKey value to set + * @return the AzureBlobFSLinkedService object itself. + */ + public AzureBlobFSLinkedService withAccountKey(Object accountKey) { + this.accountKey = accountKey; + return this; + } + + /** + * Get the ID of the application used to authenticate against the Azure Data Lake Storage Gen2 account. Type: string (or Expression with resultType string). + * + * @return the servicePrincipalId value + */ + public Object servicePrincipalId() { + return this.servicePrincipalId; + } + + /** + * Set the ID of the application used to authenticate against the Azure Data Lake Storage Gen2 account. Type: string (or Expression with resultType string). + * + * @param servicePrincipalId the servicePrincipalId value to set + * @return the AzureBlobFSLinkedService object itself. + */ + public AzureBlobFSLinkedService withServicePrincipalId(Object servicePrincipalId) { + this.servicePrincipalId = servicePrincipalId; + return this; + } + + /** + * Get the Key of the application used to authenticate against the Azure Data Lake Storage Gen2 account. + * + * @return the servicePrincipalKey value + */ + public SecretBase servicePrincipalKey() { + return this.servicePrincipalKey; + } + + /** + * Set the Key of the application used to authenticate against the Azure Data Lake Storage Gen2 account. + * + * @param servicePrincipalKey the servicePrincipalKey value to set + * @return the AzureBlobFSLinkedService object itself. + */ + public AzureBlobFSLinkedService withServicePrincipalKey(SecretBase servicePrincipalKey) { + this.servicePrincipalKey = servicePrincipalKey; + return this; + } + + /** + * Get the name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string). + * + * @return the tenant value + */ + public Object tenant() { + return this.tenant; + } + + /** + * Set the name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string). + * + * @param tenant the tenant value to set + * @return the AzureBlobFSLinkedService object itself. + */ + public AzureBlobFSLinkedService withTenant(Object tenant) { + this.tenant = tenant; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the AzureBlobFSLinkedService object itself. + */ + public AzureBlobFSLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureBlobFSLocation.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureBlobFSLocation.java new file mode 100644 index 0000000000000..ad1ab5549e55f --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureBlobFSLocation.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The location of azure blobFS dataset. + */ +public class AzureBlobFSLocation extends DatasetLocation { + /** + * Specify the fileSystem of azure blobFS. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "fileSystem") + private Object fileSystem; + + /** + * Get specify the fileSystem of azure blobFS. Type: string (or Expression with resultType string). + * + * @return the fileSystem value + */ + public Object fileSystem() { + return this.fileSystem; + } + + /** + * Set specify the fileSystem of azure blobFS. Type: string (or Expression with resultType string). + * + * @param fileSystem the fileSystem value to set + * @return the AzureBlobFSLocation object itself. + */ + public AzureBlobFSLocation withFileSystem(Object fileSystem) { + this.fileSystem = fileSystem; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureBlobFSReadSettings.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureBlobFSReadSettings.java new file mode 100644 index 0000000000000..dcebfb581b461 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureBlobFSReadSettings.java @@ -0,0 +1,178 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Azure blobFS read settings. + */ +public class AzureBlobFSReadSettings extends StoreReadSettings { + /** + * 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; + + /** + * Azure blobFS wildcardFolderPath. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "wildcardFolderPath") + private Object wildcardFolderPath; + + /** + * Azure blobFS wildcardFileName. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "wildcardFileName") + private Object wildcardFileName; + + /** + * Indicates whether to enable partition discovery. + */ + @JsonProperty(value = "enablePartitionDiscovery") + private Boolean enablePartitionDiscovery; + + /** + * The start of file's modified datetime. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "modifiedDatetimeStart") + private Object modifiedDatetimeStart; + + /** + * The end of file's modified datetime. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "modifiedDatetimeEnd") + private Object modifiedDatetimeEnd; + + /** + * Get if true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType boolean). + * + * @return the recursive value + */ + public Object recursive() { + return this.recursive; + } + + /** + * Set if true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType boolean). + * + * @param recursive the recursive value to set + * @return the AzureBlobFSReadSettings object itself. + */ + public AzureBlobFSReadSettings withRecursive(Object recursive) { + this.recursive = recursive; + return this; + } + + /** + * Get azure blobFS wildcardFolderPath. Type: string (or Expression with resultType string). + * + * @return the wildcardFolderPath value + */ + public Object wildcardFolderPath() { + return this.wildcardFolderPath; + } + + /** + * Set azure blobFS wildcardFolderPath. Type: string (or Expression with resultType string). + * + * @param wildcardFolderPath the wildcardFolderPath value to set + * @return the AzureBlobFSReadSettings object itself. + */ + public AzureBlobFSReadSettings withWildcardFolderPath(Object wildcardFolderPath) { + this.wildcardFolderPath = wildcardFolderPath; + return this; + } + + /** + * Get azure blobFS wildcardFileName. Type: string (or Expression with resultType string). + * + * @return the wildcardFileName value + */ + public Object wildcardFileName() { + return this.wildcardFileName; + } + + /** + * Set azure blobFS wildcardFileName. Type: string (or Expression with resultType string). + * + * @param wildcardFileName the wildcardFileName value to set + * @return the AzureBlobFSReadSettings object itself. + */ + public AzureBlobFSReadSettings withWildcardFileName(Object wildcardFileName) { + this.wildcardFileName = wildcardFileName; + return this; + } + + /** + * Get indicates whether to enable partition discovery. + * + * @return the enablePartitionDiscovery value + */ + public Boolean enablePartitionDiscovery() { + return this.enablePartitionDiscovery; + } + + /** + * Set indicates whether to enable partition discovery. + * + * @param enablePartitionDiscovery the enablePartitionDiscovery value to set + * @return the AzureBlobFSReadSettings object itself. + */ + public AzureBlobFSReadSettings withEnablePartitionDiscovery(Boolean enablePartitionDiscovery) { + this.enablePartitionDiscovery = enablePartitionDiscovery; + return this; + } + + /** + * Get the start of file's modified datetime. Type: string (or Expression with resultType string). + * + * @return the modifiedDatetimeStart value + */ + public Object modifiedDatetimeStart() { + return this.modifiedDatetimeStart; + } + + /** + * Set the start of file's modified datetime. Type: string (or Expression with resultType string). + * + * @param modifiedDatetimeStart the modifiedDatetimeStart value to set + * @return the AzureBlobFSReadSettings object itself. + */ + public AzureBlobFSReadSettings withModifiedDatetimeStart(Object modifiedDatetimeStart) { + this.modifiedDatetimeStart = modifiedDatetimeStart; + return this; + } + + /** + * Get the end of file's modified datetime. Type: string (or Expression with resultType string). + * + * @return the modifiedDatetimeEnd value + */ + public Object modifiedDatetimeEnd() { + return this.modifiedDatetimeEnd; + } + + /** + * Set the end of file's modified datetime. Type: string (or Expression with resultType string). + * + * @param modifiedDatetimeEnd the modifiedDatetimeEnd value to set + * @return the AzureBlobFSReadSettings object itself. + */ + public AzureBlobFSReadSettings withModifiedDatetimeEnd(Object modifiedDatetimeEnd) { + this.modifiedDatetimeEnd = modifiedDatetimeEnd; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureBlobFSSink.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureBlobFSSink.java new file mode 100644 index 0000000000000..b2b67c82d4d5c --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureBlobFSSink.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Azure Data Lake Storage Gen2 sink. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("AzureBlobFSSink") +public class AzureBlobFSSink extends CopySink { + /** + * The type of copy behavior for copy sink. + */ + @JsonProperty(value = "copyBehavior") + private Object copyBehavior; + + /** + * Get the type of copy behavior for copy sink. + * + * @return the copyBehavior value + */ + public Object copyBehavior() { + return this.copyBehavior; + } + + /** + * Set the type of copy behavior for copy sink. + * + * @param copyBehavior the copyBehavior value to set + * @return the AzureBlobFSSink object itself. + */ + public AzureBlobFSSink withCopyBehavior(Object copyBehavior) { + this.copyBehavior = copyBehavior; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureBlobFSSource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureBlobFSSource.java new file mode 100644 index 0000000000000..6067e486cc3f4 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureBlobFSSource.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Azure BlobFS source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("AzureBlobFSSource") +public class AzureBlobFSSource 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 treat empty as null. Type: boolean (or Expression with resultType boolean). + * + * @return the treatEmptyAsNull value + */ + public Object treatEmptyAsNull() { + return this.treatEmptyAsNull; + } + + /** + * Set treat empty as null. Type: boolean (or Expression with resultType boolean). + * + * @param treatEmptyAsNull the treatEmptyAsNull value to set + * @return the AzureBlobFSSource object itself. + */ + public AzureBlobFSSource withTreatEmptyAsNull(Object treatEmptyAsNull) { + this.treatEmptyAsNull = treatEmptyAsNull; + return this; + } + + /** + * Get number of header lines to skip from each blob. Type: integer (or Expression with resultType integer). + * + * @return the skipHeaderLineCount value + */ + public Object skipHeaderLineCount() { + return this.skipHeaderLineCount; + } + + /** + * Set number of header lines to skip from each blob. Type: integer (or Expression with resultType integer). + * + * @param skipHeaderLineCount the skipHeaderLineCount value to set + * @return the AzureBlobFSSource object itself. + */ + public AzureBlobFSSource withSkipHeaderLineCount(Object skipHeaderLineCount) { + this.skipHeaderLineCount = skipHeaderLineCount; + return this; + } + + /** + * Get if true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType boolean). + * + * @return the recursive value + */ + public Object recursive() { + return this.recursive; + } + + /** + * Set if true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType boolean). + * + * @param recursive the recursive value to set + * @return the AzureBlobFSSource object itself. + */ + public AzureBlobFSSource withRecursive(Object recursive) { + this.recursive = recursive; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureBlobFSWriteSettings.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureBlobFSWriteSettings.java new file mode 100644 index 0000000000000..70cf781545486 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureBlobFSWriteSettings.java @@ -0,0 +1,16 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + + +/** + * Azure blobFS write settings. + */ +public class AzureBlobFSWriteSettings extends StoreWriteSettings { +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureBlobStorageLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureBlobStorageLinkedService.java new file mode 100644 index 0000000000000..855da4ce27851 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureBlobStorageLinkedService.java @@ -0,0 +1,268 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.LinkedServiceInner; + +/** + * The azure blob storage linked service. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("AzureBlobStorage") +@JsonFlatten +public class AzureBlobStorageLinkedService extends LinkedServiceInner { + /** + * The connection string. It is mutually exclusive with sasUri, + * serviceEndpoint property. Type: string, SecureString or + * AzureKeyVaultSecretReference. + */ + @JsonProperty(value = "typeProperties.connectionString") + private Object connectionString; + + /** + * The Azure key vault secret reference of accountKey in connection string. + */ + @JsonProperty(value = "typeProperties.accountKey") + private AzureKeyVaultSecretReference accountKey; + + /** + * SAS URI of the Azure Blob Storage resource. It is mutually exclusive + * with connectionString, serviceEndpoint property. Type: string, + * SecureString or AzureKeyVaultSecretReference. + */ + @JsonProperty(value = "typeProperties.sasUri") + private Object sasUri; + + /** + * The Azure key vault secret reference of sasToken in sas uri. + */ + @JsonProperty(value = "typeProperties.sasToken") + private AzureKeyVaultSecretReference sasToken; + + /** + * Blob service endpoint of the Azure Blob Storage resource. It is mutually + * exclusive with connectionString, sasUri property. + */ + @JsonProperty(value = "typeProperties.serviceEndpoint") + private String serviceEndpoint; + + /** + * The ID of the service principal used to authenticate against Azure SQL + * Data Warehouse. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "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 String encryptedCredential; + + /** + * Get the connection string. It is mutually exclusive with sasUri, serviceEndpoint property. Type: string, SecureString or AzureKeyVaultSecretReference. + * + * @return the connectionString value + */ + public Object connectionString() { + return this.connectionString; + } + + /** + * Set the connection string. It is mutually exclusive with sasUri, serviceEndpoint property. Type: string, SecureString or AzureKeyVaultSecretReference. + * + * @param connectionString the connectionString value to set + * @return the AzureBlobStorageLinkedService object itself. + */ + public AzureBlobStorageLinkedService withConnectionString(Object connectionString) { + this.connectionString = connectionString; + return this; + } + + /** + * Get the Azure key vault secret reference of accountKey in connection string. + * + * @return the accountKey value + */ + public AzureKeyVaultSecretReference accountKey() { + return this.accountKey; + } + + /** + * Set the Azure key vault secret reference of accountKey in connection string. + * + * @param accountKey the accountKey value to set + * @return the AzureBlobStorageLinkedService object itself. + */ + public AzureBlobStorageLinkedService withAccountKey(AzureKeyVaultSecretReference accountKey) { + this.accountKey = accountKey; + return this; + } + + /** + * Get sAS URI of the Azure Blob Storage resource. It is mutually exclusive with connectionString, serviceEndpoint property. Type: string, SecureString or AzureKeyVaultSecretReference. + * + * @return the sasUri value + */ + public Object sasUri() { + return this.sasUri; + } + + /** + * Set sAS URI of the Azure Blob Storage resource. It is mutually exclusive with connectionString, serviceEndpoint property. Type: string, SecureString or AzureKeyVaultSecretReference. + * + * @param sasUri the sasUri value to set + * @return the AzureBlobStorageLinkedService object itself. + */ + public AzureBlobStorageLinkedService withSasUri(Object sasUri) { + this.sasUri = sasUri; + return this; + } + + /** + * Get the Azure key vault secret reference of sasToken in sas uri. + * + * @return the sasToken value + */ + public AzureKeyVaultSecretReference sasToken() { + return this.sasToken; + } + + /** + * Set the Azure key vault secret reference of sasToken in sas uri. + * + * @param sasToken the sasToken value to set + * @return the AzureBlobStorageLinkedService object itself. + */ + public AzureBlobStorageLinkedService withSasToken(AzureKeyVaultSecretReference sasToken) { + this.sasToken = sasToken; + return this; + } + + /** + * Get blob service endpoint of the Azure Blob Storage resource. It is mutually exclusive with connectionString, sasUri property. + * + * @return the serviceEndpoint value + */ + public String serviceEndpoint() { + return this.serviceEndpoint; + } + + /** + * Set blob service endpoint of the Azure Blob Storage resource. It is mutually exclusive with connectionString, sasUri property. + * + * @param serviceEndpoint the serviceEndpoint value to set + * @return the AzureBlobStorageLinkedService object itself. + */ + public AzureBlobStorageLinkedService withServiceEndpoint(String serviceEndpoint) { + this.serviceEndpoint = serviceEndpoint; + return this; + } + + /** + * Get the ID of the service principal used to authenticate against Azure SQL Data Warehouse. Type: string (or Expression with resultType string). + * + * @return the servicePrincipalId value + */ + public Object servicePrincipalId() { + return this.servicePrincipalId; + } + + /** + * Set the ID of the service principal used to authenticate against Azure SQL Data Warehouse. Type: string (or Expression with resultType string). + * + * @param servicePrincipalId the servicePrincipalId value to set + * @return the AzureBlobStorageLinkedService object itself. + */ + public AzureBlobStorageLinkedService withServicePrincipalId(Object servicePrincipalId) { + this.servicePrincipalId = servicePrincipalId; + return this; + } + + /** + * Get the key of the service principal used to authenticate against Azure SQL Data Warehouse. + * + * @return the servicePrincipalKey value + */ + public SecretBase servicePrincipalKey() { + return this.servicePrincipalKey; + } + + /** + * Set the key of the service principal used to authenticate against Azure SQL Data Warehouse. + * + * @param servicePrincipalKey the servicePrincipalKey value to set + * @return the AzureBlobStorageLinkedService object itself. + */ + public AzureBlobStorageLinkedService withServicePrincipalKey(SecretBase servicePrincipalKey) { + this.servicePrincipalKey = servicePrincipalKey; + return this; + } + + /** + * Get the name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string). + * + * @return the tenant value + */ + public Object tenant() { + return this.tenant; + } + + /** + * Set the name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string). + * + * @param tenant the tenant value to set + * @return the AzureBlobStorageLinkedService object itself. + */ + public AzureBlobStorageLinkedService withTenant(Object tenant) { + this.tenant = tenant; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public String encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the AzureBlobStorageLinkedService object itself. + */ + public AzureBlobStorageLinkedService withEncryptedCredential(String encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureBlobStorageLocation.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureBlobStorageLocation.java new file mode 100644 index 0000000000000..2145e18bb2af0 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureBlobStorageLocation.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The location of azure blob dataset. + */ +public class AzureBlobStorageLocation extends DatasetLocation { + /** + * Specify the container of azure blob. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "container") + private Object container; + + /** + * Get specify the container of azure blob. Type: string (or Expression with resultType string). + * + * @return the container value + */ + public Object container() { + return this.container; + } + + /** + * Set specify the container of azure blob. Type: string (or Expression with resultType string). + * + * @param container the container value to set + * @return the AzureBlobStorageLocation object itself. + */ + public AzureBlobStorageLocation withContainer(Object container) { + this.container = container; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureBlobStorageReadSettings.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureBlobStorageReadSettings.java new file mode 100644 index 0000000000000..3ce49a1ca0b16 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureBlobStorageReadSettings.java @@ -0,0 +1,178 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Azure blob read settings. + */ +public class AzureBlobStorageReadSettings extends StoreReadSettings { + /** + * 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; + + /** + * Azure blob wildcardFolderPath. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "wildcardFolderPath") + private Object wildcardFolderPath; + + /** + * Azure blob wildcardFileName. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "wildcardFileName") + private Object wildcardFileName; + + /** + * Indicates whether to enable partition discovery. + */ + @JsonProperty(value = "enablePartitionDiscovery") + private Boolean enablePartitionDiscovery; + + /** + * The start of file's modified datetime. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "modifiedDatetimeStart") + private Object modifiedDatetimeStart; + + /** + * The end of file's modified datetime. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "modifiedDatetimeEnd") + private Object modifiedDatetimeEnd; + + /** + * Get if true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType boolean). + * + * @return the recursive value + */ + public Object recursive() { + return this.recursive; + } + + /** + * Set if true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType boolean). + * + * @param recursive the recursive value to set + * @return the AzureBlobStorageReadSettings object itself. + */ + public AzureBlobStorageReadSettings withRecursive(Object recursive) { + this.recursive = recursive; + return this; + } + + /** + * Get azure blob wildcardFolderPath. Type: string (or Expression with resultType string). + * + * @return the wildcardFolderPath value + */ + public Object wildcardFolderPath() { + return this.wildcardFolderPath; + } + + /** + * Set azure blob wildcardFolderPath. Type: string (or Expression with resultType string). + * + * @param wildcardFolderPath the wildcardFolderPath value to set + * @return the AzureBlobStorageReadSettings object itself. + */ + public AzureBlobStorageReadSettings withWildcardFolderPath(Object wildcardFolderPath) { + this.wildcardFolderPath = wildcardFolderPath; + return this; + } + + /** + * Get azure blob wildcardFileName. Type: string (or Expression with resultType string). + * + * @return the wildcardFileName value + */ + public Object wildcardFileName() { + return this.wildcardFileName; + } + + /** + * Set azure blob wildcardFileName. Type: string (or Expression with resultType string). + * + * @param wildcardFileName the wildcardFileName value to set + * @return the AzureBlobStorageReadSettings object itself. + */ + public AzureBlobStorageReadSettings withWildcardFileName(Object wildcardFileName) { + this.wildcardFileName = wildcardFileName; + return this; + } + + /** + * Get indicates whether to enable partition discovery. + * + * @return the enablePartitionDiscovery value + */ + public Boolean enablePartitionDiscovery() { + return this.enablePartitionDiscovery; + } + + /** + * Set indicates whether to enable partition discovery. + * + * @param enablePartitionDiscovery the enablePartitionDiscovery value to set + * @return the AzureBlobStorageReadSettings object itself. + */ + public AzureBlobStorageReadSettings withEnablePartitionDiscovery(Boolean enablePartitionDiscovery) { + this.enablePartitionDiscovery = enablePartitionDiscovery; + return this; + } + + /** + * Get the start of file's modified datetime. Type: string (or Expression with resultType string). + * + * @return the modifiedDatetimeStart value + */ + public Object modifiedDatetimeStart() { + return this.modifiedDatetimeStart; + } + + /** + * Set the start of file's modified datetime. Type: string (or Expression with resultType string). + * + * @param modifiedDatetimeStart the modifiedDatetimeStart value to set + * @return the AzureBlobStorageReadSettings object itself. + */ + public AzureBlobStorageReadSettings withModifiedDatetimeStart(Object modifiedDatetimeStart) { + this.modifiedDatetimeStart = modifiedDatetimeStart; + return this; + } + + /** + * Get the end of file's modified datetime. Type: string (or Expression with resultType string). + * + * @return the modifiedDatetimeEnd value + */ + public Object modifiedDatetimeEnd() { + return this.modifiedDatetimeEnd; + } + + /** + * Set the end of file's modified datetime. Type: string (or Expression with resultType string). + * + * @param modifiedDatetimeEnd the modifiedDatetimeEnd value to set + * @return the AzureBlobStorageReadSettings object itself. + */ + public AzureBlobStorageReadSettings withModifiedDatetimeEnd(Object modifiedDatetimeEnd) { + this.modifiedDatetimeEnd = modifiedDatetimeEnd; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureBlobStorageWriteSettings.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureBlobStorageWriteSettings.java new file mode 100644 index 0000000000000..0ed1d0b3261e5 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureBlobStorageWriteSettings.java @@ -0,0 +1,16 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + + +/** + * Azure blob write settings. + */ +public class AzureBlobStorageWriteSettings extends StoreWriteSettings { +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureDataExplorerCommandActivity.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureDataExplorerCommandActivity.java new file mode 100644 index 0000000000000..31003b13c5f6c --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureDataExplorerCommandActivity.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; + +/** + * Azure Data Explorer command activity. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("AzureDataExplorerCommand") +@JsonFlatten +public class AzureDataExplorerCommandActivity extends ExecutionActivity { + /** + * A control command, according to the Azure Data Explorer command syntax. + * Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.command", required = true) + private Object command; + + /** + * Control command timeout. Type: string (or Expression with resultType + * string), pattern: + * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9]))..). + */ + @JsonProperty(value = "typeProperties.commandTimeout") + private Object commandTimeout; + + /** + * Get a control command, according to the Azure Data Explorer command syntax. Type: string (or Expression with resultType string). + * + * @return the command value + */ + public Object command() { + return this.command; + } + + /** + * Set a control command, according to the Azure Data Explorer command syntax. Type: string (or Expression with resultType string). + * + * @param command the command value to set + * @return the AzureDataExplorerCommandActivity object itself. + */ + public AzureDataExplorerCommandActivity withCommand(Object command) { + this.command = command; + return this; + } + + /** + * Get control command timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9]))..). + * + * @return the commandTimeout value + */ + public Object commandTimeout() { + return this.commandTimeout; + } + + /** + * Set control command timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9]))..). + * + * @param commandTimeout the commandTimeout value to set + * @return the AzureDataExplorerCommandActivity object itself. + */ + public AzureDataExplorerCommandActivity withCommandTimeout(Object commandTimeout) { + this.commandTimeout = commandTimeout; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureDataExplorerLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureDataExplorerLinkedService.java new file mode 100644 index 0000000000000..86fe973b2aeae --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureDataExplorerLinkedService.java @@ -0,0 +1,160 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.LinkedServiceInner; + +/** + * Azure Data Explorer (Kusto) linked service. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("AzureDataExplorer") +@JsonFlatten +public class AzureDataExplorerLinkedService extends LinkedServiceInner { + /** + * The endpoint of Azure Data Explorer (the engine's endpoint). URL will be + * in the format + * https://<clusterName>.<regionName>.kusto.windows.net. Type: + * string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.endpoint", required = true) + private Object endpoint; + + /** + * The ID of the service principal used to authenticate against Azure Data + * Explorer. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.servicePrincipalId", required = true) + private Object servicePrincipalId; + + /** + * The key of the service principal used to authenticate against Kusto. + */ + @JsonProperty(value = "typeProperties.servicePrincipalKey", required = true) + private SecretBase servicePrincipalKey; + + /** + * Database name for connection. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.database", required = true) + private Object database; + + /** + * The name or ID of the tenant to which the service principal belongs. + * Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.tenant", required = true) + private Object tenant; + + /** + * Get the endpoint of Azure Data Explorer (the engine's endpoint). URL will be in the format https://<clusterName>.<regionName>.kusto.windows.net. Type: string (or Expression with resultType string). + * + * @return the endpoint value + */ + public Object endpoint() { + return this.endpoint; + } + + /** + * Set the endpoint of Azure Data Explorer (the engine's endpoint). URL will be in the format https://<clusterName>.<regionName>.kusto.windows.net. Type: string (or Expression with resultType string). + * + * @param endpoint the endpoint value to set + * @return the AzureDataExplorerLinkedService object itself. + */ + public AzureDataExplorerLinkedService withEndpoint(Object endpoint) { + this.endpoint = endpoint; + return this; + } + + /** + * Get the ID of the service principal used to authenticate against Azure Data Explorer. Type: string (or Expression with resultType string). + * + * @return the servicePrincipalId value + */ + public Object servicePrincipalId() { + return this.servicePrincipalId; + } + + /** + * Set the ID of the service principal used to authenticate against Azure Data Explorer. Type: string (or Expression with resultType string). + * + * @param servicePrincipalId the servicePrincipalId value to set + * @return the AzureDataExplorerLinkedService object itself. + */ + public AzureDataExplorerLinkedService withServicePrincipalId(Object servicePrincipalId) { + this.servicePrincipalId = servicePrincipalId; + return this; + } + + /** + * Get the key of the service principal used to authenticate against Kusto. + * + * @return the servicePrincipalKey value + */ + public SecretBase servicePrincipalKey() { + return this.servicePrincipalKey; + } + + /** + * Set the key of the service principal used to authenticate against Kusto. + * + * @param servicePrincipalKey the servicePrincipalKey value to set + * @return the AzureDataExplorerLinkedService object itself. + */ + public AzureDataExplorerLinkedService withServicePrincipalKey(SecretBase servicePrincipalKey) { + this.servicePrincipalKey = servicePrincipalKey; + return this; + } + + /** + * Get database name for connection. Type: string (or Expression with resultType string). + * + * @return the database value + */ + public Object database() { + return this.database; + } + + /** + * Set database name for connection. Type: string (or Expression with resultType string). + * + * @param database the database value to set + * @return the AzureDataExplorerLinkedService object itself. + */ + public AzureDataExplorerLinkedService withDatabase(Object database) { + this.database = database; + return this; + } + + /** + * Get the name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string). + * + * @return the tenant value + */ + public Object tenant() { + return this.tenant; + } + + /** + * Set the name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string). + * + * @param tenant the tenant value to set + * @return the AzureDataExplorerLinkedService object itself. + */ + public AzureDataExplorerLinkedService withTenant(Object tenant) { + this.tenant = tenant; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureDataExplorerSink.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureDataExplorerSink.java new file mode 100644 index 0000000000000..d2f7aac977bc5 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureDataExplorerSink.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Azure Data Explorer sink. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("AzureDataExplorerSink") +public class AzureDataExplorerSink extends CopySink { + /** + * A name of a pre-created csv mapping that was defined on the target Kusto + * table. Type: string. + */ + @JsonProperty(value = "ingestionMappingName") + private Object ingestionMappingName; + + /** + * An explicit column mapping description provided in a json format. Type: + * string. + */ + @JsonProperty(value = "ingestionMappingAsJson") + private Object ingestionMappingAsJson; + + /** + * If set to true, any aggregation will be skipped. Default is false. Type: + * boolean. + */ + @JsonProperty(value = "flushImmediately") + private Object flushImmediately; + + /** + * Get a name of a pre-created csv mapping that was defined on the target Kusto table. Type: string. + * + * @return the ingestionMappingName value + */ + public Object ingestionMappingName() { + return this.ingestionMappingName; + } + + /** + * Set a name of a pre-created csv mapping that was defined on the target Kusto table. Type: string. + * + * @param ingestionMappingName the ingestionMappingName value to set + * @return the AzureDataExplorerSink object itself. + */ + public AzureDataExplorerSink withIngestionMappingName(Object ingestionMappingName) { + this.ingestionMappingName = ingestionMappingName; + return this; + } + + /** + * Get an explicit column mapping description provided in a json format. Type: string. + * + * @return the ingestionMappingAsJson value + */ + public Object ingestionMappingAsJson() { + return this.ingestionMappingAsJson; + } + + /** + * Set an explicit column mapping description provided in a json format. Type: string. + * + * @param ingestionMappingAsJson the ingestionMappingAsJson value to set + * @return the AzureDataExplorerSink object itself. + */ + public AzureDataExplorerSink withIngestionMappingAsJson(Object ingestionMappingAsJson) { + this.ingestionMappingAsJson = ingestionMappingAsJson; + return this; + } + + /** + * Get if set to true, any aggregation will be skipped. Default is false. Type: boolean. + * + * @return the flushImmediately value + */ + public Object flushImmediately() { + return this.flushImmediately; + } + + /** + * Set if set to true, any aggregation will be skipped. Default is false. Type: boolean. + * + * @param flushImmediately the flushImmediately value to set + * @return the AzureDataExplorerSink object itself. + */ + public AzureDataExplorerSink withFlushImmediately(Object flushImmediately) { + this.flushImmediately = flushImmediately; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureDataExplorerSource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureDataExplorerSource.java new file mode 100644 index 0000000000000..5d17d976e03ad --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureDataExplorerSource.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Azure Data Explorer (Kusto) source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("AzureDataExplorerSource") +public class AzureDataExplorerSource extends CopySource { + /** + * Database query. Should be a Kusto Query Language (KQL) query. Type: + * string (or Expression with resultType string). + */ + @JsonProperty(value = "query", required = true) + private Object query; + + /** + * The name of the Boolean option that controls whether truncation is + * applied to result-sets that go beyond a certain row-count limit. + */ + @JsonProperty(value = "noTruncation") + private Object noTruncation; + + /** + * 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 database query. Should be a Kusto Query Language (KQL) query. Type: string (or Expression with resultType string). + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set database query. Should be a Kusto Query Language (KQL) query. Type: string (or Expression with resultType string). + * + * @param query the query value to set + * @return the AzureDataExplorerSource object itself. + */ + public AzureDataExplorerSource withQuery(Object query) { + this.query = query; + return this; + } + + /** + * Get the name of the Boolean option that controls whether truncation is applied to result-sets that go beyond a certain row-count limit. + * + * @return the noTruncation value + */ + public Object noTruncation() { + return this.noTruncation; + } + + /** + * Set the name of the Boolean option that controls whether truncation is applied to result-sets that go beyond a certain row-count limit. + * + * @param noTruncation the noTruncation value to set + * @return the AzureDataExplorerSource object itself. + */ + public AzureDataExplorerSource withNoTruncation(Object noTruncation) { + this.noTruncation = noTruncation; + return this; + } + + /** + * Get query timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).. + * + * @return the queryTimeout value + */ + public Object queryTimeout() { + return this.queryTimeout; + } + + /** + * Set query timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).. + * + * @param queryTimeout the queryTimeout value to set + * @return the AzureDataExplorerSource object itself. + */ + public AzureDataExplorerSource withQueryTimeout(Object queryTimeout) { + this.queryTimeout = queryTimeout; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureDataExplorerTableDataset.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureDataExplorerTableDataset.java new file mode 100644 index 0000000000000..b4b18211878ed --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureDataExplorerTableDataset.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DatasetInner; + +/** + * The Azure Data Explorer (Kusto) dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("AzureDataExplorerTable") +@JsonFlatten +public class AzureDataExplorerTableDataset extends DatasetInner { + /** + * The table name of the Azure Data Explorer database. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.table") + private Object table; + + /** + * Get the table name of the Azure Data Explorer database. Type: string (or Expression with resultType string). + * + * @return the table value + */ + public Object table() { + return this.table; + } + + /** + * Set the table name of the Azure Data Explorer database. Type: string (or Expression with resultType string). + * + * @param table the table value to set + * @return the AzureDataExplorerTableDataset object itself. + */ + public AzureDataExplorerTableDataset withTable(Object table) { + this.table = table; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureDataLakeAnalyticsLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureDataLakeAnalyticsLinkedService.java new file mode 100644 index 0000000000000..3f197008b95ae --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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 Azure Data Lake Analytics account name. Type: string (or Expression with resultType string). + * + * @return the accountName value + */ + public Object accountName() { + return this.accountName; + } + + /** + * Set the Azure Data Lake Analytics account name. Type: string (or Expression with resultType string). + * + * @param accountName the accountName value to set + * @return the AzureDataLakeAnalyticsLinkedService object itself. + */ + public AzureDataLakeAnalyticsLinkedService withAccountName(Object accountName) { + this.accountName = accountName; + return this; + } + + /** + * Get the ID of the application used to authenticate against the Azure Data Lake Analytics account. Type: string (or Expression with resultType string). + * + * @return the servicePrincipalId value + */ + public Object servicePrincipalId() { + return this.servicePrincipalId; + } + + /** + * Set the ID of the application used to authenticate against the Azure Data Lake Analytics account. Type: string (or Expression with resultType string). + * + * @param servicePrincipalId the servicePrincipalId value to set + * @return the AzureDataLakeAnalyticsLinkedService object itself. + */ + public AzureDataLakeAnalyticsLinkedService withServicePrincipalId(Object servicePrincipalId) { + this.servicePrincipalId = servicePrincipalId; + return this; + } + + /** + * Get the Key of the application used to authenticate against the Azure Data Lake Analytics account. + * + * @return the servicePrincipalKey value + */ + public SecretBase servicePrincipalKey() { + return this.servicePrincipalKey; + } + + /** + * Set the Key of the application used to authenticate against the Azure Data Lake Analytics account. + * + * @param servicePrincipalKey the servicePrincipalKey value to set + * @return the AzureDataLakeAnalyticsLinkedService object itself. + */ + public AzureDataLakeAnalyticsLinkedService withServicePrincipalKey(SecretBase servicePrincipalKey) { + this.servicePrincipalKey = servicePrincipalKey; + return this; + } + + /** + * Get the name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string). + * + * @return the tenant value + */ + public Object tenant() { + return this.tenant; + } + + /** + * Set the name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string). + * + * @param tenant the tenant value to set + * @return the AzureDataLakeAnalyticsLinkedService object itself. + */ + public AzureDataLakeAnalyticsLinkedService withTenant(Object tenant) { + this.tenant = tenant; + return this; + } + + /** + * Get data Lake Analytics account subscription ID (if different from Data Factory account). Type: string (or Expression with resultType string). + * + * @return the subscriptionId value + */ + public Object subscriptionId() { + return this.subscriptionId; + } + + /** + * Set data Lake Analytics account subscription ID (if different from Data Factory account). Type: string (or Expression with resultType string). + * + * @param subscriptionId the subscriptionId value to set + * @return the AzureDataLakeAnalyticsLinkedService object itself. + */ + public AzureDataLakeAnalyticsLinkedService withSubscriptionId(Object subscriptionId) { + this.subscriptionId = subscriptionId; + return this; + } + + /** + * Get data Lake Analytics account resource group name (if different from Data Factory account). Type: string (or Expression with resultType string). + * + * @return the resourceGroupName value + */ + public Object resourceGroupName() { + return this.resourceGroupName; + } + + /** + * Set data Lake Analytics account resource group name (if different from Data Factory account). Type: string (or Expression with resultType string). + * + * @param resourceGroupName the resourceGroupName value to set + * @return the AzureDataLakeAnalyticsLinkedService object itself. + */ + public AzureDataLakeAnalyticsLinkedService withResourceGroupName(Object resourceGroupName) { + this.resourceGroupName = resourceGroupName; + return this; + } + + /** + * Get azure Data Lake Analytics URI Type: string (or Expression with resultType string). + * + * @return the dataLakeAnalyticsUri value + */ + public Object dataLakeAnalyticsUri() { + return this.dataLakeAnalyticsUri; + } + + /** + * Set azure Data Lake Analytics URI Type: string (or Expression with resultType string). + * + * @param dataLakeAnalyticsUri the dataLakeAnalyticsUri value to set + * @return the AzureDataLakeAnalyticsLinkedService object itself. + */ + public AzureDataLakeAnalyticsLinkedService withDataLakeAnalyticsUri(Object dataLakeAnalyticsUri) { + this.dataLakeAnalyticsUri = dataLakeAnalyticsUri; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the AzureDataLakeAnalyticsLinkedService object itself. + */ + public AzureDataLakeAnalyticsLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureDataLakeStoreDataset.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureDataLakeStoreDataset.java new file mode 100644 index 0000000000000..0cc884b8c18bc --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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") + 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 path to the folder in the Azure Data Lake Store. Type: string (or Expression with resultType string). + * + * @return the folderPath value + */ + public Object folderPath() { + return this.folderPath; + } + + /** + * Set path to the folder in the Azure Data Lake Store. Type: string (or Expression with resultType string). + * + * @param folderPath the folderPath value to set + * @return the AzureDataLakeStoreDataset object itself. + */ + public AzureDataLakeStoreDataset withFolderPath(Object folderPath) { + this.folderPath = folderPath; + return this; + } + + /** + * Get the name of the file in the Azure Data Lake Store. Type: string (or Expression with resultType string). + * + * @return the fileName value + */ + public Object fileName() { + return this.fileName; + } + + /** + * Set the name of the file in the Azure Data Lake Store. Type: string (or Expression with resultType string). + * + * @param fileName the fileName value to set + * @return the AzureDataLakeStoreDataset object itself. + */ + public AzureDataLakeStoreDataset withFileName(Object fileName) { + this.fileName = fileName; + return this; + } + + /** + * Get the format of the Data Lake Store. + * + * @return the format value + */ + public DatasetStorageFormat format() { + return this.format; + } + + /** + * Set the format of the Data Lake Store. + * + * @param format the format value to set + * @return the AzureDataLakeStoreDataset object itself. + */ + public AzureDataLakeStoreDataset withFormat(DatasetStorageFormat format) { + this.format = format; + return this; + } + + /** + * Get the data compression method used for the item(s) in the Azure Data Lake Store. + * + * @return the compression value + */ + public DatasetCompression compression() { + return this.compression; + } + + /** + * Set the data compression method used for the item(s) in the Azure Data Lake Store. + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureDataLakeStoreLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureDataLakeStoreLinkedService.java new file mode 100644 index 0000000000000..e6e79128d38c5 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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 data Lake Store service URI. Type: string (or Expression with resultType string). + * + * @return the dataLakeStoreUri value + */ + public Object dataLakeStoreUri() { + return this.dataLakeStoreUri; + } + + /** + * Set data Lake Store service URI. Type: string (or Expression with resultType string). + * + * @param dataLakeStoreUri the dataLakeStoreUri value to set + * @return the AzureDataLakeStoreLinkedService object itself. + */ + public AzureDataLakeStoreLinkedService withDataLakeStoreUri(Object dataLakeStoreUri) { + this.dataLakeStoreUri = dataLakeStoreUri; + return this; + } + + /** + * Get the ID of the application used to authenticate against the Azure Data Lake Store account. Type: string (or Expression with resultType string). + * + * @return the servicePrincipalId value + */ + public Object servicePrincipalId() { + return this.servicePrincipalId; + } + + /** + * Set the ID of the application used to authenticate against the Azure Data Lake Store account. Type: string (or Expression with resultType string). + * + * @param servicePrincipalId the servicePrincipalId value to set + * @return the AzureDataLakeStoreLinkedService object itself. + */ + public AzureDataLakeStoreLinkedService withServicePrincipalId(Object servicePrincipalId) { + this.servicePrincipalId = servicePrincipalId; + return this; + } + + /** + * Get the Key of the application used to authenticate against the Azure Data Lake Store account. + * + * @return the servicePrincipalKey value + */ + public SecretBase servicePrincipalKey() { + return this.servicePrincipalKey; + } + + /** + * Set the Key of the application used to authenticate against the Azure Data Lake Store account. + * + * @param servicePrincipalKey the servicePrincipalKey value to set + * @return the AzureDataLakeStoreLinkedService object itself. + */ + public AzureDataLakeStoreLinkedService withServicePrincipalKey(SecretBase servicePrincipalKey) { + this.servicePrincipalKey = servicePrincipalKey; + return this; + } + + /** + * Get the name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string). + * + * @return the tenant value + */ + public Object tenant() { + return this.tenant; + } + + /** + * Set the name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string). + * + * @param tenant the tenant value to set + * @return the AzureDataLakeStoreLinkedService object itself. + */ + public AzureDataLakeStoreLinkedService withTenant(Object tenant) { + this.tenant = tenant; + return this; + } + + /** + * Get data Lake Store account name. Type: string (or Expression with resultType string). + * + * @return the accountName value + */ + public Object accountName() { + return this.accountName; + } + + /** + * Set data Lake Store account name. Type: string (or Expression with resultType string). + * + * @param accountName the accountName value to set + * @return the AzureDataLakeStoreLinkedService object itself. + */ + public AzureDataLakeStoreLinkedService withAccountName(Object accountName) { + this.accountName = accountName; + return this; + } + + /** + * Get data Lake Store account subscription ID (if different from Data Factory account). Type: string (or Expression with resultType string). + * + * @return the subscriptionId value + */ + public Object subscriptionId() { + return this.subscriptionId; + } + + /** + * Set data Lake Store account subscription ID (if different from Data Factory account). Type: string (or Expression with resultType string). + * + * @param subscriptionId the subscriptionId value to set + * @return the AzureDataLakeStoreLinkedService object itself. + */ + public AzureDataLakeStoreLinkedService withSubscriptionId(Object subscriptionId) { + this.subscriptionId = subscriptionId; + return this; + } + + /** + * Get data Lake Store account resource group name (if different from Data Factory account). Type: string (or Expression with resultType string). + * + * @return the resourceGroupName value + */ + public Object resourceGroupName() { + return this.resourceGroupName; + } + + /** + * Set data Lake Store account resource group name (if different from Data Factory account). Type: string (or Expression with resultType string). + * + * @param resourceGroupName the resourceGroupName value to set + * @return the AzureDataLakeStoreLinkedService object itself. + */ + public AzureDataLakeStoreLinkedService withResourceGroupName(Object resourceGroupName) { + this.resourceGroupName = resourceGroupName; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the AzureDataLakeStoreLinkedService object itself. + */ + public AzureDataLakeStoreLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureDataLakeStoreLocation.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureDataLakeStoreLocation.java new file mode 100644 index 0000000000000..21bacee5c3fa0 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureDataLakeStoreLocation.java @@ -0,0 +1,16 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + + +/** + * The location of azure data lake store dataset. + */ +public class AzureDataLakeStoreLocation extends DatasetLocation { +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureDataLakeStoreReadSettings.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureDataLakeStoreReadSettings.java new file mode 100644 index 0000000000000..6e275cc2c3a13 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureDataLakeStoreReadSettings.java @@ -0,0 +1,178 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Azure data lake store read settings. + */ +public class AzureDataLakeStoreReadSettings extends StoreReadSettings { + /** + * 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; + + /** + * ADLS wildcardFolderPath. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "wildcardFolderPath") + private Object wildcardFolderPath; + + /** + * ADLS wildcardFileName. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "wildcardFileName") + private Object wildcardFileName; + + /** + * Indicates whether to enable partition discovery. + */ + @JsonProperty(value = "enablePartitionDiscovery") + private Boolean enablePartitionDiscovery; + + /** + * The start of file's modified datetime. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "modifiedDatetimeStart") + private Object modifiedDatetimeStart; + + /** + * The end of file's modified datetime. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "modifiedDatetimeEnd") + private Object modifiedDatetimeEnd; + + /** + * Get if true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType boolean). + * + * @return the recursive value + */ + public Object recursive() { + return this.recursive; + } + + /** + * Set if true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType boolean). + * + * @param recursive the recursive value to set + * @return the AzureDataLakeStoreReadSettings object itself. + */ + public AzureDataLakeStoreReadSettings withRecursive(Object recursive) { + this.recursive = recursive; + return this; + } + + /** + * Get aDLS wildcardFolderPath. Type: string (or Expression with resultType string). + * + * @return the wildcardFolderPath value + */ + public Object wildcardFolderPath() { + return this.wildcardFolderPath; + } + + /** + * Set aDLS wildcardFolderPath. Type: string (or Expression with resultType string). + * + * @param wildcardFolderPath the wildcardFolderPath value to set + * @return the AzureDataLakeStoreReadSettings object itself. + */ + public AzureDataLakeStoreReadSettings withWildcardFolderPath(Object wildcardFolderPath) { + this.wildcardFolderPath = wildcardFolderPath; + return this; + } + + /** + * Get aDLS wildcardFileName. Type: string (or Expression with resultType string). + * + * @return the wildcardFileName value + */ + public Object wildcardFileName() { + return this.wildcardFileName; + } + + /** + * Set aDLS wildcardFileName. Type: string (or Expression with resultType string). + * + * @param wildcardFileName the wildcardFileName value to set + * @return the AzureDataLakeStoreReadSettings object itself. + */ + public AzureDataLakeStoreReadSettings withWildcardFileName(Object wildcardFileName) { + this.wildcardFileName = wildcardFileName; + return this; + } + + /** + * Get indicates whether to enable partition discovery. + * + * @return the enablePartitionDiscovery value + */ + public Boolean enablePartitionDiscovery() { + return this.enablePartitionDiscovery; + } + + /** + * Set indicates whether to enable partition discovery. + * + * @param enablePartitionDiscovery the enablePartitionDiscovery value to set + * @return the AzureDataLakeStoreReadSettings object itself. + */ + public AzureDataLakeStoreReadSettings withEnablePartitionDiscovery(Boolean enablePartitionDiscovery) { + this.enablePartitionDiscovery = enablePartitionDiscovery; + return this; + } + + /** + * Get the start of file's modified datetime. Type: string (or Expression with resultType string). + * + * @return the modifiedDatetimeStart value + */ + public Object modifiedDatetimeStart() { + return this.modifiedDatetimeStart; + } + + /** + * Set the start of file's modified datetime. Type: string (or Expression with resultType string). + * + * @param modifiedDatetimeStart the modifiedDatetimeStart value to set + * @return the AzureDataLakeStoreReadSettings object itself. + */ + public AzureDataLakeStoreReadSettings withModifiedDatetimeStart(Object modifiedDatetimeStart) { + this.modifiedDatetimeStart = modifiedDatetimeStart; + return this; + } + + /** + * Get the end of file's modified datetime. Type: string (or Expression with resultType string). + * + * @return the modifiedDatetimeEnd value + */ + public Object modifiedDatetimeEnd() { + return this.modifiedDatetimeEnd; + } + + /** + * Set the end of file's modified datetime. Type: string (or Expression with resultType string). + * + * @param modifiedDatetimeEnd the modifiedDatetimeEnd value to set + * @return the AzureDataLakeStoreReadSettings object itself. + */ + public AzureDataLakeStoreReadSettings withModifiedDatetimeEnd(Object modifiedDatetimeEnd) { + this.modifiedDatetimeEnd = modifiedDatetimeEnd; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureDataLakeStoreSink.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureDataLakeStoreSink.java new file mode 100644 index 0000000000000..b560f3fdbe707 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureDataLakeStoreSink.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.v2018_06_01; + +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. + */ + @JsonProperty(value = "copyBehavior") + private Object copyBehavior; + + /** + * Single File Parallel. + */ + @JsonProperty(value = "enableAdlsSingleFileParallel") + private Object enableAdlsSingleFileParallel; + + /** + * Get the type of copy behavior for copy sink. + * + * @return the copyBehavior value + */ + public Object copyBehavior() { + return this.copyBehavior; + } + + /** + * Set the type of copy behavior for copy sink. + * + * @param copyBehavior the copyBehavior value to set + * @return the AzureDataLakeStoreSink object itself. + */ + public AzureDataLakeStoreSink withCopyBehavior(Object copyBehavior) { + this.copyBehavior = copyBehavior; + return this; + } + + /** + * Get single File Parallel. + * + * @return the enableAdlsSingleFileParallel value + */ + public Object enableAdlsSingleFileParallel() { + return this.enableAdlsSingleFileParallel; + } + + /** + * Set single File Parallel. + * + * @param enableAdlsSingleFileParallel the enableAdlsSingleFileParallel value to set + * @return the AzureDataLakeStoreSink object itself. + */ + public AzureDataLakeStoreSink withEnableAdlsSingleFileParallel(Object enableAdlsSingleFileParallel) { + this.enableAdlsSingleFileParallel = enableAdlsSingleFileParallel; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureDataLakeStoreSource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureDataLakeStoreSource.java new file mode 100644 index 0000000000000..ee1c80d925c68 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 if true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType boolean). + * + * @return the recursive value + */ + public Object recursive() { + return this.recursive; + } + + /** + * Set if true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType boolean). + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureDataLakeStoreWriteSettings.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureDataLakeStoreWriteSettings.java new file mode 100644 index 0000000000000..8ad2e32422b8a --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureDataLakeStoreWriteSettings.java @@ -0,0 +1,16 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + + +/** + * Azure data lake store write settings. + */ +public class AzureDataLakeStoreWriteSettings extends StoreWriteSettings { +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureDatabricksLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureDatabricksLinkedService.java new file mode 100644 index 0000000000000..c4d12b6852af4 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureDatabricksLinkedService.java @@ -0,0 +1,378 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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; + + /** + * A set of optional, user-specified Spark environment variables key-value + * pairs. + */ + @JsonProperty(value = "typeProperties.newClusterSparkEnvVars") + private Map newClusterSparkEnvVars; + + /** + * Additional tags for cluster resources. + */ + @JsonProperty(value = "typeProperties.newClusterCustomTags") + private Map newClusterCustomTags; + + /** + * The driver node type for the new cluster. Type: string (or Expression + * with resultType string). + */ + @JsonProperty(value = "typeProperties.newClusterDriverNodeType") + private Object newClusterDriverNodeType; + + /** + * User-defined initialization scripts for the new cluster. Type: array of + * strings (or Expression with resultType array of strings). + */ + @JsonProperty(value = "typeProperties.newClusterInitScripts") + private Object newClusterInitScripts; + + /** + * Enable the elastic disk on the new cluster. Type: boolean (or Expression + * with resultType boolean). + */ + @JsonProperty(value = "typeProperties.newClusterEnableElasticDisk") + private Object newClusterEnableElasticDisk; + + /** + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; + + /** + * Get <REGION>.azuredatabricks.net, domain name of your Databricks deployment. Type: string (or Expression with resultType string). + * + * @return the domain value + */ + public Object domain() { + return this.domain; + } + + /** + * Set <REGION>.azuredatabricks.net, domain name of your Databricks deployment. Type: string (or Expression with resultType string). + * + * @param domain the domain value to set + * @return the AzureDatabricksLinkedService object itself. + */ + public AzureDatabricksLinkedService withDomain(Object domain) { + this.domain = domain; + return this; + } + + /** + * Get access token for databricks REST API. Refer to https://docs.azuredatabricks.net/api/latest/authentication.html. Type: string (or Expression with resultType string). + * + * @return the accessToken value + */ + public SecretBase accessToken() { + return this.accessToken; + } + + /** + * Set access token for databricks REST API. Refer to https://docs.azuredatabricks.net/api/latest/authentication.html. Type: string (or Expression with resultType string). + * + * @param accessToken the accessToken value to set + * @return the AzureDatabricksLinkedService object itself. + */ + public AzureDatabricksLinkedService withAccessToken(SecretBase accessToken) { + this.accessToken = accessToken; + return this; + } + + /** + * Get the id of an existing cluster that will be used for all runs of this job. Type: string (or Expression with resultType string). + * + * @return the existingClusterId value + */ + public Object existingClusterId() { + return this.existingClusterId; + } + + /** + * Set the id of an existing cluster that will be used for all runs of this job. Type: string (or Expression with resultType string). + * + * @param existingClusterId the existingClusterId value to set + * @return the AzureDatabricksLinkedService object itself. + */ + public AzureDatabricksLinkedService withExistingClusterId(Object existingClusterId) { + this.existingClusterId = existingClusterId; + return this; + } + + /** + * Get the Spark version of new cluster. Type: string (or Expression with resultType string). + * + * @return the newClusterVersion value + */ + public Object newClusterVersion() { + return this.newClusterVersion; + } + + /** + * Set the Spark version of new cluster. Type: string (or Expression with resultType string). + * + * @param newClusterVersion the newClusterVersion value to set + * @return the AzureDatabricksLinkedService object itself. + */ + public AzureDatabricksLinkedService withNewClusterVersion(Object newClusterVersion) { + this.newClusterVersion = newClusterVersion; + return this; + } + + /** + * Get 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). + * + * @return the newClusterNumOfWorker value + */ + public Object newClusterNumOfWorker() { + return this.newClusterNumOfWorker; + } + + /** + * Set 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). + * + * @param newClusterNumOfWorker the newClusterNumOfWorker value to set + * @return the AzureDatabricksLinkedService object itself. + */ + public AzureDatabricksLinkedService withNewClusterNumOfWorker(Object newClusterNumOfWorker) { + this.newClusterNumOfWorker = newClusterNumOfWorker; + return this; + } + + /** + * Get the node types of new cluster. Type: string (or Expression with resultType string). + * + * @return the newClusterNodeType value + */ + public Object newClusterNodeType() { + return this.newClusterNodeType; + } + + /** + * Set the node types of new cluster. Type: string (or Expression with resultType string). + * + * @param newClusterNodeType the newClusterNodeType value to set + * @return the AzureDatabricksLinkedService object itself. + */ + public AzureDatabricksLinkedService withNewClusterNodeType(Object newClusterNodeType) { + this.newClusterNodeType = newClusterNodeType; + return this; + } + + /** + * Get a set of optional, user-specified Spark configuration key-value pairs. + * + * @return the newClusterSparkConf value + */ + public Map newClusterSparkConf() { + return this.newClusterSparkConf; + } + + /** + * Set a set of optional, user-specified Spark configuration key-value pairs. + * + * @param newClusterSparkConf the newClusterSparkConf value to set + * @return the AzureDatabricksLinkedService object itself. + */ + public AzureDatabricksLinkedService withNewClusterSparkConf(Map newClusterSparkConf) { + this.newClusterSparkConf = newClusterSparkConf; + return this; + } + + /** + * Get a set of optional, user-specified Spark environment variables key-value pairs. + * + * @return the newClusterSparkEnvVars value + */ + public Map newClusterSparkEnvVars() { + return this.newClusterSparkEnvVars; + } + + /** + * Set a set of optional, user-specified Spark environment variables key-value pairs. + * + * @param newClusterSparkEnvVars the newClusterSparkEnvVars value to set + * @return the AzureDatabricksLinkedService object itself. + */ + public AzureDatabricksLinkedService withNewClusterSparkEnvVars(Map newClusterSparkEnvVars) { + this.newClusterSparkEnvVars = newClusterSparkEnvVars; + return this; + } + + /** + * Get additional tags for cluster resources. + * + * @return the newClusterCustomTags value + */ + public Map newClusterCustomTags() { + return this.newClusterCustomTags; + } + + /** + * Set additional tags for cluster resources. + * + * @param newClusterCustomTags the newClusterCustomTags value to set + * @return the AzureDatabricksLinkedService object itself. + */ + public AzureDatabricksLinkedService withNewClusterCustomTags(Map newClusterCustomTags) { + this.newClusterCustomTags = newClusterCustomTags; + return this; + } + + /** + * Get the driver node type for the new cluster. Type: string (or Expression with resultType string). + * + * @return the newClusterDriverNodeType value + */ + public Object newClusterDriverNodeType() { + return this.newClusterDriverNodeType; + } + + /** + * Set the driver node type for the new cluster. Type: string (or Expression with resultType string). + * + * @param newClusterDriverNodeType the newClusterDriverNodeType value to set + * @return the AzureDatabricksLinkedService object itself. + */ + public AzureDatabricksLinkedService withNewClusterDriverNodeType(Object newClusterDriverNodeType) { + this.newClusterDriverNodeType = newClusterDriverNodeType; + return this; + } + + /** + * Get user-defined initialization scripts for the new cluster. Type: array of strings (or Expression with resultType array of strings). + * + * @return the newClusterInitScripts value + */ + public Object newClusterInitScripts() { + return this.newClusterInitScripts; + } + + /** + * Set user-defined initialization scripts for the new cluster. Type: array of strings (or Expression with resultType array of strings). + * + * @param newClusterInitScripts the newClusterInitScripts value to set + * @return the AzureDatabricksLinkedService object itself. + */ + public AzureDatabricksLinkedService withNewClusterInitScripts(Object newClusterInitScripts) { + this.newClusterInitScripts = newClusterInitScripts; + return this; + } + + /** + * Get enable the elastic disk on the new cluster. Type: boolean (or Expression with resultType boolean). + * + * @return the newClusterEnableElasticDisk value + */ + public Object newClusterEnableElasticDisk() { + return this.newClusterEnableElasticDisk; + } + + /** + * Set enable the elastic disk on the new cluster. Type: boolean (or Expression with resultType boolean). + * + * @param newClusterEnableElasticDisk the newClusterEnableElasticDisk value to set + * @return the AzureDatabricksLinkedService object itself. + */ + public AzureDatabricksLinkedService withNewClusterEnableElasticDisk(Object newClusterEnableElasticDisk) { + this.newClusterEnableElasticDisk = newClusterEnableElasticDisk; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the AzureDatabricksLinkedService object itself. + */ + public AzureDatabricksLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureFunctionActivity.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureFunctionActivity.java new file mode 100644 index 0000000000000..12805ed71d461 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureFunctionActivity.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; + +/** + * Azure Function activity. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("AzureFunctionActivity") +@JsonFlatten +public class AzureFunctionActivity extends ExecutionActivity { + /** + * Rest API method for target endpoint. Possible values include: 'GET', + * 'POST', 'PUT', 'DELETE', 'OPTIONS', 'HEAD', 'TRACE'. + */ + @JsonProperty(value = "typeProperties.method", required = true) + private AzureFunctionActivityMethod method; + + /** + * Name of the Function that the Azure Function Activity will call. Type: + * string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.functionName", required = true) + private Object functionName; + + /** + * Represents the headers that will be sent to the request. For example, to + * set the language and type on a request: "headers" : { "Accept-Language": + * "en-us", "Content-Type": "application/json" }. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "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; + + /** + * Get rest API method for target endpoint. Possible values include: 'GET', 'POST', 'PUT', 'DELETE', 'OPTIONS', 'HEAD', 'TRACE'. + * + * @return the method value + */ + public AzureFunctionActivityMethod method() { + return this.method; + } + + /** + * Set rest API method for target endpoint. Possible values include: 'GET', 'POST', 'PUT', 'DELETE', 'OPTIONS', 'HEAD', 'TRACE'. + * + * @param method the method value to set + * @return the AzureFunctionActivity object itself. + */ + public AzureFunctionActivity withMethod(AzureFunctionActivityMethod method) { + this.method = method; + return this; + } + + /** + * Get name of the Function that the Azure Function Activity will call. Type: string (or Expression with resultType string). + * + * @return the functionName value + */ + public Object functionName() { + return this.functionName; + } + + /** + * Set name of the Function that the Azure Function Activity will call. Type: string (or Expression with resultType string). + * + * @param functionName the functionName value to set + * @return the AzureFunctionActivity object itself. + */ + public AzureFunctionActivity withFunctionName(Object functionName) { + this.functionName = functionName; + return this; + } + + /** + * Get represents the headers that will be sent to the request. For example, to set the language and type on a request: "headers" : { "Accept-Language": "en-us", "Content-Type": "application/json" }. Type: string (or Expression with resultType string). + * + * @return the headers value + */ + public Object headers() { + return this.headers; + } + + /** + * Set represents the headers that will be sent to the request. For example, to set the language and type on a request: "headers" : { "Accept-Language": "en-us", "Content-Type": "application/json" }. Type: string (or Expression with resultType string). + * + * @param headers the headers value to set + * @return the AzureFunctionActivity object itself. + */ + public AzureFunctionActivity withHeaders(Object headers) { + this.headers = headers; + return this; + } + + /** + * Get represents the payload that will be sent to the endpoint. Required for POST/PUT method, not allowed for GET method Type: string (or Expression with resultType string). + * + * @return the body value + */ + public Object body() { + return this.body; + } + + /** + * Set represents the payload that will be sent to the endpoint. Required for POST/PUT method, not allowed for GET method Type: string (or Expression with resultType string). + * + * @param body the body value to set + * @return the AzureFunctionActivity object itself. + */ + public AzureFunctionActivity withBody(Object body) { + this.body = body; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureFunctionActivityMethod.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureFunctionActivityMethod.java new file mode 100644 index 0000000000000..6520878a5996e --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureFunctionActivityMethod.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.v2018_06_01; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for AzureFunctionActivityMethod. + */ +public final class AzureFunctionActivityMethod extends ExpandableStringEnum { + /** Static value GET for AzureFunctionActivityMethod. */ + public static final AzureFunctionActivityMethod GET = fromString("GET"); + + /** Static value POST for AzureFunctionActivityMethod. */ + public static final AzureFunctionActivityMethod POST = fromString("POST"); + + /** Static value PUT for AzureFunctionActivityMethod. */ + public static final AzureFunctionActivityMethod PUT = fromString("PUT"); + + /** Static value DELETE for AzureFunctionActivityMethod. */ + public static final AzureFunctionActivityMethod DELETE = fromString("DELETE"); + + /** Static value OPTIONS for AzureFunctionActivityMethod. */ + public static final AzureFunctionActivityMethod OPTIONS = fromString("OPTIONS"); + + /** Static value HEAD for AzureFunctionActivityMethod. */ + public static final AzureFunctionActivityMethod HEAD = fromString("HEAD"); + + /** Static value TRACE for AzureFunctionActivityMethod. */ + public static final AzureFunctionActivityMethod TRACE = fromString("TRACE"); + + /** + * Creates or finds a AzureFunctionActivityMethod from its string representation. + * @param name a name to look for + * @return the corresponding AzureFunctionActivityMethod + */ + @JsonCreator + public static AzureFunctionActivityMethod fromString(String name) { + return fromString(name, AzureFunctionActivityMethod.class); + } + + /** + * @return known AzureFunctionActivityMethod values + */ + public static Collection values() { + return values(AzureFunctionActivityMethod.class); + } +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureFunctionLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureFunctionLinkedService.java new file mode 100644 index 0000000000000..00b0fbb8cee8e --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureFunctionLinkedService.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.LinkedServiceInner; + +/** + * Azure Function linked service. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("AzureFunction") +@JsonFlatten +public class AzureFunctionLinkedService extends LinkedServiceInner { + /** + * The endpoint of the Azure Function App. URL will be in the format + * https://<accountName>.azurewebsites.net. + */ + @JsonProperty(value = "typeProperties.functionAppUrl", required = true) + private Object functionAppUrl; + + /** + * Function or Host key for Azure Function App. + */ + @JsonProperty(value = "typeProperties.functionKey") + private SecretBase functionKey; + + /** + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; + + /** + * Get the endpoint of the Azure Function App. URL will be in the format https://<accountName>.azurewebsites.net. + * + * @return the functionAppUrl value + */ + public Object functionAppUrl() { + return this.functionAppUrl; + } + + /** + * Set the endpoint of the Azure Function App. URL will be in the format https://<accountName>.azurewebsites.net. + * + * @param functionAppUrl the functionAppUrl value to set + * @return the AzureFunctionLinkedService object itself. + */ + public AzureFunctionLinkedService withFunctionAppUrl(Object functionAppUrl) { + this.functionAppUrl = functionAppUrl; + return this; + } + + /** + * Get function or Host key for Azure Function App. + * + * @return the functionKey value + */ + public SecretBase functionKey() { + return this.functionKey; + } + + /** + * Set function or Host key for Azure Function App. + * + * @param functionKey the functionKey value to set + * @return the AzureFunctionLinkedService object itself. + */ + public AzureFunctionLinkedService withFunctionKey(SecretBase functionKey) { + this.functionKey = functionKey; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the AzureFunctionLinkedService object itself. + */ + public AzureFunctionLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureKeyVaultLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureKeyVaultLinkedService.java new file mode 100644 index 0000000000000..af5aac5cc900a --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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 base URL of the Azure Key Vault. e.g. https://myakv.vault.azure.net Type: string (or Expression with resultType string). + * + * @return the baseUrl value + */ + public Object baseUrl() { + return this.baseUrl; + } + + /** + * Set the base URL of the Azure Key Vault. e.g. https://myakv.vault.azure.net Type: string (or Expression with resultType string). + * + * @param baseUrl the baseUrl value to set + * @return the AzureKeyVaultLinkedService object itself. + */ + public AzureKeyVaultLinkedService withBaseUrl(Object baseUrl) { + this.baseUrl = baseUrl; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureKeyVaultSecretReference.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureKeyVaultSecretReference.java new file mode 100644 index 0000000000000..147e39f1119ea --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 Azure Key Vault linked service reference. + * + * @return the store value + */ + public LinkedServiceReference store() { + return this.store; + } + + /** + * Set the Azure Key Vault linked service reference. + * + * @param store the store value to set + * @return the AzureKeyVaultSecretReference object itself. + */ + public AzureKeyVaultSecretReference withStore(LinkedServiceReference store) { + this.store = store; + return this; + } + + /** + * Get the name of the secret in Azure Key Vault. Type: string (or Expression with resultType string). + * + * @return the secretName value + */ + public Object secretName() { + return this.secretName; + } + + /** + * Set the name of the secret in Azure Key Vault. Type: string (or Expression with resultType string). + * + * @param secretName the secretName value to set + * @return the AzureKeyVaultSecretReference object itself. + */ + public AzureKeyVaultSecretReference withSecretName(Object secretName) { + this.secretName = secretName; + return this; + } + + /** + * Get 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). + * + * @return the secretVersion value + */ + public Object secretVersion() { + return this.secretVersion; + } + + /** + * Set 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). + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureMLBatchExecutionActivity.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureMLBatchExecutionActivity.java new file mode 100644 index 0000000000000..13e5b7e74b292 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +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 key,Value pairs to be passed to the Azure ML Batch Execution Service endpoint. Keys must match the names of web service parameters defined in the published Azure ML web service. Values will be passed in the GlobalParameters property of the Azure ML batch execution request. + * + * @return the globalParameters value + */ + public Map globalParameters() { + return this.globalParameters; + } + + /** + * Set key,Value pairs to be passed to the Azure ML Batch Execution Service endpoint. Keys must match the names of web service parameters defined in the published Azure ML web service. Values will be passed in the GlobalParameters property of the Azure ML batch execution request. + * + * @param globalParameters the globalParameters value to set + * @return the AzureMLBatchExecutionActivity object itself. + */ + public AzureMLBatchExecutionActivity withGlobalParameters(Map globalParameters) { + this.globalParameters = globalParameters; + return this; + } + + /** + * Get key,Value pairs, mapping the names of Azure ML endpoint's Web Service Outputs to AzureMLWebServiceFile objects specifying the output Blob locations. This information will be passed in the WebServiceOutputs property of the Azure ML batch execution request. + * + * @return the webServiceOutputs value + */ + public Map webServiceOutputs() { + return this.webServiceOutputs; + } + + /** + * Set key,Value pairs, mapping the names of Azure ML endpoint's Web Service Outputs to AzureMLWebServiceFile objects specifying the output Blob locations. This information will be passed in the WebServiceOutputs property of the Azure ML batch execution request. + * + * @param webServiceOutputs the webServiceOutputs value to set + * @return the AzureMLBatchExecutionActivity object itself. + */ + public AzureMLBatchExecutionActivity withWebServiceOutputs(Map webServiceOutputs) { + this.webServiceOutputs = webServiceOutputs; + return this; + } + + /** + * Get key,Value pairs, mapping the names of Azure ML endpoint's Web Service Inputs to AzureMLWebServiceFile objects specifying the input Blob locations.. This information will be passed in the WebServiceInputs property of the Azure ML batch execution request. + * + * @return the webServiceInputs value + */ + public Map webServiceInputs() { + return this.webServiceInputs; + } + + /** + * Set key,Value pairs, mapping the names of Azure ML endpoint's Web Service Inputs to AzureMLWebServiceFile objects specifying the input Blob locations.. This information will be passed in the WebServiceInputs property of the Azure ML batch execution request. + * + * @param webServiceInputs the webServiceInputs value to set + * @return the AzureMLBatchExecutionActivity object itself. + */ + public AzureMLBatchExecutionActivity withWebServiceInputs(Map webServiceInputs) { + this.webServiceInputs = webServiceInputs; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureMLLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureMLLinkedService.java new file mode 100644 index 0000000000000..f7251247d3b55 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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 Batch Execution REST URL for an Azure ML Web Service endpoint. Type: string (or Expression with resultType string). + * + * @return the mlEndpoint value + */ + public Object mlEndpoint() { + return this.mlEndpoint; + } + + /** + * Set the Batch Execution REST URL for an Azure ML Web Service endpoint. Type: string (or Expression with resultType string). + * + * @param mlEndpoint the mlEndpoint value to set + * @return the AzureMLLinkedService object itself. + */ + public AzureMLLinkedService withMlEndpoint(Object mlEndpoint) { + this.mlEndpoint = mlEndpoint; + return this; + } + + /** + * Get the API key for accessing the Azure ML model endpoint. + * + * @return the apiKey value + */ + public SecretBase apiKey() { + return this.apiKey; + } + + /** + * Set the API key for accessing the Azure ML model endpoint. + * + * @param apiKey the apiKey value to set + * @return the AzureMLLinkedService object itself. + */ + public AzureMLLinkedService withApiKey(SecretBase apiKey) { + this.apiKey = apiKey; + return this; + } + + /** + * Get the Update Resource REST URL for an Azure ML Web Service endpoint. Type: string (or Expression with resultType string). + * + * @return the updateResourceEndpoint value + */ + public Object updateResourceEndpoint() { + return this.updateResourceEndpoint; + } + + /** + * Set the Update Resource REST URL for an Azure ML Web Service endpoint. Type: string (or Expression with resultType string). + * + * @param updateResourceEndpoint the updateResourceEndpoint value to set + * @return the AzureMLLinkedService object itself. + */ + public AzureMLLinkedService withUpdateResourceEndpoint(Object updateResourceEndpoint) { + this.updateResourceEndpoint = updateResourceEndpoint; + return this; + } + + /** + * Get 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). + * + * @return the servicePrincipalId value + */ + public Object servicePrincipalId() { + return this.servicePrincipalId; + } + + /** + * Set 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). + * + * @param servicePrincipalId the servicePrincipalId value to set + * @return the AzureMLLinkedService object itself. + */ + public AzureMLLinkedService withServicePrincipalId(Object servicePrincipalId) { + this.servicePrincipalId = servicePrincipalId; + return this; + } + + /** + * Get the key of the service principal used to authenticate against the ARM-based updateResourceEndpoint of an Azure ML web service. + * + * @return the servicePrincipalKey value + */ + public SecretBase servicePrincipalKey() { + return this.servicePrincipalKey; + } + + /** + * Set the key of the service principal used to authenticate against the ARM-based updateResourceEndpoint of an Azure ML web service. + * + * @param servicePrincipalKey the servicePrincipalKey value to set + * @return the AzureMLLinkedService object itself. + */ + public AzureMLLinkedService withServicePrincipalKey(SecretBase servicePrincipalKey) { + this.servicePrincipalKey = servicePrincipalKey; + return this; + } + + /** + * Get the name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string). + * + * @return the tenant value + */ + public Object tenant() { + return this.tenant; + } + + /** + * Set the name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string). + * + * @param tenant the tenant value to set + * @return the AzureMLLinkedService object itself. + */ + public AzureMLLinkedService withTenant(Object tenant) { + this.tenant = tenant; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the AzureMLLinkedService object itself. + */ + public AzureMLLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureMLUpdateResourceActivity.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureMLUpdateResourceActivity.java new file mode 100644 index 0000000000000..0025e4c76711f --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; + +/** + * 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 name of the Trained Model module in the Web Service experiment to be updated. Type: string (or Expression with resultType string). + * + * @return the trainedModelName value + */ + public Object trainedModelName() { + return this.trainedModelName; + } + + /** + * Set name of the Trained Model module in the Web Service experiment to be updated. Type: string (or Expression with resultType string). + * + * @param trainedModelName the trainedModelName value to set + * @return the AzureMLUpdateResourceActivity object itself. + */ + public AzureMLUpdateResourceActivity withTrainedModelName(Object trainedModelName) { + this.trainedModelName = trainedModelName; + return this; + } + + /** + * Get name of Azure Storage linked service holding the .ilearner file that will be uploaded by the update operation. + * + * @return the trainedModelLinkedServiceName value + */ + public LinkedServiceReference trainedModelLinkedServiceName() { + return this.trainedModelLinkedServiceName; + } + + /** + * Set name of Azure Storage linked service holding the .ilearner file that will be uploaded by the update operation. + * + * @param trainedModelLinkedServiceName the trainedModelLinkedServiceName value to set + * @return the AzureMLUpdateResourceActivity object itself. + */ + public AzureMLUpdateResourceActivity withTrainedModelLinkedServiceName(LinkedServiceReference trainedModelLinkedServiceName) { + this.trainedModelLinkedServiceName = trainedModelLinkedServiceName; + return this; + } + + /** + * Get the relative file path in trainedModelLinkedService to represent the .ilearner file that will be uploaded by the update operation. Type: string (or Expression with resultType string). + * + * @return the trainedModelFilePath value + */ + public Object trainedModelFilePath() { + return this.trainedModelFilePath; + } + + /** + * Set the relative file path in trainedModelLinkedService to represent the .ilearner file that will be uploaded by the update operation. Type: string (or Expression with resultType string). + * + * @param trainedModelFilePath the trainedModelFilePath value to set + * @return the AzureMLUpdateResourceActivity object itself. + */ + public AzureMLUpdateResourceActivity withTrainedModelFilePath(Object trainedModelFilePath) { + this.trainedModelFilePath = trainedModelFilePath; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureMLWebServiceFile.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureMLWebServiceFile.java new file mode 100644 index 0000000000000..1ed9ae7922089 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 relative file path, including container name, in the Azure Blob Storage specified by the LinkedService. Type: string (or Expression with resultType string). + * + * @return the filePath value + */ + public Object filePath() { + return this.filePath; + } + + /** + * Set the relative file path, including container name, in the Azure Blob Storage specified by the LinkedService. Type: string (or Expression with resultType string). + * + * @param filePath the filePath value to set + * @return the AzureMLWebServiceFile object itself. + */ + public AzureMLWebServiceFile withFilePath(Object filePath) { + this.filePath = filePath; + return this; + } + + /** + * Get reference to an Azure Storage LinkedService, where Azure ML WebService Input/Output file located. + * + * @return the linkedServiceName value + */ + public LinkedServiceReference linkedServiceName() { + return this.linkedServiceName; + } + + /** + * Set reference to an Azure Storage LinkedService, where Azure ML WebService Input/Output file located. + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureMySqlLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureMySqlLinkedService.java new file mode 100644 index 0000000000000..c6d97a9f58859 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureMySqlLinkedService.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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. Type: string, SecureString or + * AzureKeyVaultSecretReference. + */ + @JsonProperty(value = "typeProperties.connectionString", required = true) + private Object connectionString; + + /** + * The Azure key vault secret reference of password in connection string. + */ + @JsonProperty(value = "typeProperties.password") + private AzureKeyVaultSecretReference password; + + /** + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; + + /** + * Get the connection string. Type: string, SecureString or AzureKeyVaultSecretReference. + * + * @return the connectionString value + */ + public Object connectionString() { + return this.connectionString; + } + + /** + * Set the connection string. Type: string, SecureString or AzureKeyVaultSecretReference. + * + * @param connectionString the connectionString value to set + * @return the AzureMySqlLinkedService object itself. + */ + public AzureMySqlLinkedService withConnectionString(Object connectionString) { + this.connectionString = connectionString; + return this; + } + + /** + * Get the Azure key vault secret reference of password in connection string. + * + * @return the password value + */ + public AzureKeyVaultSecretReference password() { + return this.password; + } + + /** + * Set the Azure key vault secret reference of password in connection string. + * + * @param password the password value to set + * @return the AzureMySqlLinkedService object itself. + */ + public AzureMySqlLinkedService withPassword(AzureKeyVaultSecretReference password) { + this.password = password; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the AzureMySqlLinkedService object itself. + */ + public AzureMySqlLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureMySqlSource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureMySqlSource.java new file mode 100644 index 0000000000000..a94ea49dced94 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 database query. Type: string (or Expression with resultType string). + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set database query. Type: string (or Expression with resultType string). + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureMySqlTableDataset.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureMySqlTableDataset.java new file mode 100644 index 0000000000000..c5186178913d5 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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 Azure MySQL database table name. Type: string (or Expression with resultType string). + * + * @return the tableName value + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set the Azure MySQL database table name. Type: string (or Expression with resultType string). + * + * @param tableName the tableName value to set + * @return the AzureMySqlTableDataset object itself. + */ + public AzureMySqlTableDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzurePostgreSqlLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzurePostgreSqlLinkedService.java new file mode 100644 index 0000000000000..46b45b6e28f85 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzurePostgreSqlLinkedService.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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. Type: string, SecureString or + * AzureKeyVaultSecretReference. + */ + @JsonProperty(value = "typeProperties.connectionString") + private Object connectionString; + + /** + * The Azure key vault secret reference of password in connection string. + */ + @JsonProperty(value = "typeProperties.password") + private AzureKeyVaultSecretReference password; + + /** + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; + + /** + * Get an ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. + * + * @return the connectionString value + */ + public Object connectionString() { + return this.connectionString; + } + + /** + * Set an ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. + * + * @param connectionString the connectionString value to set + * @return the AzurePostgreSqlLinkedService object itself. + */ + public AzurePostgreSqlLinkedService withConnectionString(Object connectionString) { + this.connectionString = connectionString; + return this; + } + + /** + * Get the Azure key vault secret reference of password in connection string. + * + * @return the password value + */ + public AzureKeyVaultSecretReference password() { + return this.password; + } + + /** + * Set the Azure key vault secret reference of password in connection string. + * + * @param password the password value to set + * @return the AzurePostgreSqlLinkedService object itself. + */ + public AzurePostgreSqlLinkedService withPassword(AzureKeyVaultSecretReference password) { + this.password = password; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the AzurePostgreSqlLinkedService object itself. + */ + public AzurePostgreSqlLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzurePostgreSqlSink.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzurePostgreSqlSink.java new file mode 100644 index 0000000000000..15f463a7920e0 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzurePostgreSqlSink.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Azure PostgreSQL sink. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("AzurePostgreSqlSink") +public class AzurePostgreSqlSink extends CopySink { + /** + * A query to execute before starting the copy. Type: string (or Expression + * with resultType string). + */ + @JsonProperty(value = "preCopyScript") + private Object preCopyScript; + + /** + * Get a query to execute before starting the copy. Type: string (or Expression with resultType string). + * + * @return the preCopyScript value + */ + public Object preCopyScript() { + return this.preCopyScript; + } + + /** + * Set a query to execute before starting the copy. Type: string (or Expression with resultType string). + * + * @param preCopyScript the preCopyScript value to set + * @return the AzurePostgreSqlSink object itself. + */ + public AzurePostgreSqlSink withPreCopyScript(Object preCopyScript) { + this.preCopyScript = preCopyScript; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzurePostgreSqlSource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzurePostgreSqlSource.java new file mode 100644 index 0000000000000..0a4a6da52b01c --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 a query to retrieve data from source. Type: string (or Expression with resultType string). + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set a query to retrieve data from source. Type: string (or Expression with resultType string). + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzurePostgreSqlTableDataset.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzurePostgreSqlTableDataset.java new file mode 100644 index 0000000000000..1641487044a5a --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzurePostgreSqlTableDataset.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DatasetInner; + +/** + * Azure PostgreSQL dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("AzurePostgreSqlTable") +@JsonFlatten +public class AzurePostgreSqlTableDataset extends DatasetInner { + /** + * The table name of the Azure PostgreSQL database which includes both + * schema and table. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; + + /** + * The table name of the Azure PostgreSQL database. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.table") + private Object table; + + /** + * The schema name of the Azure PostgreSQL database. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.schema") + private Object azurePostgreSqlTableDatasetSchema; + + /** + * Get the table name of the Azure PostgreSQL database which includes both schema and table. Type: string (or Expression with resultType string). + * + * @return the tableName value + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set the table name of the Azure PostgreSQL database which includes both schema and table. Type: string (or Expression with resultType string). + * + * @param tableName the tableName value to set + * @return the AzurePostgreSqlTableDataset object itself. + */ + public AzurePostgreSqlTableDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; + } + + /** + * Get the table name of the Azure PostgreSQL database. Type: string (or Expression with resultType string). + * + * @return the table value + */ + public Object table() { + return this.table; + } + + /** + * Set the table name of the Azure PostgreSQL database. Type: string (or Expression with resultType string). + * + * @param table the table value to set + * @return the AzurePostgreSqlTableDataset object itself. + */ + public AzurePostgreSqlTableDataset withTable(Object table) { + this.table = table; + return this; + } + + /** + * Get the schema name of the Azure PostgreSQL database. Type: string (or Expression with resultType string). + * + * @return the azurePostgreSqlTableDatasetSchema value + */ + public Object azurePostgreSqlTableDatasetSchema() { + return this.azurePostgreSqlTableDatasetSchema; + } + + /** + * Set the schema name of the Azure PostgreSQL database. Type: string (or Expression with resultType string). + * + * @param azurePostgreSqlTableDatasetSchema the azurePostgreSqlTableDatasetSchema value to set + * @return the AzurePostgreSqlTableDataset object itself. + */ + public AzurePostgreSqlTableDataset withAzurePostgreSqlTableDatasetSchema(Object azurePostgreSqlTableDatasetSchema) { + this.azurePostgreSqlTableDatasetSchema = azurePostgreSqlTableDatasetSchema; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureQueueSink.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureQueueSink.java new file mode 100644 index 0000000000000..c1252da3dc81f --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureSearchIndexDataset.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureSearchIndexDataset.java new file mode 100644 index 0000000000000..3b8d579e6af5e --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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 name of the Azure Search Index. Type: string (or Expression with resultType string). + * + * @return the indexName value + */ + public Object indexName() { + return this.indexName; + } + + /** + * Set the name of the Azure Search Index. Type: string (or Expression with resultType string). + * + * @param indexName the indexName value to set + * @return the AzureSearchIndexDataset object itself. + */ + public AzureSearchIndexDataset withIndexName(Object indexName) { + this.indexName = indexName; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureSearchIndexSink.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureSearchIndexSink.java new file mode 100644 index 0000000000000..d060df16abb3f --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 specify the write behavior when upserting documents into Azure Search Index. Possible values include: 'Merge', 'Upload'. + * + * @return the writeBehavior value + */ + public AzureSearchIndexWriteBehaviorType writeBehavior() { + return this.writeBehavior; + } + + /** + * Set specify the write behavior when upserting documents into Azure Search Index. Possible values include: 'Merge', 'Upload'. + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureSearchIndexWriteBehaviorType.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureSearchIndexWriteBehaviorType.java new file mode 100644 index 0000000000000..26f8f92158079 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureSearchLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureSearchLinkedService.java new file mode 100644 index 0000000000000..00fd6795b160a --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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 uRL for Azure Search service. Type: string (or Expression with resultType string). + * + * @return the url value + */ + public Object url() { + return this.url; + } + + /** + * Set uRL for Azure Search service. Type: string (or Expression with resultType string). + * + * @param url the url value to set + * @return the AzureSearchLinkedService object itself. + */ + public AzureSearchLinkedService withUrl(Object url) { + this.url = url; + return this; + } + + /** + * Get admin Key for Azure Search service. + * + * @return the key value + */ + public SecretBase key() { + return this.key; + } + + /** + * Set admin Key for Azure Search service. + * + * @param key the key value to set + * @return the AzureSearchLinkedService object itself. + */ + public AzureSearchLinkedService withKey(SecretBase key) { + this.key = key; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the AzureSearchLinkedService object itself. + */ + public AzureSearchLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureSqlDWLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureSqlDWLinkedService.java new file mode 100644 index 0000000000000..c6c2745a7212f --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureSqlDWLinkedService.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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. Type: string, SecureString or + * AzureKeyVaultSecretReference. Type: string, SecureString or + * AzureKeyVaultSecretReference. + */ + @JsonProperty(value = "typeProperties.connectionString", required = true) + private Object connectionString; + + /** + * The Azure key vault secret reference of password in connection string. + */ + @JsonProperty(value = "typeProperties.password") + private AzureKeyVaultSecretReference password; + + /** + * The ID of the service principal used to authenticate against Azure SQL + * 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 connection string. Type: string, SecureString or AzureKeyVaultSecretReference. Type: string, SecureString or AzureKeyVaultSecretReference. + * + * @return the connectionString value + */ + public Object connectionString() { + return this.connectionString; + } + + /** + * Set the connection string. Type: string, SecureString or AzureKeyVaultSecretReference. Type: string, SecureString or AzureKeyVaultSecretReference. + * + * @param connectionString the connectionString value to set + * @return the AzureSqlDWLinkedService object itself. + */ + public AzureSqlDWLinkedService withConnectionString(Object connectionString) { + this.connectionString = connectionString; + return this; + } + + /** + * Get the Azure key vault secret reference of password in connection string. + * + * @return the password value + */ + public AzureKeyVaultSecretReference password() { + return this.password; + } + + /** + * Set the Azure key vault secret reference of password in connection string. + * + * @param password the password value to set + * @return the AzureSqlDWLinkedService object itself. + */ + public AzureSqlDWLinkedService withPassword(AzureKeyVaultSecretReference password) { + this.password = password; + return this; + } + + /** + * Get the ID of the service principal used to authenticate against Azure SQL Data Warehouse. Type: string (or Expression with resultType string). + * + * @return the servicePrincipalId value + */ + public Object servicePrincipalId() { + return this.servicePrincipalId; + } + + /** + * Set the ID of the service principal used to authenticate against Azure SQL Data Warehouse. Type: string (or Expression with resultType string). + * + * @param servicePrincipalId the servicePrincipalId value to set + * @return the AzureSqlDWLinkedService object itself. + */ + public AzureSqlDWLinkedService withServicePrincipalId(Object servicePrincipalId) { + this.servicePrincipalId = servicePrincipalId; + return this; + } + + /** + * Get the key of the service principal used to authenticate against Azure SQL Data Warehouse. + * + * @return the servicePrincipalKey value + */ + public SecretBase servicePrincipalKey() { + return this.servicePrincipalKey; + } + + /** + * Set the key of the service principal used to authenticate against Azure SQL Data Warehouse. + * + * @param servicePrincipalKey the servicePrincipalKey value to set + * @return the AzureSqlDWLinkedService object itself. + */ + public AzureSqlDWLinkedService withServicePrincipalKey(SecretBase servicePrincipalKey) { + this.servicePrincipalKey = servicePrincipalKey; + return this; + } + + /** + * Get the name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string). + * + * @return the tenant value + */ + public Object tenant() { + return this.tenant; + } + + /** + * Set the name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string). + * + * @param tenant the tenant value to set + * @return the AzureSqlDWLinkedService object itself. + */ + public AzureSqlDWLinkedService withTenant(Object tenant) { + this.tenant = tenant; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the AzureSqlDWLinkedService object itself. + */ + public AzureSqlDWLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureSqlDWTableDataset.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureSqlDWTableDataset.java new file mode 100644 index 0000000000000..65c4bcc8bc760 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureSqlDWTableDataset.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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 { + /** + * This property will be retired. Please consider using schema + table + * properties instead. + */ + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; + + /** + * The schema name of the Azure SQL Data Warehouse. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.schema") + private Object azureSqlDWTableDatasetSchema; + + /** + * The table name of the Azure SQL Data Warehouse. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.table") + private Object table; + + /** + * Get this property will be retired. Please consider using schema + table properties instead. + * + * @return the tableName value + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set this property will be retired. Please consider using schema + table properties instead. + * + * @param tableName the tableName value to set + * @return the AzureSqlDWTableDataset object itself. + */ + public AzureSqlDWTableDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; + } + + /** + * Get the schema name of the Azure SQL Data Warehouse. Type: string (or Expression with resultType string). + * + * @return the azureSqlDWTableDatasetSchema value + */ + public Object azureSqlDWTableDatasetSchema() { + return this.azureSqlDWTableDatasetSchema; + } + + /** + * Set the schema name of the Azure SQL Data Warehouse. Type: string (or Expression with resultType string). + * + * @param azureSqlDWTableDatasetSchema the azureSqlDWTableDatasetSchema value to set + * @return the AzureSqlDWTableDataset object itself. + */ + public AzureSqlDWTableDataset withAzureSqlDWTableDatasetSchema(Object azureSqlDWTableDatasetSchema) { + this.azureSqlDWTableDatasetSchema = azureSqlDWTableDatasetSchema; + return this; + } + + /** + * Get the table name of the Azure SQL Data Warehouse. Type: string (or Expression with resultType string). + * + * @return the table value + */ + public Object table() { + return this.table; + } + + /** + * Set the table name of the Azure SQL Data Warehouse. Type: string (or Expression with resultType string). + * + * @param table the table value to set + * @return the AzureSqlDWTableDataset object itself. + */ + public AzureSqlDWTableDataset withTable(Object table) { + this.table = table; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureSqlDatabaseLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureSqlDatabaseLinkedService.java new file mode 100644 index 0000000000000..1aa600a45840a --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureSqlDatabaseLinkedService.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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. Type: string, SecureString or + * AzureKeyVaultSecretReference. + */ + @JsonProperty(value = "typeProperties.connectionString", required = true) + private Object connectionString; + + /** + * The Azure key vault secret reference of password in connection string. + */ + @JsonProperty(value = "typeProperties.password") + private AzureKeyVaultSecretReference password; + + /** + * The ID of the service principal used to authenticate against Azure SQL + * 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 connection string. Type: string, SecureString or AzureKeyVaultSecretReference. + * + * @return the connectionString value + */ + public Object connectionString() { + return this.connectionString; + } + + /** + * Set the connection string. Type: string, SecureString or AzureKeyVaultSecretReference. + * + * @param connectionString the connectionString value to set + * @return the AzureSqlDatabaseLinkedService object itself. + */ + public AzureSqlDatabaseLinkedService withConnectionString(Object connectionString) { + this.connectionString = connectionString; + return this; + } + + /** + * Get the Azure key vault secret reference of password in connection string. + * + * @return the password value + */ + public AzureKeyVaultSecretReference password() { + return this.password; + } + + /** + * Set the Azure key vault secret reference of password in connection string. + * + * @param password the password value to set + * @return the AzureSqlDatabaseLinkedService object itself. + */ + public AzureSqlDatabaseLinkedService withPassword(AzureKeyVaultSecretReference password) { + this.password = password; + return this; + } + + /** + * Get the ID of the service principal used to authenticate against Azure SQL Database. Type: string (or Expression with resultType string). + * + * @return the servicePrincipalId value + */ + public Object servicePrincipalId() { + return this.servicePrincipalId; + } + + /** + * Set the ID of the service principal used to authenticate against Azure SQL Database. Type: string (or Expression with resultType string). + * + * @param servicePrincipalId the servicePrincipalId value to set + * @return the AzureSqlDatabaseLinkedService object itself. + */ + public AzureSqlDatabaseLinkedService withServicePrincipalId(Object servicePrincipalId) { + this.servicePrincipalId = servicePrincipalId; + return this; + } + + /** + * Get the key of the service principal used to authenticate against Azure SQL Database. + * + * @return the servicePrincipalKey value + */ + public SecretBase servicePrincipalKey() { + return this.servicePrincipalKey; + } + + /** + * Set the key of the service principal used to authenticate against Azure SQL Database. + * + * @param servicePrincipalKey the servicePrincipalKey value to set + * @return the AzureSqlDatabaseLinkedService object itself. + */ + public AzureSqlDatabaseLinkedService withServicePrincipalKey(SecretBase servicePrincipalKey) { + this.servicePrincipalKey = servicePrincipalKey; + return this; + } + + /** + * Get the name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string). + * + * @return the tenant value + */ + public Object tenant() { + return this.tenant; + } + + /** + * Set the name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string). + * + * @param tenant the tenant value to set + * @return the AzureSqlDatabaseLinkedService object itself. + */ + public AzureSqlDatabaseLinkedService withTenant(Object tenant) { + this.tenant = tenant; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the AzureSqlDatabaseLinkedService object itself. + */ + public AzureSqlDatabaseLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureSqlMILinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureSqlMILinkedService.java new file mode 100644 index 0000000000000..3c247dfeb5ca4 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureSqlMILinkedService.java @@ -0,0 +1,186 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.LinkedServiceInner; + +/** + * Azure SQL Managed Instance linked service. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("AzureSqlMI") +@JsonFlatten +public class AzureSqlMILinkedService extends LinkedServiceInner { + /** + * The connection string. Type: string, SecureString or + * AzureKeyVaultSecretReference. + */ + @JsonProperty(value = "typeProperties.connectionString", required = true) + private Object connectionString; + + /** + * The Azure key vault secret reference of password in connection string. + */ + @JsonProperty(value = "typeProperties.password") + private AzureKeyVaultSecretReference password; + + /** + * The ID of the service principal used to authenticate against Azure SQL + * Managed Instance. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.servicePrincipalId") + private Object servicePrincipalId; + + /** + * The key of the service principal used to authenticate against Azure SQL + * Managed Instance. + */ + @JsonProperty(value = "typeProperties.servicePrincipalKey") + private SecretBase servicePrincipalKey; + + /** + * The name or ID of the tenant to which the service principal belongs. + * Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.tenant") + private Object tenant; + + /** + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; + + /** + * Get the connection string. Type: string, SecureString or AzureKeyVaultSecretReference. + * + * @return the connectionString value + */ + public Object connectionString() { + return this.connectionString; + } + + /** + * Set the connection string. Type: string, SecureString or AzureKeyVaultSecretReference. + * + * @param connectionString the connectionString value to set + * @return the AzureSqlMILinkedService object itself. + */ + public AzureSqlMILinkedService withConnectionString(Object connectionString) { + this.connectionString = connectionString; + return this; + } + + /** + * Get the Azure key vault secret reference of password in connection string. + * + * @return the password value + */ + public AzureKeyVaultSecretReference password() { + return this.password; + } + + /** + * Set the Azure key vault secret reference of password in connection string. + * + * @param password the password value to set + * @return the AzureSqlMILinkedService object itself. + */ + public AzureSqlMILinkedService withPassword(AzureKeyVaultSecretReference password) { + this.password = password; + return this; + } + + /** + * Get the ID of the service principal used to authenticate against Azure SQL Managed Instance. Type: string (or Expression with resultType string). + * + * @return the servicePrincipalId value + */ + public Object servicePrincipalId() { + return this.servicePrincipalId; + } + + /** + * Set the ID of the service principal used to authenticate against Azure SQL Managed Instance. Type: string (or Expression with resultType string). + * + * @param servicePrincipalId the servicePrincipalId value to set + * @return the AzureSqlMILinkedService object itself. + */ + public AzureSqlMILinkedService withServicePrincipalId(Object servicePrincipalId) { + this.servicePrincipalId = servicePrincipalId; + return this; + } + + /** + * Get the key of the service principal used to authenticate against Azure SQL Managed Instance. + * + * @return the servicePrincipalKey value + */ + public SecretBase servicePrincipalKey() { + return this.servicePrincipalKey; + } + + /** + * Set the key of the service principal used to authenticate against Azure SQL Managed Instance. + * + * @param servicePrincipalKey the servicePrincipalKey value to set + * @return the AzureSqlMILinkedService object itself. + */ + public AzureSqlMILinkedService withServicePrincipalKey(SecretBase servicePrincipalKey) { + this.servicePrincipalKey = servicePrincipalKey; + return this; + } + + /** + * Get the name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string). + * + * @return the tenant value + */ + public Object tenant() { + return this.tenant; + } + + /** + * Set the name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string). + * + * @param tenant the tenant value to set + * @return the AzureSqlMILinkedService object itself. + */ + public AzureSqlMILinkedService withTenant(Object tenant) { + this.tenant = tenant; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the AzureSqlMILinkedService object itself. + */ + public AzureSqlMILinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureSqlMITableDataset.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureSqlMITableDataset.java new file mode 100644 index 0000000000000..650e230e8184b --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureSqlMITableDataset.java @@ -0,0 +1,105 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DatasetInner; + +/** + * The Azure SQL Managed Instance dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("AzureSqlMITable") +@JsonFlatten +public class AzureSqlMITableDataset extends DatasetInner { + /** + * This property will be retired. Please consider using schema + table + * properties instead. + */ + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; + + /** + * The schema name of the Azure SQL Managed Instance. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.schema") + private Object azureSqlMITableDatasetSchema; + + /** + * The table name of the Azure SQL Managed Instance dataset. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.table") + private Object table; + + /** + * Get this property will be retired. Please consider using schema + table properties instead. + * + * @return the tableName value + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set this property will be retired. Please consider using schema + table properties instead. + * + * @param tableName the tableName value to set + * @return the AzureSqlMITableDataset object itself. + */ + public AzureSqlMITableDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; + } + + /** + * Get the schema name of the Azure SQL Managed Instance. Type: string (or Expression with resultType string). + * + * @return the azureSqlMITableDatasetSchema value + */ + public Object azureSqlMITableDatasetSchema() { + return this.azureSqlMITableDatasetSchema; + } + + /** + * Set the schema name of the Azure SQL Managed Instance. Type: string (or Expression with resultType string). + * + * @param azureSqlMITableDatasetSchema the azureSqlMITableDatasetSchema value to set + * @return the AzureSqlMITableDataset object itself. + */ + public AzureSqlMITableDataset withAzureSqlMITableDatasetSchema(Object azureSqlMITableDatasetSchema) { + this.azureSqlMITableDatasetSchema = azureSqlMITableDatasetSchema; + return this; + } + + /** + * Get the table name of the Azure SQL Managed Instance dataset. Type: string (or Expression with resultType string). + * + * @return the table value + */ + public Object table() { + return this.table; + } + + /** + * Set the table name of the Azure SQL Managed Instance dataset. Type: string (or Expression with resultType string). + * + * @param table the table value to set + * @return the AzureSqlMITableDataset object itself. + */ + public AzureSqlMITableDataset withTable(Object table) { + this.table = table; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureSqlSink.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureSqlSink.java new file mode 100644 index 0000000000000..078ce832f505f --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureSqlSink.java @@ -0,0 +1,156 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Azure SQL sink. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("AzureSqlSink") +public class AzureSqlSink extends CopySink { + /** + * SQL writer stored procedure name. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "sqlWriterStoredProcedureName") + private Object sqlWriterStoredProcedureName; + + /** + * SQL writer table type. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "sqlWriterTableType") + private Object sqlWriterTableType; + + /** + * SQL pre-copy script. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "preCopyScript") + private Object preCopyScript; + + /** + * SQL stored procedure parameters. + */ + @JsonProperty(value = "storedProcedureParameters") + private Map storedProcedureParameters; + + /** + * The stored procedure parameter name of the table type. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "storedProcedureTableTypeParameterName") + private Object storedProcedureTableTypeParameterName; + + /** + * Get sQL writer stored procedure name. Type: string (or Expression with resultType string). + * + * @return the sqlWriterStoredProcedureName value + */ + public Object sqlWriterStoredProcedureName() { + return this.sqlWriterStoredProcedureName; + } + + /** + * Set sQL writer stored procedure name. Type: string (or Expression with resultType string). + * + * @param sqlWriterStoredProcedureName the sqlWriterStoredProcedureName value to set + * @return the AzureSqlSink object itself. + */ + public AzureSqlSink withSqlWriterStoredProcedureName(Object sqlWriterStoredProcedureName) { + this.sqlWriterStoredProcedureName = sqlWriterStoredProcedureName; + return this; + } + + /** + * Get sQL writer table type. Type: string (or Expression with resultType string). + * + * @return the sqlWriterTableType value + */ + public Object sqlWriterTableType() { + return this.sqlWriterTableType; + } + + /** + * Set sQL writer table type. Type: string (or Expression with resultType string). + * + * @param sqlWriterTableType the sqlWriterTableType value to set + * @return the AzureSqlSink object itself. + */ + public AzureSqlSink withSqlWriterTableType(Object sqlWriterTableType) { + this.sqlWriterTableType = sqlWriterTableType; + return this; + } + + /** + * Get sQL pre-copy script. Type: string (or Expression with resultType string). + * + * @return the preCopyScript value + */ + public Object preCopyScript() { + return this.preCopyScript; + } + + /** + * Set sQL pre-copy script. Type: string (or Expression with resultType string). + * + * @param preCopyScript the preCopyScript value to set + * @return the AzureSqlSink object itself. + */ + public AzureSqlSink withPreCopyScript(Object preCopyScript) { + this.preCopyScript = preCopyScript; + return this; + } + + /** + * Get sQL stored procedure parameters. + * + * @return the storedProcedureParameters value + */ + public Map storedProcedureParameters() { + return this.storedProcedureParameters; + } + + /** + * Set sQL stored procedure parameters. + * + * @param storedProcedureParameters the storedProcedureParameters value to set + * @return the AzureSqlSink object itself. + */ + public AzureSqlSink withStoredProcedureParameters(Map storedProcedureParameters) { + this.storedProcedureParameters = storedProcedureParameters; + return this; + } + + /** + * Get the stored procedure parameter name of the table type. Type: string (or Expression with resultType string). + * + * @return the storedProcedureTableTypeParameterName value + */ + public Object storedProcedureTableTypeParameterName() { + return this.storedProcedureTableTypeParameterName; + } + + /** + * Set the stored procedure parameter name of the table type. Type: string (or Expression with resultType string). + * + * @param storedProcedureTableTypeParameterName the storedProcedureTableTypeParameterName value to set + * @return the AzureSqlSink object itself. + */ + public AzureSqlSink withStoredProcedureTableTypeParameterName(Object storedProcedureTableTypeParameterName) { + this.storedProcedureTableTypeParameterName = storedProcedureTableTypeParameterName; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureSqlSource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureSqlSource.java new file mode 100644 index 0000000000000..c6dad248dfcc8 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureSqlSource.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.v2018_06_01; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Azure SQL source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("AzureSqlSource") +public class AzureSqlSource 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; + + /** + * Which additional types to produce. + */ + @JsonProperty(value = "produceAdditionalTypes") + private Object produceAdditionalTypes; + + /** + * Get sQL reader query. Type: string (or Expression with resultType string). + * + * @return the sqlReaderQuery value + */ + public Object sqlReaderQuery() { + return this.sqlReaderQuery; + } + + /** + * Set sQL reader query. Type: string (or Expression with resultType string). + * + * @param sqlReaderQuery the sqlReaderQuery value to set + * @return the AzureSqlSource object itself. + */ + public AzureSqlSource withSqlReaderQuery(Object sqlReaderQuery) { + this.sqlReaderQuery = sqlReaderQuery; + return this; + } + + /** + * Get 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). + * + * @return the sqlReaderStoredProcedureName value + */ + public Object sqlReaderStoredProcedureName() { + return this.sqlReaderStoredProcedureName; + } + + /** + * Set 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). + * + * @param sqlReaderStoredProcedureName the sqlReaderStoredProcedureName value to set + * @return the AzureSqlSource object itself. + */ + public AzureSqlSource withSqlReaderStoredProcedureName(Object sqlReaderStoredProcedureName) { + this.sqlReaderStoredProcedureName = sqlReaderStoredProcedureName; + return this; + } + + /** + * Get value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". + * + * @return the storedProcedureParameters value + */ + public Map storedProcedureParameters() { + return this.storedProcedureParameters; + } + + /** + * Set value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". + * + * @param storedProcedureParameters the storedProcedureParameters value to set + * @return the AzureSqlSource object itself. + */ + public AzureSqlSource withStoredProcedureParameters(Map storedProcedureParameters) { + this.storedProcedureParameters = storedProcedureParameters; + return this; + } + + /** + * Get which additional types to produce. + * + * @return the produceAdditionalTypes value + */ + public Object produceAdditionalTypes() { + return this.produceAdditionalTypes; + } + + /** + * Set which additional types to produce. + * + * @param produceAdditionalTypes the produceAdditionalTypes value to set + * @return the AzureSqlSource object itself. + */ + public AzureSqlSource withProduceAdditionalTypes(Object produceAdditionalTypes) { + this.produceAdditionalTypes = produceAdditionalTypes; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureSqlTableDataset.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureSqlTableDataset.java new file mode 100644 index 0000000000000..135853d1af383 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureSqlTableDataset.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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 { + /** + * This property will be retired. Please consider using schema + table + * properties instead. + */ + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; + + /** + * The schema name of the Azure SQL database. Type: string (or Expression + * with resultType string). + */ + @JsonProperty(value = "typeProperties.schema") + private Object azureSqlTableDatasetSchema; + + /** + * The table name of the Azure SQL database. Type: string (or Expression + * with resultType string). + */ + @JsonProperty(value = "typeProperties.table") + private Object table; + + /** + * Get this property will be retired. Please consider using schema + table properties instead. + * + * @return the tableName value + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set this property will be retired. Please consider using schema + table properties instead. + * + * @param tableName the tableName value to set + * @return the AzureSqlTableDataset object itself. + */ + public AzureSqlTableDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; + } + + /** + * Get the schema name of the Azure SQL database. Type: string (or Expression with resultType string). + * + * @return the azureSqlTableDatasetSchema value + */ + public Object azureSqlTableDatasetSchema() { + return this.azureSqlTableDatasetSchema; + } + + /** + * Set the schema name of the Azure SQL database. Type: string (or Expression with resultType string). + * + * @param azureSqlTableDatasetSchema the azureSqlTableDatasetSchema value to set + * @return the AzureSqlTableDataset object itself. + */ + public AzureSqlTableDataset withAzureSqlTableDatasetSchema(Object azureSqlTableDatasetSchema) { + this.azureSqlTableDatasetSchema = azureSqlTableDatasetSchema; + return this; + } + + /** + * Get the table name of the Azure SQL database. Type: string (or Expression with resultType string). + * + * @return the table value + */ + public Object table() { + return this.table; + } + + /** + * Set the table name of the Azure SQL database. Type: string (or Expression with resultType string). + * + * @param table the table value to set + * @return the AzureSqlTableDataset object itself. + */ + public AzureSqlTableDataset withTable(Object table) { + this.table = table; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureStorageLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureStorageLinkedService.java new file mode 100644 index 0000000000000..05dd73c429717 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureStorageLinkedService.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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. + * Type: string, SecureString or AzureKeyVaultSecretReference. + */ + @JsonProperty(value = "typeProperties.connectionString") + private Object connectionString; + + /** + * The Azure key vault secret reference of accountKey in connection string. + */ + @JsonProperty(value = "typeProperties.accountKey") + private AzureKeyVaultSecretReference accountKey; + + /** + * SAS URI of the Azure Storage resource. It is mutually exclusive with + * connectionString property. Type: string, SecureString or + * AzureKeyVaultSecretReference. + */ + @JsonProperty(value = "typeProperties.sasUri") + private Object sasUri; + + /** + * The Azure key vault secret reference of sasToken in sas uri. + */ + @JsonProperty(value = "typeProperties.sasToken") + private AzureKeyVaultSecretReference sasToken; + + /** + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private String encryptedCredential; + + /** + * Get the connection string. It is mutually exclusive with sasUri property. Type: string, SecureString or AzureKeyVaultSecretReference. + * + * @return the connectionString value + */ + public Object connectionString() { + return this.connectionString; + } + + /** + * Set the connection string. It is mutually exclusive with sasUri property. Type: string, SecureString or AzureKeyVaultSecretReference. + * + * @param connectionString the connectionString value to set + * @return the AzureStorageLinkedService object itself. + */ + public AzureStorageLinkedService withConnectionString(Object connectionString) { + this.connectionString = connectionString; + return this; + } + + /** + * Get the Azure key vault secret reference of accountKey in connection string. + * + * @return the accountKey value + */ + public AzureKeyVaultSecretReference accountKey() { + return this.accountKey; + } + + /** + * Set the Azure key vault secret reference of accountKey in connection string. + * + * @param accountKey the accountKey value to set + * @return the AzureStorageLinkedService object itself. + */ + public AzureStorageLinkedService withAccountKey(AzureKeyVaultSecretReference accountKey) { + this.accountKey = accountKey; + return this; + } + + /** + * Get sAS URI of the Azure Storage resource. It is mutually exclusive with connectionString property. Type: string, SecureString or AzureKeyVaultSecretReference. + * + * @return the sasUri value + */ + public Object sasUri() { + return this.sasUri; + } + + /** + * Set sAS URI of the Azure Storage resource. It is mutually exclusive with connectionString property. Type: string, SecureString or AzureKeyVaultSecretReference. + * + * @param sasUri the sasUri value to set + * @return the AzureStorageLinkedService object itself. + */ + public AzureStorageLinkedService withSasUri(Object sasUri) { + this.sasUri = sasUri; + return this; + } + + /** + * Get the Azure key vault secret reference of sasToken in sas uri. + * + * @return the sasToken value + */ + public AzureKeyVaultSecretReference sasToken() { + return this.sasToken; + } + + /** + * Set the Azure key vault secret reference of sasToken in sas uri. + * + * @param sasToken the sasToken value to set + * @return the AzureStorageLinkedService object itself. + */ + public AzureStorageLinkedService withSasToken(AzureKeyVaultSecretReference sasToken) { + this.sasToken = sasToken; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public String encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the AzureStorageLinkedService object itself. + */ + public AzureStorageLinkedService withEncryptedCredential(String encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureTableDataset.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureTableDataset.java new file mode 100644 index 0000000000000..7d2ba45994570 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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 table name of the Azure Table storage. Type: string (or Expression with resultType string). + * + * @return the tableName value + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set the table name of the Azure Table storage. Type: string (or Expression with resultType string). + * + * @param tableName the tableName value to set + * @return the AzureTableDataset object itself. + */ + public AzureTableDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureTableSink.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureTableSink.java new file mode 100644 index 0000000000000..31ebe94fa9f40 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 azure Table default partition key value. Type: string (or Expression with resultType string). + * + * @return the azureTableDefaultPartitionKeyValue value + */ + public Object azureTableDefaultPartitionKeyValue() { + return this.azureTableDefaultPartitionKeyValue; + } + + /** + * Set azure Table default partition key value. Type: string (or Expression with resultType string). + * + * @param azureTableDefaultPartitionKeyValue the azureTableDefaultPartitionKeyValue value to set + * @return the AzureTableSink object itself. + */ + public AzureTableSink withAzureTableDefaultPartitionKeyValue(Object azureTableDefaultPartitionKeyValue) { + this.azureTableDefaultPartitionKeyValue = azureTableDefaultPartitionKeyValue; + return this; + } + + /** + * Get azure Table partition key name. Type: string (or Expression with resultType string). + * + * @return the azureTablePartitionKeyName value + */ + public Object azureTablePartitionKeyName() { + return this.azureTablePartitionKeyName; + } + + /** + * Set azure Table partition key name. Type: string (or Expression with resultType string). + * + * @param azureTablePartitionKeyName the azureTablePartitionKeyName value to set + * @return the AzureTableSink object itself. + */ + public AzureTableSink withAzureTablePartitionKeyName(Object azureTablePartitionKeyName) { + this.azureTablePartitionKeyName = azureTablePartitionKeyName; + return this; + } + + /** + * Get azure Table row key name. Type: string (or Expression with resultType string). + * + * @return the azureTableRowKeyName value + */ + public Object azureTableRowKeyName() { + return this.azureTableRowKeyName; + } + + /** + * Set azure Table row key name. Type: string (or Expression with resultType string). + * + * @param azureTableRowKeyName the azureTableRowKeyName value to set + * @return the AzureTableSink object itself. + */ + public AzureTableSink withAzureTableRowKeyName(Object azureTableRowKeyName) { + this.azureTableRowKeyName = azureTableRowKeyName; + return this; + } + + /** + * Get azure Table insert type. Type: string (or Expression with resultType string). + * + * @return the azureTableInsertType value + */ + public Object azureTableInsertType() { + return this.azureTableInsertType; + } + + /** + * Set azure Table insert type. Type: string (or Expression with resultType string). + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureTableSource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureTableSource.java new file mode 100644 index 0000000000000..337cfe77aa2ec --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 azure Table source query. Type: string (or Expression with resultType string). + * + * @return the azureTableSourceQuery value + */ + public Object azureTableSourceQuery() { + return this.azureTableSourceQuery; + } + + /** + * Set azure Table source query. Type: string (or Expression with resultType string). + * + * @param azureTableSourceQuery the azureTableSourceQuery value to set + * @return the AzureTableSource object itself. + */ + public AzureTableSource withAzureTableSourceQuery(Object azureTableSourceQuery) { + this.azureTableSourceQuery = azureTableSourceQuery; + return this; + } + + /** + * Get azure Table source ignore table not found. Type: boolean (or Expression with resultType boolean). + * + * @return the azureTableSourceIgnoreTableNotFound value + */ + public Object azureTableSourceIgnoreTableNotFound() { + return this.azureTableSourceIgnoreTableNotFound; + } + + /** + * Set azure Table source ignore table not found. Type: boolean (or Expression with resultType boolean). + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureTableStorageLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureTableStorageLinkedService.java new file mode 100644 index 0000000000000..7616e263de122 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/AzureTableStorageLinkedService.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.LinkedServiceInner; + +/** + * The azure table storage linked service. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("AzureTableStorage") +@JsonFlatten +public class AzureTableStorageLinkedService extends LinkedServiceInner { + /** + * The connection string. It is mutually exclusive with sasUri property. + * Type: string, SecureString or AzureKeyVaultSecretReference. + */ + @JsonProperty(value = "typeProperties.connectionString") + private Object connectionString; + + /** + * The Azure key vault secret reference of accountKey in connection string. + */ + @JsonProperty(value = "typeProperties.accountKey") + private AzureKeyVaultSecretReference accountKey; + + /** + * SAS URI of the Azure Storage resource. It is mutually exclusive with + * connectionString property. Type: string, SecureString or + * AzureKeyVaultSecretReference. + */ + @JsonProperty(value = "typeProperties.sasUri") + private Object sasUri; + + /** + * The Azure key vault secret reference of sasToken in sas uri. + */ + @JsonProperty(value = "typeProperties.sasToken") + private AzureKeyVaultSecretReference sasToken; + + /** + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private String encryptedCredential; + + /** + * Get the connection string. It is mutually exclusive with sasUri property. Type: string, SecureString or AzureKeyVaultSecretReference. + * + * @return the connectionString value + */ + public Object connectionString() { + return this.connectionString; + } + + /** + * Set the connection string. It is mutually exclusive with sasUri property. Type: string, SecureString or AzureKeyVaultSecretReference. + * + * @param connectionString the connectionString value to set + * @return the AzureTableStorageLinkedService object itself. + */ + public AzureTableStorageLinkedService withConnectionString(Object connectionString) { + this.connectionString = connectionString; + return this; + } + + /** + * Get the Azure key vault secret reference of accountKey in connection string. + * + * @return the accountKey value + */ + public AzureKeyVaultSecretReference accountKey() { + return this.accountKey; + } + + /** + * Set the Azure key vault secret reference of accountKey in connection string. + * + * @param accountKey the accountKey value to set + * @return the AzureTableStorageLinkedService object itself. + */ + public AzureTableStorageLinkedService withAccountKey(AzureKeyVaultSecretReference accountKey) { + this.accountKey = accountKey; + return this; + } + + /** + * Get sAS URI of the Azure Storage resource. It is mutually exclusive with connectionString property. Type: string, SecureString or AzureKeyVaultSecretReference. + * + * @return the sasUri value + */ + public Object sasUri() { + return this.sasUri; + } + + /** + * Set sAS URI of the Azure Storage resource. It is mutually exclusive with connectionString property. Type: string, SecureString or AzureKeyVaultSecretReference. + * + * @param sasUri the sasUri value to set + * @return the AzureTableStorageLinkedService object itself. + */ + public AzureTableStorageLinkedService withSasUri(Object sasUri) { + this.sasUri = sasUri; + return this; + } + + /** + * Get the Azure key vault secret reference of sasToken in sas uri. + * + * @return the sasToken value + */ + public AzureKeyVaultSecretReference sasToken() { + return this.sasToken; + } + + /** + * Set the Azure key vault secret reference of sasToken in sas uri. + * + * @param sasToken the sasToken value to set + * @return the AzureTableStorageLinkedService object itself. + */ + public AzureTableStorageLinkedService withSasToken(AzureKeyVaultSecretReference sasToken) { + this.sasToken = sasToken; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public String encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the AzureTableStorageLinkedService object itself. + */ + public AzureTableStorageLinkedService withEncryptedCredential(String encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/BinaryDataset.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/BinaryDataset.java new file mode 100644 index 0000000000000..b34865de36c24 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/BinaryDataset.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DatasetInner; + +/** + * Binary dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("Binary") +@JsonFlatten +public class BinaryDataset extends DatasetInner { + /** + * The location of the Binary storage. + */ + @JsonProperty(value = "typeProperties.location", required = true) + private DatasetLocation location; + + /** + * The data compression method used for the binary dataset. + */ + @JsonProperty(value = "typeProperties.compression") + private DatasetCompression compression; + + /** + * Get the location of the Binary storage. + * + * @return the location value + */ + public DatasetLocation location() { + return this.location; + } + + /** + * Set the location of the Binary storage. + * + * @param location the location value to set + * @return the BinaryDataset object itself. + */ + public BinaryDataset withLocation(DatasetLocation location) { + this.location = location; + return this; + } + + /** + * Get the data compression method used for the binary dataset. + * + * @return the compression value + */ + public DatasetCompression compression() { + return this.compression; + } + + /** + * Set the data compression method used for the binary dataset. + * + * @param compression the compression value to set + * @return the BinaryDataset object itself. + */ + public BinaryDataset withCompression(DatasetCompression compression) { + this.compression = compression; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/BinarySink.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/BinarySink.java new file mode 100644 index 0000000000000..75b4070ebb106 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/BinarySink.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Binary sink. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("BinarySink") +public class BinarySink extends CopySink { + /** + * Binary store settings. + */ + @JsonProperty(value = "storeSettings") + private StoreReadSettings storeSettings; + + /** + * Get binary store settings. + * + * @return the storeSettings value + */ + public StoreReadSettings storeSettings() { + return this.storeSettings; + } + + /** + * Set binary store settings. + * + * @param storeSettings the storeSettings value to set + * @return the BinarySink object itself. + */ + public BinarySink withStoreSettings(StoreReadSettings storeSettings) { + this.storeSettings = storeSettings; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/BinarySource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/BinarySource.java new file mode 100644 index 0000000000000..d30b3050d6120 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/BinarySource.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Binary source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("BinarySource") +public class BinarySource extends CopySource { + /** + * Binary store settings. + */ + @JsonProperty(value = "storeSettings") + private StoreReadSettings storeSettings; + + /** + * Get binary store settings. + * + * @return the storeSettings value + */ + public StoreReadSettings storeSettings() { + return this.storeSettings; + } + + /** + * Set binary store settings. + * + * @param storeSettings the storeSettings value to set + * @return the BinarySource object itself. + */ + public BinarySource withStoreSettings(StoreReadSettings storeSettings) { + this.storeSettings = storeSettings; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/BlobEventTypes.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/BlobEventTypes.java new file mode 100644 index 0000000000000..62a73ce63728f --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/BlobEventTypes.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.v2018_06_01; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for BlobEventTypes. + */ +public final class BlobEventTypes extends ExpandableStringEnum { + /** Static value Microsoft.Storage.BlobCreated for BlobEventTypes. */ + public static final BlobEventTypes MICROSOFT_STORAGE_BLOB_CREATED = fromString("Microsoft.Storage.BlobCreated"); + + /** Static value Microsoft.Storage.BlobDeleted for BlobEventTypes. */ + public static final BlobEventTypes MICROSOFT_STORAGE_BLOB_DELETED = fromString("Microsoft.Storage.BlobDeleted"); + + /** + * Creates or finds a BlobEventTypes from its string representation. + * @param name a name to look for + * @return the corresponding BlobEventTypes + */ + @JsonCreator + public static BlobEventTypes fromString(String name) { + return fromString(name, BlobEventTypes.class); + } + + /** + * @return known BlobEventTypes values + */ + public static Collection values() { + return values(BlobEventTypes.class); + } +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/BlobEventsTrigger.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/BlobEventsTrigger.java new file mode 100644 index 0000000000000..64e739fd05f62 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/BlobEventsTrigger.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.v2018_06_01; + +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; + +/** + * Trigger that runs every time a Blob event occurs. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("BlobEventsTrigger") +@JsonFlatten +public class BlobEventsTrigger extends MultiplePipelineTrigger { + /** + * The blob path must begin with the pattern provided for trigger to fire. + * For example, '/records/blobs/december/' will only fire the trigger for + * blobs in the december folder under the records container. At least one + * of these must be provided: blobPathBeginsWith, blobPathEndsWith. + */ + @JsonProperty(value = "typeProperties.blobPathBeginsWith") + private String blobPathBeginsWith; + + /** + * The blob path must end with the pattern provided for trigger to fire. + * For example, 'december/boxes.csv' will only fire the trigger for blobs + * named boxes in a december folder. At least one of these must be + * provided: blobPathBeginsWith, blobPathEndsWith. + */ + @JsonProperty(value = "typeProperties.blobPathEndsWith") + private String blobPathEndsWith; + + /** + * The type of events that cause this trigger to fire. + */ + @JsonProperty(value = "typeProperties.events", required = true) + private List events; + + /** + * The ARM resource ID of the Storage Account. + */ + @JsonProperty(value = "typeProperties.scope", required = true) + private String scope; + + /** + * Get the blob path must begin with the pattern provided for trigger to fire. For example, '/records/blobs/december/' will only fire the trigger for blobs in the december folder under the records container. At least one of these must be provided: blobPathBeginsWith, blobPathEndsWith. + * + * @return the blobPathBeginsWith value + */ + public String blobPathBeginsWith() { + return this.blobPathBeginsWith; + } + + /** + * Set the blob path must begin with the pattern provided for trigger to fire. For example, '/records/blobs/december/' will only fire the trigger for blobs in the december folder under the records container. At least one of these must be provided: blobPathBeginsWith, blobPathEndsWith. + * + * @param blobPathBeginsWith the blobPathBeginsWith value to set + * @return the BlobEventsTrigger object itself. + */ + public BlobEventsTrigger withBlobPathBeginsWith(String blobPathBeginsWith) { + this.blobPathBeginsWith = blobPathBeginsWith; + return this; + } + + /** + * Get the blob path must end with the pattern provided for trigger to fire. For example, 'december/boxes.csv' will only fire the trigger for blobs named boxes in a december folder. At least one of these must be provided: blobPathBeginsWith, blobPathEndsWith. + * + * @return the blobPathEndsWith value + */ + public String blobPathEndsWith() { + return this.blobPathEndsWith; + } + + /** + * Set the blob path must end with the pattern provided for trigger to fire. For example, 'december/boxes.csv' will only fire the trigger for blobs named boxes in a december folder. At least one of these must be provided: blobPathBeginsWith, blobPathEndsWith. + * + * @param blobPathEndsWith the blobPathEndsWith value to set + * @return the BlobEventsTrigger object itself. + */ + public BlobEventsTrigger withBlobPathEndsWith(String blobPathEndsWith) { + this.blobPathEndsWith = blobPathEndsWith; + return this; + } + + /** + * Get the type of events that cause this trigger to fire. + * + * @return the events value + */ + public List events() { + return this.events; + } + + /** + * Set the type of events that cause this trigger to fire. + * + * @param events the events value to set + * @return the BlobEventsTrigger object itself. + */ + public BlobEventsTrigger withEvents(List events) { + this.events = events; + return this; + } + + /** + * Get the ARM resource ID of the Storage Account. + * + * @return the scope value + */ + public String scope() { + return this.scope; + } + + /** + * Set the ARM resource ID of the Storage Account. + * + * @param scope the scope value to set + * @return the BlobEventsTrigger object itself. + */ + public BlobEventsTrigger withScope(String scope) { + this.scope = scope; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/BlobSink.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/BlobSink.java new file mode 100644 index 0000000000000..fbeaf5e31b8e2 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/BlobSink.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.v2018_06_01; + +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. + */ + @JsonProperty(value = "copyBehavior") + private Object copyBehavior; + + /** + * Get blob writer overwrite files. Type: boolean (or Expression with resultType boolean). + * + * @return the blobWriterOverwriteFiles value + */ + public Object blobWriterOverwriteFiles() { + return this.blobWriterOverwriteFiles; + } + + /** + * Set blob writer overwrite files. Type: boolean (or Expression with resultType boolean). + * + * @param blobWriterOverwriteFiles the blobWriterOverwriteFiles value to set + * @return the BlobSink object itself. + */ + public BlobSink withBlobWriterOverwriteFiles(Object blobWriterOverwriteFiles) { + this.blobWriterOverwriteFiles = blobWriterOverwriteFiles; + return this; + } + + /** + * Get blob writer date time format. Type: string (or Expression with resultType string). + * + * @return the blobWriterDateTimeFormat value + */ + public Object blobWriterDateTimeFormat() { + return this.blobWriterDateTimeFormat; + } + + /** + * Set blob writer date time format. Type: string (or Expression with resultType string). + * + * @param blobWriterDateTimeFormat the blobWriterDateTimeFormat value to set + * @return the BlobSink object itself. + */ + public BlobSink withBlobWriterDateTimeFormat(Object blobWriterDateTimeFormat) { + this.blobWriterDateTimeFormat = blobWriterDateTimeFormat; + return this; + } + + /** + * Get blob writer add header. Type: boolean (or Expression with resultType boolean). + * + * @return the blobWriterAddHeader value + */ + public Object blobWriterAddHeader() { + return this.blobWriterAddHeader; + } + + /** + * Set blob writer add header. Type: boolean (or Expression with resultType boolean). + * + * @param blobWriterAddHeader the blobWriterAddHeader value to set + * @return the BlobSink object itself. + */ + public BlobSink withBlobWriterAddHeader(Object blobWriterAddHeader) { + this.blobWriterAddHeader = blobWriterAddHeader; + return this; + } + + /** + * Get the type of copy behavior for copy sink. + * + * @return the copyBehavior value + */ + public Object copyBehavior() { + return this.copyBehavior; + } + + /** + * Set the type of copy behavior for copy sink. + * + * @param copyBehavior the copyBehavior value to set + * @return the BlobSink object itself. + */ + public BlobSink withCopyBehavior(Object copyBehavior) { + this.copyBehavior = copyBehavior; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/BlobSource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/BlobSource.java new file mode 100644 index 0000000000000..2adb875580e5d --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 treat empty as null. Type: boolean (or Expression with resultType boolean). + * + * @return the treatEmptyAsNull value + */ + public Object treatEmptyAsNull() { + return this.treatEmptyAsNull; + } + + /** + * Set treat empty as null. Type: boolean (or Expression with resultType boolean). + * + * @param treatEmptyAsNull the treatEmptyAsNull value to set + * @return the BlobSource object itself. + */ + public BlobSource withTreatEmptyAsNull(Object treatEmptyAsNull) { + this.treatEmptyAsNull = treatEmptyAsNull; + return this; + } + + /** + * Get number of header lines to skip from each blob. Type: integer (or Expression with resultType integer). + * + * @return the skipHeaderLineCount value + */ + public Object skipHeaderLineCount() { + return this.skipHeaderLineCount; + } + + /** + * Set number of header lines to skip from each blob. Type: integer (or Expression with resultType integer). + * + * @param skipHeaderLineCount the skipHeaderLineCount value to set + * @return the BlobSource object itself. + */ + public BlobSource withSkipHeaderLineCount(Object skipHeaderLineCount) { + this.skipHeaderLineCount = skipHeaderLineCount; + return this; + } + + /** + * Get if true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType boolean). + * + * @return the recursive value + */ + public Object recursive() { + return this.recursive; + } + + /** + * Set if true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType boolean). + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/BlobTrigger.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/BlobTrigger.java new file mode 100644 index 0000000000000..47faec3044c50 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; + +/** + * Trigger that runs every time 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 path of the container/folder that will trigger the pipeline. + * + * @return the folderPath value + */ + public String folderPath() { + return this.folderPath; + } + + /** + * Set the path of the container/folder that will trigger the pipeline. + * + * @param folderPath the folderPath value to set + * @return the BlobTrigger object itself. + */ + public BlobTrigger withFolderPath(String folderPath) { + this.folderPath = folderPath; + return this; + } + + /** + * Get the max number of parallel files to handle when it is triggered. + * + * @return the maxConcurrency value + */ + public int maxConcurrency() { + return this.maxConcurrency; + } + + /** + * Set the max number of parallel files to handle when it is triggered. + * + * @param maxConcurrency the maxConcurrency value to set + * @return the BlobTrigger object itself. + */ + public BlobTrigger withMaxConcurrency(int maxConcurrency) { + this.maxConcurrency = maxConcurrency; + return this; + } + + /** + * Get the Azure Storage linked service reference. + * + * @return the linkedService value + */ + public LinkedServiceReference linkedService() { + return this.linkedService; + } + + /** + * Set the Azure Storage linked service reference. + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CassandraLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CassandraLinkedService.java new file mode 100644 index 0000000000000..6abb9a8e82f02 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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 host name for connection. Type: string (or Expression with resultType string). + * + * @return the host value + */ + public Object host() { + return this.host; + } + + /** + * Set host name for connection. Type: string (or Expression with resultType string). + * + * @param host the host value to set + * @return the CassandraLinkedService object itself. + */ + public CassandraLinkedService withHost(Object host) { + this.host = host; + return this; + } + + /** + * Get authenticationType to be used for connection. Type: string (or Expression with resultType string). + * + * @return the authenticationType value + */ + public Object authenticationType() { + return this.authenticationType; + } + + /** + * Set authenticationType to be used for connection. Type: string (or Expression with resultType string). + * + * @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 for the connection. Type: integer (or Expression with resultType integer). + * + * @return the port value + */ + public Object port() { + return this.port; + } + + /** + * Set the port for the connection. Type: integer (or Expression with resultType integer). + * + * @param port the port value to set + * @return the CassandraLinkedService object itself. + */ + public CassandraLinkedService withPort(Object port) { + this.port = port; + return this; + } + + /** + * Get username for authentication. Type: string (or Expression with resultType string). + * + * @return the username value + */ + public Object username() { + return this.username; + } + + /** + * Set username for authentication. Type: string (or Expression with resultType string). + * + * @param username the username value to set + * @return the CassandraLinkedService object itself. + */ + public CassandraLinkedService withUsername(Object username) { + this.username = username; + return this; + } + + /** + * Get password for authentication. + * + * @return the password value + */ + public SecretBase password() { + return this.password; + } + + /** + * Set password for authentication. + * + * @param password the password value to set + * @return the CassandraLinkedService object itself. + */ + public CassandraLinkedService withPassword(SecretBase password) { + this.password = password; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the CassandraLinkedService object itself. + */ + public CassandraLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CassandraSource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CassandraSource.java new file mode 100644 index 0000000000000..53f0de5476a26 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 database query. Should be a SQL-92 query expression or Cassandra Query Language (CQL) command. Type: string (or Expression with resultType string). + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set database query. Should be a SQL-92 query expression or Cassandra Query Language (CQL) command. Type: string (or Expression with resultType string). + * + * @param query the query value to set + * @return the CassandraSource object itself. + */ + public CassandraSource withQuery(Object query) { + this.query = query; + return this; + } + + /** + * Get 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'. + * + * @return the consistencyLevel value + */ + public CassandraSourceReadConsistencyLevels consistencyLevel() { + return this.consistencyLevel; + } + + /** + * Set 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'. + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CassandraSourceReadConsistencyLevels.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CassandraSourceReadConsistencyLevels.java new file mode 100644 index 0000000000000..b0c2e958ec1c4 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CassandraTableDataset.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CassandraTableDataset.java new file mode 100644 index 0000000000000..55aec7e7bbc30 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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 table name of the Cassandra database. Type: string (or Expression with resultType string). + * + * @return the tableName value + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set the table name of the Cassandra database. Type: string (or Expression with resultType string). + * + * @param tableName the tableName value to set + * @return the CassandraTableDataset object itself. + */ + public CassandraTableDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; + } + + /** + * Get the keyspace of the Cassandra database. Type: string (or Expression with resultType string). + * + * @return the keyspace value + */ + public Object keyspace() { + return this.keyspace; + } + + /** + * Set the keyspace of the Cassandra database. Type: string (or Expression with resultType string). + * + * @param keyspace the keyspace value to set + * @return the CassandraTableDataset object itself. + */ + public CassandraTableDataset withKeyspace(Object keyspace) { + this.keyspace = keyspace; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CommonDataServiceForAppsEntityDataset.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CommonDataServiceForAppsEntityDataset.java new file mode 100644 index 0000000000000..b91a90797288a --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CommonDataServiceForAppsEntityDataset.java @@ -0,0 +1,51 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DatasetInner; + +/** + * The Common Data Service for Apps entity dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("CommonDataServiceForAppsEntity") +@JsonFlatten +public class CommonDataServiceForAppsEntityDataset extends DatasetInner { + /** + * The logical name of the entity. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.entityName") + private Object entityName; + + /** + * Get the logical name of the entity. Type: string (or Expression with resultType string). + * + * @return the entityName value + */ + public Object entityName() { + return this.entityName; + } + + /** + * Set the logical name of the entity. Type: string (or Expression with resultType string). + * + * @param entityName the entityName value to set + * @return the CommonDataServiceForAppsEntityDataset object itself. + */ + public CommonDataServiceForAppsEntityDataset withEntityName(Object entityName) { + this.entityName = entityName; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CommonDataServiceForAppsLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CommonDataServiceForAppsLinkedService.java new file mode 100644 index 0000000000000..682704978c774 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CommonDataServiceForAppsLinkedService.java @@ -0,0 +1,277 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.LinkedServiceInner; + +/** + * Common Data Service for Apps linked service. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("CommonDataServiceForApps") +@JsonFlatten +public class CommonDataServiceForAppsLinkedService extends LinkedServiceInner { + /** + * The deployment type of the Common Data Service for Apps instance. + * 'Online' for Common Data Service for Apps Online and 'OnPremisesWithIfd' + * for Common Data Service for Apps on-premises with Ifd. Type: string (or + * Expression with resultType string). Possible values include: 'Online', + * 'OnPremisesWithIfd'. + */ + @JsonProperty(value = "typeProperties.deploymentType", required = true) + private DynamicsDeploymentType deploymentType; + + /** + * The host name of the on-premises Common Data Service for Apps server. + * The property is required for on-prem and not allowed for online. Type: + * string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.hostName") + private Object hostName; + + /** + * The port of on-premises Common Data Service for Apps server. The + * property is required for on-prem and not allowed for online. Default is + * 443. Type: integer (or Expression with resultType integer), minimum: 0. + */ + @JsonProperty(value = "typeProperties.port") + private Object port; + + /** + * The URL to the Microsoft Common Data Service for Apps server. The + * property is required for on-line and not allowed for on-prem. Type: + * string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.serviceUri") + private Object serviceUri; + + /** + * The organization name of the Common Data Service for Apps instance. The + * property is required for on-prem and required for online when there are + * more than one Common Data Service for Apps instances associated with the + * user. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.organizationName") + private Object organizationName; + + /** + * The authentication type to connect to Common Data Service for Apps + * server. 'Office365' for online scenario, 'Ifd' for on-premises with Ifd + * scenario. Type: string (or Expression with resultType string). Possible + * values include: 'Office365', 'Ifd'. + */ + @JsonProperty(value = "typeProperties.authenticationType", required = true) + private DynamicsAuthenticationType authenticationType; + + /** + * User name to access the Common Data Service for Apps instance. Type: + * string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.username", required = true) + private Object username; + + /** + * Password to access the Common Data Service for Apps instance. + */ + @JsonProperty(value = "typeProperties.password") + private SecretBase password; + + /** + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; + + /** + * Get the deployment type of the Common Data Service for Apps instance. 'Online' for Common Data Service for Apps Online and 'OnPremisesWithIfd' for Common Data Service for Apps on-premises with Ifd. Type: string (or Expression with resultType string). Possible values include: 'Online', 'OnPremisesWithIfd'. + * + * @return the deploymentType value + */ + public DynamicsDeploymentType deploymentType() { + return this.deploymentType; + } + + /** + * Set the deployment type of the Common Data Service for Apps instance. 'Online' for Common Data Service for Apps Online and 'OnPremisesWithIfd' for Common Data Service for Apps on-premises with Ifd. Type: string (or Expression with resultType string). Possible values include: 'Online', 'OnPremisesWithIfd'. + * + * @param deploymentType the deploymentType value to set + * @return the CommonDataServiceForAppsLinkedService object itself. + */ + public CommonDataServiceForAppsLinkedService withDeploymentType(DynamicsDeploymentType deploymentType) { + this.deploymentType = deploymentType; + return this; + } + + /** + * Get the host name of the on-premises Common Data Service for Apps server. The property is required for on-prem and not allowed for online. Type: string (or Expression with resultType string). + * + * @return the hostName value + */ + public Object hostName() { + return this.hostName; + } + + /** + * Set the host name of the on-premises Common Data Service for Apps server. The property is required for on-prem and not allowed for online. Type: string (or Expression with resultType string). + * + * @param hostName the hostName value to set + * @return the CommonDataServiceForAppsLinkedService object itself. + */ + public CommonDataServiceForAppsLinkedService withHostName(Object hostName) { + this.hostName = hostName; + return this; + } + + /** + * Get the port of on-premises Common Data Service for Apps server. The property is required for on-prem and not allowed for online. Default is 443. Type: integer (or Expression with resultType integer), minimum: 0. + * + * @return the port value + */ + public Object port() { + return this.port; + } + + /** + * Set the port of on-premises Common Data Service for Apps server. The property is required for on-prem and not allowed for online. Default is 443. Type: integer (or Expression with resultType integer), minimum: 0. + * + * @param port the port value to set + * @return the CommonDataServiceForAppsLinkedService object itself. + */ + public CommonDataServiceForAppsLinkedService withPort(Object port) { + this.port = port; + return this; + } + + /** + * Get the URL to the Microsoft Common Data Service for Apps server. The property is required for on-line and not allowed for on-prem. Type: string (or Expression with resultType string). + * + * @return the serviceUri value + */ + public Object serviceUri() { + return this.serviceUri; + } + + /** + * Set the URL to the Microsoft Common Data Service for Apps server. The property is required for on-line and not allowed for on-prem. Type: string (or Expression with resultType string). + * + * @param serviceUri the serviceUri value to set + * @return the CommonDataServiceForAppsLinkedService object itself. + */ + public CommonDataServiceForAppsLinkedService withServiceUri(Object serviceUri) { + this.serviceUri = serviceUri; + return this; + } + + /** + * Get the organization name of the Common Data Service for Apps instance. The property is required for on-prem and required for online when there are more than one Common Data Service for Apps instances associated with the user. Type: string (or Expression with resultType string). + * + * @return the organizationName value + */ + public Object organizationName() { + return this.organizationName; + } + + /** + * Set the organization name of the Common Data Service for Apps instance. The property is required for on-prem and required for online when there are more than one Common Data Service for Apps instances associated with the user. Type: string (or Expression with resultType string). + * + * @param organizationName the organizationName value to set + * @return the CommonDataServiceForAppsLinkedService object itself. + */ + public CommonDataServiceForAppsLinkedService withOrganizationName(Object organizationName) { + this.organizationName = organizationName; + return this; + } + + /** + * Get the authentication type to connect to Common Data Service for Apps server. 'Office365' for online scenario, 'Ifd' for on-premises with Ifd scenario. Type: string (or Expression with resultType string). Possible values include: 'Office365', 'Ifd'. + * + * @return the authenticationType value + */ + public DynamicsAuthenticationType authenticationType() { + return this.authenticationType; + } + + /** + * Set the authentication type to connect to Common Data Service for Apps server. 'Office365' for online scenario, 'Ifd' for on-premises with Ifd scenario. Type: string (or Expression with resultType string). Possible values include: 'Office365', 'Ifd'. + * + * @param authenticationType the authenticationType value to set + * @return the CommonDataServiceForAppsLinkedService object itself. + */ + public CommonDataServiceForAppsLinkedService withAuthenticationType(DynamicsAuthenticationType authenticationType) { + this.authenticationType = authenticationType; + return this; + } + + /** + * Get user name to access the Common Data Service for Apps instance. Type: string (or Expression with resultType string). + * + * @return the username value + */ + public Object username() { + return this.username; + } + + /** + * Set user name to access the Common Data Service for Apps instance. Type: string (or Expression with resultType string). + * + * @param username the username value to set + * @return the CommonDataServiceForAppsLinkedService object itself. + */ + public CommonDataServiceForAppsLinkedService withUsername(Object username) { + this.username = username; + return this; + } + + /** + * Get password to access the Common Data Service for Apps instance. + * + * @return the password value + */ + public SecretBase password() { + return this.password; + } + + /** + * Set password to access the Common Data Service for Apps instance. + * + * @param password the password value to set + * @return the CommonDataServiceForAppsLinkedService object itself. + */ + public CommonDataServiceForAppsLinkedService withPassword(SecretBase password) { + this.password = password; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the CommonDataServiceForAppsLinkedService object itself. + */ + public CommonDataServiceForAppsLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CommonDataServiceForAppsSink.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CommonDataServiceForAppsSink.java new file mode 100644 index 0000000000000..3cfe97d1cd5eb --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CommonDataServiceForAppsSink.java @@ -0,0 +1,82 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Common Data Service for Apps sink. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("CommonDataServiceForAppsSink") +public class CommonDataServiceForAppsSink extends CopySink { + /** + * The write behavior for the operation. + */ + @JsonProperty(value = "writeBehavior", required = true) + private String writeBehavior; + + /** + * The flag indicating whether to ignore null values from input dataset + * (except key fields) during write operation. Default is false. Type: + * boolean (or Expression with resultType boolean). + */ + @JsonProperty(value = "ignoreNullValues") + private Object ignoreNullValues; + + /** + * Creates an instance of CommonDataServiceForAppsSink class. + */ + public CommonDataServiceForAppsSink() { + writeBehavior = "Upsert"; + } + + /** + * Get the write behavior for the operation. + * + * @return the writeBehavior value + */ + public String writeBehavior() { + return this.writeBehavior; + } + + /** + * Set the write behavior for the operation. + * + * @param writeBehavior the writeBehavior value to set + * @return the CommonDataServiceForAppsSink object itself. + */ + public CommonDataServiceForAppsSink withWriteBehavior(String writeBehavior) { + this.writeBehavior = writeBehavior; + return this; + } + + /** + * Get the flag indicating whether to ignore null values from input dataset (except key fields) during write operation. Default is false. Type: boolean (or Expression with resultType boolean). + * + * @return the ignoreNullValues value + */ + public Object ignoreNullValues() { + return this.ignoreNullValues; + } + + /** + * Set the flag indicating whether to ignore null values from input dataset (except key fields) during write operation. Default is false. Type: boolean (or Expression with resultType boolean). + * + * @param ignoreNullValues the ignoreNullValues value to set + * @return the CommonDataServiceForAppsSink object itself. + */ + public CommonDataServiceForAppsSink withIgnoreNullValues(Object ignoreNullValues) { + this.ignoreNullValues = ignoreNullValues; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CommonDataServiceForAppsSource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CommonDataServiceForAppsSource.java new file mode 100644 index 0000000000000..1759bc3d59eb5 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CommonDataServiceForAppsSource.java @@ -0,0 +1,49 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Common Data Service for Apps source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("CommonDataServiceForAppsSource") +public class CommonDataServiceForAppsSource extends CopySource { + /** + * FetchXML is a proprietary query language that is used in Microsoft + * Common Data Service for Apps (online & on-premises). Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "query") + private Object query; + + /** + * Get fetchXML is a proprietary query language that is used in Microsoft Common Data Service for Apps (online & on-premises). Type: string (or Expression with resultType string). + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set fetchXML is a proprietary query language that is used in Microsoft Common Data Service for Apps (online & on-premises). Type: string (or Expression with resultType string). + * + * @param query the query value to set + * @return the CommonDataServiceForAppsSource object itself. + */ + public CommonDataServiceForAppsSource withQuery(Object query) { + this.query = query; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ConcurLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ConcurLinkedService.java new file mode 100644 index 0000000000000..a1e59186d3977 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.LinkedServiceInner; + +/** + * Concur Service 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 application client_id supplied by Concur App Management. + * + * @return the clientId value + */ + public Object clientId() { + return this.clientId; + } + + /** + * Set application client_id supplied by Concur App Management. + * + * @param clientId the clientId value to set + * @return the ConcurLinkedService object itself. + */ + public ConcurLinkedService withClientId(Object clientId) { + this.clientId = clientId; + return this; + } + + /** + * Get the user name that you use to access Concur Service. + * + * @return the username value + */ + public Object username() { + return this.username; + } + + /** + * Set the user name that you use to access Concur Service. + * + * @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 corresponding to the user name that you provided in the username field. + * + * @return the password value + */ + public SecretBase password() { + return this.password; + } + + /** + * Set the password corresponding to the user name that you provided in the username field. + * + * @param password the password value to set + * @return the ConcurLinkedService object itself. + */ + public ConcurLinkedService withPassword(SecretBase password) { + this.password = password; + return this; + } + + /** + * Get specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. + * + * @return the useEncryptedEndpoints value + */ + public Object useEncryptedEndpoints() { + return this.useEncryptedEndpoints; + } + + /** + * Set specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. + * + * @param useEncryptedEndpoints the useEncryptedEndpoints value to set + * @return the ConcurLinkedService object itself. + */ + public ConcurLinkedService withUseEncryptedEndpoints(Object useEncryptedEndpoints) { + this.useEncryptedEndpoints = useEncryptedEndpoints; + return this; + } + + /** + * Get specifies whether to require the host name in the server's certificate to match the host name of the server when connecting over SSL. The default value is true. + * + * @return the useHostVerification value + */ + public Object useHostVerification() { + return this.useHostVerification; + } + + /** + * Set specifies whether to require the host name in the server's certificate to match the host name of the server when connecting over SSL. The default value is true. + * + * @param useHostVerification the useHostVerification value to set + * @return the ConcurLinkedService object itself. + */ + public ConcurLinkedService withUseHostVerification(Object useHostVerification) { + this.useHostVerification = useHostVerification; + return this; + } + + /** + * Get specifies whether to verify the identity of the server when connecting over SSL. The default value is true. + * + * @return the usePeerVerification value + */ + public Object usePeerVerification() { + return this.usePeerVerification; + } + + /** + * Set specifies whether to verify the identity of the server when connecting over SSL. The default value is true. + * + * @param usePeerVerification the usePeerVerification value to set + * @return the ConcurLinkedService object itself. + */ + public ConcurLinkedService withUsePeerVerification(Object usePeerVerification) { + this.usePeerVerification = usePeerVerification; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the ConcurLinkedService object itself. + */ + public ConcurLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ConcurObjectDataset.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ConcurObjectDataset.java new file mode 100644 index 0000000000000..b7ea08e2f5e80 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ConcurObjectDataset.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DatasetInner; + +/** + * Concur Service dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("ConcurObject") +@JsonFlatten +public class ConcurObjectDataset extends DatasetInner { + /** + * The table name. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; + + /** + * Get the table name. Type: string (or Expression with resultType string). + * + * @return the tableName value + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set the table name. Type: string (or Expression with resultType string). + * + * @param tableName the tableName value to set + * @return the ConcurObjectDataset object itself. + */ + public ConcurObjectDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ConcurSource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ConcurSource.java new file mode 100644 index 0000000000000..e05c76f685daf --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Concur Service 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 a query to retrieve data from source. Type: string (or Expression with resultType string). + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set a query to retrieve data from source. Type: string (or Expression with resultType string). + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ControlActivity.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ControlActivity.java new file mode 100644 index 0000000000000..9c2172292531c --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ControlActivity.java @@ -0,0 +1,33 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +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 = "WebHook", value = WebHookActivity.class), + @JsonSubTypes.Type(name = "AppendVariable", value = AppendVariableActivity.class), + @JsonSubTypes.Type(name = "SetVariable", value = SetVariableActivity.class), + @JsonSubTypes.Type(name = "Filter", value = FilterActivity.class), + @JsonSubTypes.Type(name = "Validation", value = ValidationActivity.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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CopyActivity.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CopyActivity.java new file mode 100644 index 0000000000000..d9f20e8080f1a --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CopyActivity.java @@ -0,0 +1,369 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +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 specified, tabular translator is used. + */ + @JsonProperty(value = "typeProperties.translator") + private Object translator; + + /** + * Specifies whether to copy data via an interim staging. Default value is + * false. Type: boolean (or Expression with resultType boolean). + */ + @JsonProperty(value = "typeProperties.enableStaging") + private Object enableStaging; + + /** + * Specifies interim staging settings when EnableStaging is true. + */ + @JsonProperty(value = "typeProperties.stagingSettings") + private StagingSettings stagingSettings; + + /** + * Maximum number of concurrent sessions opened on the source or sink to + * avoid overloading the data store. Type: integer (or Expression with + * resultType integer), minimum: 0. + */ + @JsonProperty(value = "typeProperties.parallelCopies") + private Object parallelCopies; + + /** + * Maximum number of data integration units that can be used to perform + * this data movement. Type: integer (or Expression with resultType + * integer), minimum: 0. + */ + @JsonProperty(value = "typeProperties.dataIntegrationUnits") + private Object dataIntegrationUnits; + + /** + * Whether to skip incompatible row. Default value is false. Type: boolean + * (or Expression with resultType boolean). + */ + @JsonProperty(value = "typeProperties.enableSkipIncompatibleRow") + private Object enableSkipIncompatibleRow; + + /** + * Redirect incompatible row settings when EnableSkipIncompatibleRow is + * true. + */ + @JsonProperty(value = "typeProperties.redirectIncompatibleRowSettings") + private RedirectIncompatibleRowSettings redirectIncompatibleRowSettings; + + /** + * Preserve Rules. + */ + @JsonProperty(value = "typeProperties.preserveRules") + private List preserveRules; + + /** + * Preserve rules. + */ + @JsonProperty(value = "typeProperties.preserve") + private List preserve; + + /** + * 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 copy activity source. + * + * @return the source value + */ + public CopySource source() { + return this.source; + } + + /** + * Set copy activity source. + * + * @param source the source value to set + * @return the CopyActivity object itself. + */ + public CopyActivity withSource(CopySource source) { + this.source = source; + return this; + } + + /** + * Get copy activity sink. + * + * @return the sink value + */ + public CopySink sink() { + return this.sink; + } + + /** + * Set copy activity sink. + * + * @param sink the sink value to set + * @return the CopyActivity object itself. + */ + public CopyActivity withSink(CopySink sink) { + this.sink = sink; + return this; + } + + /** + * Get copy activity translator. If not specified, tabular translator is used. + * + * @return the translator value + */ + public Object translator() { + return this.translator; + } + + /** + * Set copy activity translator. If not specified, tabular translator is used. + * + * @param translator the translator value to set + * @return the CopyActivity object itself. + */ + public CopyActivity withTranslator(Object translator) { + this.translator = translator; + return this; + } + + /** + * Get specifies whether to copy data via an interim staging. Default value is false. Type: boolean (or Expression with resultType boolean). + * + * @return the enableStaging value + */ + public Object enableStaging() { + return this.enableStaging; + } + + /** + * Set specifies whether to copy data via an interim staging. Default value is false. Type: boolean (or Expression with resultType boolean). + * + * @param enableStaging the enableStaging value to set + * @return the CopyActivity object itself. + */ + public CopyActivity withEnableStaging(Object enableStaging) { + this.enableStaging = enableStaging; + return this; + } + + /** + * Get specifies interim staging settings when EnableStaging is true. + * + * @return the stagingSettings value + */ + public StagingSettings stagingSettings() { + return this.stagingSettings; + } + + /** + * Set specifies interim staging settings when EnableStaging is true. + * + * @param stagingSettings the stagingSettings value to set + * @return the CopyActivity object itself. + */ + public CopyActivity withStagingSettings(StagingSettings stagingSettings) { + this.stagingSettings = stagingSettings; + return this; + } + + /** + * Get maximum number of concurrent sessions opened on the source or sink to avoid overloading the data store. Type: integer (or Expression with resultType integer), minimum: 0. + * + * @return the parallelCopies value + */ + public Object parallelCopies() { + return this.parallelCopies; + } + + /** + * Set maximum number of concurrent sessions opened on the source or sink to avoid overloading the data store. Type: integer (or Expression with resultType integer), minimum: 0. + * + * @param parallelCopies the parallelCopies value to set + * @return the CopyActivity object itself. + */ + public CopyActivity withParallelCopies(Object parallelCopies) { + this.parallelCopies = parallelCopies; + return this; + } + + /** + * Get maximum number of data integration units that can be used to perform this data movement. Type: integer (or Expression with resultType integer), minimum: 0. + * + * @return the dataIntegrationUnits value + */ + public Object dataIntegrationUnits() { + return this.dataIntegrationUnits; + } + + /** + * Set maximum number of data integration units that can be used to perform this data movement. Type: integer (or Expression with resultType integer), minimum: 0. + * + * @param dataIntegrationUnits the dataIntegrationUnits value to set + * @return the CopyActivity object itself. + */ + public CopyActivity withDataIntegrationUnits(Object dataIntegrationUnits) { + this.dataIntegrationUnits = dataIntegrationUnits; + return this; + } + + /** + * Get whether to skip incompatible row. Default value is false. Type: boolean (or Expression with resultType boolean). + * + * @return the enableSkipIncompatibleRow value + */ + public Object enableSkipIncompatibleRow() { + return this.enableSkipIncompatibleRow; + } + + /** + * Set whether to skip incompatible row. Default value is false. Type: boolean (or Expression with resultType boolean). + * + * @param enableSkipIncompatibleRow the enableSkipIncompatibleRow value to set + * @return the CopyActivity object itself. + */ + public CopyActivity withEnableSkipIncompatibleRow(Object enableSkipIncompatibleRow) { + this.enableSkipIncompatibleRow = enableSkipIncompatibleRow; + return this; + } + + /** + * Get redirect incompatible row settings when EnableSkipIncompatibleRow is true. + * + * @return the redirectIncompatibleRowSettings value + */ + public RedirectIncompatibleRowSettings redirectIncompatibleRowSettings() { + return this.redirectIncompatibleRowSettings; + } + + /** + * Set redirect incompatible row settings when EnableSkipIncompatibleRow is true. + * + * @param redirectIncompatibleRowSettings the redirectIncompatibleRowSettings value to set + * @return the CopyActivity object itself. + */ + public CopyActivity withRedirectIncompatibleRowSettings(RedirectIncompatibleRowSettings redirectIncompatibleRowSettings) { + this.redirectIncompatibleRowSettings = redirectIncompatibleRowSettings; + return this; + } + + /** + * Get preserve Rules. + * + * @return the preserveRules value + */ + public List preserveRules() { + return this.preserveRules; + } + + /** + * Set preserve Rules. + * + * @param preserveRules the preserveRules value to set + * @return the CopyActivity object itself. + */ + public CopyActivity withPreserveRules(List preserveRules) { + this.preserveRules = preserveRules; + return this; + } + + /** + * Get preserve rules. + * + * @return the preserve value + */ + public List preserve() { + return this.preserve; + } + + /** + * Set preserve rules. + * + * @param preserve the preserve value to set + * @return the CopyActivity object itself. + */ + public CopyActivity withPreserve(List preserve) { + this.preserve = preserve; + return this; + } + + /** + * Get list of inputs for the activity. + * + * @return the inputs value + */ + public List inputs() { + return this.inputs; + } + + /** + * Set list of inputs for the activity. + * + * @param inputs the inputs value to set + * @return the CopyActivity object itself. + */ + public CopyActivity withInputs(List inputs) { + this.inputs = inputs; + return this; + } + + /** + * Get list of outputs for the activity. + * + * @return the outputs value + */ + public List outputs() { + return this.outputs; + } + + /** + * Set list of outputs for the activity. + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CopySink.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CopySink.java new file mode 100644 index 0000000000000..c15987f812a83 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CopySink.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.v2018_06_01; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +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 = "CosmosDbMongoDbApiSink", value = CosmosDbMongoDbApiSink.class), + @JsonSubTypes.Type(name = "SalesforceServiceCloudSink", value = SalesforceServiceCloudSink.class), + @JsonSubTypes.Type(name = "SalesforceSink", value = SalesforceSink.class), + @JsonSubTypes.Type(name = "AzureDataExplorerSink", value = AzureDataExplorerSink.class), + @JsonSubTypes.Type(name = "CommonDataServiceForAppsSink", value = CommonDataServiceForAppsSink.class), + @JsonSubTypes.Type(name = "DynamicsCrmSink", value = DynamicsCrmSink.class), + @JsonSubTypes.Type(name = "DynamicsSink", value = DynamicsSink.class), + @JsonSubTypes.Type(name = "MicrosoftAccessSink", value = MicrosoftAccessSink.class), + @JsonSubTypes.Type(name = "InformixSink", value = InformixSink.class), + @JsonSubTypes.Type(name = "OdbcSink", value = OdbcSink.class), + @JsonSubTypes.Type(name = "AzureSearchIndexSink", value = AzureSearchIndexSink.class), + @JsonSubTypes.Type(name = "AzureBlobFSSink", value = AzureBlobFSSink.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 = "SqlMISink", value = SqlMISink.class), + @JsonSubTypes.Type(name = "AzureSqlSink", value = AzureSqlSink.class), + @JsonSubTypes.Type(name = "SqlServerSink", value = SqlServerSink.class), + @JsonSubTypes.Type(name = "SqlSink", value = SqlSink.class), + @JsonSubTypes.Type(name = "DocumentDbCollectionSink", value = DocumentDbCollectionSink.class), + @JsonSubTypes.Type(name = "FileSystemSink", value = FileSystemSink.class), + @JsonSubTypes.Type(name = "BlobSink", value = BlobSink.class), + @JsonSubTypes.Type(name = "BinarySink", value = BinarySink.class), + @JsonSubTypes.Type(name = "ParquetSink", value = ParquetSink.class), + @JsonSubTypes.Type(name = "AzureTableSink", value = AzureTableSink.class), + @JsonSubTypes.Type(name = "AzureQueueSink", value = AzureQueueSink.class), + @JsonSubTypes.Type(name = "SapCloudForCustomerSink", value = SapCloudForCustomerSink.class), + @JsonSubTypes.Type(name = "AzurePostgreSqlSink", value = AzurePostgreSqlSink.class), + @JsonSubTypes.Type(name = "DelimitedTextSink", value = DelimitedTextSink.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; + + /** + * The maximum concurrent connection count for the sink data store. Type: + * integer (or Expression with resultType integer). + */ + @JsonProperty(value = "maxConcurrentConnections") + private Object maxConcurrentConnections; + + /** + * Get unmatched properties from the message are deserialized this collection. + * + * @return the additionalProperties value + */ + public Map additionalProperties() { + return this.additionalProperties; + } + + /** + * Set unmatched properties from the message are deserialized this collection. + * + * @param additionalProperties the additionalProperties value to set + * @return the CopySink object itself. + */ + public CopySink withAdditionalProperties(Map additionalProperties) { + this.additionalProperties = additionalProperties; + return this; + } + + /** + * Get write batch size. Type: integer (or Expression with resultType integer), minimum: 0. + * + * @return the writeBatchSize value + */ + public Object writeBatchSize() { + return this.writeBatchSize; + } + + /** + * Set write batch size. Type: integer (or Expression with resultType integer), minimum: 0. + * + * @param writeBatchSize the writeBatchSize value to set + * @return the CopySink object itself. + */ + public CopySink withWriteBatchSize(Object writeBatchSize) { + this.writeBatchSize = writeBatchSize; + return this; + } + + /** + * Get write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + * + * @return the writeBatchTimeout value + */ + public Object writeBatchTimeout() { + return this.writeBatchTimeout; + } + + /** + * Set write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + * + * @param writeBatchTimeout the writeBatchTimeout value to set + * @return the CopySink object itself. + */ + public CopySink withWriteBatchTimeout(Object writeBatchTimeout) { + this.writeBatchTimeout = writeBatchTimeout; + return this; + } + + /** + * Get sink retry count. Type: integer (or Expression with resultType integer). + * + * @return the sinkRetryCount value + */ + public Object sinkRetryCount() { + return this.sinkRetryCount; + } + + /** + * Set sink retry count. Type: integer (or Expression with resultType integer). + * + * @param sinkRetryCount the sinkRetryCount value to set + * @return the CopySink object itself. + */ + public CopySink withSinkRetryCount(Object sinkRetryCount) { + this.sinkRetryCount = sinkRetryCount; + return this; + } + + /** + * Get sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + * + * @return the sinkRetryWait value + */ + public Object sinkRetryWait() { + return this.sinkRetryWait; + } + + /** + * Set sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + * + * @param sinkRetryWait the sinkRetryWait value to set + * @return the CopySink object itself. + */ + public CopySink withSinkRetryWait(Object sinkRetryWait) { + this.sinkRetryWait = sinkRetryWait; + return this; + } + + /** + * Get the maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). + * + * @return the maxConcurrentConnections value + */ + public Object maxConcurrentConnections() { + return this.maxConcurrentConnections; + } + + /** + * Set the maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). + * + * @param maxConcurrentConnections the maxConcurrentConnections value to set + * @return the CopySink object itself. + */ + public CopySink withMaxConcurrentConnections(Object maxConcurrentConnections) { + this.maxConcurrentConnections = maxConcurrentConnections; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CopySource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CopySource.java new file mode 100644 index 0000000000000..91f4083bfac44 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CopySource.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.v2018_06_01; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +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 = "GoogleAdWordsSource", value = GoogleAdWordsSource.class), + @JsonSubTypes.Type(name = "OracleServiceCloudSource", value = OracleServiceCloudSource.class), + @JsonSubTypes.Type(name = "DynamicsAXSource", value = DynamicsAXSource.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 = "AzureBlobFSSource", value = AzureBlobFSSource.class), + @JsonSubTypes.Type(name = "AzureDataLakeStoreSource", value = AzureDataLakeStoreSource.class), + @JsonSubTypes.Type(name = "Office365Source", value = Office365Source.class), + @JsonSubTypes.Type(name = "CosmosDbMongoDbApiSource", value = CosmosDbMongoDbApiSource.class), + @JsonSubTypes.Type(name = "MongoDbV2Source", value = MongoDbV2Source.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 = "TeradataSource", value = TeradataSource.class), + @JsonSubTypes.Type(name = "OracleSource", value = OracleSource.class), + @JsonSubTypes.Type(name = "AzureDataExplorerSource", value = AzureDataExplorerSource.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 = "SqlMISource", value = SqlMISource.class), + @JsonSubTypes.Type(name = "AzureSqlSource", value = AzureSqlSource.class), + @JsonSubTypes.Type(name = "SqlServerSource", value = SqlServerSource.class), + @JsonSubTypes.Type(name = "SqlSource", value = SqlSource.class), + @JsonSubTypes.Type(name = "RestSource", value = RestSource.class), + @JsonSubTypes.Type(name = "SapTableSource", value = SapTableSource.class), + @JsonSubTypes.Type(name = "SapOpenHubSource", value = SapOpenHubSource.class), + @JsonSubTypes.Type(name = "SapHanaSource", value = SapHanaSource.class), + @JsonSubTypes.Type(name = "SapEccSource", value = SapEccSource.class), + @JsonSubTypes.Type(name = "SapCloudForCustomerSource", value = SapCloudForCustomerSource.class), + @JsonSubTypes.Type(name = "SalesforceServiceCloudSource", value = SalesforceServiceCloudSource.class), + @JsonSubTypes.Type(name = "SalesforceSource", value = SalesforceSource.class), + @JsonSubTypes.Type(name = "ODataSource", value = ODataSource.class), + @JsonSubTypes.Type(name = "SybaseSource", value = SybaseSource.class), + @JsonSubTypes.Type(name = "PostgreSqlSource", value = PostgreSqlSource.class), + @JsonSubTypes.Type(name = "MySqlSource", value = MySqlSource.class), + @JsonSubTypes.Type(name = "OdbcSource", value = OdbcSource.class), + @JsonSubTypes.Type(name = "Db2Source", value = Db2Source.class), + @JsonSubTypes.Type(name = "MicrosoftAccessSource", value = MicrosoftAccessSource.class), + @JsonSubTypes.Type(name = "InformixSource", value = InformixSource.class), + @JsonSubTypes.Type(name = "RelationalSource", value = RelationalSource.class), + @JsonSubTypes.Type(name = "CommonDataServiceForAppsSource", value = CommonDataServiceForAppsSource.class), + @JsonSubTypes.Type(name = "DynamicsCrmSource", value = DynamicsCrmSource.class), + @JsonSubTypes.Type(name = "DynamicsSource", value = DynamicsSource.class), + @JsonSubTypes.Type(name = "DocumentDbCollectionSource", value = DocumentDbCollectionSource.class), + @JsonSubTypes.Type(name = "BlobSource", value = BlobSource.class), + @JsonSubTypes.Type(name = "AzureTableSource", value = AzureTableSource.class), + @JsonSubTypes.Type(name = "BinarySource", value = BinarySource.class), + @JsonSubTypes.Type(name = "DelimitedTextSource", value = DelimitedTextSource.class), + @JsonSubTypes.Type(name = "ParquetSource", value = ParquetSource.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; + + /** + * The maximum concurrent connection count for the source data store. Type: + * integer (or Expression with resultType integer). + */ + @JsonProperty(value = "maxConcurrentConnections") + private Object maxConcurrentConnections; + + /** + * Get unmatched properties from the message are deserialized this collection. + * + * @return the additionalProperties value + */ + public Map additionalProperties() { + return this.additionalProperties; + } + + /** + * Set unmatched properties from the message are deserialized this collection. + * + * @param additionalProperties the additionalProperties value to set + * @return the CopySource object itself. + */ + public CopySource withAdditionalProperties(Map additionalProperties) { + this.additionalProperties = additionalProperties; + return this; + } + + /** + * Get source retry count. Type: integer (or Expression with resultType integer). + * + * @return the sourceRetryCount value + */ + public Object sourceRetryCount() { + return this.sourceRetryCount; + } + + /** + * Set source retry count. Type: integer (or Expression with resultType integer). + * + * @param sourceRetryCount the sourceRetryCount value to set + * @return the CopySource object itself. + */ + public CopySource withSourceRetryCount(Object sourceRetryCount) { + this.sourceRetryCount = sourceRetryCount; + return this; + } + + /** + * Get source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + * + * @return the sourceRetryWait value + */ + public Object sourceRetryWait() { + return this.sourceRetryWait; + } + + /** + * Set source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + * + * @param sourceRetryWait the sourceRetryWait value to set + * @return the CopySource object itself. + */ + public CopySource withSourceRetryWait(Object sourceRetryWait) { + this.sourceRetryWait = sourceRetryWait; + return this; + } + + /** + * Get the maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + * + * @return the maxConcurrentConnections value + */ + public Object maxConcurrentConnections() { + return this.maxConcurrentConnections; + } + + /** + * Set the maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + * + * @param maxConcurrentConnections the maxConcurrentConnections value to set + * @return the CopySource object itself. + */ + public CopySource withMaxConcurrentConnections(Object maxConcurrentConnections) { + this.maxConcurrentConnections = maxConcurrentConnections; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CosmosDbLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CosmosDbLinkedService.java new file mode 100644 index 0000000000000..8d6d0cd37be02 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CosmosDbLinkedService.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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. Type: string, SecureString or + * AzureKeyVaultSecretReference. + */ + @JsonProperty(value = "typeProperties.connectionString", required = true) + private Object connectionString; + + /** + * The Azure key vault secret reference of accountKey in connection string. + */ + @JsonProperty(value = "typeProperties.accountKey") + private AzureKeyVaultSecretReference accountKey; + + /** + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; + + /** + * Get the connection string. Type: string, SecureString or AzureKeyVaultSecretReference. + * + * @return the connectionString value + */ + public Object connectionString() { + return this.connectionString; + } + + /** + * Set the connection string. Type: string, SecureString or AzureKeyVaultSecretReference. + * + * @param connectionString the connectionString value to set + * @return the CosmosDbLinkedService object itself. + */ + public CosmosDbLinkedService withConnectionString(Object connectionString) { + this.connectionString = connectionString; + return this; + } + + /** + * Get the Azure key vault secret reference of accountKey in connection string. + * + * @return the accountKey value + */ + public AzureKeyVaultSecretReference accountKey() { + return this.accountKey; + } + + /** + * Set the Azure key vault secret reference of accountKey in connection string. + * + * @param accountKey the accountKey value to set + * @return the CosmosDbLinkedService object itself. + */ + public CosmosDbLinkedService withAccountKey(AzureKeyVaultSecretReference accountKey) { + this.accountKey = accountKey; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the CosmosDbLinkedService object itself. + */ + public CosmosDbLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CosmosDbMongoDbApiCollectionDataset.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CosmosDbMongoDbApiCollectionDataset.java new file mode 100644 index 0000000000000..298666bfa2c20 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CosmosDbMongoDbApiCollectionDataset.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DatasetInner; + +/** + * The CosmosDB (MongoDB API) database dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("CosmosDbMongoDbApiCollection") +@JsonFlatten +public class CosmosDbMongoDbApiCollectionDataset extends DatasetInner { + /** + * The collection name of the CosmosDB (MongoDB API) database. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.collection", required = true) + private Object collection; + + /** + * Get the collection name of the CosmosDB (MongoDB API) database. Type: string (or Expression with resultType string). + * + * @return the collection value + */ + public Object collection() { + return this.collection; + } + + /** + * Set the collection name of the CosmosDB (MongoDB API) database. Type: string (or Expression with resultType string). + * + * @param collection the collection value to set + * @return the CosmosDbMongoDbApiCollectionDataset object itself. + */ + public CosmosDbMongoDbApiCollectionDataset withCollection(Object collection) { + this.collection = collection; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CosmosDbMongoDbApiLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CosmosDbMongoDbApiLinkedService.java new file mode 100644 index 0000000000000..5162e35acfbe9 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CosmosDbMongoDbApiLinkedService.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.LinkedServiceInner; + +/** + * Linked service for CosmosDB (MongoDB API) data source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("CosmosDbMongoDbApi") +@JsonFlatten +public class CosmosDbMongoDbApiLinkedService extends LinkedServiceInner { + /** + * The CosmosDB (MongoDB API) connection string. Type: string, SecureString + * or AzureKeyVaultSecretReference. Type: string, SecureString or + * AzureKeyVaultSecretReference. + */ + @JsonProperty(value = "typeProperties.connectionString", required = true) + private Object connectionString; + + /** + * The name of the CosmosDB (MongoDB API) database that you want to access. + * Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.database", required = true) + private Object database; + + /** + * Get the CosmosDB (MongoDB API) connection string. Type: string, SecureString or AzureKeyVaultSecretReference. Type: string, SecureString or AzureKeyVaultSecretReference. + * + * @return the connectionString value + */ + public Object connectionString() { + return this.connectionString; + } + + /** + * Set the CosmosDB (MongoDB API) connection string. Type: string, SecureString or AzureKeyVaultSecretReference. Type: string, SecureString or AzureKeyVaultSecretReference. + * + * @param connectionString the connectionString value to set + * @return the CosmosDbMongoDbApiLinkedService object itself. + */ + public CosmosDbMongoDbApiLinkedService withConnectionString(Object connectionString) { + this.connectionString = connectionString; + return this; + } + + /** + * Get the name of the CosmosDB (MongoDB API) database that you want to access. Type: string (or Expression with resultType string). + * + * @return the database value + */ + public Object database() { + return this.database; + } + + /** + * Set the name of the CosmosDB (MongoDB API) database that you want to access. Type: string (or Expression with resultType string). + * + * @param database the database value to set + * @return the CosmosDbMongoDbApiLinkedService object itself. + */ + public CosmosDbMongoDbApiLinkedService withDatabase(Object database) { + this.database = database; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CosmosDbMongoDbApiSink.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CosmosDbMongoDbApiSink.java new file mode 100644 index 0000000000000..d62d9d35a500d --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CosmosDbMongoDbApiSink.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity sink for a CosmosDB (MongoDB API) database. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("CosmosDbMongoDbApiSink") +public class CosmosDbMongoDbApiSink extends CopySink { + /** + * Specifies whether the document with same key to be overwritten (upsert) + * rather than throw exception (insert). The default value is "insert". + * Type: string (or Expression with resultType string). Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "writeBehavior") + private Object writeBehavior; + + /** + * Get specifies whether the document with same key to be overwritten (upsert) rather than throw exception (insert). The default value is "insert". Type: string (or Expression with resultType string). Type: string (or Expression with resultType string). + * + * @return the writeBehavior value + */ + public Object writeBehavior() { + return this.writeBehavior; + } + + /** + * Set specifies whether the document with same key to be overwritten (upsert) rather than throw exception (insert). The default value is "insert". Type: string (or Expression with resultType string). Type: string (or Expression with resultType string). + * + * @param writeBehavior the writeBehavior value to set + * @return the CosmosDbMongoDbApiSink object itself. + */ + public CosmosDbMongoDbApiSink withWriteBehavior(Object writeBehavior) { + this.writeBehavior = writeBehavior; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CosmosDbMongoDbApiSource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CosmosDbMongoDbApiSource.java new file mode 100644 index 0000000000000..62ad4d6176bb6 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CosmosDbMongoDbApiSource.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity source for a CosmosDB (MongoDB API) database. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("CosmosDbMongoDbApiSource") +public class CosmosDbMongoDbApiSource extends CopySource { + /** + * Specifies selection filter using query operators. To return all + * documents in a collection, omit this parameter or pass an empty document + * ({}). Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "filter") + private Object filter; + + /** + * Cursor methods for Mongodb query. + */ + @JsonProperty(value = "cursorMethods") + private MongoDbCursorMethodsProperties cursorMethods; + + /** + * Specifies the number of documents to return in each batch of the + * response from MongoDB instance. In most cases, modifying the batch size + * will not affect the user or the application. This property's main + * purpose is to avoid hit the limitation of response size. Type: integer + * (or Expression with resultType integer). + */ + @JsonProperty(value = "batchSize") + private Object batchSize; + + /** + * Get specifies selection filter using query operators. To return all documents in a collection, omit this parameter or pass an empty document ({}). Type: string (or Expression with resultType string). + * + * @return the filter value + */ + public Object filter() { + return this.filter; + } + + /** + * Set specifies selection filter using query operators. To return all documents in a collection, omit this parameter or pass an empty document ({}). Type: string (or Expression with resultType string). + * + * @param filter the filter value to set + * @return the CosmosDbMongoDbApiSource object itself. + */ + public CosmosDbMongoDbApiSource withFilter(Object filter) { + this.filter = filter; + return this; + } + + /** + * Get cursor methods for Mongodb query. + * + * @return the cursorMethods value + */ + public MongoDbCursorMethodsProperties cursorMethods() { + return this.cursorMethods; + } + + /** + * Set cursor methods for Mongodb query. + * + * @param cursorMethods the cursorMethods value to set + * @return the CosmosDbMongoDbApiSource object itself. + */ + public CosmosDbMongoDbApiSource withCursorMethods(MongoDbCursorMethodsProperties cursorMethods) { + this.cursorMethods = cursorMethods; + return this; + } + + /** + * Get specifies the number of documents to return in each batch of the response from MongoDB instance. In most cases, modifying the batch size will not affect the user or the application. This property's main purpose is to avoid hit the limitation of response size. Type: integer (or Expression with resultType integer). + * + * @return the batchSize value + */ + public Object batchSize() { + return this.batchSize; + } + + /** + * Set specifies the number of documents to return in each batch of the response from MongoDB instance. In most cases, modifying the batch size will not affect the user or the application. This property's main purpose is to avoid hit the limitation of response size. Type: integer (or Expression with resultType integer). + * + * @param batchSize the batchSize value to set + * @return the CosmosDbMongoDbApiSource object itself. + */ + public CosmosDbMongoDbApiSource withBatchSize(Object batchSize) { + this.batchSize = batchSize; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CouchbaseLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CouchbaseLinkedService.java new file mode 100644 index 0000000000000..9553795cb47ce --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CouchbaseLinkedService.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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. Type: string, SecureString or + * AzureKeyVaultSecretReference. + */ + @JsonProperty(value = "typeProperties.connectionString") + private Object connectionString; + + /** + * The Azure key vault secret reference of credString in connection string. + */ + @JsonProperty(value = "typeProperties.credString") + private AzureKeyVaultSecretReference credString; + + /** + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; + + /** + * Get an ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. + * + * @return the connectionString value + */ + public Object connectionString() { + return this.connectionString; + } + + /** + * Set an ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. + * + * @param connectionString the connectionString value to set + * @return the CouchbaseLinkedService object itself. + */ + public CouchbaseLinkedService withConnectionString(Object connectionString) { + this.connectionString = connectionString; + return this; + } + + /** + * Get the Azure key vault secret reference of credString in connection string. + * + * @return the credString value + */ + public AzureKeyVaultSecretReference credString() { + return this.credString; + } + + /** + * Set the Azure key vault secret reference of credString in connection string. + * + * @param credString the credString value to set + * @return the CouchbaseLinkedService object itself. + */ + public CouchbaseLinkedService withCredString(AzureKeyVaultSecretReference credString) { + this.credString = credString; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the CouchbaseLinkedService object itself. + */ + public CouchbaseLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CouchbaseSource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CouchbaseSource.java new file mode 100644 index 0000000000000..a54562e88b0d1 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 a query to retrieve data from source. Type: string (or Expression with resultType string). + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set a query to retrieve data from source. Type: string (or Expression with resultType string). + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CouchbaseTableDataset.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CouchbaseTableDataset.java new file mode 100644 index 0000000000000..d9a6d850de076 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CouchbaseTableDataset.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DatasetInner; + +/** + * Couchbase server dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("CouchbaseTable") +@JsonFlatten +public class CouchbaseTableDataset extends DatasetInner { + /** + * The table name. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; + + /** + * Get the table name. Type: string (or Expression with resultType string). + * + * @return the tableName value + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set the table name. Type: string (or Expression with resultType string). + * + * @param tableName the tableName value to set + * @return the CouchbaseTableDataset object itself. + */ + public CouchbaseTableDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CreateLinkedIntegrationRuntimeRequest.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CreateLinkedIntegrationRuntimeRequest.java new file mode 100644 index 0000000000000..92525b5f8f7ca --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CreateLinkedIntegrationRuntimeRequest.java @@ -0,0 +1,124 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The linked integration runtime information. + */ +public class CreateLinkedIntegrationRuntimeRequest { + /** + * The name of the linked integration runtime. + */ + @JsonProperty(value = "name") + private String name; + + /** + * The ID of the subscription that the linked integration runtime belongs + * to. + */ + @JsonProperty(value = "subscriptionId") + private String subscriptionId; + + /** + * The name of the data factory that the linked integration runtime belongs + * to. + */ + @JsonProperty(value = "dataFactoryName") + private String dataFactoryName; + + /** + * The location of the data factory that the linked integration runtime + * belongs to. + */ + @JsonProperty(value = "dataFactoryLocation") + private String dataFactoryLocation; + + /** + * Get the name of the linked integration runtime. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Set the name of the linked integration runtime. + * + * @param name the name value to set + * @return the CreateLinkedIntegrationRuntimeRequest object itself. + */ + public CreateLinkedIntegrationRuntimeRequest withName(String name) { + this.name = name; + return this; + } + + /** + * Get the ID of the subscription that the linked integration runtime belongs to. + * + * @return the subscriptionId value + */ + public String subscriptionId() { + return this.subscriptionId; + } + + /** + * Set the ID of the subscription that the linked integration runtime belongs to. + * + * @param subscriptionId the subscriptionId value to set + * @return the CreateLinkedIntegrationRuntimeRequest object itself. + */ + public CreateLinkedIntegrationRuntimeRequest withSubscriptionId(String subscriptionId) { + this.subscriptionId = subscriptionId; + return this; + } + + /** + * Get the name of the data factory that the linked integration runtime belongs to. + * + * @return the dataFactoryName value + */ + public String dataFactoryName() { + return this.dataFactoryName; + } + + /** + * Set the name of the data factory that the linked integration runtime belongs to. + * + * @param dataFactoryName the dataFactoryName value to set + * @return the CreateLinkedIntegrationRuntimeRequest object itself. + */ + public CreateLinkedIntegrationRuntimeRequest withDataFactoryName(String dataFactoryName) { + this.dataFactoryName = dataFactoryName; + return this; + } + + /** + * Get the location of the data factory that the linked integration runtime belongs to. + * + * @return the dataFactoryLocation value + */ + public String dataFactoryLocation() { + return this.dataFactoryLocation; + } + + /** + * Set the location of the data factory that the linked integration runtime belongs to. + * + * @param dataFactoryLocation the dataFactoryLocation value to set + * @return the CreateLinkedIntegrationRuntimeRequest object itself. + */ + public CreateLinkedIntegrationRuntimeRequest withDataFactoryLocation(String dataFactoryLocation) { + this.dataFactoryLocation = dataFactoryLocation; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CreateRunResponse.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CreateRunResponse.java new file mode 100644 index 0000000000000..bcfd768485eba --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CreateRunResponse.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.v2018_06_01; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DataFactoryManager; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.CreateRunResponseInner; + +/** + * Type representing CreateRunResponse. + */ +public interface CreateRunResponse extends HasInner, HasManager { + /** + * @return the runId value. + */ + String runId(); + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CustomActivity.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CustomActivity.java new file mode 100644 index 0000000000000..c5dc3d887fdb0 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CustomActivity.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.v2018_06_01; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +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; + + /** + * The retention time for the files submitted for custom activity. Type: + * double (or Expression with resultType double). + */ + @JsonProperty(value = "typeProperties.retentionTimeInDays") + private Object retentionTimeInDays; + + /** + * Get command for custom activity Type: string (or Expression with resultType string). + * + * @return the command value + */ + public Object command() { + return this.command; + } + + /** + * Set command for custom activity Type: string (or Expression with resultType string). + * + * @param command the command value to set + * @return the CustomActivity object itself. + */ + public CustomActivity withCommand(Object command) { + this.command = command; + return this; + } + + /** + * Get resource linked service reference. + * + * @return the resourceLinkedService value + */ + public LinkedServiceReference resourceLinkedService() { + return this.resourceLinkedService; + } + + /** + * Set resource linked service reference. + * + * @param resourceLinkedService the resourceLinkedService value to set + * @return the CustomActivity object itself. + */ + public CustomActivity withResourceLinkedService(LinkedServiceReference resourceLinkedService) { + this.resourceLinkedService = resourceLinkedService; + return this; + } + + /** + * Get folder path for resource files Type: string (or Expression with resultType string). + * + * @return the folderPath value + */ + public Object folderPath() { + return this.folderPath; + } + + /** + * Set folder path for resource files Type: string (or Expression with resultType string). + * + * @param folderPath the folderPath value to set + * @return the CustomActivity object itself. + */ + public CustomActivity withFolderPath(Object folderPath) { + this.folderPath = folderPath; + return this; + } + + /** + * Get reference objects. + * + * @return the referenceObjects value + */ + public CustomActivityReferenceObject referenceObjects() { + return this.referenceObjects; + } + + /** + * Set reference objects. + * + * @param referenceObjects the referenceObjects value to set + * @return the CustomActivity object itself. + */ + public CustomActivity withReferenceObjects(CustomActivityReferenceObject referenceObjects) { + this.referenceObjects = referenceObjects; + return this; + } + + /** + * Get user defined property bag. There is no restriction on the keys or values that can be used. The user specified custom activity has the full responsibility to consume and interpret the content defined. + * + * @return the extendedProperties value + */ + public Map extendedProperties() { + return this.extendedProperties; + } + + /** + * Set user defined property bag. There is no restriction on the keys or values that can be used. The user specified custom activity has the full responsibility to consume and interpret the content defined. + * + * @param extendedProperties the extendedProperties value to set + * @return the CustomActivity object itself. + */ + public CustomActivity withExtendedProperties(Map extendedProperties) { + this.extendedProperties = extendedProperties; + return this; + } + + /** + * Get the retention time for the files submitted for custom activity. Type: double (or Expression with resultType double). + * + * @return the retentionTimeInDays value + */ + public Object retentionTimeInDays() { + return this.retentionTimeInDays; + } + + /** + * Set the retention time for the files submitted for custom activity. Type: double (or Expression with resultType double). + * + * @param retentionTimeInDays the retentionTimeInDays value to set + * @return the CustomActivity object itself. + */ + public CustomActivity withRetentionTimeInDays(Object retentionTimeInDays) { + this.retentionTimeInDays = retentionTimeInDays; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CustomActivityReferenceObject.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CustomActivityReferenceObject.java new file mode 100644 index 0000000000000..075da6b2a935b --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 linked service references. + * + * @return the linkedServices value + */ + public List linkedServices() { + return this.linkedServices; + } + + /** + * Set linked service references. + * + * @param linkedServices the linkedServices value to set + * @return the CustomActivityReferenceObject object itself. + */ + public CustomActivityReferenceObject withLinkedServices(List linkedServices) { + this.linkedServices = linkedServices; + return this; + } + + /** + * Get dataset references. + * + * @return the datasets value + */ + public List datasets() { + return this.datasets; + } + + /** + * Set dataset references. + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CustomDataSourceLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CustomDataSourceLinkedService.java new file mode 100644 index 0000000000000..0d1faf1b492d3 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.azure.management.datafactory.v2018_06_01.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 custom linked service properties. + * + * @return the typeProperties value + */ + public Object typeProperties() { + return this.typeProperties; + } + + /** + * Set custom linked service properties. + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CustomDataset.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CustomDataset.java new file mode 100644 index 0000000000000..4cd4e280b3c3e --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.azure.management.datafactory.v2018_06_01.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") + private Object typeProperties; + + /** + * Get custom dataset properties. + * + * @return the typeProperties value + */ + public Object typeProperties() { + return this.typeProperties; + } + + /** + * Set custom dataset properties. + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DataLakeAnalyticsUSQLActivity.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DataLakeAnalyticsUSQLActivity.java new file mode 100644 index 0000000000000..ce4cf0411ea36 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +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 case-sensitive path to folder that contains the U-SQL script. Type: string (or Expression with resultType string). + * + * @return the scriptPath value + */ + public Object scriptPath() { + return this.scriptPath; + } + + /** + * Set case-sensitive path to folder that contains the U-SQL script. Type: string (or Expression with resultType string). + * + * @param scriptPath the scriptPath value to set + * @return the DataLakeAnalyticsUSQLActivity object itself. + */ + public DataLakeAnalyticsUSQLActivity withScriptPath(Object scriptPath) { + this.scriptPath = scriptPath; + return this; + } + + /** + * Get script linked service reference. + * + * @return the scriptLinkedService value + */ + public LinkedServiceReference scriptLinkedService() { + return this.scriptLinkedService; + } + + /** + * Set script linked service reference. + * + * @param scriptLinkedService the scriptLinkedService value to set + * @return the DataLakeAnalyticsUSQLActivity object itself. + */ + public DataLakeAnalyticsUSQLActivity withScriptLinkedService(LinkedServiceReference scriptLinkedService) { + this.scriptLinkedService = scriptLinkedService; + return this; + } + + /** + * Get the maximum number of nodes simultaneously used to run the job. Default value is 1. Type: integer (or Expression with resultType integer), minimum: 1. + * + * @return the degreeOfParallelism value + */ + public Object degreeOfParallelism() { + return this.degreeOfParallelism; + } + + /** + * Set the maximum number of nodes simultaneously used to run the job. Default value is 1. Type: integer (or Expression with resultType integer), minimum: 1. + * + * @param degreeOfParallelism the degreeOfParallelism value to set + * @return the DataLakeAnalyticsUSQLActivity object itself. + */ + public DataLakeAnalyticsUSQLActivity withDegreeOfParallelism(Object degreeOfParallelism) { + this.degreeOfParallelism = degreeOfParallelism; + return this; + } + + /** + * Get determines which jobs out of all that are queued should be selected to run first. The lower the number, the higher the priority. Default value is 1000. Type: integer (or Expression with resultType integer), minimum: 1. + * + * @return the priority value + */ + public Object priority() { + return this.priority; + } + + /** + * Set determines which jobs out of all that are queued should be selected to run first. The lower the number, the higher the priority. Default value is 1000. Type: integer (or Expression with resultType integer), minimum: 1. + * + * @param priority the priority value to set + * @return the DataLakeAnalyticsUSQLActivity object itself. + */ + public DataLakeAnalyticsUSQLActivity withPriority(Object priority) { + this.priority = priority; + return this; + } + + /** + * Get parameters for U-SQL job request. + * + * @return the parameters value + */ + public Map parameters() { + return this.parameters; + } + + /** + * Set parameters for U-SQL job request. + * + * @param parameters the parameters value to set + * @return the DataLakeAnalyticsUSQLActivity object itself. + */ + public DataLakeAnalyticsUSQLActivity withParameters(Map parameters) { + this.parameters = parameters; + return this; + } + + /** + * Get runtime version of the U-SQL engine to use. Type: string (or Expression with resultType string). + * + * @return the runtimeVersion value + */ + public Object runtimeVersion() { + return this.runtimeVersion; + } + + /** + * Set runtime version of the U-SQL engine to use. Type: string (or Expression with resultType string). + * + * @param runtimeVersion the runtimeVersion value to set + * @return the DataLakeAnalyticsUSQLActivity object itself. + */ + public DataLakeAnalyticsUSQLActivity withRuntimeVersion(Object runtimeVersion) { + this.runtimeVersion = runtimeVersion; + return this; + } + + /** + * Get compilation mode of U-SQL. Must be one of these values : Semantic, Full and SingleBox. Type: string (or Expression with resultType string). + * + * @return the compilationMode value + */ + public Object compilationMode() { + return this.compilationMode; + } + + /** + * Set compilation mode of U-SQL. Must be one of these values : Semantic, Full and SingleBox. Type: string (or Expression with resultType string). + * + * @param compilationMode the compilationMode value to set + * @return the DataLakeAnalyticsUSQLActivity object itself. + */ + public DataLakeAnalyticsUSQLActivity withCompilationMode(Object compilationMode) { + this.compilationMode = compilationMode; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DatabricksNotebookActivity.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DatabricksNotebookActivity.java new file mode 100644 index 0000000000000..800ae36ea6287 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DatabricksNotebookActivity.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.v2018_06_01; + +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.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; + + /** + * A list of libraries to be installed on the cluster that will execute the + * job. + */ + @JsonProperty(value = "typeProperties.libraries") + private List> libraries; + + /** + * Get the absolute path of the notebook to be run in the Databricks Workspace. This path must begin with a slash. Type: string (or Expression with resultType string). + * + * @return the notebookPath value + */ + public Object notebookPath() { + return this.notebookPath; + } + + /** + * Set the absolute path of the notebook to be run in the Databricks Workspace. This path must begin with a slash. Type: string (or Expression with resultType string). + * + * @param notebookPath the notebookPath value to set + * @return the DatabricksNotebookActivity object itself. + */ + public DatabricksNotebookActivity withNotebookPath(Object notebookPath) { + this.notebookPath = notebookPath; + return this; + } + + /** + * Get base parameters to be used for each run of this job.If the notebook takes a parameter that is not specified, the default value from the notebook will be used. + * + * @return the baseParameters value + */ + public Map baseParameters() { + return this.baseParameters; + } + + /** + * Set base parameters to be used for each run of this job.If the notebook takes a parameter that is not specified, the default value from the notebook will be used. + * + * @param baseParameters the baseParameters value to set + * @return the DatabricksNotebookActivity object itself. + */ + public DatabricksNotebookActivity withBaseParameters(Map baseParameters) { + this.baseParameters = baseParameters; + return this; + } + + /** + * Get a list of libraries to be installed on the cluster that will execute the job. + * + * @return the libraries value + */ + public List> libraries() { + return this.libraries; + } + + /** + * Set a list of libraries to be installed on the cluster that will execute the job. + * + * @param libraries the libraries value to set + * @return the DatabricksNotebookActivity object itself. + */ + public DatabricksNotebookActivity withLibraries(List> libraries) { + this.libraries = libraries; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DatabricksSparkJarActivity.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DatabricksSparkJarActivity.java new file mode 100644 index 0000000000000..2211a829df9e5 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DatabricksSparkJarActivity.java @@ -0,0 +1,106 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +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; + +/** + * DatabricksSparkJar activity. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("DatabricksSparkJar") +@JsonFlatten +public class DatabricksSparkJarActivity extends ExecutionActivity { + /** + * The full name of the class containing the main method to be executed. + * This class must be contained in a JAR provided as a library. Type: + * string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.mainClassName", required = true) + private Object mainClassName; + + /** + * Parameters that will be passed to the main method. + */ + @JsonProperty(value = "typeProperties.parameters") + private List parameters; + + /** + * A list of libraries to be installed on the cluster that will execute the + * job. + */ + @JsonProperty(value = "typeProperties.libraries") + private List> libraries; + + /** + * Get the full name of the class containing the main method to be executed. This class must be contained in a JAR provided as a library. Type: string (or Expression with resultType string). + * + * @return the mainClassName value + */ + public Object mainClassName() { + return this.mainClassName; + } + + /** + * Set the full name of the class containing the main method to be executed. This class must be contained in a JAR provided as a library. Type: string (or Expression with resultType string). + * + * @param mainClassName the mainClassName value to set + * @return the DatabricksSparkJarActivity object itself. + */ + public DatabricksSparkJarActivity withMainClassName(Object mainClassName) { + this.mainClassName = mainClassName; + return this; + } + + /** + * Get parameters that will be passed to the main method. + * + * @return the parameters value + */ + public List parameters() { + return this.parameters; + } + + /** + * Set parameters that will be passed to the main method. + * + * @param parameters the parameters value to set + * @return the DatabricksSparkJarActivity object itself. + */ + public DatabricksSparkJarActivity withParameters(List parameters) { + this.parameters = parameters; + return this; + } + + /** + * Get a list of libraries to be installed on the cluster that will execute the job. + * + * @return the libraries value + */ + public List> libraries() { + return this.libraries; + } + + /** + * Set a list of libraries to be installed on the cluster that will execute the job. + * + * @param libraries the libraries value to set + * @return the DatabricksSparkJarActivity object itself. + */ + public DatabricksSparkJarActivity withLibraries(List> libraries) { + this.libraries = libraries; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DatabricksSparkPythonActivity.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DatabricksSparkPythonActivity.java new file mode 100644 index 0000000000000..0043ddc7a6325 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DatabricksSparkPythonActivity.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.v2018_06_01; + +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; + +/** + * DatabricksSparkPython activity. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("DatabricksSparkPython") +@JsonFlatten +public class DatabricksSparkPythonActivity extends ExecutionActivity { + /** + * The URI of the Python file to be executed. DBFS paths are supported. + * Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.pythonFile", required = true) + private Object pythonFile; + + /** + * Command line parameters that will be passed to the Python file. + */ + @JsonProperty(value = "typeProperties.parameters") + private List parameters; + + /** + * A list of libraries to be installed on the cluster that will execute the + * job. + */ + @JsonProperty(value = "typeProperties.libraries") + private List> libraries; + + /** + * Get the URI of the Python file to be executed. DBFS paths are supported. Type: string (or Expression with resultType string). + * + * @return the pythonFile value + */ + public Object pythonFile() { + return this.pythonFile; + } + + /** + * Set the URI of the Python file to be executed. DBFS paths are supported. Type: string (or Expression with resultType string). + * + * @param pythonFile the pythonFile value to set + * @return the DatabricksSparkPythonActivity object itself. + */ + public DatabricksSparkPythonActivity withPythonFile(Object pythonFile) { + this.pythonFile = pythonFile; + return this; + } + + /** + * Get command line parameters that will be passed to the Python file. + * + * @return the parameters value + */ + public List parameters() { + return this.parameters; + } + + /** + * Set command line parameters that will be passed to the Python file. + * + * @param parameters the parameters value to set + * @return the DatabricksSparkPythonActivity object itself. + */ + public DatabricksSparkPythonActivity withParameters(List parameters) { + this.parameters = parameters; + return this; + } + + /** + * Get a list of libraries to be installed on the cluster that will execute the job. + * + * @return the libraries value + */ + public List> libraries() { + return this.libraries; + } + + /** + * Set a list of libraries to be installed on the cluster that will execute the job. + * + * @param libraries the libraries value to set + * @return the DatabricksSparkPythonActivity object itself. + */ + public DatabricksSparkPythonActivity withLibraries(List> libraries) { + this.libraries = libraries; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DatasetBZip2Compression.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DatasetBZip2Compression.java new file mode 100644 index 0000000000000..86808cbf6aba1 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DatasetCompression.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DatasetCompression.java new file mode 100644 index 0000000000000..9100ff747aefe --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +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 unmatched properties from the message are deserialized this collection. + * + * @return the additionalProperties value + */ + public Map additionalProperties() { + return this.additionalProperties; + } + + /** + * Set unmatched properties from the message are deserialized this collection. + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DatasetDeflateCompression.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DatasetDeflateCompression.java new file mode 100644 index 0000000000000..0bdff6c1aa7e3 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DatasetDeflateCompression.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.v2018_06_01; + +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. + */ + @JsonProperty(value = "level") + private Object level; + + /** + * Get the Deflate compression level. + * + * @return the level value + */ + public Object level() { + return this.level; + } + + /** + * Set the Deflate compression level. + * + * @param level the level value to set + * @return the DatasetDeflateCompression object itself. + */ + public DatasetDeflateCompression withLevel(Object level) { + this.level = level; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DatasetFolder.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DatasetFolder.java new file mode 100644 index 0000000000000..2a0d1e569e5eb --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DatasetFolder.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The folder that this Dataset is in. If not specified, Dataset will appear at + * the root level. + */ +public class DatasetFolder { + /** + * The name of the folder that this Dataset is in. + */ + @JsonProperty(value = "name") + private String name; + + /** + * Get the name of the folder that this Dataset is in. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Set the name of the folder that this Dataset is in. + * + * @param name the name value to set + * @return the DatasetFolder object itself. + */ + public DatasetFolder withName(String name) { + this.name = name; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DatasetGZipCompression.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DatasetGZipCompression.java new file mode 100644 index 0000000000000..bd39fcd13b3fa --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DatasetGZipCompression.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.v2018_06_01; + +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. + */ + @JsonProperty(value = "level") + private Object level; + + /** + * Get the GZip compression level. + * + * @return the level value + */ + public Object level() { + return this.level; + } + + /** + * Set the GZip compression level. + * + * @param level the level value to set + * @return the DatasetGZipCompression object itself. + */ + public DatasetGZipCompression withLevel(Object level) { + this.level = level; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DatasetLocation.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DatasetLocation.java new file mode 100644 index 0000000000000..b994d5b9c2c45 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DatasetLocation.java @@ -0,0 +1,124 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Dataset location. + */ +public class DatasetLocation { + /** + * Unmatched properties from the message are deserialized this collection. + */ + @JsonProperty(value = "") + private Map additionalProperties; + + /** + * Type of dataset storage location. + */ + @JsonProperty(value = "type", required = true) + private String type; + + /** + * Specify the folder path of dataset. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "folderPath") + private Object folderPath; + + /** + * Specify the file name of dataset. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "fileName") + private Object fileName; + + /** + * Get unmatched properties from the message are deserialized this collection. + * + * @return the additionalProperties value + */ + public Map additionalProperties() { + return this.additionalProperties; + } + + /** + * Set unmatched properties from the message are deserialized this collection. + * + * @param additionalProperties the additionalProperties value to set + * @return the DatasetLocation object itself. + */ + public DatasetLocation withAdditionalProperties(Map additionalProperties) { + this.additionalProperties = additionalProperties; + return this; + } + + /** + * Get type of dataset storage location. + * + * @return the type value + */ + public String type() { + return this.type; + } + + /** + * Set type of dataset storage location. + * + * @param type the type value to set + * @return the DatasetLocation object itself. + */ + public DatasetLocation withType(String type) { + this.type = type; + return this; + } + + /** + * Get specify the folder path of dataset. Type: string (or Expression with resultType string). + * + * @return the folderPath value + */ + public Object folderPath() { + return this.folderPath; + } + + /** + * Set specify the folder path of dataset. Type: string (or Expression with resultType string). + * + * @param folderPath the folderPath value to set + * @return the DatasetLocation object itself. + */ + public DatasetLocation withFolderPath(Object folderPath) { + this.folderPath = folderPath; + return this; + } + + /** + * Get specify the file name of dataset. Type: string (or Expression with resultType string). + * + * @return the fileName value + */ + public Object fileName() { + return this.fileName; + } + + /** + * Set specify the file name of dataset. Type: string (or Expression with resultType string). + * + * @param fileName the fileName value to set + * @return the DatasetLocation object itself. + */ + public DatasetLocation withFileName(Object fileName) { + this.fileName = fileName; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DatasetReference.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DatasetReference.java new file mode 100644 index 0000000000000..ebee05cd61028 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DatasetReference.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.v2018_06_01; + +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. + * @param referenceName reference dataset name. + */ + public DatasetReference() { + type = "DatasetReference"; + } + + /** + * Get dataset reference type. + * + * @return the type value + */ + public String type() { + return this.type; + } + + /** + * Set dataset reference type. + * + * @param type the type value to set + * @return the DatasetReference object itself. + */ + public DatasetReference withType(String type) { + this.type = type; + return this; + } + + /** + * Get reference dataset name. + * + * @return the referenceName value + */ + public String referenceName() { + return this.referenceName; + } + + /** + * Set reference dataset name. + * + * @param referenceName the referenceName value to set + * @return the DatasetReference object itself. + */ + public DatasetReference withReferenceName(String referenceName) { + this.referenceName = referenceName; + return this; + } + + /** + * Get arguments for dataset. + * + * @return the parameters value + */ + public Map parameters() { + return this.parameters; + } + + /** + * Set arguments for dataset. + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DatasetResource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DatasetResource.java new file mode 100644 index 0000000000000..e27463e729d42 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DatasetResource.java @@ -0,0 +1,149 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DatasetResourceInner; +import com.microsoft.azure.arm.model.Indexable; +import com.microsoft.azure.arm.model.Refreshable; +import com.microsoft.azure.arm.model.Updatable; +import com.microsoft.azure.arm.model.Appliable; +import com.microsoft.azure.arm.model.Creatable; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DataFactoryManager; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DatasetInner; +import java.util.Map; +import java.util.List; + +/** + * Type representing DatasetResource. + */ +public interface DatasetResource extends HasInner, Indexable, Refreshable, Updatable, HasManager { + /** + * @return the etag value. + */ + String etag(); + + /** + * @return the id value. + */ + String id(); + + /** + * @return the name value. + */ + String name(); + + /** + * @return the properties value. + */ + DatasetInner properties(); + + /** + * @return the type value. + */ + String type(); + + /** + * The entirety of the DatasetResource definition. + */ + interface Definition extends DefinitionStages.Blank, DefinitionStages.WithFactory, DefinitionStages.WithIfMatch, DefinitionStages.WithProperties, DefinitionStages.WithCreate { + } + + /** + * Grouping of DatasetResource definition stages. + */ + interface DefinitionStages { + /** + * The first stage of a DatasetResource definition. + */ + interface Blank extends WithFactory { + } + + /** + * The stage of the datasetresource definition allowing to specify Factory. + */ + interface WithFactory { + /** + * Specifies resourceGroupName, factoryName. + * @param resourceGroupName The resource group name + * @param factoryName The factory name + * @return the next definition stage + */ + WithIfMatch withExistingFactory(String resourceGroupName, String factoryName); + } + + /** + * The stage of the datasetresource definition allowing to specify IfMatch. + */ + interface WithIfMatch { + /** + * Specifies ifMatch. + * @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 + * @return the next definition stage + */ + WithProperties withIfMatch(String ifMatch); + } + + /** + * The stage of the datasetresource definition allowing to specify Properties. + */ + interface WithProperties { + /** + * Specifies properties. + * @param properties Dataset properties + * @return the next definition stage + */ + WithCreate withProperties(DatasetInner properties); + } + + /** + * The stage of the definition which contains all the minimum required inputs for + * the resource to be created (via {@link WithCreate#create()}), but also allows + * for any other optional settings to be specified. + */ + interface WithCreate extends Creatable { + } + } + /** + * The template for a DatasetResource update operation, containing all the settings that can be modified. + */ + interface Update extends Appliable, UpdateStages.WithIfMatch, UpdateStages.WithProperties { + } + + /** + * Grouping of DatasetResource update stages. + */ + interface UpdateStages { + /** + * The stage of the datasetresource update allowing to specify IfMatch. + */ + interface WithIfMatch { + /** + * Specifies ifMatch. + * @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 + * @return the next update stage + */ + Update withIfMatch(String ifMatch); + } + + /** + * The stage of the datasetresource update allowing to specify Properties. + */ + interface WithProperties { + /** + * Specifies properties. + * @param properties Dataset properties + * @return the next update stage + */ + Update withProperties(DatasetInner properties); + } + + } +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DatasetStorageFormat.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DatasetStorageFormat.java new file mode 100644 index 0000000000000..635e1a2c60130 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +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 unmatched properties from the message are deserialized this collection. + * + * @return the additionalProperties value + */ + public Map additionalProperties() { + return this.additionalProperties; + } + + /** + * Set unmatched properties from the message are deserialized this collection. + * + * @param additionalProperties the additionalProperties value to set + * @return the DatasetStorageFormat object itself. + */ + public DatasetStorageFormat withAdditionalProperties(Map additionalProperties) { + this.additionalProperties = additionalProperties; + return this; + } + + /** + * Get serializer. Type: string (or Expression with resultType string). + * + * @return the serializer value + */ + public Object serializer() { + return this.serializer; + } + + /** + * Set serializer. Type: string (or Expression with resultType string). + * + * @param serializer the serializer value to set + * @return the DatasetStorageFormat object itself. + */ + public DatasetStorageFormat withSerializer(Object serializer) { + this.serializer = serializer; + return this; + } + + /** + * Get deserializer. Type: string (or Expression with resultType string). + * + * @return the deserializer value + */ + public Object deserializer() { + return this.deserializer; + } + + /** + * Set deserializer. Type: string (or Expression with resultType string). + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DatasetZipDeflateCompression.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DatasetZipDeflateCompression.java new file mode 100644 index 0000000000000..6e943dd0b288c --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DatasetZipDeflateCompression.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.v2018_06_01; + +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. + */ + @JsonProperty(value = "level") + private Object level; + + /** + * Get the ZipDeflate compression level. + * + * @return the level value + */ + public Object level() { + return this.level; + } + + /** + * Set the ZipDeflate compression level. + * + * @param level the level value to set + * @return the DatasetZipDeflateCompression object itself. + */ + public DatasetZipDeflateCompression withLevel(Object level) { + this.level = level; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/Datasets.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/Datasets.java new file mode 100644 index 0000000000000..05ebdecfa5112 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/Datasets.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.v2018_06_01; + +import com.microsoft.azure.arm.collection.SupportsCreating; +import rx.Completable; +import rx.Observable; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DatasetsInner; +import com.microsoft.azure.arm.model.HasInner; + +/** + * Type representing Datasets. + */ +public interface Datasets extends SupportsCreating, HasInner { + /** + * 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 for the request + */ + Observable getAsync(String resourceGroupName, String factoryName, String datasetName); + + /** + * Lists datasets. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable listByFactoryAsync(final String resourceGroupName, final String factoryName); + + /** + * 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 observable for the request + */ + Completable deleteAsync(String resourceGroupName, String factoryName, String datasetName); + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DayOfWeek.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DayOfWeek.java new file mode 100644 index 0000000000000..9e021784316fd --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DaysOfWeek.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DaysOfWeek.java new file mode 100644 index 0000000000000..e4972e73cc3dd --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/Db2AuthenticationType.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/Db2AuthenticationType.java new file mode 100644 index 0000000000000..d3841bfba3c5b --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/Db2LinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/Db2LinkedService.java new file mode 100644 index 0000000000000..707beef0a5c62 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/Db2LinkedService.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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; + + /** + * 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 server name for connection. Type: string (or Expression with resultType string). + * + * @return the server value + */ + public Object server() { + return this.server; + } + + /** + * Set server name for connection. Type: string (or Expression with resultType string). + * + * @param server the server value to set + * @return the Db2LinkedService object itself. + */ + public Db2LinkedService withServer(Object server) { + this.server = server; + return this; + } + + /** + * Get database name for connection. Type: string (or Expression with resultType string). + * + * @return the database value + */ + public Object database() { + return this.database; + } + + /** + * Set database name for connection. Type: string (or Expression with resultType string). + * + * @param database the database value to set + * @return the Db2LinkedService object itself. + */ + public Db2LinkedService withDatabase(Object database) { + this.database = database; + return this; + } + + /** + * Get authenticationType to be used for connection. Possible values include: 'Basic'. + * + * @return the authenticationType value + */ + public Db2AuthenticationType authenticationType() { + return this.authenticationType; + } + + /** + * Set authenticationType to be used for connection. Possible values include: 'Basic'. + * + * @param authenticationType the authenticationType value to set + * @return the Db2LinkedService object itself. + */ + public Db2LinkedService withAuthenticationType(Db2AuthenticationType authenticationType) { + this.authenticationType = authenticationType; + return this; + } + + /** + * Get username for authentication. Type: string (or Expression with resultType string). + * + * @return the username value + */ + public Object username() { + return this.username; + } + + /** + * Set username for authentication. Type: string (or Expression with resultType string). + * + * @param username the username value to set + * @return the Db2LinkedService object itself. + */ + public Db2LinkedService withUsername(Object username) { + this.username = username; + return this; + } + + /** + * Get password for authentication. + * + * @return the password value + */ + public SecretBase password() { + return this.password; + } + + /** + * Set password for authentication. + * + * @param password the password value to set + * @return the Db2LinkedService object itself. + */ + public Db2LinkedService withPassword(SecretBase password) { + this.password = password; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the Db2LinkedService object itself. + */ + public Db2LinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/Db2Source.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/Db2Source.java new file mode 100644 index 0000000000000..8c1fc68e3b9ea --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/Db2Source.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity source for Db2 databases. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("Db2Source") +public class Db2Source extends CopySource { + /** + * Database query. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "query") + private Object query; + + /** + * Get database query. Type: string (or Expression with resultType string). + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set database query. Type: string (or Expression with resultType string). + * + * @param query the query value to set + * @return the Db2Source object itself. + */ + public Db2Source withQuery(Object query) { + this.query = query; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DeleteActivity.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DeleteActivity.java new file mode 100644 index 0000000000000..5df2e35cc55ec --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DeleteActivity.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; + +/** + * Delete activity. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("Delete") +@JsonFlatten +public class DeleteActivity extends ExecutionActivity { + /** + * If true, files or sub-folders under current folder path will be deleted + * recursively. Default is false. Type: boolean (or Expression with + * resultType boolean). + */ + @JsonProperty(value = "typeProperties.recursive") + private Object recursive; + + /** + * The max concurrent connections to connect data source at the same time. + */ + @JsonProperty(value = "typeProperties.maxConcurrentConnections") + private Integer maxConcurrentConnections; + + /** + * Whether to record detailed logs of delete-activity execution. Default + * value is false. Type: boolean (or Expression with resultType boolean). + */ + @JsonProperty(value = "typeProperties.enableLogging") + private Object enableLogging; + + /** + * Log storage settings customer need to provide when enableLogging is + * true. + */ + @JsonProperty(value = "typeProperties.logStorageSettings") + private LogStorageSettings logStorageSettings; + + /** + * Delete activity dataset reference. + */ + @JsonProperty(value = "typeProperties.dataset", required = true) + private DatasetReference dataset; + + /** + * Get if true, files or sub-folders under current folder path will be deleted recursively. Default is false. Type: boolean (or Expression with resultType boolean). + * + * @return the recursive value + */ + public Object recursive() { + return this.recursive; + } + + /** + * Set if true, files or sub-folders under current folder path will be deleted recursively. Default is false. Type: boolean (or Expression with resultType boolean). + * + * @param recursive the recursive value to set + * @return the DeleteActivity object itself. + */ + public DeleteActivity withRecursive(Object recursive) { + this.recursive = recursive; + return this; + } + + /** + * Get the max concurrent connections to connect data source at the same time. + * + * @return the maxConcurrentConnections value + */ + public Integer maxConcurrentConnections() { + return this.maxConcurrentConnections; + } + + /** + * Set the max concurrent connections to connect data source at the same time. + * + * @param maxConcurrentConnections the maxConcurrentConnections value to set + * @return the DeleteActivity object itself. + */ + public DeleteActivity withMaxConcurrentConnections(Integer maxConcurrentConnections) { + this.maxConcurrentConnections = maxConcurrentConnections; + return this; + } + + /** + * Get whether to record detailed logs of delete-activity execution. Default value is false. Type: boolean (or Expression with resultType boolean). + * + * @return the enableLogging value + */ + public Object enableLogging() { + return this.enableLogging; + } + + /** + * Set whether to record detailed logs of delete-activity execution. Default value is false. Type: boolean (or Expression with resultType boolean). + * + * @param enableLogging the enableLogging value to set + * @return the DeleteActivity object itself. + */ + public DeleteActivity withEnableLogging(Object enableLogging) { + this.enableLogging = enableLogging; + return this; + } + + /** + * Get log storage settings customer need to provide when enableLogging is true. + * + * @return the logStorageSettings value + */ + public LogStorageSettings logStorageSettings() { + return this.logStorageSettings; + } + + /** + * Set log storage settings customer need to provide when enableLogging is true. + * + * @param logStorageSettings the logStorageSettings value to set + * @return the DeleteActivity object itself. + */ + public DeleteActivity withLogStorageSettings(LogStorageSettings logStorageSettings) { + this.logStorageSettings = logStorageSettings; + return this; + } + + /** + * Get delete activity dataset reference. + * + * @return the dataset value + */ + public DatasetReference dataset() { + return this.dataset; + } + + /** + * Set delete activity dataset reference. + * + * @param dataset the dataset value to set + * @return the DeleteActivity object itself. + */ + public DeleteActivity withDataset(DatasetReference dataset) { + this.dataset = dataset; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DelimitedTextDataset.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DelimitedTextDataset.java new file mode 100644 index 0000000000000..f020145ee4404 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DelimitedTextDataset.java @@ -0,0 +1,295 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DatasetInner; + +/** + * Delimited text dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("DelimitedText") +@JsonFlatten +public class DelimitedTextDataset extends DatasetInner { + /** + * The location of the delimited text storage. + */ + @JsonProperty(value = "typeProperties.location", required = true) + private DatasetLocation location; + + /** + * The column delimiter. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.columnDelimiter") + private Object columnDelimiter; + + /** + * The row delimiter. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.rowDelimiter") + private Object rowDelimiter; + + /** + * The code page name of the preferred encoding. If miss, the default value + * is UTF-8, unless BOM denotes another Unicode encoding. Refer to the name + * column of the table in the following link to set supported values: + * https://msdn.microsoft.com/library/system.text.encoding.aspx. Type: + * string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encodingName") + private Object encodingName; + + /** + * The compressionCodec property. + */ + @JsonProperty(value = "typeProperties.compressionCodec") + private Object compressionCodec; + + /** + * The data compression method used for DelimitedText. + */ + @JsonProperty(value = "typeProperties.compressionLevel") + private Object compressionLevel; + + /** + * The quote character. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.quoteChar") + private Object quoteChar; + + /** + * The escape character. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.escapeChar") + private Object escapeChar; + + /** + * When used as input, treat the first row of data as headers. When used as + * output,write the headers into the output as the first row of data. The + * default value is false. Type: boolean (or Expression with resultType + * boolean). + */ + @JsonProperty(value = "typeProperties.firstRowAsHeader") + private Object firstRowAsHeader; + + /** + * The null value string. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.nullValue") + private Object nullValue; + + /** + * Get the location of the delimited text storage. + * + * @return the location value + */ + public DatasetLocation location() { + return this.location; + } + + /** + * Set the location of the delimited text storage. + * + * @param location the location value to set + * @return the DelimitedTextDataset object itself. + */ + public DelimitedTextDataset withLocation(DatasetLocation location) { + this.location = location; + return this; + } + + /** + * Get the column delimiter. Type: string (or Expression with resultType string). + * + * @return the columnDelimiter value + */ + public Object columnDelimiter() { + return this.columnDelimiter; + } + + /** + * Set the column delimiter. Type: string (or Expression with resultType string). + * + * @param columnDelimiter the columnDelimiter value to set + * @return the DelimitedTextDataset object itself. + */ + public DelimitedTextDataset withColumnDelimiter(Object columnDelimiter) { + this.columnDelimiter = columnDelimiter; + return this; + } + + /** + * Get the row delimiter. Type: string (or Expression with resultType string). + * + * @return the rowDelimiter value + */ + public Object rowDelimiter() { + return this.rowDelimiter; + } + + /** + * Set the row delimiter. Type: string (or Expression with resultType string). + * + * @param rowDelimiter the rowDelimiter value to set + * @return the DelimitedTextDataset object itself. + */ + public DelimitedTextDataset withRowDelimiter(Object rowDelimiter) { + this.rowDelimiter = rowDelimiter; + return this; + } + + /** + * Get the code page name of the preferred encoding. If miss, the default value is UTF-8, unless BOM denotes another Unicode encoding. Refer to the name column of the table in the following link to set supported values: https://msdn.microsoft.com/library/system.text.encoding.aspx. Type: string (or Expression with resultType string). + * + * @return the encodingName value + */ + public Object encodingName() { + return this.encodingName; + } + + /** + * Set the code page name of the preferred encoding. If miss, the default value is UTF-8, unless BOM denotes another Unicode encoding. Refer to the name column of the table in the following link to set supported values: https://msdn.microsoft.com/library/system.text.encoding.aspx. Type: string (or Expression with resultType string). + * + * @param encodingName the encodingName value to set + * @return the DelimitedTextDataset object itself. + */ + public DelimitedTextDataset withEncodingName(Object encodingName) { + this.encodingName = encodingName; + return this; + } + + /** + * Get the compressionCodec value. + * + * @return the compressionCodec value + */ + public Object compressionCodec() { + return this.compressionCodec; + } + + /** + * Set the compressionCodec value. + * + * @param compressionCodec the compressionCodec value to set + * @return the DelimitedTextDataset object itself. + */ + public DelimitedTextDataset withCompressionCodec(Object compressionCodec) { + this.compressionCodec = compressionCodec; + return this; + } + + /** + * Get the data compression method used for DelimitedText. + * + * @return the compressionLevel value + */ + public Object compressionLevel() { + return this.compressionLevel; + } + + /** + * Set the data compression method used for DelimitedText. + * + * @param compressionLevel the compressionLevel value to set + * @return the DelimitedTextDataset object itself. + */ + public DelimitedTextDataset withCompressionLevel(Object compressionLevel) { + this.compressionLevel = compressionLevel; + return this; + } + + /** + * Get the quote character. Type: string (or Expression with resultType string). + * + * @return the quoteChar value + */ + public Object quoteChar() { + return this.quoteChar; + } + + /** + * Set the quote character. Type: string (or Expression with resultType string). + * + * @param quoteChar the quoteChar value to set + * @return the DelimitedTextDataset object itself. + */ + public DelimitedTextDataset withQuoteChar(Object quoteChar) { + this.quoteChar = quoteChar; + return this; + } + + /** + * Get the escape character. Type: string (or Expression with resultType string). + * + * @return the escapeChar value + */ + public Object escapeChar() { + return this.escapeChar; + } + + /** + * Set the escape character. Type: string (or Expression with resultType string). + * + * @param escapeChar the escapeChar value to set + * @return the DelimitedTextDataset object itself. + */ + public DelimitedTextDataset withEscapeChar(Object escapeChar) { + this.escapeChar = escapeChar; + return this; + } + + /** + * Get when used as input, treat the first row of data as headers. When used as output,write the headers into the output as the first row of data. The default value is false. Type: boolean (or Expression with resultType boolean). + * + * @return the firstRowAsHeader value + */ + public Object firstRowAsHeader() { + return this.firstRowAsHeader; + } + + /** + * Set when used as input, treat the first row of data as headers. When used as output,write the headers into the output as the first row of data. The default value is false. Type: boolean (or Expression with resultType boolean). + * + * @param firstRowAsHeader the firstRowAsHeader value to set + * @return the DelimitedTextDataset object itself. + */ + public DelimitedTextDataset withFirstRowAsHeader(Object firstRowAsHeader) { + this.firstRowAsHeader = firstRowAsHeader; + return this; + } + + /** + * Get the null value string. Type: string (or Expression with resultType string). + * + * @return the nullValue value + */ + public Object nullValue() { + return this.nullValue; + } + + /** + * Set the null value string. Type: string (or Expression with resultType string). + * + * @param nullValue the nullValue value to set + * @return the DelimitedTextDataset object itself. + */ + public DelimitedTextDataset withNullValue(Object nullValue) { + this.nullValue = nullValue; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DelimitedTextReadSettings.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DelimitedTextReadSettings.java new file mode 100644 index 0000000000000..16d021c772ef3 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DelimitedTextReadSettings.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Delimited text read settings. + */ +public class DelimitedTextReadSettings extends FormatReadSettings { + /** + * Indicates the number of non-empty rows to skip when reading data from + * input files. Type: integer (or Expression with resultType integer). + */ + @JsonProperty(value = "skipLineCount") + private Object skipLineCount; + + /** + * Get indicates the number of non-empty rows to skip when reading data from input files. Type: integer (or Expression with resultType integer). + * + * @return the skipLineCount value + */ + public Object skipLineCount() { + return this.skipLineCount; + } + + /** + * Set indicates the number of non-empty rows to skip when reading data from input files. Type: integer (or Expression with resultType integer). + * + * @param skipLineCount the skipLineCount value to set + * @return the DelimitedTextReadSettings object itself. + */ + public DelimitedTextReadSettings withSkipLineCount(Object skipLineCount) { + this.skipLineCount = skipLineCount; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DelimitedTextSink.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DelimitedTextSink.java new file mode 100644 index 0000000000000..e8842e9938ba0 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DelimitedTextSink.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity DelimitedText sink. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("DelimitedTextSink") +public class DelimitedTextSink extends CopySink { + /** + * DelimitedText store settings. + */ + @JsonProperty(value = "storeSettings") + private StoreWriteSettings storeSettings; + + /** + * DelimitedText format settings. + */ + @JsonProperty(value = "formatSettings") + private DelimitedTextWriteSettings formatSettings; + + /** + * Get delimitedText store settings. + * + * @return the storeSettings value + */ + public StoreWriteSettings storeSettings() { + return this.storeSettings; + } + + /** + * Set delimitedText store settings. + * + * @param storeSettings the storeSettings value to set + * @return the DelimitedTextSink object itself. + */ + public DelimitedTextSink withStoreSettings(StoreWriteSettings storeSettings) { + this.storeSettings = storeSettings; + return this; + } + + /** + * Get delimitedText format settings. + * + * @return the formatSettings value + */ + public DelimitedTextWriteSettings formatSettings() { + return this.formatSettings; + } + + /** + * Set delimitedText format settings. + * + * @param formatSettings the formatSettings value to set + * @return the DelimitedTextSink object itself. + */ + public DelimitedTextSink withFormatSettings(DelimitedTextWriteSettings formatSettings) { + this.formatSettings = formatSettings; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DelimitedTextSource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DelimitedTextSource.java new file mode 100644 index 0000000000000..04cd3e0aa88f1 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DelimitedTextSource.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity DelimitedText source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("DelimitedTextSource") +public class DelimitedTextSource extends CopySource { + /** + * DelimitedText store settings. + */ + @JsonProperty(value = "storeSettings") + private StoreReadSettings storeSettings; + + /** + * DelimitedText format settings. + */ + @JsonProperty(value = "formatSettings") + private DelimitedTextReadSettings formatSettings; + + /** + * Get delimitedText store settings. + * + * @return the storeSettings value + */ + public StoreReadSettings storeSettings() { + return this.storeSettings; + } + + /** + * Set delimitedText store settings. + * + * @param storeSettings the storeSettings value to set + * @return the DelimitedTextSource object itself. + */ + public DelimitedTextSource withStoreSettings(StoreReadSettings storeSettings) { + this.storeSettings = storeSettings; + return this; + } + + /** + * Get delimitedText format settings. + * + * @return the formatSettings value + */ + public DelimitedTextReadSettings formatSettings() { + return this.formatSettings; + } + + /** + * Set delimitedText format settings. + * + * @param formatSettings the formatSettings value to set + * @return the DelimitedTextSource object itself. + */ + public DelimitedTextSource withFormatSettings(DelimitedTextReadSettings formatSettings) { + this.formatSettings = formatSettings; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DelimitedTextWriteSettings.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DelimitedTextWriteSettings.java new file mode 100644 index 0000000000000..4c3405134e1f0 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DelimitedTextWriteSettings.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Delimited text write settings. + */ +public class DelimitedTextWriteSettings extends FormatWriteSettings { + /** + * Indicates whether string values should always be enclosed with quotes. + * Type: boolean (or Expression with resultType boolean). + */ + @JsonProperty(value = "quoteAllText") + private Object quoteAllText; + + /** + * The file extension used to create the files. Type: string (or Expression + * with resultType string). + */ + @JsonProperty(value = "fileExtension", required = true) + private Object fileExtension; + + /** + * Get indicates whether string values should always be enclosed with quotes. Type: boolean (or Expression with resultType boolean). + * + * @return the quoteAllText value + */ + public Object quoteAllText() { + return this.quoteAllText; + } + + /** + * Set indicates whether string values should always be enclosed with quotes. Type: boolean (or Expression with resultType boolean). + * + * @param quoteAllText the quoteAllText value to set + * @return the DelimitedTextWriteSettings object itself. + */ + public DelimitedTextWriteSettings withQuoteAllText(Object quoteAllText) { + this.quoteAllText = quoteAllText; + return this; + } + + /** + * Get the file extension used to create the files. Type: string (or Expression with resultType string). + * + * @return the fileExtension value + */ + public Object fileExtension() { + return this.fileExtension; + } + + /** + * Set the file extension used to create the files. Type: string (or Expression with resultType string). + * + * @param fileExtension the fileExtension value to set + * @return the DelimitedTextWriteSettings object itself. + */ + public DelimitedTextWriteSettings withFileExtension(Object fileExtension) { + this.fileExtension = fileExtension; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DependencyCondition.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DependencyCondition.java new file mode 100644 index 0000000000000..468593789cef7 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DependencyReference.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DependencyReference.java new file mode 100644 index 0000000000000..4de5e6f59ba9f --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DependencyReference.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonSubTypes; + +/** + * Referenced dependency. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("DependencyReference") +@JsonSubTypes({ + @JsonSubTypes.Type(name = "SelfDependencyTumblingWindowTriggerReference", value = SelfDependencyTumblingWindowTriggerReference.class), + @JsonSubTypes.Type(name = "TriggerDependencyReference", value = TriggerDependencyReference.class) +}) +public class DependencyReference { +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DistcpSettings.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DistcpSettings.java new file mode 100644 index 0000000000000..93f01b26a074a --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 specifies the Yarn ResourceManager endpoint. Type: string (or Expression with resultType string). + * + * @return the resourceManagerEndpoint value + */ + public Object resourceManagerEndpoint() { + return this.resourceManagerEndpoint; + } + + /** + * Set specifies the Yarn ResourceManager endpoint. Type: string (or Expression with resultType string). + * + * @param resourceManagerEndpoint the resourceManagerEndpoint value to set + * @return the DistcpSettings object itself. + */ + public DistcpSettings withResourceManagerEndpoint(Object resourceManagerEndpoint) { + this.resourceManagerEndpoint = resourceManagerEndpoint; + return this; + } + + /** + * Get 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). + * + * @return the tempScriptPath value + */ + public Object tempScriptPath() { + return this.tempScriptPath; + } + + /** + * Set 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). + * + * @param tempScriptPath the tempScriptPath value to set + * @return the DistcpSettings object itself. + */ + public DistcpSettings withTempScriptPath(Object tempScriptPath) { + this.tempScriptPath = tempScriptPath; + return this; + } + + /** + * Get specifies the Distcp options. Type: string (or Expression with resultType string). + * + * @return the distcpOptions value + */ + public Object distcpOptions() { + return this.distcpOptions; + } + + /** + * Set specifies the Distcp options. Type: string (or Expression with resultType string). + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DocumentDbCollectionDataset.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DocumentDbCollectionDataset.java new file mode 100644 index 0000000000000..30fbda2e8f672 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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 document Database collection name. Type: string (or Expression with resultType string). + * + * @return the collectionName value + */ + public Object collectionName() { + return this.collectionName; + } + + /** + * Set document Database collection name. Type: string (or Expression with resultType string). + * + * @param collectionName the collectionName value to set + * @return the DocumentDbCollectionDataset object itself. + */ + public DocumentDbCollectionDataset withCollectionName(Object collectionName) { + this.collectionName = collectionName; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DocumentDbCollectionSink.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DocumentDbCollectionSink.java new file mode 100644 index 0000000000000..5022fcd954224 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DocumentDbCollectionSink.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.v2018_06_01; + +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; + + /** + * Describes how to write data to Azure Cosmos DB. Allowed values: insert + * and upsert. + */ + @JsonProperty(value = "writeBehavior") + private Object writeBehavior; + + /** + * Get nested properties separator. Default is . (dot). Type: string (or Expression with resultType string). + * + * @return the nestingSeparator value + */ + public Object nestingSeparator() { + return this.nestingSeparator; + } + + /** + * Set nested properties separator. Default is . (dot). Type: string (or Expression with resultType string). + * + * @param nestingSeparator the nestingSeparator value to set + * @return the DocumentDbCollectionSink object itself. + */ + public DocumentDbCollectionSink withNestingSeparator(Object nestingSeparator) { + this.nestingSeparator = nestingSeparator; + return this; + } + + /** + * Get describes how to write data to Azure Cosmos DB. Allowed values: insert and upsert. + * + * @return the writeBehavior value + */ + public Object writeBehavior() { + return this.writeBehavior; + } + + /** + * Set describes how to write data to Azure Cosmos DB. Allowed values: insert and upsert. + * + * @param writeBehavior the writeBehavior value to set + * @return the DocumentDbCollectionSink object itself. + */ + public DocumentDbCollectionSink withWriteBehavior(Object writeBehavior) { + this.writeBehavior = writeBehavior; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DocumentDbCollectionSource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DocumentDbCollectionSource.java new file mode 100644 index 0000000000000..2f7a009db9322 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 documents query. Type: string (or Expression with resultType string). + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set documents query. Type: string (or Expression with resultType string). + * + * @param query the query value to set + * @return the DocumentDbCollectionSource object itself. + */ + public DocumentDbCollectionSource withQuery(Object query) { + this.query = query; + return this; + } + + /** + * Get nested properties separator. Type: string (or Expression with resultType string). + * + * @return the nestingSeparator value + */ + public Object nestingSeparator() { + return this.nestingSeparator; + } + + /** + * Set nested properties separator. Type: string (or Expression with resultType string). + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DrillLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DrillLinkedService.java new file mode 100644 index 0000000000000..096242a0e553b --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DrillLinkedService.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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. Type: string, SecureString or + * AzureKeyVaultSecretReference. + */ + @JsonProperty(value = "typeProperties.connectionString") + private Object connectionString; + + /** + * The Azure key vault secret reference of password in connection string. + */ + @JsonProperty(value = "typeProperties.pwd") + private AzureKeyVaultSecretReference pwd; + + /** + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; + + /** + * Get an ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. + * + * @return the connectionString value + */ + public Object connectionString() { + return this.connectionString; + } + + /** + * Set an ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. + * + * @param connectionString the connectionString value to set + * @return the DrillLinkedService object itself. + */ + public DrillLinkedService withConnectionString(Object connectionString) { + this.connectionString = connectionString; + return this; + } + + /** + * Get the Azure key vault secret reference of password in connection string. + * + * @return the pwd value + */ + public AzureKeyVaultSecretReference pwd() { + return this.pwd; + } + + /** + * Set the Azure key vault secret reference of password in connection string. + * + * @param pwd the pwd value to set + * @return the DrillLinkedService object itself. + */ + public DrillLinkedService withPwd(AzureKeyVaultSecretReference pwd) { + this.pwd = pwd; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the DrillLinkedService object itself. + */ + public DrillLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DrillSource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DrillSource.java new file mode 100644 index 0000000000000..1a7d188c69506 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 a query to retrieve data from source. Type: string (or Expression with resultType string). + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set a query to retrieve data from source. Type: string (or Expression with resultType string). + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DrillTableDataset.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DrillTableDataset.java new file mode 100644 index 0000000000000..69aa079af72c8 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DrillTableDataset.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DatasetInner; + +/** + * Drill server dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("DrillTable") +@JsonFlatten +public class DrillTableDataset extends DatasetInner { + /** + * This property will be retired. Please consider using schema + table + * properties instead. + */ + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; + + /** + * The table name of the Drill. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.table") + private Object table; + + /** + * The schema name of the Drill. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.schema") + private Object drillTableDatasetSchema; + + /** + * Get this property will be retired. Please consider using schema + table properties instead. + * + * @return the tableName value + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set this property will be retired. Please consider using schema + table properties instead. + * + * @param tableName the tableName value to set + * @return the DrillTableDataset object itself. + */ + public DrillTableDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; + } + + /** + * Get the table name of the Drill. Type: string (or Expression with resultType string). + * + * @return the table value + */ + public Object table() { + return this.table; + } + + /** + * Set the table name of the Drill. Type: string (or Expression with resultType string). + * + * @param table the table value to set + * @return the DrillTableDataset object itself. + */ + public DrillTableDataset withTable(Object table) { + this.table = table; + return this; + } + + /** + * Get the schema name of the Drill. Type: string (or Expression with resultType string). + * + * @return the drillTableDatasetSchema value + */ + public Object drillTableDatasetSchema() { + return this.drillTableDatasetSchema; + } + + /** + * Set the schema name of the Drill. Type: string (or Expression with resultType string). + * + * @param drillTableDatasetSchema the drillTableDatasetSchema value to set + * @return the DrillTableDataset object itself. + */ + public DrillTableDataset withDrillTableDatasetSchema(Object drillTableDatasetSchema) { + this.drillTableDatasetSchema = drillTableDatasetSchema; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DynamicsAXLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DynamicsAXLinkedService.java new file mode 100644 index 0000000000000..62bd534aae6c3 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DynamicsAXLinkedService.java @@ -0,0 +1,190 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.LinkedServiceInner; + +/** + * Dynamics AX linked service. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("DynamicsAX") +@JsonFlatten +public class DynamicsAXLinkedService extends LinkedServiceInner { + /** + * The Dynamics AX (or Dynamics 365 Finance and Operations) instance OData + * endpoint. + */ + @JsonProperty(value = "typeProperties.url", required = true) + private Object url; + + /** + * Specify the application's client ID. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.servicePrincipalId", required = true) + private Object servicePrincipalId; + + /** + * Specify the application's key. Mark this field as a SecureString to + * store it securely in Data Factory, or reference a secret stored in Azure + * Key Vault. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.servicePrincipalKey", required = true) + private SecretBase servicePrincipalKey; + + /** + * Specify the tenant information (domain name or tenant ID) under which + * your application resides. Retrieve it by hovering the mouse in the + * top-right corner of the Azure portal. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.tenant", required = true) + private Object tenant; + + /** + * Specify the resource you are requesting authorization. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.aadResourceId", required = true) + private Object aadResourceId; + + /** + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; + + /** + * Get the Dynamics AX (or Dynamics 365 Finance and Operations) instance OData endpoint. + * + * @return the url value + */ + public Object url() { + return this.url; + } + + /** + * Set the Dynamics AX (or Dynamics 365 Finance and Operations) instance OData endpoint. + * + * @param url the url value to set + * @return the DynamicsAXLinkedService object itself. + */ + public DynamicsAXLinkedService withUrl(Object url) { + this.url = url; + return this; + } + + /** + * Get specify the application's client ID. Type: string (or Expression with resultType string). + * + * @return the servicePrincipalId value + */ + public Object servicePrincipalId() { + return this.servicePrincipalId; + } + + /** + * Set specify the application's client ID. Type: string (or Expression with resultType string). + * + * @param servicePrincipalId the servicePrincipalId value to set + * @return the DynamicsAXLinkedService object itself. + */ + public DynamicsAXLinkedService withServicePrincipalId(Object servicePrincipalId) { + this.servicePrincipalId = servicePrincipalId; + return this; + } + + /** + * Get specify the application's key. Mark this field as a SecureString to store it securely in Data Factory, or reference a secret stored in Azure Key Vault. Type: string (or Expression with resultType string). + * + * @return the servicePrincipalKey value + */ + public SecretBase servicePrincipalKey() { + return this.servicePrincipalKey; + } + + /** + * Set specify the application's key. Mark this field as a SecureString to store it securely in Data Factory, or reference a secret stored in Azure Key Vault. Type: string (or Expression with resultType string). + * + * @param servicePrincipalKey the servicePrincipalKey value to set + * @return the DynamicsAXLinkedService object itself. + */ + public DynamicsAXLinkedService withServicePrincipalKey(SecretBase servicePrincipalKey) { + this.servicePrincipalKey = servicePrincipalKey; + return this; + } + + /** + * Get specify the tenant information (domain name or tenant ID) under which your application resides. Retrieve it by hovering the mouse in the top-right corner of the Azure portal. Type: string (or Expression with resultType string). + * + * @return the tenant value + */ + public Object tenant() { + return this.tenant; + } + + /** + * Set specify the tenant information (domain name or tenant ID) under which your application resides. Retrieve it by hovering the mouse in the top-right corner of the Azure portal. Type: string (or Expression with resultType string). + * + * @param tenant the tenant value to set + * @return the DynamicsAXLinkedService object itself. + */ + public DynamicsAXLinkedService withTenant(Object tenant) { + this.tenant = tenant; + return this; + } + + /** + * Get specify the resource you are requesting authorization. Type: string (or Expression with resultType string). + * + * @return the aadResourceId value + */ + public Object aadResourceId() { + return this.aadResourceId; + } + + /** + * Set specify the resource you are requesting authorization. Type: string (or Expression with resultType string). + * + * @param aadResourceId the aadResourceId value to set + * @return the DynamicsAXLinkedService object itself. + */ + public DynamicsAXLinkedService withAadResourceId(Object aadResourceId) { + this.aadResourceId = aadResourceId; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the DynamicsAXLinkedService object itself. + */ + public DynamicsAXLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DynamicsAXResourceDataset.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DynamicsAXResourceDataset.java new file mode 100644 index 0000000000000..97afbb70e4a13 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DynamicsAXResourceDataset.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DatasetInner; + +/** + * The path of the Dynamics AX OData entity. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("DynamicsAXResource") +@JsonFlatten +public class DynamicsAXResourceDataset extends DatasetInner { + /** + * The path of the Dynamics AX OData entity. Type: string (or Expression + * with resultType string). + */ + @JsonProperty(value = "typeProperties.path", required = true) + private Object path; + + /** + * Get the path of the Dynamics AX OData entity. Type: string (or Expression with resultType string). + * + * @return the path value + */ + public Object path() { + return this.path; + } + + /** + * Set the path of the Dynamics AX OData entity. Type: string (or Expression with resultType string). + * + * @param path the path value to set + * @return the DynamicsAXResourceDataset object itself. + */ + public DynamicsAXResourceDataset withPath(Object path) { + this.path = path; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DynamicsAXSource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DynamicsAXSource.java new file mode 100644 index 0000000000000..a58b76557fa6e --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DynamicsAXSource.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Dynamics AX source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("DynamicsAXSource") +public class DynamicsAXSource extends CopySource { + /** + * A query to retrieve data from source. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "query") + private Object query; + + /** + * Get a query to retrieve data from source. Type: string (or Expression with resultType string). + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set a query to retrieve data from source. Type: string (or Expression with resultType string). + * + * @param query the query value to set + * @return the DynamicsAXSource object itself. + */ + public DynamicsAXSource withQuery(Object query) { + this.query = query; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DynamicsAuthenticationType.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DynamicsAuthenticationType.java new file mode 100644 index 0000000000000..8fbc16bf5da65 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DynamicsAuthenticationType.java @@ -0,0 +1,41 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for DynamicsAuthenticationType. + */ +public final class DynamicsAuthenticationType extends ExpandableStringEnum { + /** Static value Office365 for DynamicsAuthenticationType. */ + public static final DynamicsAuthenticationType OFFICE365 = fromString("Office365"); + + /** Static value Ifd for DynamicsAuthenticationType. */ + public static final DynamicsAuthenticationType IFD = fromString("Ifd"); + + /** + * Creates or finds a DynamicsAuthenticationType from its string representation. + * @param name a name to look for + * @return the corresponding DynamicsAuthenticationType + */ + @JsonCreator + public static DynamicsAuthenticationType fromString(String name) { + return fromString(name, DynamicsAuthenticationType.class); + } + + /** + * @return known DynamicsAuthenticationType values + */ + public static Collection values() { + return values(DynamicsAuthenticationType.class); + } +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DynamicsCrmEntityDataset.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DynamicsCrmEntityDataset.java new file mode 100644 index 0000000000000..9e8fa5059dac5 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DynamicsCrmEntityDataset.java @@ -0,0 +1,51 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DatasetInner; + +/** + * The Dynamics CRM entity dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("DynamicsCrmEntity") +@JsonFlatten +public class DynamicsCrmEntityDataset extends DatasetInner { + /** + * The logical name of the entity. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.entityName") + private Object entityName; + + /** + * Get the logical name of the entity. Type: string (or Expression with resultType string). + * + * @return the entityName value + */ + public Object entityName() { + return this.entityName; + } + + /** + * Set the logical name of the entity. Type: string (or Expression with resultType string). + * + * @param entityName the entityName value to set + * @return the DynamicsCrmEntityDataset object itself. + */ + public DynamicsCrmEntityDataset withEntityName(Object entityName) { + this.entityName = entityName; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DynamicsCrmLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DynamicsCrmLinkedService.java new file mode 100644 index 0000000000000..9ed23347f9e35 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DynamicsCrmLinkedService.java @@ -0,0 +1,276 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.LinkedServiceInner; + +/** + * Dynamics CRM linked service. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("DynamicsCrm") +@JsonFlatten +public class DynamicsCrmLinkedService extends LinkedServiceInner { + /** + * The deployment type of the Dynamics CRM instance. 'Online' for Dynamics + * CRM Online and 'OnPremisesWithIfd' for Dynamics CRM on-premises with + * Ifd. Type: string (or Expression with resultType string). Possible + * values include: 'Online', 'OnPremisesWithIfd'. + */ + @JsonProperty(value = "typeProperties.deploymentType", required = true) + private DynamicsDeploymentType deploymentType; + + /** + * The host name of the on-premises Dynamics CRM server. The property is + * required for on-prem and not allowed for online. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.hostName") + private Object hostName; + + /** + * The port of on-premises Dynamics CRM server. The property is required + * for on-prem and not allowed for online. Default is 443. Type: integer + * (or Expression with resultType integer), minimum: 0. + */ + @JsonProperty(value = "typeProperties.port") + private Object port; + + /** + * The URL to the Microsoft Dynamics CRM server. The property is required + * for on-line and not allowed for on-prem. Type: string (or Expression + * with resultType string). + */ + @JsonProperty(value = "typeProperties.serviceUri") + private Object serviceUri; + + /** + * The organization name of the Dynamics CRM instance. The property is + * required for on-prem and required for online when there are more than + * one Dynamics CRM instances associated with the user. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.organizationName") + private Object organizationName; + + /** + * The authentication type to connect to Dynamics CRM server. 'Office365' + * for online scenario, 'Ifd' for on-premises with Ifd scenario. Type: + * string (or Expression with resultType string). Possible values include: + * 'Office365', 'Ifd'. + */ + @JsonProperty(value = "typeProperties.authenticationType", required = true) + private DynamicsAuthenticationType authenticationType; + + /** + * User name to access the Dynamics CRM instance. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.username", required = true) + private Object username; + + /** + * Password to access the Dynamics CRM instance. + */ + @JsonProperty(value = "typeProperties.password") + private SecretBase password; + + /** + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; + + /** + * Get the deployment type of the Dynamics CRM instance. 'Online' for Dynamics CRM Online and 'OnPremisesWithIfd' for Dynamics CRM on-premises with Ifd. Type: string (or Expression with resultType string). Possible values include: 'Online', 'OnPremisesWithIfd'. + * + * @return the deploymentType value + */ + public DynamicsDeploymentType deploymentType() { + return this.deploymentType; + } + + /** + * Set the deployment type of the Dynamics CRM instance. 'Online' for Dynamics CRM Online and 'OnPremisesWithIfd' for Dynamics CRM on-premises with Ifd. Type: string (or Expression with resultType string). Possible values include: 'Online', 'OnPremisesWithIfd'. + * + * @param deploymentType the deploymentType value to set + * @return the DynamicsCrmLinkedService object itself. + */ + public DynamicsCrmLinkedService withDeploymentType(DynamicsDeploymentType deploymentType) { + this.deploymentType = deploymentType; + return this; + } + + /** + * Get the host name of the on-premises Dynamics CRM server. The property is required for on-prem and not allowed for online. Type: string (or Expression with resultType string). + * + * @return the hostName value + */ + public Object hostName() { + return this.hostName; + } + + /** + * Set the host name of the on-premises Dynamics CRM server. The property is required for on-prem and not allowed for online. Type: string (or Expression with resultType string). + * + * @param hostName the hostName value to set + * @return the DynamicsCrmLinkedService object itself. + */ + public DynamicsCrmLinkedService withHostName(Object hostName) { + this.hostName = hostName; + return this; + } + + /** + * Get the port of on-premises Dynamics CRM server. The property is required for on-prem and not allowed for online. Default is 443. Type: integer (or Expression with resultType integer), minimum: 0. + * + * @return the port value + */ + public Object port() { + return this.port; + } + + /** + * Set the port of on-premises Dynamics CRM server. The property is required for on-prem and not allowed for online. Default is 443. Type: integer (or Expression with resultType integer), minimum: 0. + * + * @param port the port value to set + * @return the DynamicsCrmLinkedService object itself. + */ + public DynamicsCrmLinkedService withPort(Object port) { + this.port = port; + return this; + } + + /** + * Get the URL to the Microsoft Dynamics CRM server. The property is required for on-line and not allowed for on-prem. Type: string (or Expression with resultType string). + * + * @return the serviceUri value + */ + public Object serviceUri() { + return this.serviceUri; + } + + /** + * Set the URL to the Microsoft Dynamics CRM server. The property is required for on-line and not allowed for on-prem. Type: string (or Expression with resultType string). + * + * @param serviceUri the serviceUri value to set + * @return the DynamicsCrmLinkedService object itself. + */ + public DynamicsCrmLinkedService withServiceUri(Object serviceUri) { + this.serviceUri = serviceUri; + return this; + } + + /** + * Get the organization name of the Dynamics CRM instance. The property is required for on-prem and required for online when there are more than one Dynamics CRM instances associated with the user. Type: string (or Expression with resultType string). + * + * @return the organizationName value + */ + public Object organizationName() { + return this.organizationName; + } + + /** + * Set the organization name of the Dynamics CRM instance. The property is required for on-prem and required for online when there are more than one Dynamics CRM instances associated with the user. Type: string (or Expression with resultType string). + * + * @param organizationName the organizationName value to set + * @return the DynamicsCrmLinkedService object itself. + */ + public DynamicsCrmLinkedService withOrganizationName(Object organizationName) { + this.organizationName = organizationName; + return this; + } + + /** + * Get the authentication type to connect to Dynamics CRM server. 'Office365' for online scenario, 'Ifd' for on-premises with Ifd scenario. Type: string (or Expression with resultType string). Possible values include: 'Office365', 'Ifd'. + * + * @return the authenticationType value + */ + public DynamicsAuthenticationType authenticationType() { + return this.authenticationType; + } + + /** + * Set the authentication type to connect to Dynamics CRM server. 'Office365' for online scenario, 'Ifd' for on-premises with Ifd scenario. Type: string (or Expression with resultType string). Possible values include: 'Office365', 'Ifd'. + * + * @param authenticationType the authenticationType value to set + * @return the DynamicsCrmLinkedService object itself. + */ + public DynamicsCrmLinkedService withAuthenticationType(DynamicsAuthenticationType authenticationType) { + this.authenticationType = authenticationType; + return this; + } + + /** + * Get user name to access the Dynamics CRM instance. Type: string (or Expression with resultType string). + * + * @return the username value + */ + public Object username() { + return this.username; + } + + /** + * Set user name to access the Dynamics CRM instance. Type: string (or Expression with resultType string). + * + * @param username the username value to set + * @return the DynamicsCrmLinkedService object itself. + */ + public DynamicsCrmLinkedService withUsername(Object username) { + this.username = username; + return this; + } + + /** + * Get password to access the Dynamics CRM instance. + * + * @return the password value + */ + public SecretBase password() { + return this.password; + } + + /** + * Set password to access the Dynamics CRM instance. + * + * @param password the password value to set + * @return the DynamicsCrmLinkedService object itself. + */ + public DynamicsCrmLinkedService withPassword(SecretBase password) { + this.password = password; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the DynamicsCrmLinkedService object itself. + */ + public DynamicsCrmLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DynamicsCrmSink.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DynamicsCrmSink.java new file mode 100644 index 0000000000000..1fd620aaff6a7 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DynamicsCrmSink.java @@ -0,0 +1,82 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Dynamics CRM sink. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("DynamicsCrmSink") +public class DynamicsCrmSink extends CopySink { + /** + * The write behavior for the operation. + */ + @JsonProperty(value = "writeBehavior", required = true) + private String writeBehavior; + + /** + * The flag indicating whether to ignore null values from input dataset + * (except key fields) during write operation. Default is false. Type: + * boolean (or Expression with resultType boolean). + */ + @JsonProperty(value = "ignoreNullValues") + private Object ignoreNullValues; + + /** + * Creates an instance of DynamicsCrmSink class. + */ + public DynamicsCrmSink() { + writeBehavior = "Upsert"; + } + + /** + * Get the write behavior for the operation. + * + * @return the writeBehavior value + */ + public String writeBehavior() { + return this.writeBehavior; + } + + /** + * Set the write behavior for the operation. + * + * @param writeBehavior the writeBehavior value to set + * @return the DynamicsCrmSink object itself. + */ + public DynamicsCrmSink withWriteBehavior(String writeBehavior) { + this.writeBehavior = writeBehavior; + return this; + } + + /** + * Get the flag indicating whether to ignore null values from input dataset (except key fields) during write operation. Default is false. Type: boolean (or Expression with resultType boolean). + * + * @return the ignoreNullValues value + */ + public Object ignoreNullValues() { + return this.ignoreNullValues; + } + + /** + * Set the flag indicating whether to ignore null values from input dataset (except key fields) during write operation. Default is false. Type: boolean (or Expression with resultType boolean). + * + * @param ignoreNullValues the ignoreNullValues value to set + * @return the DynamicsCrmSink object itself. + */ + public DynamicsCrmSink withIgnoreNullValues(Object ignoreNullValues) { + this.ignoreNullValues = ignoreNullValues; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DynamicsCrmSource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DynamicsCrmSource.java new file mode 100644 index 0000000000000..4536e4e6c4381 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DynamicsCrmSource.java @@ -0,0 +1,49 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Dynamics CRM source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("DynamicsCrmSource") +public class DynamicsCrmSource extends CopySource { + /** + * FetchXML is a proprietary query language that is used in Microsoft + * Dynamics CRM (online & on-premises). Type: string (or Expression + * with resultType string). + */ + @JsonProperty(value = "query") + private Object query; + + /** + * Get fetchXML is a proprietary query language that is used in Microsoft Dynamics CRM (online & on-premises). Type: string (or Expression with resultType string). + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set fetchXML is a proprietary query language that is used in Microsoft Dynamics CRM (online & on-premises). Type: string (or Expression with resultType string). + * + * @param query the query value to set + * @return the DynamicsCrmSource object itself. + */ + public DynamicsCrmSource withQuery(Object query) { + this.query = query; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DynamicsDeploymentType.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DynamicsDeploymentType.java new file mode 100644 index 0000000000000..57de4c35e193e --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DynamicsDeploymentType.java @@ -0,0 +1,41 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for DynamicsDeploymentType. + */ +public final class DynamicsDeploymentType extends ExpandableStringEnum { + /** Static value Online for DynamicsDeploymentType. */ + public static final DynamicsDeploymentType ONLINE = fromString("Online"); + + /** Static value OnPremisesWithIfd for DynamicsDeploymentType. */ + public static final DynamicsDeploymentType ON_PREMISES_WITH_IFD = fromString("OnPremisesWithIfd"); + + /** + * Creates or finds a DynamicsDeploymentType from its string representation. + * @param name a name to look for + * @return the corresponding DynamicsDeploymentType + */ + @JsonCreator + public static DynamicsDeploymentType fromString(String name) { + return fromString(name, DynamicsDeploymentType.class); + } + + /** + * @return known DynamicsDeploymentType values + */ + public static Collection values() { + return values(DynamicsDeploymentType.class); + } +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DynamicsEntityDataset.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DynamicsEntityDataset.java new file mode 100644 index 0000000000000..9a40703d6fe58 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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 logical name of the entity. Type: string (or Expression with resultType string). + * + * @return the entityName value + */ + public Object entityName() { + return this.entityName; + } + + /** + * Set the logical name of the entity. Type: string (or Expression with resultType string). + * + * @param entityName the entityName value to set + * @return the DynamicsEntityDataset object itself. + */ + public DynamicsEntityDataset withEntityName(Object entityName) { + this.entityName = entityName; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DynamicsLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DynamicsLinkedService.java new file mode 100644 index 0000000000000..11b104d2abbb9 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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 deployment type of the Dynamics instance. 'Online' for Dynamics Online and 'OnPremisesWithIfd' for Dynamics on-premises with Ifd. Type: string (or Expression with resultType string). + * + * @return the deploymentType value + */ + public Object deploymentType() { + return this.deploymentType; + } + + /** + * Set the deployment type of the Dynamics instance. 'Online' for Dynamics Online and 'OnPremisesWithIfd' for Dynamics on-premises with Ifd. Type: string (or Expression with resultType string). + * + * @param deploymentType the deploymentType value to set + * @return the DynamicsLinkedService object itself. + */ + public DynamicsLinkedService withDeploymentType(Object deploymentType) { + this.deploymentType = deploymentType; + return this; + } + + /** + * Get the host name of the on-premises Dynamics server. The property is required for on-prem and not allowed for online. Type: string (or Expression with resultType string). + * + * @return the hostName value + */ + public Object hostName() { + return this.hostName; + } + + /** + * Set the host name of the on-premises Dynamics server. The property is required for on-prem and not allowed for online. Type: string (or Expression with resultType string). + * + * @param hostName the hostName value to set + * @return the DynamicsLinkedService object itself. + */ + public DynamicsLinkedService withHostName(Object hostName) { + this.hostName = hostName; + return this; + } + + /** + * Get the port of on-premises Dynamics server. The property is required for on-prem and not allowed for online. Default is 443. Type: integer (or Expression with resultType integer), minimum: 0. + * + * @return the port value + */ + public Object port() { + return this.port; + } + + /** + * Set the port of on-premises Dynamics server. The property is required for on-prem and not allowed for online. Default is 443. Type: integer (or Expression with resultType integer), minimum: 0. + * + * @param port the port value to set + * @return the DynamicsLinkedService object itself. + */ + public DynamicsLinkedService withPort(Object port) { + this.port = port; + return this; + } + + /** + * Get the URL to the Microsoft Dynamics server. The property is required for on-line and not allowed for on-prem. Type: string (or Expression with resultType string). + * + * @return the serviceUri value + */ + public Object serviceUri() { + return this.serviceUri; + } + + /** + * Set the URL to the Microsoft Dynamics server. The property is required for on-line and not allowed for on-prem. Type: string (or Expression with resultType string). + * + * @param serviceUri the serviceUri value to set + * @return the DynamicsLinkedService object itself. + */ + public DynamicsLinkedService withServiceUri(Object serviceUri) { + this.serviceUri = serviceUri; + return this; + } + + /** + * Get the organization name of the Dynamics instance. The property is required for on-prem and required for online when there are more than one Dynamics instances associated with the user. Type: string (or Expression with resultType string). + * + * @return the organizationName value + */ + public Object organizationName() { + return this.organizationName; + } + + /** + * Set the organization name of the Dynamics instance. The property is required for on-prem and required for online when there are more than one Dynamics instances associated with the user. Type: string (or Expression with resultType string). + * + * @param organizationName the organizationName value to set + * @return the DynamicsLinkedService object itself. + */ + public DynamicsLinkedService withOrganizationName(Object organizationName) { + this.organizationName = organizationName; + return this; + } + + /** + * Get 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). + * + * @return the authenticationType value + */ + public Object authenticationType() { + return this.authenticationType; + } + + /** + * Set 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). + * + * @param authenticationType the authenticationType value to set + * @return the DynamicsLinkedService object itself. + */ + public DynamicsLinkedService withAuthenticationType(Object authenticationType) { + this.authenticationType = authenticationType; + return this; + } + + /** + * Get user name to access the Dynamics instance. Type: string (or Expression with resultType string). + * + * @return the username value + */ + public Object username() { + return this.username; + } + + /** + * Set user name to access the Dynamics instance. Type: string (or Expression with resultType string). + * + * @param username the username value to set + * @return the DynamicsLinkedService object itself. + */ + public DynamicsLinkedService withUsername(Object username) { + this.username = username; + return this; + } + + /** + * Get password to access the Dynamics instance. + * + * @return the password value + */ + public SecretBase password() { + return this.password; + } + + /** + * Set password to access the Dynamics instance. + * + * @param password the password value to set + * @return the DynamicsLinkedService object itself. + */ + public DynamicsLinkedService withPassword(SecretBase password) { + this.password = password; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the DynamicsLinkedService object itself. + */ + public DynamicsLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DynamicsSink.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DynamicsSink.java new file mode 100644 index 0000000000000..def47e0efcb17 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Dynamics 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 write behavior for the operation. + * + * @return the writeBehavior value + */ + public String writeBehavior() { + return this.writeBehavior; + } + + /** + * Set the write behavior for the operation. + * + * @param writeBehavior the writeBehavior value to set + * @return the DynamicsSink object itself. + */ + public DynamicsSink withWriteBehavior(String writeBehavior) { + this.writeBehavior = writeBehavior; + return this; + } + + /** + * Get 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). + * + * @return the ignoreNullValues value + */ + public Object ignoreNullValues() { + return this.ignoreNullValues; + } + + /** + * Set 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). + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DynamicsSource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/DynamicsSource.java new file mode 100644 index 0000000000000..6bf3228176c94 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Dynamics 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 fetchXML is a proprietary query language that is used in Microsoft Dynamics (online & on-premises). Type: string (or Expression with resultType string). + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set fetchXML is a proprietary query language that is used in Microsoft Dynamics (online & on-premises). Type: string (or Expression with resultType string). + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/EloquaLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/EloquaLinkedService.java new file mode 100644 index 0000000000000..c9f07b0aea841 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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 of the Eloqua server. (i.e. eloqua.example.com). + * + * @return the endpoint value + */ + public Object endpoint() { + return this.endpoint; + } + + /** + * Set the endpoint of the Eloqua server. (i.e. eloqua.example.com). + * + * @param endpoint the endpoint value to set + * @return the EloquaLinkedService object itself. + */ + public EloquaLinkedService withEndpoint(Object endpoint) { + this.endpoint = endpoint; + return this; + } + + /** + * Get the site name and user name of your Eloqua account in the form: sitename/username. (i.e. Eloqua/Alice). + * + * @return the username value + */ + public Object username() { + return this.username; + } + + /** + * Set the site name and user name of your Eloqua account in the form: sitename/username. (i.e. Eloqua/Alice). + * + * @param username the username value to set + * @return the EloquaLinkedService object itself. + */ + public EloquaLinkedService withUsername(Object username) { + this.username = username; + return this; + } + + /** + * Get the password corresponding to the user name. + * + * @return the password value + */ + public SecretBase password() { + return this.password; + } + + /** + * Set the password corresponding to the user name. + * + * @param password the password value to set + * @return the EloquaLinkedService object itself. + */ + public EloquaLinkedService withPassword(SecretBase password) { + this.password = password; + return this; + } + + /** + * Get specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. + * + * @return the useEncryptedEndpoints value + */ + public Object useEncryptedEndpoints() { + return this.useEncryptedEndpoints; + } + + /** + * Set specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. + * + * @param useEncryptedEndpoints the useEncryptedEndpoints value to set + * @return the EloquaLinkedService object itself. + */ + public EloquaLinkedService withUseEncryptedEndpoints(Object useEncryptedEndpoints) { + this.useEncryptedEndpoints = useEncryptedEndpoints; + return this; + } + + /** + * Get specifies whether to require the host name in the server's certificate to match the host name of the server when connecting over SSL. The default value is true. + * + * @return the useHostVerification value + */ + public Object useHostVerification() { + return this.useHostVerification; + } + + /** + * Set specifies whether to require the host name in the server's certificate to match the host name of the server when connecting over SSL. The default value is true. + * + * @param useHostVerification the useHostVerification value to set + * @return the EloquaLinkedService object itself. + */ + public EloquaLinkedService withUseHostVerification(Object useHostVerification) { + this.useHostVerification = useHostVerification; + return this; + } + + /** + * Get specifies whether to verify the identity of the server when connecting over SSL. The default value is true. + * + * @return the usePeerVerification value + */ + public Object usePeerVerification() { + return this.usePeerVerification; + } + + /** + * Set specifies whether to verify the identity of the server when connecting over SSL. The default value is true. + * + * @param usePeerVerification the usePeerVerification value to set + * @return the EloquaLinkedService object itself. + */ + public EloquaLinkedService withUsePeerVerification(Object usePeerVerification) { + this.usePeerVerification = usePeerVerification; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the EloquaLinkedService object itself. + */ + public EloquaLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/EloquaObjectDataset.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/EloquaObjectDataset.java new file mode 100644 index 0000000000000..8d329f708a8a8 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/EloquaObjectDataset.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DatasetInner; + +/** + * Eloqua server dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("EloquaObject") +@JsonFlatten +public class EloquaObjectDataset extends DatasetInner { + /** + * The table name. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; + + /** + * Get the table name. Type: string (or Expression with resultType string). + * + * @return the tableName value + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set the table name. Type: string (or Expression with resultType string). + * + * @param tableName the tableName value to set + * @return the EloquaObjectDataset object itself. + */ + public EloquaObjectDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/EloquaSource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/EloquaSource.java new file mode 100644 index 0000000000000..16d926d706a1b --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 a query to retrieve data from source. Type: string (or Expression with resultType string). + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set a query to retrieve data from source. Type: string (or Expression with resultType string). + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/EntityReference.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/EntityReference.java new file mode 100644 index 0000000000000..dc98b324a3853 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/EntityReference.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The entity reference. + */ +public class EntityReference { + /** + * The type of this referenced entity. Possible values include: + * 'IntegrationRuntimeReference', 'LinkedServiceReference'. + */ + @JsonProperty(value = "type") + private IntegrationRuntimeEntityReferenceType type; + + /** + * The name of this referenced entity. + */ + @JsonProperty(value = "referenceName") + private String referenceName; + + /** + * Get the type of this referenced entity. Possible values include: 'IntegrationRuntimeReference', 'LinkedServiceReference'. + * + * @return the type value + */ + public IntegrationRuntimeEntityReferenceType type() { + return this.type; + } + + /** + * Set the type of this referenced entity. Possible values include: 'IntegrationRuntimeReference', 'LinkedServiceReference'. + * + * @param type the type value to set + * @return the EntityReference object itself. + */ + public EntityReference withType(IntegrationRuntimeEntityReferenceType type) { + this.type = type; + return this; + } + + /** + * Get the name of this referenced entity. + * + * @return the referenceName value + */ + public String referenceName() { + return this.referenceName; + } + + /** + * Set the name of this referenced entity. + * + * @param referenceName the referenceName value to set + * @return the EntityReference object itself. + */ + public EntityReference withReferenceName(String referenceName) { + this.referenceName = referenceName; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ExecutePipelineActivity.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ExecutePipelineActivity.java new file mode 100644 index 0000000000000..d23abcd4185a9 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +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 pipeline reference. + * + * @return the pipeline value + */ + public PipelineReference pipeline() { + return this.pipeline; + } + + /** + * Set pipeline reference. + * + * @param pipeline the pipeline value to set + * @return the ExecutePipelineActivity object itself. + */ + public ExecutePipelineActivity withPipeline(PipelineReference pipeline) { + this.pipeline = pipeline; + return this; + } + + /** + * Get pipeline parameters. + * + * @return the parameters value + */ + public Map parameters() { + return this.parameters; + } + + /** + * Set pipeline parameters. + * + * @param parameters the parameters value to set + * @return the ExecutePipelineActivity object itself. + */ + public ExecutePipelineActivity withParameters(Map parameters) { + this.parameters = parameters; + return this; + } + + /** + * Get defines whether activity execution will wait for the dependent pipeline execution to finish. Default is false. + * + * @return the waitOnCompletion value + */ + public Boolean waitOnCompletion() { + return this.waitOnCompletion; + } + + /** + * Set defines whether activity execution will wait for the dependent pipeline execution to finish. Default is false. + * + * @param waitOnCompletion the waitOnCompletion value to set + * @return the ExecutePipelineActivity object itself. + */ + public ExecutePipelineActivity withWaitOnCompletion(Boolean waitOnCompletion) { + this.waitOnCompletion = waitOnCompletion; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ExecuteSSISPackageActivity.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ExecuteSSISPackageActivity.java new file mode 100644 index 0000000000000..653ce151f69db --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ExecuteSSISPackageActivity.java @@ -0,0 +1,339 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +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. The value should be "x86" + * or "x64". Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.runtime") + private Object runtime; + + /** + * The logging level of SSIS package execution. Type: string (or Expression + * with resultType string). + */ + @JsonProperty(value = "typeProperties.loggingLevel") + private Object loggingLevel; + + /** + * The environment path to execute the SSIS package. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.environmentPath") + private Object environmentPath; + + /** + * The package execution credential. + */ + @JsonProperty(value = "typeProperties.executionCredential") + private SSISExecutionCredential executionCredential; + + /** + * The integration runtime reference. + */ + @JsonProperty(value = "typeProperties.connectVia", required = true) + private IntegrationRuntimeReference connectVia; + + /** + * The project level parameters to execute the SSIS package. + */ + @JsonProperty(value = "typeProperties.projectParameters") + private Map projectParameters; + + /** + * The package level parameters to execute the SSIS package. + */ + @JsonProperty(value = "typeProperties.packageParameters") + private Map packageParameters; + + /** + * The project level connection managers to execute the SSIS package. + */ + @JsonProperty(value = "typeProperties.projectConnectionManagers") + private Map> projectConnectionManagers; + + /** + * The package level connection managers to execute the SSIS package. + */ + @JsonProperty(value = "typeProperties.packageConnectionManagers") + private Map> packageConnectionManagers; + + /** + * The property overrides to execute the SSIS package. + */ + @JsonProperty(value = "typeProperties.propertyOverrides") + private Map propertyOverrides; + + /** + * SSIS package execution log location. + */ + @JsonProperty(value = "typeProperties.logLocation") + private SSISLogLocation logLocation; + + /** + * Get sSIS package location. + * + * @return the packageLocation value + */ + public SSISPackageLocation packageLocation() { + return this.packageLocation; + } + + /** + * Set sSIS package location. + * + * @param packageLocation the packageLocation value to set + * @return the ExecuteSSISPackageActivity object itself. + */ + public ExecuteSSISPackageActivity withPackageLocation(SSISPackageLocation packageLocation) { + this.packageLocation = packageLocation; + return this; + } + + /** + * Get specifies the runtime to execute SSIS package. The value should be "x86" or "x64". Type: string (or Expression with resultType string). + * + * @return the runtime value + */ + public Object runtime() { + return this.runtime; + } + + /** + * Set specifies the runtime to execute SSIS package. The value should be "x86" or "x64". Type: string (or Expression with resultType string). + * + * @param runtime the runtime value to set + * @return the ExecuteSSISPackageActivity object itself. + */ + public ExecuteSSISPackageActivity withRuntime(Object runtime) { + this.runtime = runtime; + return this; + } + + /** + * Get the logging level of SSIS package execution. Type: string (or Expression with resultType string). + * + * @return the loggingLevel value + */ + public Object loggingLevel() { + return this.loggingLevel; + } + + /** + * Set the logging level of SSIS package execution. Type: string (or Expression with resultType string). + * + * @param loggingLevel the loggingLevel value to set + * @return the ExecuteSSISPackageActivity object itself. + */ + public ExecuteSSISPackageActivity withLoggingLevel(Object loggingLevel) { + this.loggingLevel = loggingLevel; + return this; + } + + /** + * Get the environment path to execute the SSIS package. Type: string (or Expression with resultType string). + * + * @return the environmentPath value + */ + public Object environmentPath() { + return this.environmentPath; + } + + /** + * Set the environment path to execute the SSIS package. Type: string (or Expression with resultType string). + * + * @param environmentPath the environmentPath value to set + * @return the ExecuteSSISPackageActivity object itself. + */ + public ExecuteSSISPackageActivity withEnvironmentPath(Object environmentPath) { + this.environmentPath = environmentPath; + return this; + } + + /** + * Get the package execution credential. + * + * @return the executionCredential value + */ + public SSISExecutionCredential executionCredential() { + return this.executionCredential; + } + + /** + * Set the package execution credential. + * + * @param executionCredential the executionCredential value to set + * @return the ExecuteSSISPackageActivity object itself. + */ + public ExecuteSSISPackageActivity withExecutionCredential(SSISExecutionCredential executionCredential) { + this.executionCredential = executionCredential; + return this; + } + + /** + * Get the integration runtime reference. + * + * @return the connectVia value + */ + public IntegrationRuntimeReference connectVia() { + return this.connectVia; + } + + /** + * Set the integration runtime reference. + * + * @param connectVia the connectVia value to set + * @return the ExecuteSSISPackageActivity object itself. + */ + public ExecuteSSISPackageActivity withConnectVia(IntegrationRuntimeReference connectVia) { + this.connectVia = connectVia; + return this; + } + + /** + * Get the project level parameters to execute the SSIS package. + * + * @return the projectParameters value + */ + public Map projectParameters() { + return this.projectParameters; + } + + /** + * Set the project level parameters to execute the SSIS package. + * + * @param projectParameters the projectParameters value to set + * @return the ExecuteSSISPackageActivity object itself. + */ + public ExecuteSSISPackageActivity withProjectParameters(Map projectParameters) { + this.projectParameters = projectParameters; + return this; + } + + /** + * Get the package level parameters to execute the SSIS package. + * + * @return the packageParameters value + */ + public Map packageParameters() { + return this.packageParameters; + } + + /** + * Set the package level parameters to execute the SSIS package. + * + * @param packageParameters the packageParameters value to set + * @return the ExecuteSSISPackageActivity object itself. + */ + public ExecuteSSISPackageActivity withPackageParameters(Map packageParameters) { + this.packageParameters = packageParameters; + return this; + } + + /** + * Get the project level connection managers to execute the SSIS package. + * + * @return the projectConnectionManagers value + */ + public Map> projectConnectionManagers() { + return this.projectConnectionManagers; + } + + /** + * Set the project level connection managers to execute the SSIS package. + * + * @param projectConnectionManagers the projectConnectionManagers value to set + * @return the ExecuteSSISPackageActivity object itself. + */ + public ExecuteSSISPackageActivity withProjectConnectionManagers(Map> projectConnectionManagers) { + this.projectConnectionManagers = projectConnectionManagers; + return this; + } + + /** + * Get the package level connection managers to execute the SSIS package. + * + * @return the packageConnectionManagers value + */ + public Map> packageConnectionManagers() { + return this.packageConnectionManagers; + } + + /** + * Set the package level connection managers to execute the SSIS package. + * + * @param packageConnectionManagers the packageConnectionManagers value to set + * @return the ExecuteSSISPackageActivity object itself. + */ + public ExecuteSSISPackageActivity withPackageConnectionManagers(Map> packageConnectionManagers) { + this.packageConnectionManagers = packageConnectionManagers; + return this; + } + + /** + * Get the property overrides to execute the SSIS package. + * + * @return the propertyOverrides value + */ + public Map propertyOverrides() { + return this.propertyOverrides; + } + + /** + * Set the property overrides to execute the SSIS package. + * + * @param propertyOverrides the propertyOverrides value to set + * @return the ExecuteSSISPackageActivity object itself. + */ + public ExecuteSSISPackageActivity withPropertyOverrides(Map propertyOverrides) { + this.propertyOverrides = propertyOverrides; + return this; + } + + /** + * Get sSIS package execution log location. + * + * @return the logLocation value + */ + public SSISLogLocation logLocation() { + return this.logLocation; + } + + /** + * Set sSIS package execution log location. + * + * @param logLocation the logLocation value to set + * @return the ExecuteSSISPackageActivity object itself. + */ + public ExecuteSSISPackageActivity withLogLocation(SSISLogLocation logLocation) { + this.logLocation = logLocation; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ExecutionActivity.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ExecutionActivity.java new file mode 100644 index 0000000000000..375fa683a611b --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ExecutionActivity.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.v2018_06_01; + +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 = "AzureFunctionActivity", value = AzureFunctionActivity.class), + @JsonSubTypes.Type(name = "DatabricksSparkPython", value = DatabricksSparkPythonActivity.class), + @JsonSubTypes.Type(name = "DatabricksSparkJar", value = DatabricksSparkJarActivity.class), + @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 = "AzureDataExplorerCommand", value = AzureDataExplorerCommandActivity.class), + @JsonSubTypes.Type(name = "Delete", value = DeleteActivity.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 linked service reference. + * + * @return the linkedServiceName value + */ + public LinkedServiceReference linkedServiceName() { + return this.linkedServiceName; + } + + /** + * Set linked service reference. + * + * @param linkedServiceName the linkedServiceName value to set + * @return the ExecutionActivity object itself. + */ + public ExecutionActivity withLinkedServiceName(LinkedServiceReference linkedServiceName) { + this.linkedServiceName = linkedServiceName; + return this; + } + + /** + * Get activity policy. + * + * @return the policy value + */ + public ActivityPolicy policy() { + return this.policy; + } + + /** + * Set activity policy. + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ExposureControlRequest.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ExposureControlRequest.java new file mode 100644 index 0000000000000..ead20bf206750 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ExposureControlRequest.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The exposure control request. + */ +public class ExposureControlRequest { + /** + * The feature name. + */ + @JsonProperty(value = "featureName") + private String featureName; + + /** + * The feature type. + */ + @JsonProperty(value = "featureType") + private String featureType; + + /** + * Get the feature name. + * + * @return the featureName value + */ + public String featureName() { + return this.featureName; + } + + /** + * Set the feature name. + * + * @param featureName the featureName value to set + * @return the ExposureControlRequest object itself. + */ + public ExposureControlRequest withFeatureName(String featureName) { + this.featureName = featureName; + return this; + } + + /** + * Get the feature type. + * + * @return the featureType value + */ + public String featureType() { + return this.featureType; + } + + /** + * Set the feature type. + * + * @param featureType the featureType value to set + * @return the ExposureControlRequest object itself. + */ + public ExposureControlRequest withFeatureType(String featureType) { + this.featureType = featureType; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ExposureControlResponse.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ExposureControlResponse.java new file mode 100644 index 0000000000000..dc88a161cefcb --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ExposureControlResponse.java @@ -0,0 +1,30 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DataFactoryManager; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.ExposureControlResponseInner; + +/** + * Type representing ExposureControlResponse. + */ +public interface ExposureControlResponse extends HasInner, HasManager { + /** + * @return the featureName value. + */ + String featureName(); + + /** + * @return the value value. + */ + String value(); + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ExposureControls.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ExposureControls.java new file mode 100644 index 0000000000000..49a99cf4c44ab --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ExposureControls.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.v2018_06_01; + +import rx.Observable; + +/** + * Type representing ExposureControls. + */ +public interface ExposureControls { + /** + * Get exposure control feature for specific location. + * + * @param locationId The location identifier. + * @param exposureControlRequest The exposure control request. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable getFeatureValueAsync(String locationId, ExposureControlRequest exposureControlRequest); + + /** + * Get exposure control feature for specific factory. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param exposureControlRequest The exposure control request. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable getFeatureValueByFactoryAsync(String resourceGroupName, String factoryName, ExposureControlRequest exposureControlRequest); + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/Expression.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/Expression.java new file mode 100644 index 0000000000000..239dbf365b514 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/Expression.java @@ -0,0 +1,77 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +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. + * @param value expression value. + */ + public Expression() { + type = "Expression"; + } + + /** + * Get expression type. + * + * @return the type value + */ + public String type() { + return this.type; + } + + /** + * Set expression type. + * + * @param type the type value to set + * @return the Expression object itself. + */ + public Expression withType(String type) { + this.type = type; + return this; + } + + /** + * Get expression value. + * + * @return the value value + */ + public String value() { + return this.value; + } + + /** + * Set expression 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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/Factories.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/Factories.java new file mode 100644 index 0000000000000..03380fc3a68a6 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/Factories.java @@ -0,0 +1,57 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +import com.microsoft.azure.arm.collection.SupportsCreating; +import com.microsoft.azure.arm.resources.collection.SupportsDeletingByResourceGroup; +import com.microsoft.azure.arm.resources.collection.SupportsBatchDeletion; +import com.microsoft.azure.arm.resources.collection.SupportsGettingByResourceGroup; +import rx.Observable; +import com.microsoft.azure.arm.resources.collection.SupportsListingByResourceGroup; +import com.microsoft.azure.arm.collection.SupportsListing; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.FactoriesInner; +import com.microsoft.azure.arm.model.HasInner; + +/** + * Type representing Factories. + */ +public interface Factories extends SupportsCreating, SupportsDeletingByResourceGroup, SupportsBatchDeletion, SupportsGettingByResourceGroup, SupportsListingByResourceGroup, SupportsListing, HasInner { + /** + * Get GitHub Access Token. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param gitHubAccessTokenRequest Get GitHub access token request definition. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable getGitHubAccessTokenAsync(String resourceGroupName, String factoryName, GitHubAccessTokenRequest gitHubAccessTokenRequest); + + /** + * Get Data Plane access. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param policy Data Plane user access policy definition. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable getDataPlaneAccessAsync(String resourceGroupName, String factoryName, UserAccessPolicy policy); + + /** + * Updates a factory's repo information. + * + * @param locationId The location identifier. + * @param factoryRepoUpdate Update factory repo request definition. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable configureFactoryRepoAsync(String locationId, FactoryRepoUpdate factoryRepoUpdate); + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/Factory.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/Factory.java new file mode 100644 index 0000000000000..f8544e543fe46 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/Factory.java @@ -0,0 +1,165 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.arm.resources.models.Resource; +import com.microsoft.azure.arm.resources.models.GroupableResourceCore; +import com.microsoft.azure.arm.resources.models.HasResourceGroup; +import com.microsoft.azure.arm.model.Refreshable; +import com.microsoft.azure.arm.model.Updatable; +import com.microsoft.azure.arm.model.Appliable; +import com.microsoft.azure.arm.model.Creatable; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DataFactoryManager; +import java.util.Map; +import org.joda.time.DateTime; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.FactoryInner; + +/** + * Type representing Factory. + */ +public interface Factory extends HasInner, Resource, GroupableResourceCore, HasResourceGroup, Refreshable, Updatable, HasManager { + /** + * @return the additionalProperties value. + */ + Map additionalProperties(); + + /** + * @return the createTime value. + */ + DateTime createTime(); + + /** + * @return the eTag value. + */ + String eTag(); + + /** + * @return the identity value. + */ + FactoryIdentity identity(); + + /** + * @return the provisioningState value. + */ + String provisioningState(); + + /** + * @return the repoConfiguration value. + */ + FactoryRepoConfiguration repoConfiguration(); + + /** + * @return the version value. + */ + String version(); + + /** + * The entirety of the Factory definition. + */ + interface Definition extends DefinitionStages.Blank, DefinitionStages.WithGroup, DefinitionStages.WithIfMatch, DefinitionStages.WithCreate { + } + + /** + * Grouping of Factory definition stages. + */ + interface DefinitionStages { + /** + * The first stage of a Factory definition. + */ + interface Blank extends GroupableResourceCore.DefinitionWithRegion { + } + + /** + * The stage of the Factory definition allowing to specify the resource group. + */ + interface WithGroup extends GroupableResourceCore.DefinitionStages.WithGroup { + } + + /** + * The stage of the factory definition allowing to specify IfMatch. + */ + interface WithIfMatch { + /** + * Specifies ifMatch. + * @param ifMatch ETag of the factory entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update + * @return the next definition stage +*/ + WithCreate withIfMatch(String ifMatch); + } + + /** + * The stage of the factory definition allowing to specify AdditionalProperties. + */ + interface WithAdditionalProperties { + /** + * Specifies additionalProperties. + * @param additionalProperties Unmatched properties from the message are deserialized this collection + * @return the next definition stage + */ + WithCreate withAdditionalProperties(Map additionalProperties); + } + + /** + * The stage of the factory definition allowing to specify Identity. + */ + interface WithIdentity { + /** + * Specifies identity. + * @param identity Managed service identity of the factory + * @return the next definition stage + */ + WithCreate withIdentity(FactoryIdentity identity); + } + + /** + * The stage of the factory definition allowing to specify RepoConfiguration. + */ + interface WithRepoConfiguration { + /** + * Specifies repoConfiguration. + * @param repoConfiguration Git repo information of the factory + * @return the next definition stage + */ + WithCreate withRepoConfiguration(FactoryRepoConfiguration repoConfiguration); + } + + /** + * The stage of the definition which contains all the minimum required inputs for + * the resource to be created (via {@link WithCreate#create()}), but also allows + * for any other optional settings to be specified. + */ + interface WithCreate extends Creatable, Resource.DefinitionWithTags, DefinitionStages.WithAdditionalProperties, DefinitionStages.WithIdentity, DefinitionStages.WithRepoConfiguration { + } + } + /** + * The template for a Factory update operation, containing all the settings that can be modified. + */ + interface Update extends Appliable, Resource.UpdateWithTags, UpdateStages.WithIdentity { + } + + /** + * Grouping of Factory update stages. + */ + interface UpdateStages { + /** + * The stage of the factory update allowing to specify Identity. + */ + interface WithIdentity { + /** + * Specifies identity. + * @param identity Managed service identity of the factory + * @return the next update stage + */ + Update withIdentity(FactoryIdentity identity); + } + + } +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FactoryGitHubConfiguration.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FactoryGitHubConfiguration.java new file mode 100644 index 0000000000000..49e4dadc6eed2 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FactoryGitHubConfiguration.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * Factory's GitHub repo information. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("FactoryGitHubConfiguration") +public class FactoryGitHubConfiguration extends FactoryRepoConfiguration { + /** + * GitHub Enterprise host name. For example: https://github.mydomain.com. + */ + @JsonProperty(value = "hostName") + private String hostName; + + /** + * Get gitHub Enterprise host name. For example: https://github.mydomain.com. + * + * @return the hostName value + */ + public String hostName() { + return this.hostName; + } + + /** + * Set gitHub Enterprise host name. For example: https://github.mydomain.com. + * + * @param hostName the hostName value to set + * @return the FactoryGitHubConfiguration object itself. + */ + public FactoryGitHubConfiguration withHostName(String hostName) { + this.hostName = hostName; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FactoryIdentity.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FactoryIdentity.java new file mode 100644 index 0000000000000..b74ec3e29d868 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 identity type. Currently the only supported type is 'SystemAssigned'. + * + * @return the type value + */ + public String type() { + return this.type; + } + + /** + * Set the identity type. Currently the only supported type is 'SystemAssigned'. + * + * @param type the type value to set + * @return the FactoryIdentity object itself. + */ + public FactoryIdentity withType(String type) { + this.type = type; + return this; + } + + /** + * Get the principal id of the identity. + * + * @return the principalId value + */ + public UUID principalId() { + return this.principalId; + } + + /** + * Get the client tenant id of the identity. + * + * @return the tenantId value + */ + public UUID tenantId() { + return this.tenantId; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FactoryRepoConfiguration.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FactoryRepoConfiguration.java new file mode 100644 index 0000000000000..93619e943855c --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FactoryRepoConfiguration.java @@ -0,0 +1,156 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonSubTypes; + +/** + * Factory's git repo information. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("FactoryRepoConfiguration") +@JsonSubTypes({ + @JsonSubTypes.Type(name = "FactoryVSTSConfiguration", value = FactoryVSTSConfiguration.class), + @JsonSubTypes.Type(name = "FactoryGitHubConfiguration", value = FactoryGitHubConfiguration.class) +}) +public class FactoryRepoConfiguration { + /** + * Account name. + */ + @JsonProperty(value = "accountName", required = true) + private String accountName; + + /** + * Repository name. + */ + @JsonProperty(value = "repositoryName", required = true) + private String repositoryName; + + /** + * Collaboration branch. + */ + @JsonProperty(value = "collaborationBranch", required = true) + private String collaborationBranch; + + /** + * Root folder. + */ + @JsonProperty(value = "rootFolder", required = true) + private String rootFolder; + + /** + * Last commit id. + */ + @JsonProperty(value = "lastCommitId") + private String lastCommitId; + + /** + * Get account name. + * + * @return the accountName value + */ + public String accountName() { + return this.accountName; + } + + /** + * Set account name. + * + * @param accountName the accountName value to set + * @return the FactoryRepoConfiguration object itself. + */ + public FactoryRepoConfiguration withAccountName(String accountName) { + this.accountName = accountName; + return this; + } + + /** + * Get repository name. + * + * @return the repositoryName value + */ + public String repositoryName() { + return this.repositoryName; + } + + /** + * Set repository name. + * + * @param repositoryName the repositoryName value to set + * @return the FactoryRepoConfiguration object itself. + */ + public FactoryRepoConfiguration withRepositoryName(String repositoryName) { + this.repositoryName = repositoryName; + return this; + } + + /** + * Get collaboration branch. + * + * @return the collaborationBranch value + */ + public String collaborationBranch() { + return this.collaborationBranch; + } + + /** + * Set collaboration branch. + * + * @param collaborationBranch the collaborationBranch value to set + * @return the FactoryRepoConfiguration object itself. + */ + public FactoryRepoConfiguration withCollaborationBranch(String collaborationBranch) { + this.collaborationBranch = collaborationBranch; + return this; + } + + /** + * Get root folder. + * + * @return the rootFolder value + */ + public String rootFolder() { + return this.rootFolder; + } + + /** + * Set root folder. + * + * @param rootFolder the rootFolder value to set + * @return the FactoryRepoConfiguration object itself. + */ + public FactoryRepoConfiguration withRootFolder(String rootFolder) { + this.rootFolder = rootFolder; + return this; + } + + /** + * Get last commit id. + * + * @return the lastCommitId value + */ + public String lastCommitId() { + return this.lastCommitId; + } + + /** + * Set last commit id. + * + * @param lastCommitId the lastCommitId value to set + * @return the FactoryRepoConfiguration object itself. + */ + public FactoryRepoConfiguration withLastCommitId(String lastCommitId) { + this.lastCommitId = lastCommitId; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FactoryRepoUpdate.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FactoryRepoUpdate.java new file mode 100644 index 0000000000000..f242e21936fea --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FactoryRepoUpdate.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Factory's git repo information. + */ +public class FactoryRepoUpdate { + /** + * The factory resource id. + */ + @JsonProperty(value = "factoryResourceId") + private String factoryResourceId; + + /** + * Git repo information of the factory. + */ + @JsonProperty(value = "repoConfiguration") + private FactoryRepoConfiguration repoConfiguration; + + /** + * Get the factory resource id. + * + * @return the factoryResourceId value + */ + public String factoryResourceId() { + return this.factoryResourceId; + } + + /** + * Set the factory resource id. + * + * @param factoryResourceId the factoryResourceId value to set + * @return the FactoryRepoUpdate object itself. + */ + public FactoryRepoUpdate withFactoryResourceId(String factoryResourceId) { + this.factoryResourceId = factoryResourceId; + return this; + } + + /** + * Get git repo information of the factory. + * + * @return the repoConfiguration value + */ + public FactoryRepoConfiguration repoConfiguration() { + return this.repoConfiguration; + } + + /** + * Set git repo information of the factory. + * + * @param repoConfiguration the repoConfiguration value to set + * @return the FactoryRepoUpdate object itself. + */ + public FactoryRepoUpdate withRepoConfiguration(FactoryRepoConfiguration repoConfiguration) { + this.repoConfiguration = repoConfiguration; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FactoryTriggerResource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FactoryTriggerResource.java new file mode 100644 index 0000000000000..9360d64a4b1fd --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FactoryTriggerResource.java @@ -0,0 +1,149 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.TriggerResourceInner; +import com.microsoft.azure.arm.model.Indexable; +import com.microsoft.azure.arm.model.Refreshable; +import com.microsoft.azure.arm.model.Updatable; +import com.microsoft.azure.arm.model.Appliable; +import com.microsoft.azure.arm.model.Creatable; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DataFactoryManager; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.TriggerInner; +import java.util.Map; +import java.util.List; + +/** + * Type representing FactoryTriggerResource. + */ +public interface FactoryTriggerResource extends HasInner, Indexable, Refreshable, Updatable, HasManager { + /** + * @return the etag value. + */ + String etag(); + + /** + * @return the id value. + */ + String id(); + + /** + * @return the name value. + */ + String name(); + + /** + * @return the properties value. + */ + TriggerInner properties(); + + /** + * @return the type value. + */ + String type(); + + /** + * The entirety of the FactoryTriggerResource definition. + */ + interface Definition extends DefinitionStages.Blank, DefinitionStages.WithFactory, DefinitionStages.WithIfMatch, DefinitionStages.WithProperties, DefinitionStages.WithCreate { + } + + /** + * Grouping of FactoryTriggerResource definition stages. + */ + interface DefinitionStages { + /** + * The first stage of a FactoryTriggerResource definition. + */ + interface Blank extends WithFactory { + } + + /** + * The stage of the factorytriggerresource definition allowing to specify Factory. + */ + interface WithFactory { + /** + * Specifies resourceGroupName, factoryName. + * @param resourceGroupName The resource group name + * @param factoryName The factory name + * @return the next definition stage + */ + WithIfMatch withExistingFactory(String resourceGroupName, String factoryName); + } + + /** + * The stage of the factorytriggerresource definition allowing to specify IfMatch. + */ + interface WithIfMatch { + /** + * Specifies ifMatch. + * @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 + * @return the next definition stage + */ + WithProperties withIfMatch(String ifMatch); + } + + /** + * The stage of the factorytriggerresource definition allowing to specify Properties. + */ + interface WithProperties { + /** + * Specifies properties. + * @param properties Properties of the trigger + * @return the next definition stage + */ + WithCreate withProperties(TriggerInner properties); + } + + /** + * The stage of the definition which contains all the minimum required inputs for + * the resource to be created (via {@link WithCreate#create()}), but also allows + * for any other optional settings to be specified. + */ + interface WithCreate extends Creatable { + } + } + /** + * The template for a FactoryTriggerResource update operation, containing all the settings that can be modified. + */ + interface Update extends Appliable, UpdateStages.WithIfMatch, UpdateStages.WithProperties { + } + + /** + * Grouping of FactoryTriggerResource update stages. + */ + interface UpdateStages { + /** + * The stage of the factorytriggerresource update allowing to specify IfMatch. + */ + interface WithIfMatch { + /** + * Specifies ifMatch. + * @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 + * @return the next update stage + */ + Update withIfMatch(String ifMatch); + } + + /** + * The stage of the factorytriggerresource update allowing to specify Properties. + */ + interface WithProperties { + /** + * Specifies properties. + * @param properties Properties of the trigger + * @return the next update stage + */ + Update withProperties(TriggerInner properties); + } + + } +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FactoryUpdateParameters.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FactoryUpdateParameters.java new file mode 100644 index 0000000000000..16eb64881bbc3 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FactoryUpdateParameters.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.v2018_06_01; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Parameters for updating a factory resource. + */ +public class FactoryUpdateParameters { + /** + * The resource tags. + */ + @JsonProperty(value = "tags") + private Map tags; + + /** + * Managed service identity of the factory. + */ + @JsonProperty(value = "identity") + private FactoryIdentity identity; + + /** + * Get the resource tags. + * + * @return the tags value + */ + public Map tags() { + return this.tags; + } + + /** + * Set the resource tags. + * + * @param tags the tags value to set + * @return the FactoryUpdateParameters object itself. + */ + public FactoryUpdateParameters withTags(Map tags) { + this.tags = tags; + return this; + } + + /** + * Get managed service identity of the factory. + * + * @return the identity value + */ + public FactoryIdentity identity() { + return this.identity; + } + + /** + * Set managed service identity of the factory. + * + * @param identity the identity value to set + * @return the FactoryUpdateParameters object itself. + */ + public FactoryUpdateParameters withIdentity(FactoryIdentity identity) { + this.identity = identity; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FactoryVSTSConfiguration.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FactoryVSTSConfiguration.java new file mode 100644 index 0000000000000..c2bc4eede6175 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FactoryVSTSConfiguration.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * Factory's VSTS repo information. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("FactoryVSTSConfiguration") +public class FactoryVSTSConfiguration extends FactoryRepoConfiguration { + /** + * VSTS project name. + */ + @JsonProperty(value = "projectName", required = true) + private String projectName; + + /** + * VSTS tenant id. + */ + @JsonProperty(value = "tenantId") + private String tenantId; + + /** + * Get vSTS project name. + * + * @return the projectName value + */ + public String projectName() { + return this.projectName; + } + + /** + * Set vSTS project name. + * + * @param projectName the projectName value to set + * @return the FactoryVSTSConfiguration object itself. + */ + public FactoryVSTSConfiguration withProjectName(String projectName) { + this.projectName = projectName; + return this; + } + + /** + * Get vSTS tenant id. + * + * @return the tenantId value + */ + public String tenantId() { + return this.tenantId; + } + + /** + * Set vSTS tenant id. + * + * @param tenantId the tenantId value to set + * @return the FactoryVSTSConfiguration object itself. + */ + public FactoryVSTSConfiguration withTenantId(String tenantId) { + this.tenantId = tenantId; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FileServerLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FileServerLinkedService.java new file mode 100644 index 0000000000000..7fe0f8b289507 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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 host name of the server. Type: string (or Expression with resultType string). + * + * @return the host value + */ + public Object host() { + return this.host; + } + + /** + * Set host name of the server. Type: string (or Expression with resultType string). + * + * @param host the host value to set + * @return the FileServerLinkedService object itself. + */ + public FileServerLinkedService withHost(Object host) { + this.host = host; + return this; + } + + /** + * Get user ID to logon the server. Type: string (or Expression with resultType string). + * + * @return the userId value + */ + public Object userId() { + return this.userId; + } + + /** + * Set user ID to logon the server. Type: string (or Expression with resultType string). + * + * @param userId the userId value to set + * @return the FileServerLinkedService object itself. + */ + public FileServerLinkedService withUserId(Object userId) { + this.userId = userId; + return this; + } + + /** + * Get password to logon the server. + * + * @return the password value + */ + public SecretBase password() { + return this.password; + } + + /** + * Set password to logon the server. + * + * @param password the password value to set + * @return the FileServerLinkedService object itself. + */ + public FileServerLinkedService withPassword(SecretBase password) { + this.password = password; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the FileServerLinkedService object itself. + */ + public FileServerLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FileServerLocation.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FileServerLocation.java new file mode 100644 index 0000000000000..9c82fd23abc3f --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FileServerLocation.java @@ -0,0 +1,16 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + + +/** + * The location of file server dataset. + */ +public class FileServerLocation extends DatasetLocation { +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FileServerReadSettings.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FileServerReadSettings.java new file mode 100644 index 0000000000000..77a388a542630 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FileServerReadSettings.java @@ -0,0 +1,178 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * File server read settings. + */ +public class FileServerReadSettings extends StoreReadSettings { + /** + * 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; + + /** + * FileServer wildcardFolderPath. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "wildcardFolderPath") + private Object wildcardFolderPath; + + /** + * FileServer wildcardFileName. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "wildcardFileName") + private Object wildcardFileName; + + /** + * Indicates whether to enable partition discovery. + */ + @JsonProperty(value = "enablePartitionDiscovery") + private Boolean enablePartitionDiscovery; + + /** + * The start of file's modified datetime. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "modifiedDatetimeStart") + private Object modifiedDatetimeStart; + + /** + * The end of file's modified datetime. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "modifiedDatetimeEnd") + private Object modifiedDatetimeEnd; + + /** + * Get if true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType boolean). + * + * @return the recursive value + */ + public Object recursive() { + return this.recursive; + } + + /** + * Set if true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType boolean). + * + * @param recursive the recursive value to set + * @return the FileServerReadSettings object itself. + */ + public FileServerReadSettings withRecursive(Object recursive) { + this.recursive = recursive; + return this; + } + + /** + * Get fileServer wildcardFolderPath. Type: string (or Expression with resultType string). + * + * @return the wildcardFolderPath value + */ + public Object wildcardFolderPath() { + return this.wildcardFolderPath; + } + + /** + * Set fileServer wildcardFolderPath. Type: string (or Expression with resultType string). + * + * @param wildcardFolderPath the wildcardFolderPath value to set + * @return the FileServerReadSettings object itself. + */ + public FileServerReadSettings withWildcardFolderPath(Object wildcardFolderPath) { + this.wildcardFolderPath = wildcardFolderPath; + return this; + } + + /** + * Get fileServer wildcardFileName. Type: string (or Expression with resultType string). + * + * @return the wildcardFileName value + */ + public Object wildcardFileName() { + return this.wildcardFileName; + } + + /** + * Set fileServer wildcardFileName. Type: string (or Expression with resultType string). + * + * @param wildcardFileName the wildcardFileName value to set + * @return the FileServerReadSettings object itself. + */ + public FileServerReadSettings withWildcardFileName(Object wildcardFileName) { + this.wildcardFileName = wildcardFileName; + return this; + } + + /** + * Get indicates whether to enable partition discovery. + * + * @return the enablePartitionDiscovery value + */ + public Boolean enablePartitionDiscovery() { + return this.enablePartitionDiscovery; + } + + /** + * Set indicates whether to enable partition discovery. + * + * @param enablePartitionDiscovery the enablePartitionDiscovery value to set + * @return the FileServerReadSettings object itself. + */ + public FileServerReadSettings withEnablePartitionDiscovery(Boolean enablePartitionDiscovery) { + this.enablePartitionDiscovery = enablePartitionDiscovery; + return this; + } + + /** + * Get the start of file's modified datetime. Type: string (or Expression with resultType string). + * + * @return the modifiedDatetimeStart value + */ + public Object modifiedDatetimeStart() { + return this.modifiedDatetimeStart; + } + + /** + * Set the start of file's modified datetime. Type: string (or Expression with resultType string). + * + * @param modifiedDatetimeStart the modifiedDatetimeStart value to set + * @return the FileServerReadSettings object itself. + */ + public FileServerReadSettings withModifiedDatetimeStart(Object modifiedDatetimeStart) { + this.modifiedDatetimeStart = modifiedDatetimeStart; + return this; + } + + /** + * Get the end of file's modified datetime. Type: string (or Expression with resultType string). + * + * @return the modifiedDatetimeEnd value + */ + public Object modifiedDatetimeEnd() { + return this.modifiedDatetimeEnd; + } + + /** + * Set the end of file's modified datetime. Type: string (or Expression with resultType string). + * + * @param modifiedDatetimeEnd the modifiedDatetimeEnd value to set + * @return the FileServerReadSettings object itself. + */ + public FileServerReadSettings withModifiedDatetimeEnd(Object modifiedDatetimeEnd) { + this.modifiedDatetimeEnd = modifiedDatetimeEnd; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FileServerWriteSettings.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FileServerWriteSettings.java new file mode 100644 index 0000000000000..8e76196f7dca8 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FileServerWriteSettings.java @@ -0,0 +1,16 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + + +/** + * File server write settings. + */ +public class FileServerWriteSettings extends StoreWriteSettings { +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FileShareDataset.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FileShareDataset.java new file mode 100644 index 0000000000000..9fa05b02b5a95 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FileShareDataset.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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 start of file's modified datetime. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.modifiedDatetimeStart") + private Object modifiedDatetimeStart; + + /** + * The end of file's modified datetime. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.modifiedDatetimeEnd") + private Object modifiedDatetimeEnd; + + /** + * 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 path of the on-premises file system. Type: string (or Expression with resultType string). + * + * @return the folderPath value + */ + public Object folderPath() { + return this.folderPath; + } + + /** + * Set the path of the on-premises file system. Type: string (or Expression with resultType string). + * + * @param folderPath the folderPath value to set + * @return the FileShareDataset object itself. + */ + public FileShareDataset withFolderPath(Object folderPath) { + this.folderPath = folderPath; + return this; + } + + /** + * Get the name of the on-premises file system. Type: string (or Expression with resultType string). + * + * @return the fileName value + */ + public Object fileName() { + return this.fileName; + } + + /** + * Set the name of the on-premises file system. Type: string (or Expression with resultType string). + * + * @param fileName the fileName value to set + * @return the FileShareDataset object itself. + */ + public FileShareDataset withFileName(Object fileName) { + this.fileName = fileName; + return this; + } + + /** + * Get the start of file's modified datetime. Type: string (or Expression with resultType string). + * + * @return the modifiedDatetimeStart value + */ + public Object modifiedDatetimeStart() { + return this.modifiedDatetimeStart; + } + + /** + * Set the start of file's modified datetime. Type: string (or Expression with resultType string). + * + * @param modifiedDatetimeStart the modifiedDatetimeStart value to set + * @return the FileShareDataset object itself. + */ + public FileShareDataset withModifiedDatetimeStart(Object modifiedDatetimeStart) { + this.modifiedDatetimeStart = modifiedDatetimeStart; + return this; + } + + /** + * Get the end of file's modified datetime. Type: string (or Expression with resultType string). + * + * @return the modifiedDatetimeEnd value + */ + public Object modifiedDatetimeEnd() { + return this.modifiedDatetimeEnd; + } + + /** + * Set the end of file's modified datetime. Type: string (or Expression with resultType string). + * + * @param modifiedDatetimeEnd the modifiedDatetimeEnd value to set + * @return the FileShareDataset object itself. + */ + public FileShareDataset withModifiedDatetimeEnd(Object modifiedDatetimeEnd) { + this.modifiedDatetimeEnd = modifiedDatetimeEnd; + return this; + } + + /** + * Get the format of the files. + * + * @return the format value + */ + public DatasetStorageFormat format() { + return this.format; + } + + /** + * Set the format of the files. + * + * @param format the format value to set + * @return the FileShareDataset object itself. + */ + public FileShareDataset withFormat(DatasetStorageFormat format) { + this.format = format; + return this; + } + + /** + * Get specify a filter to be used to select a subset of files in the folderPath rather than all files. Type: string (or Expression with resultType string). + * + * @return the fileFilter value + */ + public Object fileFilter() { + return this.fileFilter; + } + + /** + * Set specify a filter to be used to select a subset of files in the folderPath rather than all files. Type: string (or Expression with resultType string). + * + * @param fileFilter the fileFilter value to set + * @return the FileShareDataset object itself. + */ + public FileShareDataset withFileFilter(Object fileFilter) { + this.fileFilter = fileFilter; + return this; + } + + /** + * Get the data compression method used for the file system. + * + * @return the compression value + */ + public DatasetCompression compression() { + return this.compression; + } + + /** + * Set the data compression method used for the file system. + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FileSystemSink.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FileSystemSink.java new file mode 100644 index 0000000000000..e7caddad1c8de --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FileSystemSink.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.v2018_06_01; + +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. + */ + @JsonProperty(value = "copyBehavior") + private Object copyBehavior; + + /** + * Get the type of copy behavior for copy sink. + * + * @return the copyBehavior value + */ + public Object copyBehavior() { + return this.copyBehavior; + } + + /** + * Set the type of copy behavior for copy sink. + * + * @param copyBehavior the copyBehavior value to set + * @return the FileSystemSink object itself. + */ + public FileSystemSink withCopyBehavior(Object copyBehavior) { + this.copyBehavior = copyBehavior; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FileSystemSource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FileSystemSource.java new file mode 100644 index 0000000000000..448e5c2ebc799 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 if true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType boolean). + * + * @return the recursive value + */ + public Object recursive() { + return this.recursive; + } + + /** + * Set if true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType boolean). + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FilterActivity.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FilterActivity.java new file mode 100644 index 0000000000000..799c82e430c20 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; + +/** + * 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 input array on which filter should be applied. + * + * @return the items value + */ + public Expression items() { + return this.items; + } + + /** + * Set input array on which filter should be applied. + * + * @param items the items value to set + * @return the FilterActivity object itself. + */ + public FilterActivity withItems(Expression items) { + this.items = items; + return this; + } + + /** + * Get condition to be used for filtering the input. + * + * @return the condition value + */ + public Expression condition() { + return this.condition; + } + + /** + * Set condition to be used for filtering the input. + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ForEachActivity.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ForEachActivity.java new file mode 100644 index 0000000000000..ad16c132befed --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 should the loop be executed in sequence or in parallel (max 50). + * + * @return the isSequential value + */ + public Boolean isSequential() { + return this.isSequential; + } + + /** + * Set should the loop be executed in sequence or in parallel (max 50). + * + * @param isSequential the isSequential value to set + * @return the ForEachActivity object itself. + */ + public ForEachActivity withIsSequential(Boolean isSequential) { + this.isSequential = isSequential; + return this; + } + + /** + * Get batch count to be used for controlling the number of parallel execution (when isSequential is set to false). + * + * @return the batchCount value + */ + public Integer batchCount() { + return this.batchCount; + } + + /** + * Set batch count to be used for controlling the number of parallel execution (when isSequential is set to false). + * + * @param batchCount the batchCount value to set + * @return the ForEachActivity object itself. + */ + public ForEachActivity withBatchCount(Integer batchCount) { + this.batchCount = batchCount; + return this; + } + + /** + * Get collection to iterate. + * + * @return the items value + */ + public Expression items() { + return this.items; + } + + /** + * Set collection to iterate. + * + * @param items the items value to set + * @return the ForEachActivity object itself. + */ + public ForEachActivity withItems(Expression items) { + this.items = items; + return this; + } + + /** + * Get list of activities to execute . + * + * @return the activities value + */ + public List activities() { + return this.activities; + } + + /** + * Set list of activities to execute . + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FormatReadSettings.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FormatReadSettings.java new file mode 100644 index 0000000000000..02d94573f2cb2 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FormatReadSettings.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.v2018_06_01; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Format read settings. + */ +public class FormatReadSettings { + /** + * Unmatched properties from the message are deserialized this collection. + */ + @JsonProperty(value = "") + private Map additionalProperties; + + /** + * The read setting type. + */ + @JsonProperty(value = "type", required = true) + private String type; + + /** + * Get unmatched properties from the message are deserialized this collection. + * + * @return the additionalProperties value + */ + public Map additionalProperties() { + return this.additionalProperties; + } + + /** + * Set unmatched properties from the message are deserialized this collection. + * + * @param additionalProperties the additionalProperties value to set + * @return the FormatReadSettings object itself. + */ + public FormatReadSettings withAdditionalProperties(Map additionalProperties) { + this.additionalProperties = additionalProperties; + return this; + } + + /** + * Get the read setting type. + * + * @return the type value + */ + public String type() { + return this.type; + } + + /** + * Set the read setting type. + * + * @param type the type value to set + * @return the FormatReadSettings object itself. + */ + public FormatReadSettings withType(String type) { + this.type = type; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FormatWriteSettings.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FormatWriteSettings.java new file mode 100644 index 0000000000000..7cc9dced350fd --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FormatWriteSettings.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.v2018_06_01; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Format write settings. + */ +public class FormatWriteSettings { + /** + * Unmatched properties from the message are deserialized this collection. + */ + @JsonProperty(value = "") + private Map additionalProperties; + + /** + * The write setting type. + */ + @JsonProperty(value = "type", required = true) + private String type; + + /** + * Get unmatched properties from the message are deserialized this collection. + * + * @return the additionalProperties value + */ + public Map additionalProperties() { + return this.additionalProperties; + } + + /** + * Set unmatched properties from the message are deserialized this collection. + * + * @param additionalProperties the additionalProperties value to set + * @return the FormatWriteSettings object itself. + */ + public FormatWriteSettings withAdditionalProperties(Map additionalProperties) { + this.additionalProperties = additionalProperties; + return this; + } + + /** + * Get the write setting type. + * + * @return the type value + */ + public String type() { + return this.type; + } + + /** + * Set the write setting type. + * + * @param type the type value to set + * @return the FormatWriteSettings object itself. + */ + public FormatWriteSettings withType(String type) { + this.type = type; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FtpAuthenticationType.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FtpAuthenticationType.java new file mode 100644 index 0000000000000..976d1e507f442 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FtpReadSettings.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FtpReadSettings.java new file mode 100644 index 0000000000000..d869812b2b2d2 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FtpReadSettings.java @@ -0,0 +1,124 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Ftp read settings. + */ +public class FtpReadSettings extends StoreReadSettings { + /** + * 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; + + /** + * Ftp wildcardFolderPath. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "wildcardFolderPath") + private Object wildcardFolderPath; + + /** + * Ftp wildcardFileName. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "wildcardFileName") + private Object wildcardFileName; + + /** + * Specify whether to use binary transfer mode for FTP stores. + */ + @JsonProperty(value = "useBinaryTransfer") + private Boolean useBinaryTransfer; + + /** + * Get if true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType boolean). + * + * @return the recursive value + */ + public Object recursive() { + return this.recursive; + } + + /** + * Set if true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType boolean). + * + * @param recursive the recursive value to set + * @return the FtpReadSettings object itself. + */ + public FtpReadSettings withRecursive(Object recursive) { + this.recursive = recursive; + return this; + } + + /** + * Get ftp wildcardFolderPath. Type: string (or Expression with resultType string). + * + * @return the wildcardFolderPath value + */ + public Object wildcardFolderPath() { + return this.wildcardFolderPath; + } + + /** + * Set ftp wildcardFolderPath. Type: string (or Expression with resultType string). + * + * @param wildcardFolderPath the wildcardFolderPath value to set + * @return the FtpReadSettings object itself. + */ + public FtpReadSettings withWildcardFolderPath(Object wildcardFolderPath) { + this.wildcardFolderPath = wildcardFolderPath; + return this; + } + + /** + * Get ftp wildcardFileName. Type: string (or Expression with resultType string). + * + * @return the wildcardFileName value + */ + public Object wildcardFileName() { + return this.wildcardFileName; + } + + /** + * Set ftp wildcardFileName. Type: string (or Expression with resultType string). + * + * @param wildcardFileName the wildcardFileName value to set + * @return the FtpReadSettings object itself. + */ + public FtpReadSettings withWildcardFileName(Object wildcardFileName) { + this.wildcardFileName = wildcardFileName; + return this; + } + + /** + * Get specify whether to use binary transfer mode for FTP stores. + * + * @return the useBinaryTransfer value + */ + public Boolean useBinaryTransfer() { + return this.useBinaryTransfer; + } + + /** + * Set specify whether to use binary transfer mode for FTP stores. + * + * @param useBinaryTransfer the useBinaryTransfer value to set + * @return the FtpReadSettings object itself. + */ + public FtpReadSettings withUseBinaryTransfer(Boolean useBinaryTransfer) { + this.useBinaryTransfer = useBinaryTransfer; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FtpServerLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FtpServerLinkedService.java new file mode 100644 index 0000000000000..9e9b12498ab62 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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 host name of the FTP server. Type: string (or Expression with resultType string). + * + * @return the host value + */ + public Object host() { + return this.host; + } + + /** + * Set host name of the FTP server. Type: string (or Expression with resultType string). + * + * @param host the host value to set + * @return the FtpServerLinkedService object itself. + */ + public FtpServerLinkedService withHost(Object host) { + this.host = host; + return this; + } + + /** + * Get the TCP port number that the FTP server uses to listen for client connections. Default value is 21. Type: integer (or Expression with resultType integer), minimum: 0. + * + * @return the port value + */ + public Object port() { + return this.port; + } + + /** + * Set the TCP port number that the FTP server uses to listen for client connections. Default value is 21. Type: integer (or Expression with resultType integer), minimum: 0. + * + * @param port the port value to set + * @return the FtpServerLinkedService object itself. + */ + public FtpServerLinkedService withPort(Object port) { + this.port = port; + return this; + } + + /** + * Get the authentication type to be used to connect to the FTP server. Possible values include: 'Basic', 'Anonymous'. + * + * @return the authenticationType value + */ + public FtpAuthenticationType authenticationType() { + return this.authenticationType; + } + + /** + * Set the authentication type to be used to connect to the FTP server. Possible values include: 'Basic', 'Anonymous'. + * + * @param authenticationType the authenticationType value to set + * @return the FtpServerLinkedService object itself. + */ + public FtpServerLinkedService withAuthenticationType(FtpAuthenticationType authenticationType) { + this.authenticationType = authenticationType; + return this; + } + + /** + * Get username to logon the FTP server. Type: string (or Expression with resultType string). + * + * @return the userName value + */ + public Object userName() { + return this.userName; + } + + /** + * Set username to logon the FTP server. Type: string (or Expression with resultType string). + * + * @param userName the userName value to set + * @return the FtpServerLinkedService object itself. + */ + public FtpServerLinkedService withUserName(Object userName) { + this.userName = userName; + return this; + } + + /** + * Get password to logon the FTP server. + * + * @return the password value + */ + public SecretBase password() { + return this.password; + } + + /** + * Set password to logon the FTP server. + * + * @param password the password value to set + * @return the FtpServerLinkedService object itself. + */ + public FtpServerLinkedService withPassword(SecretBase password) { + this.password = password; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the FtpServerLinkedService object itself. + */ + public FtpServerLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + + /** + * Get if true, connect to the FTP server over SSL/TLS channel. Default value is true. Type: boolean (or Expression with resultType boolean). + * + * @return the enableSsl value + */ + public Object enableSsl() { + return this.enableSsl; + } + + /** + * Set if true, connect to the FTP server over SSL/TLS channel. Default value is true. Type: boolean (or Expression with resultType boolean). + * + * @param enableSsl the enableSsl value to set + * @return the FtpServerLinkedService object itself. + */ + public FtpServerLinkedService withEnableSsl(Object enableSsl) { + this.enableSsl = enableSsl; + return this; + } + + /** + * Get if true, validate the FTP server SSL certificate when connect over SSL/TLS channel. Default value is true. Type: boolean (or Expression with resultType boolean). + * + * @return the enableServerCertificateValidation value + */ + public Object enableServerCertificateValidation() { + return this.enableServerCertificateValidation; + } + + /** + * Set if true, validate the FTP server SSL certificate when connect over SSL/TLS channel. Default value is true. Type: boolean (or Expression with resultType boolean). + * + * @param enableServerCertificateValidation the enableServerCertificateValidation value to set + * @return the FtpServerLinkedService object itself. + */ + public FtpServerLinkedService withEnableServerCertificateValidation(Object enableServerCertificateValidation) { + this.enableServerCertificateValidation = enableServerCertificateValidation; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FtpServerLocation.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FtpServerLocation.java new file mode 100644 index 0000000000000..33e797345bb23 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/FtpServerLocation.java @@ -0,0 +1,16 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + + +/** + * The location of ftp server dataset. + */ +public class FtpServerLocation extends DatasetLocation { +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/GetMetadataActivity.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/GetMetadataActivity.java new file mode 100644 index 0000000000000..1d8892dd22ef8 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 getMetadata activity dataset reference. + * + * @return the dataset value + */ + public DatasetReference dataset() { + return this.dataset; + } + + /** + * Set getMetadata activity dataset reference. + * + * @param dataset the dataset value to set + * @return the GetMetadataActivity object itself. + */ + public GetMetadataActivity withDataset(DatasetReference dataset) { + this.dataset = dataset; + return this; + } + + /** + * Get fields of metadata to get from dataset. + * + * @return the fieldList value + */ + public List fieldList() { + return this.fieldList; + } + + /** + * Set fields of metadata to get from dataset. + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/GetSsisObjectMetadataRequest.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/GetSsisObjectMetadataRequest.java new file mode 100644 index 0000000000000..47aa2429da709 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/GetSsisObjectMetadataRequest.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The request payload of get SSIS object metadata. + */ +public class GetSsisObjectMetadataRequest { + /** + * Metadata path. + */ + @JsonProperty(value = "metadataPath") + private String metadataPath; + + /** + * Get metadata path. + * + * @return the metadataPath value + */ + public String metadataPath() { + return this.metadataPath; + } + + /** + * Set metadata path. + * + * @param metadataPath the metadataPath value to set + * @return the GetSsisObjectMetadataRequest object itself. + */ + public GetSsisObjectMetadataRequest withMetadataPath(String metadataPath) { + this.metadataPath = metadataPath; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/GitHubAccessTokenRequest.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/GitHubAccessTokenRequest.java new file mode 100644 index 0000000000000..1f02aec6273b8 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/GitHubAccessTokenRequest.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Get GitHub access token request definition. + */ +public class GitHubAccessTokenRequest { + /** + * GitHub access code. + */ + @JsonProperty(value = "gitHubAccessCode", required = true) + private String gitHubAccessCode; + + /** + * GitHub application client ID. + */ + @JsonProperty(value = "gitHubClientId") + private String gitHubClientId; + + /** + * GitHub access token base URL. + */ + @JsonProperty(value = "gitHubAccessTokenBaseUrl", required = true) + private String gitHubAccessTokenBaseUrl; + + /** + * Get gitHub access code. + * + * @return the gitHubAccessCode value + */ + public String gitHubAccessCode() { + return this.gitHubAccessCode; + } + + /** + * Set gitHub access code. + * + * @param gitHubAccessCode the gitHubAccessCode value to set + * @return the GitHubAccessTokenRequest object itself. + */ + public GitHubAccessTokenRequest withGitHubAccessCode(String gitHubAccessCode) { + this.gitHubAccessCode = gitHubAccessCode; + return this; + } + + /** + * Get gitHub application client ID. + * + * @return the gitHubClientId value + */ + public String gitHubClientId() { + return this.gitHubClientId; + } + + /** + * Set gitHub application client ID. + * + * @param gitHubClientId the gitHubClientId value to set + * @return the GitHubAccessTokenRequest object itself. + */ + public GitHubAccessTokenRequest withGitHubClientId(String gitHubClientId) { + this.gitHubClientId = gitHubClientId; + return this; + } + + /** + * Get gitHub access token base URL. + * + * @return the gitHubAccessTokenBaseUrl value + */ + public String gitHubAccessTokenBaseUrl() { + return this.gitHubAccessTokenBaseUrl; + } + + /** + * Set gitHub access token base URL. + * + * @param gitHubAccessTokenBaseUrl the gitHubAccessTokenBaseUrl value to set + * @return the GitHubAccessTokenRequest object itself. + */ + public GitHubAccessTokenRequest withGitHubAccessTokenBaseUrl(String gitHubAccessTokenBaseUrl) { + this.gitHubAccessTokenBaseUrl = gitHubAccessTokenBaseUrl; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/GitHubAccessTokenResponse.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/GitHubAccessTokenResponse.java new file mode 100644 index 0000000000000..4b65541233d62 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/GitHubAccessTokenResponse.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.v2018_06_01; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DataFactoryManager; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.GitHubAccessTokenResponseInner; + +/** + * Type representing GitHubAccessTokenResponse. + */ +public interface GitHubAccessTokenResponse extends HasInner, HasManager { + /** + * @return the gitHubAccessToken value. + */ + String gitHubAccessToken(); + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/GoogleAdWordsAuthenticationType.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/GoogleAdWordsAuthenticationType.java new file mode 100644 index 0000000000000..3e94f983a8b6a --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/GoogleAdWordsAuthenticationType.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.v2018_06_01; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for GoogleAdWordsAuthenticationType. + */ +public final class GoogleAdWordsAuthenticationType extends ExpandableStringEnum { + /** Static value ServiceAuthentication for GoogleAdWordsAuthenticationType. */ + public static final GoogleAdWordsAuthenticationType SERVICE_AUTHENTICATION = fromString("ServiceAuthentication"); + + /** Static value UserAuthentication for GoogleAdWordsAuthenticationType. */ + public static final GoogleAdWordsAuthenticationType USER_AUTHENTICATION = fromString("UserAuthentication"); + + /** + * Creates or finds a GoogleAdWordsAuthenticationType from its string representation. + * @param name a name to look for + * @return the corresponding GoogleAdWordsAuthenticationType + */ + @JsonCreator + public static GoogleAdWordsAuthenticationType fromString(String name) { + return fromString(name, GoogleAdWordsAuthenticationType.class); + } + + /** + * @return known GoogleAdWordsAuthenticationType values + */ + public static Collection values() { + return values(GoogleAdWordsAuthenticationType.class); + } +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/GoogleAdWordsLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/GoogleAdWordsLinkedService.java new file mode 100644 index 0000000000000..018727a631e6f --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/GoogleAdWordsLinkedService.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.LinkedServiceInner; + +/** + * Google AdWords service linked service. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("GoogleAdWords") +@JsonFlatten +public class GoogleAdWordsLinkedService extends LinkedServiceInner { + /** + * The Client customer ID of the AdWords account that you want to fetch + * report data for. + */ + @JsonProperty(value = "typeProperties.clientCustomerID", required = true) + private Object clientCustomerID; + + /** + * The developer token associated with the manager account that you use to + * grant access to the AdWords API. + */ + @JsonProperty(value = "typeProperties.developerToken", required = true) + private SecretBase developerToken; + + /** + * 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 GoogleAdWordsAuthenticationType authenticationType; + + /** + * The refresh token obtained from Google for authorizing access to AdWords + * 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 Client customer ID of the AdWords account that you want to fetch report data for. + * + * @return the clientCustomerID value + */ + public Object clientCustomerID() { + return this.clientCustomerID; + } + + /** + * Set the Client customer ID of the AdWords account that you want to fetch report data for. + * + * @param clientCustomerID the clientCustomerID value to set + * @return the GoogleAdWordsLinkedService object itself. + */ + public GoogleAdWordsLinkedService withClientCustomerID(Object clientCustomerID) { + this.clientCustomerID = clientCustomerID; + return this; + } + + /** + * Get the developer token associated with the manager account that you use to grant access to the AdWords API. + * + * @return the developerToken value + */ + public SecretBase developerToken() { + return this.developerToken; + } + + /** + * Set the developer token associated with the manager account that you use to grant access to the AdWords API. + * + * @param developerToken the developerToken value to set + * @return the GoogleAdWordsLinkedService object itself. + */ + public GoogleAdWordsLinkedService withDeveloperToken(SecretBase developerToken) { + this.developerToken = developerToken; + return this; + } + + /** + * Get the OAuth 2.0 authentication mechanism used for authentication. ServiceAuthentication can only be used on self-hosted IR. Possible values include: 'ServiceAuthentication', 'UserAuthentication'. + * + * @return the authenticationType value + */ + public GoogleAdWordsAuthenticationType authenticationType() { + return this.authenticationType; + } + + /** + * Set the OAuth 2.0 authentication mechanism used for authentication. ServiceAuthentication can only be used on self-hosted IR. Possible values include: 'ServiceAuthentication', 'UserAuthentication'. + * + * @param authenticationType the authenticationType value to set + * @return the GoogleAdWordsLinkedService object itself. + */ + public GoogleAdWordsLinkedService withAuthenticationType(GoogleAdWordsAuthenticationType authenticationType) { + this.authenticationType = authenticationType; + return this; + } + + /** + * Get the refresh token obtained from Google for authorizing access to AdWords for UserAuthentication. + * + * @return the refreshToken value + */ + public SecretBase refreshToken() { + return this.refreshToken; + } + + /** + * Set the refresh token obtained from Google for authorizing access to AdWords for UserAuthentication. + * + * @param refreshToken the refreshToken value to set + * @return the GoogleAdWordsLinkedService object itself. + */ + public GoogleAdWordsLinkedService withRefreshToken(SecretBase refreshToken) { + this.refreshToken = refreshToken; + return this; + } + + /** + * Get the client id of the google application used to acquire the refresh token. + * + * @return the clientId value + */ + public SecretBase clientId() { + return this.clientId; + } + + /** + * Set the client id of the google application used to acquire the refresh token. + * + * @param clientId the clientId value to set + * @return the GoogleAdWordsLinkedService object itself. + */ + public GoogleAdWordsLinkedService withClientId(SecretBase clientId) { + this.clientId = clientId; + return this; + } + + /** + * Get the client secret of the google application used to acquire the refresh token. + * + * @return the clientSecret value + */ + public SecretBase clientSecret() { + return this.clientSecret; + } + + /** + * Set the client secret of the google application used to acquire the refresh token. + * + * @param clientSecret the clientSecret value to set + * @return the GoogleAdWordsLinkedService object itself. + */ + public GoogleAdWordsLinkedService withClientSecret(SecretBase clientSecret) { + this.clientSecret = clientSecret; + return this; + } + + /** + * Get the service account email ID that is used for ServiceAuthentication and can only be used on self-hosted IR. + * + * @return the email value + */ + public Object email() { + return this.email; + } + + /** + * Set the service account email ID that is used for ServiceAuthentication and can only be used on self-hosted IR. + * + * @param email the email value to set + * @return the GoogleAdWordsLinkedService object itself. + */ + public GoogleAdWordsLinkedService withEmail(Object email) { + this.email = email; + return this; + } + + /** + * Get the full path to the .p12 key file that is used to authenticate the service account email address and can only be used on self-hosted IR. + * + * @return the keyFilePath value + */ + public Object keyFilePath() { + return this.keyFilePath; + } + + /** + * Set the full path to the .p12 key file that is used to authenticate the service account email address and can only be used on self-hosted IR. + * + * @param keyFilePath the keyFilePath value to set + * @return the GoogleAdWordsLinkedService object itself. + */ + public GoogleAdWordsLinkedService withKeyFilePath(Object keyFilePath) { + this.keyFilePath = keyFilePath; + return this; + } + + /** + * Get the full path of the .pem file containing trusted CA certificates for verifying the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default value is the cacerts.pem file installed with the IR. + * + * @return the trustedCertPath value + */ + public Object trustedCertPath() { + return this.trustedCertPath; + } + + /** + * Set the full path of the .pem file containing trusted CA certificates for verifying the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default value is the cacerts.pem file installed with the IR. + * + * @param trustedCertPath the trustedCertPath value to set + * @return the GoogleAdWordsLinkedService object itself. + */ + public GoogleAdWordsLinkedService withTrustedCertPath(Object trustedCertPath) { + this.trustedCertPath = trustedCertPath; + return this; + } + + /** + * Get specifies whether to use a CA certificate from the system trust store or from a specified PEM file. The default value is false. + * + * @return the useSystemTrustStore value + */ + public Object useSystemTrustStore() { + return this.useSystemTrustStore; + } + + /** + * Set specifies whether to use a CA certificate from the system trust store or from a specified PEM file. The default value is false. + * + * @param useSystemTrustStore the useSystemTrustStore value to set + * @return the GoogleAdWordsLinkedService object itself. + */ + public GoogleAdWordsLinkedService withUseSystemTrustStore(Object useSystemTrustStore) { + this.useSystemTrustStore = useSystemTrustStore; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the GoogleAdWordsLinkedService object itself. + */ + public GoogleAdWordsLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/GoogleAdWordsObjectDataset.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/GoogleAdWordsObjectDataset.java new file mode 100644 index 0000000000000..5b9d0b6249bed --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/GoogleAdWordsObjectDataset.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DatasetInner; + +/** + * Google AdWords service dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("GoogleAdWordsObject") +@JsonFlatten +public class GoogleAdWordsObjectDataset extends DatasetInner { + /** + * The table name. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; + + /** + * Get the table name. Type: string (or Expression with resultType string). + * + * @return the tableName value + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set the table name. Type: string (or Expression with resultType string). + * + * @param tableName the tableName value to set + * @return the GoogleAdWordsObjectDataset object itself. + */ + public GoogleAdWordsObjectDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/GoogleAdWordsSource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/GoogleAdWordsSource.java new file mode 100644 index 0000000000000..91308a08c8a00 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/GoogleAdWordsSource.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Google AdWords service source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("GoogleAdWordsSource") +public class GoogleAdWordsSource extends CopySource { + /** + * A query to retrieve data from source. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "query") + private Object query; + + /** + * Get a query to retrieve data from source. Type: string (or Expression with resultType string). + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set a query to retrieve data from source. Type: string (or Expression with resultType string). + * + * @param query the query value to set + * @return the GoogleAdWordsSource object itself. + */ + public GoogleAdWordsSource withQuery(Object query) { + this.query = query; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/GoogleBigQueryAuthenticationType.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/GoogleBigQueryAuthenticationType.java new file mode 100644 index 0000000000000..70b46d2660d3b --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/GoogleBigQueryLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/GoogleBigQueryLinkedService.java new file mode 100644 index 0000000000000..9c489f46d5982 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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 default BigQuery project to query against. + * + * @return the project value + */ + public Object project() { + return this.project; + } + + /** + * Set the default BigQuery project to query against. + * + * @param project the project value to set + * @return the GoogleBigQueryLinkedService object itself. + */ + public GoogleBigQueryLinkedService withProject(Object project) { + this.project = project; + return this; + } + + /** + * Get a comma-separated list of public BigQuery projects to access. + * + * @return the additionalProjects value + */ + public Object additionalProjects() { + return this.additionalProjects; + } + + /** + * Set a comma-separated list of public BigQuery projects to access. + * + * @param additionalProjects the additionalProjects value to set + * @return the GoogleBigQueryLinkedService object itself. + */ + public GoogleBigQueryLinkedService withAdditionalProjects(Object additionalProjects) { + this.additionalProjects = additionalProjects; + return this; + } + + /** + * Get whether to request access to Google Drive. Allowing Google Drive access enables support for federated tables that combine BigQuery data with data from Google Drive. The default value is false. + * + * @return the requestGoogleDriveScope value + */ + public Object requestGoogleDriveScope() { + return this.requestGoogleDriveScope; + } + + /** + * Set whether to request access to Google Drive. Allowing Google Drive access enables support for federated tables that combine BigQuery data with data from Google Drive. The default value is false. + * + * @param requestGoogleDriveScope the requestGoogleDriveScope value to set + * @return the GoogleBigQueryLinkedService object itself. + */ + public GoogleBigQueryLinkedService withRequestGoogleDriveScope(Object requestGoogleDriveScope) { + this.requestGoogleDriveScope = requestGoogleDriveScope; + return this; + } + + /** + * Get the OAuth 2.0 authentication mechanism used for authentication. ServiceAuthentication can only be used on self-hosted IR. Possible values include: 'ServiceAuthentication', 'UserAuthentication'. + * + * @return the authenticationType value + */ + public GoogleBigQueryAuthenticationType authenticationType() { + return this.authenticationType; + } + + /** + * Set the OAuth 2.0 authentication mechanism used for authentication. ServiceAuthentication can only be used on self-hosted IR. Possible values include: 'ServiceAuthentication', 'UserAuthentication'. + * + * @param authenticationType the authenticationType value to set + * @return the GoogleBigQueryLinkedService object itself. + */ + public GoogleBigQueryLinkedService withAuthenticationType(GoogleBigQueryAuthenticationType authenticationType) { + this.authenticationType = authenticationType; + return this; + } + + /** + * Get the refresh token obtained from Google for authorizing access to BigQuery for UserAuthentication. + * + * @return the refreshToken value + */ + public SecretBase refreshToken() { + return this.refreshToken; + } + + /** + * Set the refresh token obtained from Google for authorizing access to BigQuery for UserAuthentication. + * + * @param refreshToken the refreshToken value to set + * @return the GoogleBigQueryLinkedService object itself. + */ + public GoogleBigQueryLinkedService withRefreshToken(SecretBase refreshToken) { + this.refreshToken = refreshToken; + return this; + } + + /** + * Get the client id of the google application used to acquire the refresh token. + * + * @return the clientId value + */ + public SecretBase clientId() { + return this.clientId; + } + + /** + * Set the client id of the google application used to acquire the refresh token. + * + * @param clientId the clientId value to set + * @return the GoogleBigQueryLinkedService object itself. + */ + public GoogleBigQueryLinkedService withClientId(SecretBase clientId) { + this.clientId = clientId; + return this; + } + + /** + * Get the client secret of the google application used to acquire the refresh token. + * + * @return the clientSecret value + */ + public SecretBase clientSecret() { + return this.clientSecret; + } + + /** + * Set the client secret of the google application used to acquire the refresh token. + * + * @param clientSecret the clientSecret value to set + * @return the GoogleBigQueryLinkedService object itself. + */ + public GoogleBigQueryLinkedService withClientSecret(SecretBase clientSecret) { + this.clientSecret = clientSecret; + return this; + } + + /** + * Get the service account email ID that is used for ServiceAuthentication and can only be used on self-hosted IR. + * + * @return the email value + */ + public Object email() { + return this.email; + } + + /** + * Set the service account email ID that is used for ServiceAuthentication and can only be used on self-hosted IR. + * + * @param email the email value to set + * @return the GoogleBigQueryLinkedService object itself. + */ + public GoogleBigQueryLinkedService withEmail(Object email) { + this.email = email; + return this; + } + + /** + * Get the full path to the .p12 key file that is used to authenticate the service account email address and can only be used on self-hosted IR. + * + * @return the keyFilePath value + */ + public Object keyFilePath() { + return this.keyFilePath; + } + + /** + * Set the full path to the .p12 key file that is used to authenticate the service account email address and can only be used on self-hosted IR. + * + * @param keyFilePath the keyFilePath value to set + * @return the GoogleBigQueryLinkedService object itself. + */ + public GoogleBigQueryLinkedService withKeyFilePath(Object keyFilePath) { + this.keyFilePath = keyFilePath; + return this; + } + + /** + * Get the full path of the .pem file containing trusted CA certificates for verifying the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default value is the cacerts.pem file installed with the IR. + * + * @return the trustedCertPath value + */ + public Object trustedCertPath() { + return this.trustedCertPath; + } + + /** + * Set the full path of the .pem file containing trusted CA certificates for verifying the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default value is the cacerts.pem file installed with the IR. + * + * @param trustedCertPath the trustedCertPath value to set + * @return the GoogleBigQueryLinkedService object itself. + */ + public GoogleBigQueryLinkedService withTrustedCertPath(Object trustedCertPath) { + this.trustedCertPath = trustedCertPath; + return this; + } + + /** + * Get specifies whether to use a CA certificate from the system trust store or from a specified PEM file. The default value is false. + * + * @return the useSystemTrustStore value + */ + public Object useSystemTrustStore() { + return this.useSystemTrustStore; + } + + /** + * Set specifies whether to use a CA certificate from the system trust store or from a specified PEM file. The default value is false. + * + * @param useSystemTrustStore the useSystemTrustStore value to set + * @return the GoogleBigQueryLinkedService object itself. + */ + public GoogleBigQueryLinkedService withUseSystemTrustStore(Object useSystemTrustStore) { + this.useSystemTrustStore = useSystemTrustStore; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the GoogleBigQueryLinkedService object itself. + */ + public GoogleBigQueryLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/GoogleBigQueryObjectDataset.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/GoogleBigQueryObjectDataset.java new file mode 100644 index 0000000000000..7df8459d3d210 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/GoogleBigQueryObjectDataset.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DatasetInner; + +/** + * Google BigQuery service dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("GoogleBigQueryObject") +@JsonFlatten +public class GoogleBigQueryObjectDataset extends DatasetInner { + /** + * This property will be retired. Please consider using database + table + * properties instead. + */ + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; + + /** + * The table name of the Google BigQuery. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.table") + private Object table; + + /** + * The database name of the Google BigQuery. Type: string (or Expression + * with resultType string). + */ + @JsonProperty(value = "typeProperties.dataset") + private Object dataset; + + /** + * Get this property will be retired. Please consider using database + table properties instead. + * + * @return the tableName value + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set this property will be retired. Please consider using database + table properties instead. + * + * @param tableName the tableName value to set + * @return the GoogleBigQueryObjectDataset object itself. + */ + public GoogleBigQueryObjectDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; + } + + /** + * Get the table name of the Google BigQuery. Type: string (or Expression with resultType string). + * + * @return the table value + */ + public Object table() { + return this.table; + } + + /** + * Set the table name of the Google BigQuery. Type: string (or Expression with resultType string). + * + * @param table the table value to set + * @return the GoogleBigQueryObjectDataset object itself. + */ + public GoogleBigQueryObjectDataset withTable(Object table) { + this.table = table; + return this; + } + + /** + * Get the database name of the Google BigQuery. Type: string (or Expression with resultType string). + * + * @return the dataset value + */ + public Object dataset() { + return this.dataset; + } + + /** + * Set the database name of the Google BigQuery. Type: string (or Expression with resultType string). + * + * @param dataset the dataset value to set + * @return the GoogleBigQueryObjectDataset object itself. + */ + public GoogleBigQueryObjectDataset withDataset(Object dataset) { + this.dataset = dataset; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/GoogleBigQuerySource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/GoogleBigQuerySource.java new file mode 100644 index 0000000000000..47d56020f1575 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 a query to retrieve data from source. Type: string (or Expression with resultType string). + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set a query to retrieve data from source. Type: string (or Expression with resultType string). + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/GreenplumLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/GreenplumLinkedService.java new file mode 100644 index 0000000000000..968d5eaa744c3 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/GreenplumLinkedService.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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. Type: string, SecureString or + * AzureKeyVaultSecretReference. + */ + @JsonProperty(value = "typeProperties.connectionString") + private Object connectionString; + + /** + * The Azure key vault secret reference of password in connection string. + */ + @JsonProperty(value = "typeProperties.pwd") + private AzureKeyVaultSecretReference pwd; + + /** + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; + + /** + * Get an ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. + * + * @return the connectionString value + */ + public Object connectionString() { + return this.connectionString; + } + + /** + * Set an ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. + * + * @param connectionString the connectionString value to set + * @return the GreenplumLinkedService object itself. + */ + public GreenplumLinkedService withConnectionString(Object connectionString) { + this.connectionString = connectionString; + return this; + } + + /** + * Get the Azure key vault secret reference of password in connection string. + * + * @return the pwd value + */ + public AzureKeyVaultSecretReference pwd() { + return this.pwd; + } + + /** + * Set the Azure key vault secret reference of password in connection string. + * + * @param pwd the pwd value to set + * @return the GreenplumLinkedService object itself. + */ + public GreenplumLinkedService withPwd(AzureKeyVaultSecretReference pwd) { + this.pwd = pwd; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the GreenplumLinkedService object itself. + */ + public GreenplumLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/GreenplumSource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/GreenplumSource.java new file mode 100644 index 0000000000000..51cc6ca5b4ebd --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 a query to retrieve data from source. Type: string (or Expression with resultType string). + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set a query to retrieve data from source. Type: string (or Expression with resultType string). + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/GreenplumTableDataset.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/GreenplumTableDataset.java new file mode 100644 index 0000000000000..6e2010c592088 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/GreenplumTableDataset.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DatasetInner; + +/** + * Greenplum Database dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("GreenplumTable") +@JsonFlatten +public class GreenplumTableDataset extends DatasetInner { + /** + * This property will be retired. Please consider using schema + table + * properties instead. + */ + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; + + /** + * The table name of Greenplum. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.table") + private Object table; + + /** + * The schema name of Greenplum. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.schema") + private Object greenplumTableDatasetSchema; + + /** + * Get this property will be retired. Please consider using schema + table properties instead. + * + * @return the tableName value + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set this property will be retired. Please consider using schema + table properties instead. + * + * @param tableName the tableName value to set + * @return the GreenplumTableDataset object itself. + */ + public GreenplumTableDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; + } + + /** + * Get the table name of Greenplum. Type: string (or Expression with resultType string). + * + * @return the table value + */ + public Object table() { + return this.table; + } + + /** + * Set the table name of Greenplum. Type: string (or Expression with resultType string). + * + * @param table the table value to set + * @return the GreenplumTableDataset object itself. + */ + public GreenplumTableDataset withTable(Object table) { + this.table = table; + return this; + } + + /** + * Get the schema name of Greenplum. Type: string (or Expression with resultType string). + * + * @return the greenplumTableDatasetSchema value + */ + public Object greenplumTableDatasetSchema() { + return this.greenplumTableDatasetSchema; + } + + /** + * Set the schema name of Greenplum. Type: string (or Expression with resultType string). + * + * @param greenplumTableDatasetSchema the greenplumTableDatasetSchema value to set + * @return the GreenplumTableDataset object itself. + */ + public GreenplumTableDataset withGreenplumTableDatasetSchema(Object greenplumTableDatasetSchema) { + this.greenplumTableDatasetSchema = greenplumTableDatasetSchema; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HBaseAuthenticationType.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HBaseAuthenticationType.java new file mode 100644 index 0000000000000..da0a29178ff27 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HBaseLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HBaseLinkedService.java new file mode 100644 index 0000000000000..c069a0963a45f --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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 IP address or host name of the HBase server. (i.e. 192.168.222.160). + * + * @return the host value + */ + public Object host() { + return this.host; + } + + /** + * Set the IP address or host name of the HBase server. (i.e. 192.168.222.160). + * + * @param host the host value to set + * @return the HBaseLinkedService object itself. + */ + public HBaseLinkedService withHost(Object host) { + this.host = host; + return this; + } + + /** + * Get the TCP port that the HBase instance uses to listen for client connections. The default value is 9090. + * + * @return the port value + */ + public Object port() { + return this.port; + } + + /** + * Set the TCP port that the HBase instance uses to listen for client connections. The default value is 9090. + * + * @param port the port value to set + * @return the HBaseLinkedService object itself. + */ + public HBaseLinkedService withPort(Object port) { + this.port = port; + return this; + } + + /** + * Get the partial URL corresponding to the HBase server. (i.e. /gateway/sandbox/hbase/version). + * + * @return the httpPath value + */ + public Object httpPath() { + return this.httpPath; + } + + /** + * Set the partial URL corresponding to the HBase server. (i.e. /gateway/sandbox/hbase/version). + * + * @param httpPath the httpPath value to set + * @return the HBaseLinkedService object itself. + */ + public HBaseLinkedService withHttpPath(Object httpPath) { + this.httpPath = httpPath; + return this; + } + + /** + * Get the authentication mechanism to use to connect to the HBase server. Possible values include: 'Anonymous', 'Basic'. + * + * @return the authenticationType value + */ + public HBaseAuthenticationType authenticationType() { + return this.authenticationType; + } + + /** + * Set the authentication mechanism to use to connect to the HBase server. Possible values include: 'Anonymous', 'Basic'. + * + * @param authenticationType the authenticationType value to set + * @return the HBaseLinkedService object itself. + */ + public HBaseLinkedService withAuthenticationType(HBaseAuthenticationType authenticationType) { + this.authenticationType = authenticationType; + return this; + } + + /** + * Get the user name used to connect to the HBase instance. + * + * @return the username value + */ + public Object username() { + return this.username; + } + + /** + * Set the user name used to connect to the HBase instance. + * + * @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 corresponding to the user name. + * + * @return the password value + */ + public SecretBase password() { + return this.password; + } + + /** + * Set the password corresponding to the user name. + * + * @param password the password value to set + * @return the HBaseLinkedService object itself. + */ + public HBaseLinkedService withPassword(SecretBase password) { + this.password = password; + return this; + } + + /** + * Get specifies whether the connections to the server are encrypted using SSL. The default value is false. + * + * @return the enableSsl value + */ + public Object enableSsl() { + return this.enableSsl; + } + + /** + * Set specifies whether the connections to the server are encrypted using SSL. The default value is false. + * + * @param enableSsl the enableSsl value to set + * @return the HBaseLinkedService object itself. + */ + public HBaseLinkedService withEnableSsl(Object enableSsl) { + this.enableSsl = enableSsl; + return this; + } + + /** + * Get the full path of the .pem file containing trusted CA certificates for verifying the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default value is the cacerts.pem file installed with the IR. + * + * @return the trustedCertPath value + */ + public Object trustedCertPath() { + return this.trustedCertPath; + } + + /** + * Set the full path of the .pem file containing trusted CA certificates for verifying the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default value is the cacerts.pem file installed with the IR. + * + * @param trustedCertPath the trustedCertPath value to set + * @return the HBaseLinkedService object itself. + */ + public HBaseLinkedService withTrustedCertPath(Object trustedCertPath) { + this.trustedCertPath = trustedCertPath; + return this; + } + + /** + * Get specifies whether to require a CA-issued SSL certificate name to match the host name of the server when connecting over SSL. The default value is false. + * + * @return the allowHostNameCNMismatch value + */ + public Object allowHostNameCNMismatch() { + return this.allowHostNameCNMismatch; + } + + /** + * Set specifies whether to require a CA-issued SSL certificate name to match the host name of the server when connecting over SSL. The default value is false. + * + * @param allowHostNameCNMismatch the allowHostNameCNMismatch value to set + * @return the HBaseLinkedService object itself. + */ + public HBaseLinkedService withAllowHostNameCNMismatch(Object allowHostNameCNMismatch) { + this.allowHostNameCNMismatch = allowHostNameCNMismatch; + return this; + } + + /** + * Get specifies whether to allow self-signed certificates from the server. The default value is false. + * + * @return the allowSelfSignedServerCert value + */ + public Object allowSelfSignedServerCert() { + return this.allowSelfSignedServerCert; + } + + /** + * Set specifies whether to allow self-signed certificates from the server. The default value is false. + * + * @param allowSelfSignedServerCert the allowSelfSignedServerCert value to set + * @return the HBaseLinkedService object itself. + */ + public HBaseLinkedService withAllowSelfSignedServerCert(Object allowSelfSignedServerCert) { + this.allowSelfSignedServerCert = allowSelfSignedServerCert; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the HBaseLinkedService object itself. + */ + public HBaseLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HBaseObjectDataset.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HBaseObjectDataset.java new file mode 100644 index 0000000000000..50c48d3046f16 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HBaseObjectDataset.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DatasetInner; + +/** + * HBase server dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("HBaseObject") +@JsonFlatten +public class HBaseObjectDataset extends DatasetInner { + /** + * The table name. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; + + /** + * Get the table name. Type: string (or Expression with resultType string). + * + * @return the tableName value + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set the table name. Type: string (or Expression with resultType string). + * + * @param tableName the tableName value to set + * @return the HBaseObjectDataset object itself. + */ + public HBaseObjectDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HBaseSource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HBaseSource.java new file mode 100644 index 0000000000000..5cb2cbff6730e --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 a query to retrieve data from source. Type: string (or Expression with resultType string). + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set a query to retrieve data from source. Type: string (or Expression with resultType string). + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HDInsightActivityDebugInfoOption.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HDInsightActivityDebugInfoOption.java new file mode 100644 index 0000000000000..9acfff948518c --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HDInsightHiveActivity.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HDInsightHiveActivity.java new file mode 100644 index 0000000000000..87c26c06db231 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HDInsightHiveActivity.java @@ -0,0 +1,234 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +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; + + /** + * User specified arguments under hivevar namespace. + */ + @JsonProperty(value = "typeProperties.variables") + private List variables; + + /** + * Query timeout value (in minutes). Effective when the HDInsight cluster + * is with ESP (Enterprise Security Package). + */ + @JsonProperty(value = "typeProperties.queryTimeout") + private Integer queryTimeout; + + /** + * Get storage linked service references. + * + * @return the storageLinkedServices value + */ + public List storageLinkedServices() { + return this.storageLinkedServices; + } + + /** + * Set storage linked service references. + * + * @param storageLinkedServices the storageLinkedServices value to set + * @return the HDInsightHiveActivity object itself. + */ + public HDInsightHiveActivity withStorageLinkedServices(List storageLinkedServices) { + this.storageLinkedServices = storageLinkedServices; + return this; + } + + /** + * Get user specified arguments to HDInsightActivity. + * + * @return the arguments value + */ + public List arguments() { + return this.arguments; + } + + /** + * Set user specified arguments to HDInsightActivity. + * + * @param arguments the arguments value to set + * @return the HDInsightHiveActivity object itself. + */ + public HDInsightHiveActivity withArguments(List arguments) { + this.arguments = arguments; + return this; + } + + /** + * Get debug info option. Possible values include: 'None', 'Always', 'Failure'. + * + * @return the getDebugInfo value + */ + public HDInsightActivityDebugInfoOption getDebugInfo() { + return this.getDebugInfo; + } + + /** + * Set debug info option. Possible values include: 'None', 'Always', 'Failure'. + * + * @param getDebugInfo the getDebugInfo value to set + * @return the HDInsightHiveActivity object itself. + */ + public HDInsightHiveActivity withGetDebugInfo(HDInsightActivityDebugInfoOption getDebugInfo) { + this.getDebugInfo = getDebugInfo; + return this; + } + + /** + * Get script path. Type: string (or Expression with resultType string). + * + * @return the scriptPath value + */ + public Object scriptPath() { + return this.scriptPath; + } + + /** + * Set script path. Type: string (or Expression with resultType string). + * + * @param scriptPath the scriptPath value to set + * @return the HDInsightHiveActivity object itself. + */ + public HDInsightHiveActivity withScriptPath(Object scriptPath) { + this.scriptPath = scriptPath; + return this; + } + + /** + * Get script linked service reference. + * + * @return the scriptLinkedService value + */ + public LinkedServiceReference scriptLinkedService() { + return this.scriptLinkedService; + } + + /** + * Set script linked service reference. + * + * @param scriptLinkedService the scriptLinkedService value to set + * @return the HDInsightHiveActivity object itself. + */ + public HDInsightHiveActivity withScriptLinkedService(LinkedServiceReference scriptLinkedService) { + this.scriptLinkedService = scriptLinkedService; + return this; + } + + /** + * Get allows user to specify defines for Hive job request. + * + * @return the defines value + */ + public Map defines() { + return this.defines; + } + + /** + * Set allows user to specify defines for Hive job request. + * + * @param defines the defines value to set + * @return the HDInsightHiveActivity object itself. + */ + public HDInsightHiveActivity withDefines(Map defines) { + this.defines = defines; + return this; + } + + /** + * Get user specified arguments under hivevar namespace. + * + * @return the variables value + */ + public List variables() { + return this.variables; + } + + /** + * Set user specified arguments under hivevar namespace. + * + * @param variables the variables value to set + * @return the HDInsightHiveActivity object itself. + */ + public HDInsightHiveActivity withVariables(List variables) { + this.variables = variables; + return this; + } + + /** + * Get query timeout value (in minutes). Effective when the HDInsight cluster is with ESP (Enterprise Security Package). + * + * @return the queryTimeout value + */ + public Integer queryTimeout() { + return this.queryTimeout; + } + + /** + * Set query timeout value (in minutes). Effective when the HDInsight cluster is with ESP (Enterprise Security Package). + * + * @param queryTimeout the queryTimeout value to set + * @return the HDInsightHiveActivity object itself. + */ + public HDInsightHiveActivity withQueryTimeout(Integer queryTimeout) { + this.queryTimeout = queryTimeout; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HDInsightLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HDInsightLinkedService.java new file mode 100644 index 0000000000000..2ebee874ae9e4 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HDInsightLinkedService.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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; + + /** + * Specify if the HDInsight is created with ESP (Enterprise Security + * Package). Type: Boolean. + */ + @JsonProperty(value = "typeProperties.isEspEnabled") + private Object isEspEnabled; + + /** + * Specify the FileSystem if the main storage for the HDInsight is ADLS + * Gen2. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.fileSystem") + private Object fileSystem; + + /** + * Get hDInsight cluster URI. Type: string (or Expression with resultType string). + * + * @return the clusterUri value + */ + public Object clusterUri() { + return this.clusterUri; + } + + /** + * Set hDInsight cluster URI. Type: string (or Expression with resultType string). + * + * @param clusterUri the clusterUri value to set + * @return the HDInsightLinkedService object itself. + */ + public HDInsightLinkedService withClusterUri(Object clusterUri) { + this.clusterUri = clusterUri; + return this; + } + + /** + * Get hDInsight cluster user name. Type: string (or Expression with resultType string). + * + * @return the userName value + */ + public Object userName() { + return this.userName; + } + + /** + * Set hDInsight cluster user name. Type: string (or Expression with resultType string). + * + * @param userName the userName value to set + * @return the HDInsightLinkedService object itself. + */ + public HDInsightLinkedService withUserName(Object userName) { + this.userName = userName; + return this; + } + + /** + * Get hDInsight cluster password. + * + * @return the password value + */ + public SecretBase password() { + return this.password; + } + + /** + * Set hDInsight cluster password. + * + * @param password the password value to set + * @return the HDInsightLinkedService object itself. + */ + public HDInsightLinkedService withPassword(SecretBase password) { + this.password = password; + return this; + } + + /** + * Get the Azure Storage linked service reference. + * + * @return the linkedServiceName value + */ + public LinkedServiceReference linkedServiceName() { + return this.linkedServiceName; + } + + /** + * Set the Azure Storage linked service reference. + * + * @param linkedServiceName the linkedServiceName value to set + * @return the HDInsightLinkedService object itself. + */ + public HDInsightLinkedService withLinkedServiceName(LinkedServiceReference linkedServiceName) { + this.linkedServiceName = linkedServiceName; + return this; + } + + /** + * Get a reference to the Azure SQL linked service that points to the HCatalog database. + * + * @return the hcatalogLinkedServiceName value + */ + public LinkedServiceReference hcatalogLinkedServiceName() { + return this.hcatalogLinkedServiceName; + } + + /** + * Set a reference to the Azure SQL linked service that points to the HCatalog database. + * + * @param hcatalogLinkedServiceName the hcatalogLinkedServiceName value to set + * @return the HDInsightLinkedService object itself. + */ + public HDInsightLinkedService withHcatalogLinkedServiceName(LinkedServiceReference hcatalogLinkedServiceName) { + this.hcatalogLinkedServiceName = hcatalogLinkedServiceName; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the HDInsightLinkedService object itself. + */ + public HDInsightLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + + /** + * Get specify if the HDInsight is created with ESP (Enterprise Security Package). Type: Boolean. + * + * @return the isEspEnabled value + */ + public Object isEspEnabled() { + return this.isEspEnabled; + } + + /** + * Set specify if the HDInsight is created with ESP (Enterprise Security Package). Type: Boolean. + * + * @param isEspEnabled the isEspEnabled value to set + * @return the HDInsightLinkedService object itself. + */ + public HDInsightLinkedService withIsEspEnabled(Object isEspEnabled) { + this.isEspEnabled = isEspEnabled; + return this; + } + + /** + * Get specify the FileSystem if the main storage for the HDInsight is ADLS Gen2. Type: string (or Expression with resultType string). + * + * @return the fileSystem value + */ + public Object fileSystem() { + return this.fileSystem; + } + + /** + * Set specify the FileSystem if the main storage for the HDInsight is ADLS Gen2. Type: string (or Expression with resultType string). + * + * @param fileSystem the fileSystem value to set + * @return the HDInsightLinkedService object itself. + */ + public HDInsightLinkedService withFileSystem(Object fileSystem) { + this.fileSystem = fileSystem; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HDInsightMapReduceActivity.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HDInsightMapReduceActivity.java new file mode 100644 index 0000000000000..b37f69510290d --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 storage linked service references. + * + * @return the storageLinkedServices value + */ + public List storageLinkedServices() { + return this.storageLinkedServices; + } + + /** + * Set storage linked service references. + * + * @param storageLinkedServices the storageLinkedServices value to set + * @return the HDInsightMapReduceActivity object itself. + */ + public HDInsightMapReduceActivity withStorageLinkedServices(List storageLinkedServices) { + this.storageLinkedServices = storageLinkedServices; + return this; + } + + /** + * Get user specified arguments to HDInsightActivity. + * + * @return the arguments value + */ + public List arguments() { + return this.arguments; + } + + /** + * Set user specified arguments to HDInsightActivity. + * + * @param arguments the arguments value to set + * @return the HDInsightMapReduceActivity object itself. + */ + public HDInsightMapReduceActivity withArguments(List arguments) { + this.arguments = arguments; + return this; + } + + /** + * Get debug info option. Possible values include: 'None', 'Always', 'Failure'. + * + * @return the getDebugInfo value + */ + public HDInsightActivityDebugInfoOption getDebugInfo() { + return this.getDebugInfo; + } + + /** + * Set debug info option. Possible values include: 'None', 'Always', 'Failure'. + * + * @param getDebugInfo the getDebugInfo value to set + * @return the HDInsightMapReduceActivity object itself. + */ + public HDInsightMapReduceActivity withGetDebugInfo(HDInsightActivityDebugInfoOption getDebugInfo) { + this.getDebugInfo = getDebugInfo; + return this; + } + + /** + * Get class name. Type: string (or Expression with resultType string). + * + * @return the className value + */ + public Object className() { + return this.className; + } + + /** + * Set class name. Type: string (or Expression with resultType string). + * + * @param className the className value to set + * @return the HDInsightMapReduceActivity object itself. + */ + public HDInsightMapReduceActivity withClassName(Object className) { + this.className = className; + return this; + } + + /** + * Get jar path. Type: string (or Expression with resultType string). + * + * @return the jarFilePath value + */ + public Object jarFilePath() { + return this.jarFilePath; + } + + /** + * Set jar path. Type: string (or Expression with resultType string). + * + * @param jarFilePath the jarFilePath value to set + * @return the HDInsightMapReduceActivity object itself. + */ + public HDInsightMapReduceActivity withJarFilePath(Object jarFilePath) { + this.jarFilePath = jarFilePath; + return this; + } + + /** + * Get jar linked service reference. + * + * @return the jarLinkedService value + */ + public LinkedServiceReference jarLinkedService() { + return this.jarLinkedService; + } + + /** + * Set jar linked service reference. + * + * @param jarLinkedService the jarLinkedService value to set + * @return the HDInsightMapReduceActivity object itself. + */ + public HDInsightMapReduceActivity withJarLinkedService(LinkedServiceReference jarLinkedService) { + this.jarLinkedService = jarLinkedService; + return this; + } + + /** + * Get jar libs. + * + * @return the jarLibs value + */ + public List jarLibs() { + return this.jarLibs; + } + + /** + * Set jar libs. + * + * @param jarLibs the jarLibs value to set + * @return the HDInsightMapReduceActivity object itself. + */ + public HDInsightMapReduceActivity withJarLibs(List jarLibs) { + this.jarLibs = jarLibs; + return this; + } + + /** + * Get allows user to specify defines for the MapReduce job request. + * + * @return the defines value + */ + public Map defines() { + return this.defines; + } + + /** + * Set allows user to specify defines for the MapReduce job request. + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HDInsightOnDemandLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HDInsightOnDemandLinkedService.java new file mode 100644 index 0000000000000..87e3feabec1a2 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HDInsightOnDemandLinkedService.java @@ -0,0 +1,916 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +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.v2018_06_01.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; + + /** + * Custom script actions to run on HDI ondemand cluster once it's up. + * Please refer to + * https://docs.microsoft.com/en-us/azure/hdinsight/hdinsight-hadoop-customize-cluster-linux?toc=%2Fen-us%2Fazure%2Fhdinsight%2Fr-server%2FTOC.json&bc=%2Fen-us%2Fazure%2Fbread%2Ftoc.json#understanding-script-actions. + */ + @JsonProperty(value = "typeProperties.scriptActions") + private List scriptActions; + + /** + * The ARM resource ID for the vNet to which the cluster should be joined + * after creation. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.virtualNetworkId") + private Object virtualNetworkId; + + /** + * The ARM resource ID for the subnet in the vNet. If virtualNetworkId was + * specified, then this property is required. Type: string (or Expression + * with resultType string). + */ + @JsonProperty(value = "typeProperties.subnetName") + private Object subnetName; + + /** + * Get number of worker/data nodes in the cluster. Suggestion value: 4. Type: string (or Expression with resultType string). + * + * @return the clusterSize value + */ + public Object clusterSize() { + return this.clusterSize; + } + + /** + * Set number of worker/data nodes in the cluster. Suggestion value: 4. Type: string (or Expression with resultType string). + * + * @param clusterSize the clusterSize value to set + * @return the HDInsightOnDemandLinkedService object itself. + */ + public HDInsightOnDemandLinkedService withClusterSize(Object clusterSize) { + this.clusterSize = clusterSize; + return this; + } + + /** + * Get the allowed idle time for the on-demand HDInsight cluster. Specifies how long the on-demand HDInsight cluster stays alive after completion of an activity run if there are no other active jobs in the cluster. The minimum value is 5 mins. Type: string (or Expression with resultType string). + * + * @return the timeToLive value + */ + public Object timeToLive() { + return this.timeToLive; + } + + /** + * Set the allowed idle time for the on-demand HDInsight cluster. Specifies how long the on-demand HDInsight cluster stays alive after completion of an activity run if there are no other active jobs in the cluster. The minimum value is 5 mins. Type: string (or Expression with resultType string). + * + * @param timeToLive the timeToLive value to set + * @return the HDInsightOnDemandLinkedService object itself. + */ + public HDInsightOnDemandLinkedService withTimeToLive(Object timeToLive) { + this.timeToLive = timeToLive; + return this; + } + + /** + * Get version of the HDInsight cluster.  Type: string (or Expression with resultType string). + * + * @return the version value + */ + public Object version() { + return this.version; + } + + /** + * Set version of the HDInsight cluster.  Type: string (or Expression with resultType string). + * + * @param version the version value to set + * @return the HDInsightOnDemandLinkedService object itself. + */ + public HDInsightOnDemandLinkedService withVersion(Object version) { + this.version = version; + return this; + } + + /** + * Get azure Storage linked service to be used by the on-demand cluster for storing and processing data. + * + * @return the linkedServiceName value + */ + public LinkedServiceReference linkedServiceName() { + return this.linkedServiceName; + } + + /** + * Set azure Storage linked service to be used by the on-demand cluster for storing and processing data. + * + * @param linkedServiceName the linkedServiceName value to set + * @return the HDInsightOnDemandLinkedService object itself. + */ + public HDInsightOnDemandLinkedService withLinkedServiceName(LinkedServiceReference linkedServiceName) { + this.linkedServiceName = linkedServiceName; + return this; + } + + /** + * Get the customer’s subscription to host the cluster. Type: string (or Expression with resultType string). + * + * @return the hostSubscriptionId value + */ + public Object hostSubscriptionId() { + return this.hostSubscriptionId; + } + + /** + * Set the customer’s subscription to host the cluster. Type: string (or Expression with resultType string). + * + * @param hostSubscriptionId the hostSubscriptionId value to set + * @return the HDInsightOnDemandLinkedService object itself. + */ + public HDInsightOnDemandLinkedService withHostSubscriptionId(Object hostSubscriptionId) { + this.hostSubscriptionId = hostSubscriptionId; + return this; + } + + /** + * Get the service principal id for the hostSubscriptionId. Type: string (or Expression with resultType string). + * + * @return the servicePrincipalId value + */ + public Object servicePrincipalId() { + return this.servicePrincipalId; + } + + /** + * Set the service principal id for the hostSubscriptionId. Type: string (or Expression with resultType string). + * + * @param servicePrincipalId the servicePrincipalId value to set + * @return the HDInsightOnDemandLinkedService object itself. + */ + public HDInsightOnDemandLinkedService withServicePrincipalId(Object servicePrincipalId) { + this.servicePrincipalId = servicePrincipalId; + return this; + } + + /** + * Get the key for the service principal id. + * + * @return the servicePrincipalKey value + */ + public SecretBase servicePrincipalKey() { + return this.servicePrincipalKey; + } + + /** + * Set the key for the service principal id. + * + * @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 id/name to which the service principal belongs. Type: string (or Expression with resultType string). + * + * @return the tenant value + */ + public Object tenant() { + return this.tenant; + } + + /** + * Set the Tenant id/name to which the service principal belongs. Type: string (or Expression with resultType string). + * + * @param tenant the tenant value to set + * @return the HDInsightOnDemandLinkedService object itself. + */ + public HDInsightOnDemandLinkedService withTenant(Object tenant) { + this.tenant = tenant; + return this; + } + + /** + * Get the resource group where the cluster belongs. Type: string (or Expression with resultType string). + * + * @return the clusterResourceGroup value + */ + public Object clusterResourceGroup() { + return this.clusterResourceGroup; + } + + /** + * Set the resource group where the cluster belongs. Type: string (or Expression with resultType string). + * + * @param clusterResourceGroup the clusterResourceGroup value to set + * @return the HDInsightOnDemandLinkedService object itself. + */ + public HDInsightOnDemandLinkedService withClusterResourceGroup(Object clusterResourceGroup) { + this.clusterResourceGroup = clusterResourceGroup; + return this; + } + + /** + * Get the prefix of cluster name, postfix will be distinct with timestamp. Type: string (or Expression with resultType string). + * + * @return the clusterNamePrefix value + */ + public Object clusterNamePrefix() { + return this.clusterNamePrefix; + } + + /** + * Set the prefix of cluster name, postfix will be distinct with timestamp. Type: string (or Expression with resultType string). + * + * @param clusterNamePrefix the clusterNamePrefix value to set + * @return the HDInsightOnDemandLinkedService object itself. + */ + public HDInsightOnDemandLinkedService withClusterNamePrefix(Object clusterNamePrefix) { + this.clusterNamePrefix = clusterNamePrefix; + return this; + } + + /** + * Get the username to access the cluster. Type: string (or Expression with resultType string). + * + * @return the clusterUserName value + */ + public Object clusterUserName() { + return this.clusterUserName; + } + + /** + * Set the username to access the cluster. Type: string (or Expression with resultType string). + * + * @param clusterUserName the clusterUserName value to set + * @return the HDInsightOnDemandLinkedService object itself. + */ + public HDInsightOnDemandLinkedService withClusterUserName(Object clusterUserName) { + this.clusterUserName = clusterUserName; + return this; + } + + /** + * Get the password to access the cluster. + * + * @return the clusterPassword value + */ + public SecretBase clusterPassword() { + return this.clusterPassword; + } + + /** + * Set the password to access the cluster. + * + * @param clusterPassword the clusterPassword value to set + * @return the HDInsightOnDemandLinkedService object itself. + */ + public HDInsightOnDemandLinkedService withClusterPassword(SecretBase clusterPassword) { + this.clusterPassword = clusterPassword; + return this; + } + + /** + * Get the username to SSH remotely connect to cluster’s node (for Linux). Type: string (or Expression with resultType string). + * + * @return the clusterSshUserName value + */ + public Object clusterSshUserName() { + return this.clusterSshUserName; + } + + /** + * Set the username to SSH remotely connect to cluster’s node (for Linux). Type: string (or Expression with resultType string). + * + * @param clusterSshUserName the clusterSshUserName value to set + * @return the HDInsightOnDemandLinkedService object itself. + */ + public HDInsightOnDemandLinkedService withClusterSshUserName(Object clusterSshUserName) { + this.clusterSshUserName = clusterSshUserName; + return this; + } + + /** + * Get the password to SSH remotely connect cluster’s node (for Linux). + * + * @return the clusterSshPassword value + */ + public SecretBase clusterSshPassword() { + return this.clusterSshPassword; + } + + /** + * Set the password to SSH remotely connect cluster’s node (for Linux). + * + * @param clusterSshPassword the clusterSshPassword value to set + * @return the HDInsightOnDemandLinkedService object itself. + */ + public HDInsightOnDemandLinkedService withClusterSshPassword(SecretBase clusterSshPassword) { + this.clusterSshPassword = clusterSshPassword; + return this; + } + + /** + * Get specifies additional storage accounts for the HDInsight linked service so that the Data Factory service can register them on your behalf. + * + * @return the additionalLinkedServiceNames value + */ + public List additionalLinkedServiceNames() { + return this.additionalLinkedServiceNames; + } + + /** + * Set specifies additional storage accounts for the HDInsight linked service so that the Data Factory service can register them on your behalf. + * + * @param additionalLinkedServiceNames the additionalLinkedServiceNames value to set + * @return the HDInsightOnDemandLinkedService object itself. + */ + public HDInsightOnDemandLinkedService withAdditionalLinkedServiceNames(List additionalLinkedServiceNames) { + this.additionalLinkedServiceNames = additionalLinkedServiceNames; + return this; + } + + /** + * Get the name of Azure SQL linked service that point to the HCatalog database. The on-demand HDInsight cluster is created by using the Azure SQL database as the metastore. + * + * @return the hcatalogLinkedServiceName value + */ + public LinkedServiceReference hcatalogLinkedServiceName() { + return this.hcatalogLinkedServiceName; + } + + /** + * Set the name of Azure SQL linked service that point to the HCatalog database. The on-demand HDInsight cluster is created by using the Azure SQL database as the metastore. + * + * @param hcatalogLinkedServiceName the hcatalogLinkedServiceName value to set + * @return the HDInsightOnDemandLinkedService object itself. + */ + public HDInsightOnDemandLinkedService withHcatalogLinkedServiceName(LinkedServiceReference hcatalogLinkedServiceName) { + this.hcatalogLinkedServiceName = hcatalogLinkedServiceName; + return this; + } + + /** + * Get the cluster type. Type: string (or Expression with resultType string). + * + * @return the clusterType value + */ + public Object clusterType() { + return this.clusterType; + } + + /** + * Set the cluster type. Type: string (or Expression with resultType string). + * + * @param clusterType the clusterType value to set + * @return the HDInsightOnDemandLinkedService object itself. + */ + public HDInsightOnDemandLinkedService withClusterType(Object clusterType) { + this.clusterType = clusterType; + return this; + } + + /** + * Get the version of spark if the cluster type is 'spark'. Type: string (or Expression with resultType string). + * + * @return the sparkVersion value + */ + public Object sparkVersion() { + return this.sparkVersion; + } + + /** + * Set the version of spark if the cluster type is 'spark'. Type: string (or Expression with resultType string). + * + * @param sparkVersion the sparkVersion value to set + * @return the HDInsightOnDemandLinkedService object itself. + */ + public HDInsightOnDemandLinkedService withSparkVersion(Object sparkVersion) { + this.sparkVersion = sparkVersion; + return this; + } + + /** + * Get specifies the core configuration parameters (as in core-site.xml) for the HDInsight cluster to be created. + * + * @return the coreConfiguration value + */ + public Object coreConfiguration() { + return this.coreConfiguration; + } + + /** + * Set specifies the core configuration parameters (as in core-site.xml) for the HDInsight cluster to be created. + * + * @param coreConfiguration the coreConfiguration value to set + * @return the HDInsightOnDemandLinkedService object itself. + */ + public HDInsightOnDemandLinkedService withCoreConfiguration(Object coreConfiguration) { + this.coreConfiguration = coreConfiguration; + return this; + } + + /** + * Get specifies the HBase configuration parameters (hbase-site.xml) for the HDInsight cluster. + * + * @return the hBaseConfiguration value + */ + public Object hBaseConfiguration() { + return this.hBaseConfiguration; + } + + /** + * Set specifies the HBase configuration parameters (hbase-site.xml) for the HDInsight cluster. + * + * @param hBaseConfiguration the hBaseConfiguration value to set + * @return the HDInsightOnDemandLinkedService object itself. + */ + public HDInsightOnDemandLinkedService withHBaseConfiguration(Object hBaseConfiguration) { + this.hBaseConfiguration = hBaseConfiguration; + return this; + } + + /** + * Get specifies the HDFS configuration parameters (hdfs-site.xml) for the HDInsight cluster. + * + * @return the hdfsConfiguration value + */ + public Object hdfsConfiguration() { + return this.hdfsConfiguration; + } + + /** + * Set specifies the HDFS configuration parameters (hdfs-site.xml) for the HDInsight cluster. + * + * @param hdfsConfiguration the hdfsConfiguration value to set + * @return the HDInsightOnDemandLinkedService object itself. + */ + public HDInsightOnDemandLinkedService withHdfsConfiguration(Object hdfsConfiguration) { + this.hdfsConfiguration = hdfsConfiguration; + return this; + } + + /** + * Get specifies the hive configuration parameters (hive-site.xml) for the HDInsight cluster. + * + * @return the hiveConfiguration value + */ + public Object hiveConfiguration() { + return this.hiveConfiguration; + } + + /** + * Set specifies the hive configuration parameters (hive-site.xml) for the HDInsight cluster. + * + * @param hiveConfiguration the hiveConfiguration value to set + * @return the HDInsightOnDemandLinkedService object itself. + */ + public HDInsightOnDemandLinkedService withHiveConfiguration(Object hiveConfiguration) { + this.hiveConfiguration = hiveConfiguration; + return this; + } + + /** + * Get specifies the MapReduce configuration parameters (mapred-site.xml) for the HDInsight cluster. + * + * @return the mapReduceConfiguration value + */ + public Object mapReduceConfiguration() { + return this.mapReduceConfiguration; + } + + /** + * Set specifies the MapReduce configuration parameters (mapred-site.xml) for the HDInsight cluster. + * + * @param mapReduceConfiguration the mapReduceConfiguration value to set + * @return the HDInsightOnDemandLinkedService object itself. + */ + public HDInsightOnDemandLinkedService withMapReduceConfiguration(Object mapReduceConfiguration) { + this.mapReduceConfiguration = mapReduceConfiguration; + return this; + } + + /** + * Get specifies the Oozie configuration parameters (oozie-site.xml) for the HDInsight cluster. + * + * @return the oozieConfiguration value + */ + public Object oozieConfiguration() { + return this.oozieConfiguration; + } + + /** + * Set specifies the Oozie configuration parameters (oozie-site.xml) for the HDInsight cluster. + * + * @param oozieConfiguration the oozieConfiguration value to set + * @return the HDInsightOnDemandLinkedService object itself. + */ + public HDInsightOnDemandLinkedService withOozieConfiguration(Object oozieConfiguration) { + this.oozieConfiguration = oozieConfiguration; + return this; + } + + /** + * Get specifies the Storm configuration parameters (storm-site.xml) for the HDInsight cluster. + * + * @return the stormConfiguration value + */ + public Object stormConfiguration() { + return this.stormConfiguration; + } + + /** + * Set specifies the Storm configuration parameters (storm-site.xml) for the HDInsight cluster. + * + * @param stormConfiguration the stormConfiguration value to set + * @return the HDInsightOnDemandLinkedService object itself. + */ + public HDInsightOnDemandLinkedService withStormConfiguration(Object stormConfiguration) { + this.stormConfiguration = stormConfiguration; + return this; + } + + /** + * Get specifies the Yarn configuration parameters (yarn-site.xml) for the HDInsight cluster. + * + * @return the yarnConfiguration value + */ + public Object yarnConfiguration() { + return this.yarnConfiguration; + } + + /** + * Set specifies the Yarn configuration parameters (yarn-site.xml) for the HDInsight cluster. + * + * @param yarnConfiguration the yarnConfiguration value to set + * @return the HDInsightOnDemandLinkedService object itself. + */ + public HDInsightOnDemandLinkedService withYarnConfiguration(Object yarnConfiguration) { + this.yarnConfiguration = yarnConfiguration; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the HDInsightOnDemandLinkedService object itself. + */ + public HDInsightOnDemandLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + + /** + * Get specifies the size of the head node for the HDInsight cluster. + * + * @return the headNodeSize value + */ + public Object headNodeSize() { + return this.headNodeSize; + } + + /** + * Set specifies the size of the head node for the HDInsight cluster. + * + * @param headNodeSize the headNodeSize value to set + * @return the HDInsightOnDemandLinkedService object itself. + */ + public HDInsightOnDemandLinkedService withHeadNodeSize(Object headNodeSize) { + this.headNodeSize = headNodeSize; + return this; + } + + /** + * Get specifies the size of the data node for the HDInsight cluster. + * + * @return the dataNodeSize value + */ + public Object dataNodeSize() { + return this.dataNodeSize; + } + + /** + * Set specifies the size of the data node for the HDInsight cluster. + * + * @param dataNodeSize the dataNodeSize value to set + * @return the HDInsightOnDemandLinkedService object itself. + */ + public HDInsightOnDemandLinkedService withDataNodeSize(Object dataNodeSize) { + this.dataNodeSize = dataNodeSize; + return this; + } + + /** + * Get specifies the size of the Zoo Keeper node for the HDInsight cluster. + * + * @return the zookeeperNodeSize value + */ + public Object zookeeperNodeSize() { + return this.zookeeperNodeSize; + } + + /** + * Set specifies the size of the Zoo Keeper node for the HDInsight cluster. + * + * @param zookeeperNodeSize the zookeeperNodeSize value to set + * @return the HDInsightOnDemandLinkedService object itself. + */ + public HDInsightOnDemandLinkedService withZookeeperNodeSize(Object zookeeperNodeSize) { + this.zookeeperNodeSize = zookeeperNodeSize; + return this; + } + + /** + * Get custom script actions to run on HDI ondemand cluster once it's up. Please refer to https://docs.microsoft.com/en-us/azure/hdinsight/hdinsight-hadoop-customize-cluster-linux?toc=%2Fen-us%2Fazure%2Fhdinsight%2Fr-server%2FTOC.json&bc=%2Fen-us%2Fazure%2Fbread%2Ftoc.json#understanding-script-actions. + * + * @return the scriptActions value + */ + public List scriptActions() { + return this.scriptActions; + } + + /** + * Set custom script actions to run on HDI ondemand cluster once it's up. Please refer to https://docs.microsoft.com/en-us/azure/hdinsight/hdinsight-hadoop-customize-cluster-linux?toc=%2Fen-us%2Fazure%2Fhdinsight%2Fr-server%2FTOC.json&bc=%2Fen-us%2Fazure%2Fbread%2Ftoc.json#understanding-script-actions. + * + * @param scriptActions the scriptActions value to set + * @return the HDInsightOnDemandLinkedService object itself. + */ + public HDInsightOnDemandLinkedService withScriptActions(List scriptActions) { + this.scriptActions = scriptActions; + return this; + } + + /** + * Get the ARM resource ID for the vNet to which the cluster should be joined after creation. Type: string (or Expression with resultType string). + * + * @return the virtualNetworkId value + */ + public Object virtualNetworkId() { + return this.virtualNetworkId; + } + + /** + * Set the ARM resource ID for the vNet to which the cluster should be joined after creation. Type: string (or Expression with resultType string). + * + * @param virtualNetworkId the virtualNetworkId value to set + * @return the HDInsightOnDemandLinkedService object itself. + */ + public HDInsightOnDemandLinkedService withVirtualNetworkId(Object virtualNetworkId) { + this.virtualNetworkId = virtualNetworkId; + return this; + } + + /** + * Get the ARM resource ID for the subnet in the vNet. If virtualNetworkId was specified, then this property is required. Type: string (or Expression with resultType string). + * + * @return the subnetName value + */ + public Object subnetName() { + return this.subnetName; + } + + /** + * Set the ARM resource ID for the subnet in the vNet. If virtualNetworkId was specified, then this property is required. Type: string (or Expression with resultType string). + * + * @param subnetName the subnetName value to set + * @return the HDInsightOnDemandLinkedService object itself. + */ + public HDInsightOnDemandLinkedService withSubnetName(Object subnetName) { + this.subnetName = subnetName; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HDInsightPigActivity.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HDInsightPigActivity.java new file mode 100644 index 0000000000000..70d327e162ebd --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 storage linked service references. + * + * @return the storageLinkedServices value + */ + public List storageLinkedServices() { + return this.storageLinkedServices; + } + + /** + * Set storage linked service references. + * + * @param storageLinkedServices the storageLinkedServices value to set + * @return the HDInsightPigActivity object itself. + */ + public HDInsightPigActivity withStorageLinkedServices(List storageLinkedServices) { + this.storageLinkedServices = storageLinkedServices; + return this; + } + + /** + * Get user specified arguments to HDInsightActivity. + * + * @return the arguments value + */ + public List arguments() { + return this.arguments; + } + + /** + * Set user specified arguments to HDInsightActivity. + * + * @param arguments the arguments value to set + * @return the HDInsightPigActivity object itself. + */ + public HDInsightPigActivity withArguments(List arguments) { + this.arguments = arguments; + return this; + } + + /** + * Get debug info option. Possible values include: 'None', 'Always', 'Failure'. + * + * @return the getDebugInfo value + */ + public HDInsightActivityDebugInfoOption getDebugInfo() { + return this.getDebugInfo; + } + + /** + * Set debug info option. Possible values include: 'None', 'Always', 'Failure'. + * + * @param getDebugInfo the getDebugInfo value to set + * @return the HDInsightPigActivity object itself. + */ + public HDInsightPigActivity withGetDebugInfo(HDInsightActivityDebugInfoOption getDebugInfo) { + this.getDebugInfo = getDebugInfo; + return this; + } + + /** + * Get script path. Type: string (or Expression with resultType string). + * + * @return the scriptPath value + */ + public Object scriptPath() { + return this.scriptPath; + } + + /** + * Set script path. Type: string (or Expression with resultType string). + * + * @param scriptPath the scriptPath value to set + * @return the HDInsightPigActivity object itself. + */ + public HDInsightPigActivity withScriptPath(Object scriptPath) { + this.scriptPath = scriptPath; + return this; + } + + /** + * Get script linked service reference. + * + * @return the scriptLinkedService value + */ + public LinkedServiceReference scriptLinkedService() { + return this.scriptLinkedService; + } + + /** + * Set script linked service reference. + * + * @param scriptLinkedService the scriptLinkedService value to set + * @return the HDInsightPigActivity object itself. + */ + public HDInsightPigActivity withScriptLinkedService(LinkedServiceReference scriptLinkedService) { + this.scriptLinkedService = scriptLinkedService; + return this; + } + + /** + * Get allows user to specify defines for Pig job request. + * + * @return the defines value + */ + public Map defines() { + return this.defines; + } + + /** + * Set allows user to specify defines for Pig job request. + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HDInsightSparkActivity.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HDInsightSparkActivity.java new file mode 100644 index 0000000000000..2d393fae6ff64 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 root path in 'sparkJobLinkedService' for all the job’s files. Type: string (or Expression with resultType string). + * + * @return the rootPath value + */ + public Object rootPath() { + return this.rootPath; + } + + /** + * Set the root path in 'sparkJobLinkedService' for all the job’s files. Type: string (or Expression with resultType string). + * + * @param rootPath the rootPath value to set + * @return the HDInsightSparkActivity object itself. + */ + public HDInsightSparkActivity withRootPath(Object rootPath) { + this.rootPath = rootPath; + return this; + } + + /** + * Get the relative path to the root folder of the code/package to be executed. Type: string (or Expression with resultType string). + * + * @return the entryFilePath value + */ + public Object entryFilePath() { + return this.entryFilePath; + } + + /** + * Set the relative path to the root folder of the code/package to be executed. Type: string (or Expression with resultType string). + * + * @param entryFilePath the entryFilePath value to set + * @return the HDInsightSparkActivity object itself. + */ + public HDInsightSparkActivity withEntryFilePath(Object entryFilePath) { + this.entryFilePath = entryFilePath; + return this; + } + + /** + * Get the user-specified arguments to HDInsightSparkActivity. + * + * @return the arguments value + */ + public List arguments() { + return this.arguments; + } + + /** + * Set the user-specified arguments to HDInsightSparkActivity. + * + * @param arguments the arguments value to set + * @return the HDInsightSparkActivity object itself. + */ + public HDInsightSparkActivity withArguments(List arguments) { + this.arguments = arguments; + return this; + } + + /** + * Get debug info option. Possible values include: 'None', 'Always', 'Failure'. + * + * @return the getDebugInfo value + */ + public HDInsightActivityDebugInfoOption getDebugInfo() { + return this.getDebugInfo; + } + + /** + * Set debug info option. Possible values include: 'None', 'Always', 'Failure'. + * + * @param getDebugInfo the getDebugInfo value to set + * @return the HDInsightSparkActivity object itself. + */ + public HDInsightSparkActivity withGetDebugInfo(HDInsightActivityDebugInfoOption getDebugInfo) { + this.getDebugInfo = getDebugInfo; + return this; + } + + /** + * Get the storage linked service for uploading the entry file and dependencies, and for receiving logs. + * + * @return the sparkJobLinkedService value + */ + public LinkedServiceReference sparkJobLinkedService() { + return this.sparkJobLinkedService; + } + + /** + * Set the storage linked service for uploading the entry file and dependencies, and for receiving logs. + * + * @param sparkJobLinkedService the sparkJobLinkedService value to set + * @return the HDInsightSparkActivity object itself. + */ + public HDInsightSparkActivity withSparkJobLinkedService(LinkedServiceReference sparkJobLinkedService) { + this.sparkJobLinkedService = sparkJobLinkedService; + return this; + } + + /** + * Get the application's Java/Spark main class. + * + * @return the className value + */ + public String className() { + return this.className; + } + + /** + * Set the application's Java/Spark main class. + * + * @param className the className value to set + * @return the HDInsightSparkActivity object itself. + */ + public HDInsightSparkActivity withClassName(String className) { + this.className = className; + return this; + } + + /** + * Get the user to impersonate that will execute the job. Type: string (or Expression with resultType string). + * + * @return the proxyUser value + */ + public Object proxyUser() { + return this.proxyUser; + } + + /** + * Set the user to impersonate that will execute the job. Type: string (or Expression with resultType string). + * + * @param proxyUser the proxyUser value to set + * @return the HDInsightSparkActivity object itself. + */ + public HDInsightSparkActivity withProxyUser(Object proxyUser) { + this.proxyUser = proxyUser; + return this; + } + + /** + * Get spark configuration property. + * + * @return the sparkConfig value + */ + public Map sparkConfig() { + return this.sparkConfig; + } + + /** + * Set spark configuration property. + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HDInsightStreamingActivity.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HDInsightStreamingActivity.java new file mode 100644 index 0000000000000..074954f0f468b --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 storage linked service references. + * + * @return the storageLinkedServices value + */ + public List storageLinkedServices() { + return this.storageLinkedServices; + } + + /** + * Set storage linked service references. + * + * @param storageLinkedServices the storageLinkedServices value to set + * @return the HDInsightStreamingActivity object itself. + */ + public HDInsightStreamingActivity withStorageLinkedServices(List storageLinkedServices) { + this.storageLinkedServices = storageLinkedServices; + return this; + } + + /** + * Get user specified arguments to HDInsightActivity. + * + * @return the arguments value + */ + public List arguments() { + return this.arguments; + } + + /** + * Set user specified arguments to HDInsightActivity. + * + * @param arguments the arguments value to set + * @return the HDInsightStreamingActivity object itself. + */ + public HDInsightStreamingActivity withArguments(List arguments) { + this.arguments = arguments; + return this; + } + + /** + * Get debug info option. Possible values include: 'None', 'Always', 'Failure'. + * + * @return the getDebugInfo value + */ + public HDInsightActivityDebugInfoOption getDebugInfo() { + return this.getDebugInfo; + } + + /** + * Set debug info option. Possible values include: 'None', 'Always', 'Failure'. + * + * @param getDebugInfo the getDebugInfo value to set + * @return the HDInsightStreamingActivity object itself. + */ + public HDInsightStreamingActivity withGetDebugInfo(HDInsightActivityDebugInfoOption getDebugInfo) { + this.getDebugInfo = getDebugInfo; + return this; + } + + /** + * Get mapper executable name. Type: string (or Expression with resultType string). + * + * @return the mapper value + */ + public Object mapper() { + return this.mapper; + } + + /** + * Set mapper executable name. Type: string (or Expression with resultType string). + * + * @param mapper the mapper value to set + * @return the HDInsightStreamingActivity object itself. + */ + public HDInsightStreamingActivity withMapper(Object mapper) { + this.mapper = mapper; + return this; + } + + /** + * Get reducer executable name. Type: string (or Expression with resultType string). + * + * @return the reducer value + */ + public Object reducer() { + return this.reducer; + } + + /** + * Set reducer executable name. Type: string (or Expression with resultType string). + * + * @param reducer the reducer value to set + * @return the HDInsightStreamingActivity object itself. + */ + public HDInsightStreamingActivity withReducer(Object reducer) { + this.reducer = reducer; + return this; + } + + /** + * Get input blob path. Type: string (or Expression with resultType string). + * + * @return the input value + */ + public Object input() { + return this.input; + } + + /** + * Set input blob path. Type: string (or Expression with resultType string). + * + * @param input the input value to set + * @return the HDInsightStreamingActivity object itself. + */ + public HDInsightStreamingActivity withInput(Object input) { + this.input = input; + return this; + } + + /** + * Get output blob path. Type: string (or Expression with resultType string). + * + * @return the output value + */ + public Object output() { + return this.output; + } + + /** + * Set output blob path. Type: string (or Expression with resultType string). + * + * @param output the output value to set + * @return the HDInsightStreamingActivity object itself. + */ + public HDInsightStreamingActivity withOutput(Object output) { + this.output = output; + return this; + } + + /** + * Get paths to streaming job files. Can be directories. + * + * @return the filePaths value + */ + public List filePaths() { + return this.filePaths; + } + + /** + * Set paths to streaming job files. Can be directories. + * + * @param filePaths the filePaths value to set + * @return the HDInsightStreamingActivity object itself. + */ + public HDInsightStreamingActivity withFilePaths(List filePaths) { + this.filePaths = filePaths; + return this; + } + + /** + * Get linked service reference where the files are located. + * + * @return the fileLinkedService value + */ + public LinkedServiceReference fileLinkedService() { + return this.fileLinkedService; + } + + /** + * Set linked service reference where the files are located. + * + * @param fileLinkedService the fileLinkedService value to set + * @return the HDInsightStreamingActivity object itself. + */ + public HDInsightStreamingActivity withFileLinkedService(LinkedServiceReference fileLinkedService) { + this.fileLinkedService = fileLinkedService; + return this; + } + + /** + * Get combiner executable name. Type: string (or Expression with resultType string). + * + * @return the combiner value + */ + public Object combiner() { + return this.combiner; + } + + /** + * Set combiner executable name. Type: string (or Expression with resultType string). + * + * @param combiner the combiner value to set + * @return the HDInsightStreamingActivity object itself. + */ + public HDInsightStreamingActivity withCombiner(Object combiner) { + this.combiner = combiner; + return this; + } + + /** + * Get command line environment values. + * + * @return the commandEnvironment value + */ + public List commandEnvironment() { + return this.commandEnvironment; + } + + /** + * Set command line environment values. + * + * @param commandEnvironment the commandEnvironment value to set + * @return the HDInsightStreamingActivity object itself. + */ + public HDInsightStreamingActivity withCommandEnvironment(List commandEnvironment) { + this.commandEnvironment = commandEnvironment; + return this; + } + + /** + * Get allows user to specify defines for streaming job request. + * + * @return the defines value + */ + public Map defines() { + return this.defines; + } + + /** + * Set allows user to specify defines for streaming job request. + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HdfsLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HdfsLinkedService.java new file mode 100644 index 0000000000000..802a7c915259f --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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 of the HDFS service endpoint, e.g. http://myhostname:50070/webhdfs/v1 . Type: string (or Expression with resultType string). + * + * @return the url value + */ + public Object url() { + return this.url; + } + + /** + * Set the URL of the HDFS service endpoint, e.g. http://myhostname:50070/webhdfs/v1 . Type: string (or Expression with resultType string). + * + * @param url the url value to set + * @return the HdfsLinkedService object itself. + */ + public HdfsLinkedService withUrl(Object url) { + this.url = url; + return this; + } + + /** + * Get type of authentication used to connect to the HDFS. Possible values are: Anonymous and Windows. Type: string (or Expression with resultType string). + * + * @return the authenticationType value + */ + public Object authenticationType() { + return this.authenticationType; + } + + /** + * Set type of authentication used to connect to the HDFS. Possible values are: Anonymous and Windows. Type: string (or Expression with resultType string). + * + * @param authenticationType the authenticationType value to set + * @return the HdfsLinkedService object itself. + */ + public HdfsLinkedService withAuthenticationType(Object authenticationType) { + this.authenticationType = authenticationType; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the HdfsLinkedService object itself. + */ + public HdfsLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + + /** + * Get user name for Windows authentication. Type: string (or Expression with resultType string). + * + * @return the userName value + */ + public Object userName() { + return this.userName; + } + + /** + * Set user name for Windows authentication. Type: string (or Expression with resultType string). + * + * @param userName the userName value to set + * @return the HdfsLinkedService object itself. + */ + public HdfsLinkedService withUserName(Object userName) { + this.userName = userName; + return this; + } + + /** + * Get password for Windows authentication. + * + * @return the password value + */ + public SecretBase password() { + return this.password; + } + + /** + * Set password for Windows authentication. + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HdfsLocation.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HdfsLocation.java new file mode 100644 index 0000000000000..4ba66b8d94148 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HdfsLocation.java @@ -0,0 +1,16 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + + +/** + * The location of HDFS. + */ +public class HdfsLocation extends DatasetLocation { +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HdfsReadSettings.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HdfsReadSettings.java new file mode 100644 index 0000000000000..b2b5874d84055 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HdfsReadSettings.java @@ -0,0 +1,204 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * HDFS read settings. + */ +public class HdfsReadSettings extends StoreReadSettings { + /** + * 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; + + /** + * HDFS wildcardFolderPath. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "wildcardFolderPath") + private Object wildcardFolderPath; + + /** + * HDFS wildcardFileName. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "wildcardFileName") + private Object wildcardFileName; + + /** + * Indicates whether to enable partition discovery. + */ + @JsonProperty(value = "enablePartitionDiscovery") + private Boolean enablePartitionDiscovery; + + /** + * The start of file's modified datetime. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "modifiedDatetimeStart") + private Object modifiedDatetimeStart; + + /** + * The end of file's modified datetime. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "modifiedDatetimeEnd") + private Object modifiedDatetimeEnd; + + /** + * Specifies Distcp-related settings. + */ + @JsonProperty(value = "distcpSettings") + private DistcpSettings distcpSettings; + + /** + * Get if true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType boolean). + * + * @return the recursive value + */ + public Object recursive() { + return this.recursive; + } + + /** + * Set if true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType boolean). + * + * @param recursive the recursive value to set + * @return the HdfsReadSettings object itself. + */ + public HdfsReadSettings withRecursive(Object recursive) { + this.recursive = recursive; + return this; + } + + /** + * Get hDFS wildcardFolderPath. Type: string (or Expression with resultType string). + * + * @return the wildcardFolderPath value + */ + public Object wildcardFolderPath() { + return this.wildcardFolderPath; + } + + /** + * Set hDFS wildcardFolderPath. Type: string (or Expression with resultType string). + * + * @param wildcardFolderPath the wildcardFolderPath value to set + * @return the HdfsReadSettings object itself. + */ + public HdfsReadSettings withWildcardFolderPath(Object wildcardFolderPath) { + this.wildcardFolderPath = wildcardFolderPath; + return this; + } + + /** + * Get hDFS wildcardFileName. Type: string (or Expression with resultType string). + * + * @return the wildcardFileName value + */ + public Object wildcardFileName() { + return this.wildcardFileName; + } + + /** + * Set hDFS wildcardFileName. Type: string (or Expression with resultType string). + * + * @param wildcardFileName the wildcardFileName value to set + * @return the HdfsReadSettings object itself. + */ + public HdfsReadSettings withWildcardFileName(Object wildcardFileName) { + this.wildcardFileName = wildcardFileName; + return this; + } + + /** + * Get indicates whether to enable partition discovery. + * + * @return the enablePartitionDiscovery value + */ + public Boolean enablePartitionDiscovery() { + return this.enablePartitionDiscovery; + } + + /** + * Set indicates whether to enable partition discovery. + * + * @param enablePartitionDiscovery the enablePartitionDiscovery value to set + * @return the HdfsReadSettings object itself. + */ + public HdfsReadSettings withEnablePartitionDiscovery(Boolean enablePartitionDiscovery) { + this.enablePartitionDiscovery = enablePartitionDiscovery; + return this; + } + + /** + * Get the start of file's modified datetime. Type: string (or Expression with resultType string). + * + * @return the modifiedDatetimeStart value + */ + public Object modifiedDatetimeStart() { + return this.modifiedDatetimeStart; + } + + /** + * Set the start of file's modified datetime. Type: string (or Expression with resultType string). + * + * @param modifiedDatetimeStart the modifiedDatetimeStart value to set + * @return the HdfsReadSettings object itself. + */ + public HdfsReadSettings withModifiedDatetimeStart(Object modifiedDatetimeStart) { + this.modifiedDatetimeStart = modifiedDatetimeStart; + return this; + } + + /** + * Get the end of file's modified datetime. Type: string (or Expression with resultType string). + * + * @return the modifiedDatetimeEnd value + */ + public Object modifiedDatetimeEnd() { + return this.modifiedDatetimeEnd; + } + + /** + * Set the end of file's modified datetime. Type: string (or Expression with resultType string). + * + * @param modifiedDatetimeEnd the modifiedDatetimeEnd value to set + * @return the HdfsReadSettings object itself. + */ + public HdfsReadSettings withModifiedDatetimeEnd(Object modifiedDatetimeEnd) { + this.modifiedDatetimeEnd = modifiedDatetimeEnd; + return this; + } + + /** + * Get specifies Distcp-related settings. + * + * @return the distcpSettings value + */ + public DistcpSettings distcpSettings() { + return this.distcpSettings; + } + + /** + * Set specifies Distcp-related settings. + * + * @param distcpSettings the distcpSettings value to set + * @return the HdfsReadSettings object itself. + */ + public HdfsReadSettings withDistcpSettings(DistcpSettings distcpSettings) { + this.distcpSettings = distcpSettings; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HdfsSource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HdfsSource.java new file mode 100644 index 0000000000000..1bdd0f7fa5d4f --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 if true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType boolean). + * + * @return the recursive value + */ + public Object recursive() { + return this.recursive; + } + + /** + * Set if true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType boolean). + * + * @param recursive the recursive value to set + * @return the HdfsSource object itself. + */ + public HdfsSource withRecursive(Object recursive) { + this.recursive = recursive; + return this; + } + + /** + * Get specifies Distcp-related settings. + * + * @return the distcpSettings value + */ + public DistcpSettings distcpSettings() { + return this.distcpSettings; + } + + /** + * Set specifies Distcp-related settings. + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HiveAuthenticationType.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HiveAuthenticationType.java new file mode 100644 index 0000000000000..1dbc0b2f7b2a4 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HiveLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HiveLinkedService.java new file mode 100644 index 0000000000000..6cb2ce42f72db --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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 iP address or host name of the Hive server, separated by ';' for multiple hosts (only when serviceDiscoveryMode is enable). + * + * @return the host value + */ + public Object host() { + return this.host; + } + + /** + * Set iP address or host name of the Hive server, separated by ';' for multiple hosts (only when serviceDiscoveryMode is enable). + * + * @param host the host value to set + * @return the HiveLinkedService object itself. + */ + public HiveLinkedService withHost(Object host) { + this.host = host; + return this; + } + + /** + * Get the TCP port that the Hive server uses to listen for client connections. + * + * @return the port value + */ + public Object port() { + return this.port; + } + + /** + * Set the TCP port that the Hive server uses to listen for client connections. + * + * @param port the port value to set + * @return the HiveLinkedService object itself. + */ + public HiveLinkedService withPort(Object port) { + this.port = port; + return this; + } + + /** + * Get the type of Hive server. Possible values include: 'HiveServer1', 'HiveServer2', 'HiveThriftServer'. + * + * @return the serverType value + */ + public HiveServerType serverType() { + return this.serverType; + } + + /** + * Set the type of Hive server. Possible values include: 'HiveServer1', 'HiveServer2', 'HiveThriftServer'. + * + * @param serverType the serverType value to set + * @return the HiveLinkedService object itself. + */ + public HiveLinkedService withServerType(HiveServerType serverType) { + this.serverType = serverType; + return this; + } + + /** + * Get the transport protocol to use in the Thrift layer. Possible values include: 'Binary', 'SASL', 'HTTP '. + * + * @return the thriftTransportProtocol value + */ + public HiveThriftTransportProtocol thriftTransportProtocol() { + return this.thriftTransportProtocol; + } + + /** + * Set the transport protocol to use in the Thrift layer. Possible values include: 'Binary', 'SASL', 'HTTP '. + * + * @param thriftTransportProtocol the thriftTransportProtocol value to set + * @return the HiveLinkedService object itself. + */ + public HiveLinkedService withThriftTransportProtocol(HiveThriftTransportProtocol thriftTransportProtocol) { + this.thriftTransportProtocol = thriftTransportProtocol; + return this; + } + + /** + * Get the authentication method used to access the Hive server. Possible values include: 'Anonymous', 'Username', 'UsernameAndPassword', 'WindowsAzureHDInsightService'. + * + * @return the authenticationType value + */ + public HiveAuthenticationType authenticationType() { + return this.authenticationType; + } + + /** + * Set the authentication method used to access the Hive server. Possible values include: 'Anonymous', 'Username', 'UsernameAndPassword', 'WindowsAzureHDInsightService'. + * + * @param authenticationType the authenticationType value to set + * @return the HiveLinkedService object itself. + */ + public HiveLinkedService withAuthenticationType(HiveAuthenticationType authenticationType) { + this.authenticationType = authenticationType; + return this; + } + + /** + * Get true to indicate using the ZooKeeper service, false not. + * + * @return the serviceDiscoveryMode value + */ + public Object serviceDiscoveryMode() { + return this.serviceDiscoveryMode; + } + + /** + * Set true to indicate using the ZooKeeper service, false not. + * + * @param serviceDiscoveryMode the serviceDiscoveryMode value to set + * @return the HiveLinkedService object itself. + */ + public HiveLinkedService withServiceDiscoveryMode(Object serviceDiscoveryMode) { + this.serviceDiscoveryMode = serviceDiscoveryMode; + return this; + } + + /** + * Get the namespace on ZooKeeper under which Hive Server 2 nodes are added. + * + * @return the zooKeeperNameSpace value + */ + public Object zooKeeperNameSpace() { + return this.zooKeeperNameSpace; + } + + /** + * Set the namespace on ZooKeeper under which Hive Server 2 nodes are added. + * + * @param zooKeeperNameSpace the zooKeeperNameSpace value to set + * @return the HiveLinkedService object itself. + */ + public HiveLinkedService withZooKeeperNameSpace(Object zooKeeperNameSpace) { + this.zooKeeperNameSpace = zooKeeperNameSpace; + return this; + } + + /** + * Get specifies whether the driver uses native HiveQL queries,or converts them into an equivalent form in HiveQL. + * + * @return the useNativeQuery value + */ + public Object useNativeQuery() { + return this.useNativeQuery; + } + + /** + * Set specifies whether the driver uses native HiveQL queries,or converts them into an equivalent form in HiveQL. + * + * @param useNativeQuery the useNativeQuery value to set + * @return the HiveLinkedService object itself. + */ + public HiveLinkedService withUseNativeQuery(Object useNativeQuery) { + this.useNativeQuery = useNativeQuery; + return this; + } + + /** + * Get the user name that you use to access Hive Server. + * + * @return the username value + */ + public Object username() { + return this.username; + } + + /** + * Set the user name that you use to access Hive Server. + * + * @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 corresponding to the user name that you provided in the Username field. + * + * @return the password value + */ + public SecretBase password() { + return this.password; + } + + /** + * Set the password corresponding to the user name that you provided in the Username field. + * + * @param password the password value to set + * @return the HiveLinkedService object itself. + */ + public HiveLinkedService withPassword(SecretBase password) { + this.password = password; + return this; + } + + /** + * Get the partial URL corresponding to the Hive server. + * + * @return the httpPath value + */ + public Object httpPath() { + return this.httpPath; + } + + /** + * Set the partial URL corresponding to the Hive server. + * + * @param httpPath the httpPath value to set + * @return the HiveLinkedService object itself. + */ + public HiveLinkedService withHttpPath(Object httpPath) { + this.httpPath = httpPath; + return this; + } + + /** + * Get specifies whether the connections to the server are encrypted using SSL. The default value is false. + * + * @return the enableSsl value + */ + public Object enableSsl() { + return this.enableSsl; + } + + /** + * Set specifies whether the connections to the server are encrypted using SSL. The default value is false. + * + * @param enableSsl the enableSsl value to set + * @return the HiveLinkedService object itself. + */ + public HiveLinkedService withEnableSsl(Object enableSsl) { + this.enableSsl = enableSsl; + return this; + } + + /** + * Get the full path of the .pem file containing trusted CA certificates for verifying the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default value is the cacerts.pem file installed with the IR. + * + * @return the trustedCertPath value + */ + public Object trustedCertPath() { + return this.trustedCertPath; + } + + /** + * Set the full path of the .pem file containing trusted CA certificates for verifying the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default value is the cacerts.pem file installed with the IR. + * + * @param trustedCertPath the trustedCertPath value to set + * @return the HiveLinkedService object itself. + */ + public HiveLinkedService withTrustedCertPath(Object trustedCertPath) { + this.trustedCertPath = trustedCertPath; + return this; + } + + /** + * Get specifies whether to use a CA certificate from the system trust store or from a specified PEM file. The default value is false. + * + * @return the useSystemTrustStore value + */ + public Object useSystemTrustStore() { + return this.useSystemTrustStore; + } + + /** + * Set specifies whether to use a CA certificate from the system trust store or from a specified PEM file. The default value is false. + * + * @param useSystemTrustStore the useSystemTrustStore value to set + * @return the HiveLinkedService object itself. + */ + public HiveLinkedService withUseSystemTrustStore(Object useSystemTrustStore) { + this.useSystemTrustStore = useSystemTrustStore; + return this; + } + + /** + * Get specifies whether to require a CA-issued SSL certificate name to match the host name of the server when connecting over SSL. The default value is false. + * + * @return the allowHostNameCNMismatch value + */ + public Object allowHostNameCNMismatch() { + return this.allowHostNameCNMismatch; + } + + /** + * Set specifies whether to require a CA-issued SSL certificate name to match the host name of the server when connecting over SSL. The default value is false. + * + * @param allowHostNameCNMismatch the allowHostNameCNMismatch value to set + * @return the HiveLinkedService object itself. + */ + public HiveLinkedService withAllowHostNameCNMismatch(Object allowHostNameCNMismatch) { + this.allowHostNameCNMismatch = allowHostNameCNMismatch; + return this; + } + + /** + * Get specifies whether to allow self-signed certificates from the server. The default value is false. + * + * @return the allowSelfSignedServerCert value + */ + public Object allowSelfSignedServerCert() { + return this.allowSelfSignedServerCert; + } + + /** + * Set specifies whether to allow self-signed certificates from the server. The default value is false. + * + * @param allowSelfSignedServerCert the allowSelfSignedServerCert value to set + * @return the HiveLinkedService object itself. + */ + public HiveLinkedService withAllowSelfSignedServerCert(Object allowSelfSignedServerCert) { + this.allowSelfSignedServerCert = allowSelfSignedServerCert; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the HiveLinkedService object itself. + */ + public HiveLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HiveObjectDataset.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HiveObjectDataset.java new file mode 100644 index 0000000000000..0b8c595754b6f --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HiveObjectDataset.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DatasetInner; + +/** + * Hive Server dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("HiveObject") +@JsonFlatten +public class HiveObjectDataset extends DatasetInner { + /** + * This property will be retired. Please consider using schema + table + * properties instead. + */ + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; + + /** + * The table name of the Hive. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.table") + private Object table; + + /** + * The schema name of the Hive. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.schema") + private Object hiveObjectDatasetSchema; + + /** + * Get this property will be retired. Please consider using schema + table properties instead. + * + * @return the tableName value + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set this property will be retired. Please consider using schema + table properties instead. + * + * @param tableName the tableName value to set + * @return the HiveObjectDataset object itself. + */ + public HiveObjectDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; + } + + /** + * Get the table name of the Hive. Type: string (or Expression with resultType string). + * + * @return the table value + */ + public Object table() { + return this.table; + } + + /** + * Set the table name of the Hive. Type: string (or Expression with resultType string). + * + * @param table the table value to set + * @return the HiveObjectDataset object itself. + */ + public HiveObjectDataset withTable(Object table) { + this.table = table; + return this; + } + + /** + * Get the schema name of the Hive. Type: string (or Expression with resultType string). + * + * @return the hiveObjectDatasetSchema value + */ + public Object hiveObjectDatasetSchema() { + return this.hiveObjectDatasetSchema; + } + + /** + * Set the schema name of the Hive. Type: string (or Expression with resultType string). + * + * @param hiveObjectDatasetSchema the hiveObjectDatasetSchema value to set + * @return the HiveObjectDataset object itself. + */ + public HiveObjectDataset withHiveObjectDatasetSchema(Object hiveObjectDatasetSchema) { + this.hiveObjectDatasetSchema = hiveObjectDatasetSchema; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HiveServerType.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HiveServerType.java new file mode 100644 index 0000000000000..22748456527d6 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HiveSource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HiveSource.java new file mode 100644 index 0000000000000..68cebf3010a58 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 a query to retrieve data from source. Type: string (or Expression with resultType string). + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set a query to retrieve data from source. Type: string (or Expression with resultType string). + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HiveThriftTransportProtocol.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HiveThriftTransportProtocol.java new file mode 100644 index 0000000000000..bc06732850772 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HttpAuthenticationType.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HttpAuthenticationType.java new file mode 100644 index 0000000000000..09b16bf504f35 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HttpDataset.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HttpDataset.java new file mode 100644 index 0000000000000..a5f4a399a67b8 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HttpDataset.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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 relative URL based on the URL in the HttpLinkedService refers to an HTTP file Type: string (or Expression with resultType string). + * + * @return the relativeUrl value + */ + public Object relativeUrl() { + return this.relativeUrl; + } + + /** + * Set the relative URL based on the URL in the HttpLinkedService refers to an HTTP file Type: string (or Expression with resultType string). + * + * @param relativeUrl the relativeUrl value to set + * @return the HttpDataset object itself. + */ + public HttpDataset withRelativeUrl(Object relativeUrl) { + this.relativeUrl = relativeUrl; + return this; + } + + /** + * Get the HTTP method for the HTTP request. Type: string (or Expression with resultType string). + * + * @return the requestMethod value + */ + public Object requestMethod() { + return this.requestMethod; + } + + /** + * Set the HTTP method for the HTTP request. Type: string (or Expression with resultType string). + * + * @param requestMethod the requestMethod value to set + * @return the HttpDataset object itself. + */ + public HttpDataset withRequestMethod(Object requestMethod) { + this.requestMethod = requestMethod; + return this; + } + + /** + * Get the body for the HTTP request. Type: string (or Expression with resultType string). + * + * @return the requestBody value + */ + public Object requestBody() { + return this.requestBody; + } + + /** + * Set the body for the HTTP request. Type: string (or Expression with resultType string). + * + * @param requestBody the requestBody value to set + * @return the HttpDataset object itself. + */ + public HttpDataset withRequestBody(Object requestBody) { + this.requestBody = requestBody; + return this; + } + + /** + * Get the headers for the HTTP Request. e.g. request-header-name-1:request-header-value-1 + ... + request-header-name-n:request-header-value-n Type: string (or Expression with resultType string). + * + * @return the additionalHeaders value + */ + public Object additionalHeaders() { + return this.additionalHeaders; + } + + /** + * Set the headers for the HTTP Request. e.g. request-header-name-1:request-header-value-1 + ... + request-header-name-n:request-header-value-n Type: string (or Expression with resultType string). + * + * @param additionalHeaders the additionalHeaders value to set + * @return the HttpDataset object itself. + */ + public HttpDataset withAdditionalHeaders(Object additionalHeaders) { + this.additionalHeaders = additionalHeaders; + return this; + } + + /** + * Get the format of files. + * + * @return the format value + */ + public DatasetStorageFormat format() { + return this.format; + } + + /** + * Set the format of files. + * + * @param format the format value to set + * @return the HttpDataset object itself. + */ + public HttpDataset withFormat(DatasetStorageFormat format) { + this.format = format; + return this; + } + + /** + * Get the data compression method used on files. + * + * @return the compression value + */ + public DatasetCompression compression() { + return this.compression; + } + + /** + * Set the data compression method used on files. + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HttpLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HttpLinkedService.java new file mode 100644 index 0000000000000..c50254c53195e --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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 base URL of the HTTP endpoint, e.g. http://www.microsoft.com. Type: string (or Expression with resultType string). + * + * @return the url value + */ + public Object url() { + return this.url; + } + + /** + * Set the base URL of the HTTP endpoint, e.g. http://www.microsoft.com. Type: string (or Expression with resultType string). + * + * @param url the url value to set + * @return the HttpLinkedService object itself. + */ + public HttpLinkedService withUrl(Object url) { + this.url = url; + return this; + } + + /** + * Get the authentication type to be used to connect to the HTTP server. Possible values include: 'Basic', 'Anonymous', 'Digest', 'Windows', 'ClientCertificate'. + * + * @return the authenticationType value + */ + public HttpAuthenticationType authenticationType() { + return this.authenticationType; + } + + /** + * Set the authentication type to be used to connect to the HTTP server. Possible values include: 'Basic', 'Anonymous', 'Digest', 'Windows', 'ClientCertificate'. + * + * @param authenticationType the authenticationType value to set + * @return the HttpLinkedService object itself. + */ + public HttpLinkedService withAuthenticationType(HttpAuthenticationType authenticationType) { + this.authenticationType = authenticationType; + return this; + } + + /** + * Get user name for Basic, Digest, or Windows authentication. Type: string (or Expression with resultType string). + * + * @return the userName value + */ + public Object userName() { + return this.userName; + } + + /** + * Set user name for Basic, Digest, or Windows authentication. Type: string (or Expression with resultType string). + * + * @param userName the userName value to set + * @return the HttpLinkedService object itself. + */ + public HttpLinkedService withUserName(Object userName) { + this.userName = userName; + return this; + } + + /** + * Get password for Basic, Digest, Windows, or ClientCertificate with EmbeddedCertData authentication. + * + * @return the password value + */ + public SecretBase password() { + return this.password; + } + + /** + * Set password for Basic, Digest, Windows, or ClientCertificate with EmbeddedCertData authentication. + * + * @param password the password value to set + * @return the HttpLinkedService object itself. + */ + public HttpLinkedService withPassword(SecretBase password) { + this.password = password; + return this; + } + + /** + * Get base64 encoded certificate data for ClientCertificate authentication. For on-premises copy with ClientCertificate authentication, either CertThumbprint or EmbeddedCertData/Password should be specified. Type: string (or Expression with resultType string). + * + * @return the embeddedCertData value + */ + public Object embeddedCertData() { + return this.embeddedCertData; + } + + /** + * Set base64 encoded certificate data for ClientCertificate authentication. For on-premises copy with ClientCertificate authentication, either CertThumbprint or EmbeddedCertData/Password should be specified. Type: string (or Expression with resultType string). + * + * @param embeddedCertData the embeddedCertData value to set + * @return the HttpLinkedService object itself. + */ + public HttpLinkedService withEmbeddedCertData(Object embeddedCertData) { + this.embeddedCertData = embeddedCertData; + return this; + } + + /** + * Get thumbprint of certificate for ClientCertificate authentication. Only valid for on-premises copy. For on-premises copy with ClientCertificate authentication, either CertThumbprint or EmbeddedCertData/Password should be specified. Type: string (or Expression with resultType string). + * + * @return the certThumbprint value + */ + public Object certThumbprint() { + return this.certThumbprint; + } + + /** + * Set thumbprint of certificate for ClientCertificate authentication. Only valid for on-premises copy. For on-premises copy with ClientCertificate authentication, either CertThumbprint or EmbeddedCertData/Password should be specified. Type: string (or Expression with resultType string). + * + * @param certThumbprint the certThumbprint value to set + * @return the HttpLinkedService object itself. + */ + public HttpLinkedService withCertThumbprint(Object certThumbprint) { + this.certThumbprint = certThumbprint; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the HttpLinkedService object itself. + */ + public HttpLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + + /** + * Get if true, validate the HTTPS server SSL certificate. Default value is true. Type: boolean (or Expression with resultType boolean). + * + * @return the enableServerCertificateValidation value + */ + public Object enableServerCertificateValidation() { + return this.enableServerCertificateValidation; + } + + /** + * Set if true, validate the HTTPS server SSL certificate. Default value is true. Type: boolean (or Expression with resultType boolean). + * + * @param enableServerCertificateValidation the enableServerCertificateValidation value to set + * @return the HttpLinkedService object itself. + */ + public HttpLinkedService withEnableServerCertificateValidation(Object enableServerCertificateValidation) { + this.enableServerCertificateValidation = enableServerCertificateValidation; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HttpReadSettings.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HttpReadSettings.java new file mode 100644 index 0000000000000..5f722804f3e8e --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HttpReadSettings.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Sftp read settings. + */ +public class HttpReadSettings extends StoreReadSettings { + /** + * The HTTP method used to call the RESTful API. The default is GET. Type: + * string (or Expression with resultType string). + */ + @JsonProperty(value = "requestMethod") + private Object requestMethod; + + /** + * The HTTP request body to the RESTful API if requestMethod is POST. Type: + * string (or Expression with resultType string). + */ + @JsonProperty(value = "requestBody") + private Object requestBody; + + /** + * The additional HTTP headers in the request to the RESTful API. Type: + * string (or Expression with resultType string). + */ + @JsonProperty(value = "additionalHeaders") + private Object additionalHeaders; + + /** + * Specifies the timeout for a HTTP client to get HTTP response from HTTP + * server. + */ + @JsonProperty(value = "requestTimeout") + private Object requestTimeout; + + /** + * Get the HTTP method used to call the RESTful API. The default is GET. Type: string (or Expression with resultType string). + * + * @return the requestMethod value + */ + public Object requestMethod() { + return this.requestMethod; + } + + /** + * Set the HTTP method used to call the RESTful API. The default is GET. Type: string (or Expression with resultType string). + * + * @param requestMethod the requestMethod value to set + * @return the HttpReadSettings object itself. + */ + public HttpReadSettings withRequestMethod(Object requestMethod) { + this.requestMethod = requestMethod; + return this; + } + + /** + * Get the HTTP request body to the RESTful API if requestMethod is POST. Type: string (or Expression with resultType string). + * + * @return the requestBody value + */ + public Object requestBody() { + return this.requestBody; + } + + /** + * Set the HTTP request body to the RESTful API if requestMethod is POST. Type: string (or Expression with resultType string). + * + * @param requestBody the requestBody value to set + * @return the HttpReadSettings object itself. + */ + public HttpReadSettings withRequestBody(Object requestBody) { + this.requestBody = requestBody; + return this; + } + + /** + * Get the additional HTTP headers in the request to the RESTful API. Type: string (or Expression with resultType string). + * + * @return the additionalHeaders value + */ + public Object additionalHeaders() { + return this.additionalHeaders; + } + + /** + * Set the additional HTTP headers in the request to the RESTful API. Type: string (or Expression with resultType string). + * + * @param additionalHeaders the additionalHeaders value to set + * @return the HttpReadSettings object itself. + */ + public HttpReadSettings withAdditionalHeaders(Object additionalHeaders) { + this.additionalHeaders = additionalHeaders; + return this; + } + + /** + * Get specifies the timeout for a HTTP client to get HTTP response from HTTP server. + * + * @return the requestTimeout value + */ + public Object requestTimeout() { + return this.requestTimeout; + } + + /** + * Set specifies the timeout for a HTTP client to get HTTP response from HTTP server. + * + * @param requestTimeout the requestTimeout value to set + * @return the HttpReadSettings object itself. + */ + public HttpReadSettings withRequestTimeout(Object requestTimeout) { + this.requestTimeout = requestTimeout; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HttpServerLocation.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HttpServerLocation.java new file mode 100644 index 0000000000000..a194371c5923c --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HttpServerLocation.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The location of http server. + */ +public class HttpServerLocation extends DatasetLocation { + /** + * Specify the relativeUrl of http server. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "relativeUrl") + private Object relativeUrl; + + /** + * Get specify the relativeUrl of http server. Type: string (or Expression with resultType string). + * + * @return the relativeUrl value + */ + public Object relativeUrl() { + return this.relativeUrl; + } + + /** + * Set specify the relativeUrl of http server. Type: string (or Expression with resultType string). + * + * @param relativeUrl the relativeUrl value to set + * @return the HttpServerLocation object itself. + */ + public HttpServerLocation withRelativeUrl(Object relativeUrl) { + this.relativeUrl = relativeUrl; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HttpSource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HttpSource.java new file mode 100644 index 0000000000000..a64f5841c9271 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 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])). + * + * @return the httpRequestTimeout value + */ + public Object httpRequestTimeout() { + return this.httpRequestTimeout; + } + + /** + * Set 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])). + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HubspotLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HubspotLinkedService.java new file mode 100644 index 0000000000000..715046e442a0a --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.LinkedServiceInner; + +/** + * Hubspot Service 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 client ID associated with your Hubspot application. + * + * @return the clientId value + */ + public Object clientId() { + return this.clientId; + } + + /** + * Set the client ID associated with your Hubspot application. + * + * @param clientId the clientId value to set + * @return the HubspotLinkedService object itself. + */ + public HubspotLinkedService withClientId(Object clientId) { + this.clientId = clientId; + return this; + } + + /** + * Get the client secret associated with your Hubspot application. + * + * @return the clientSecret value + */ + public SecretBase clientSecret() { + return this.clientSecret; + } + + /** + * Set the client secret associated with your Hubspot application. + * + * @param clientSecret the clientSecret value to set + * @return the HubspotLinkedService object itself. + */ + public HubspotLinkedService withClientSecret(SecretBase clientSecret) { + this.clientSecret = clientSecret; + return this; + } + + /** + * Get the access token obtained when initially authenticating your OAuth integration. + * + * @return the accessToken value + */ + public SecretBase accessToken() { + return this.accessToken; + } + + /** + * Set the access token obtained when initially authenticating your OAuth integration. + * + * @param accessToken the accessToken value to set + * @return the HubspotLinkedService object itself. + */ + public HubspotLinkedService withAccessToken(SecretBase accessToken) { + this.accessToken = accessToken; + return this; + } + + /** + * Get the refresh token obtained when initially authenticating your OAuth integration. + * + * @return the refreshToken value + */ + public SecretBase refreshToken() { + return this.refreshToken; + } + + /** + * Set the refresh token obtained when initially authenticating your OAuth integration. + * + * @param refreshToken the refreshToken value to set + * @return the HubspotLinkedService object itself. + */ + public HubspotLinkedService withRefreshToken(SecretBase refreshToken) { + this.refreshToken = refreshToken; + return this; + } + + /** + * Get specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. + * + * @return the useEncryptedEndpoints value + */ + public Object useEncryptedEndpoints() { + return this.useEncryptedEndpoints; + } + + /** + * Set specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. + * + * @param useEncryptedEndpoints the useEncryptedEndpoints value to set + * @return the HubspotLinkedService object itself. + */ + public HubspotLinkedService withUseEncryptedEndpoints(Object useEncryptedEndpoints) { + this.useEncryptedEndpoints = useEncryptedEndpoints; + return this; + } + + /** + * Get specifies whether to require the host name in the server's certificate to match the host name of the server when connecting over SSL. The default value is true. + * + * @return the useHostVerification value + */ + public Object useHostVerification() { + return this.useHostVerification; + } + + /** + * Set specifies whether to require the host name in the server's certificate to match the host name of the server when connecting over SSL. The default value is true. + * + * @param useHostVerification the useHostVerification value to set + * @return the HubspotLinkedService object itself. + */ + public HubspotLinkedService withUseHostVerification(Object useHostVerification) { + this.useHostVerification = useHostVerification; + return this; + } + + /** + * Get specifies whether to verify the identity of the server when connecting over SSL. The default value is true. + * + * @return the usePeerVerification value + */ + public Object usePeerVerification() { + return this.usePeerVerification; + } + + /** + * Set specifies whether to verify the identity of the server when connecting over SSL. The default value is true. + * + * @param usePeerVerification the usePeerVerification value to set + * @return the HubspotLinkedService object itself. + */ + public HubspotLinkedService withUsePeerVerification(Object usePeerVerification) { + this.usePeerVerification = usePeerVerification; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the HubspotLinkedService object itself. + */ + public HubspotLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HubspotObjectDataset.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HubspotObjectDataset.java new file mode 100644 index 0000000000000..93013b6fa4abb --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HubspotObjectDataset.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DatasetInner; + +/** + * Hubspot Service dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("HubspotObject") +@JsonFlatten +public class HubspotObjectDataset extends DatasetInner { + /** + * The table name. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; + + /** + * Get the table name. Type: string (or Expression with resultType string). + * + * @return the tableName value + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set the table name. Type: string (or Expression with resultType string). + * + * @param tableName the tableName value to set + * @return the HubspotObjectDataset object itself. + */ + public HubspotObjectDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HubspotSource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/HubspotSource.java new file mode 100644 index 0000000000000..02f08f18ac5b4 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Hubspot Service 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 a query to retrieve data from source. Type: string (or Expression with resultType string). + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set a query to retrieve data from source. Type: string (or Expression with resultType string). + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IfConditionActivity.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IfConditionActivity.java new file mode 100644 index 0000000000000..b10dad745883f --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 an expression that would evaluate to Boolean. This is used to determine the block of activities (ifTrueActivities or ifFalseActivities) that will be executed. + * + * @return the expression value + */ + public Expression expression() { + return this.expression; + } + + /** + * Set an expression that would evaluate to Boolean. This is used to determine the block of activities (ifTrueActivities or ifFalseActivities) that will be executed. + * + * @param expression the expression value to set + * @return the IfConditionActivity object itself. + */ + public IfConditionActivity withExpression(Expression expression) { + this.expression = expression; + return this; + } + + /** + * Get list of activities to execute if expression is evaluated to true. This is an optional property and if not provided, the activity will exit without any action. + * + * @return the ifTrueActivities value + */ + public List ifTrueActivities() { + return this.ifTrueActivities; + } + + /** + * Set list of activities to execute if expression is evaluated to true. This is an optional property and if not provided, the activity will exit without any action. + * + * @param ifTrueActivities the ifTrueActivities value to set + * @return the IfConditionActivity object itself. + */ + public IfConditionActivity withIfTrueActivities(List ifTrueActivities) { + this.ifTrueActivities = ifTrueActivities; + return this; + } + + /** + * Get list of activities to execute if expression is evaluated to false. This is an optional property and if not provided, the activity will exit without any action. + * + * @return the ifFalseActivities value + */ + public List ifFalseActivities() { + return this.ifFalseActivities; + } + + /** + * Set list of activities to execute if expression is evaluated to false. This is an optional property and if not provided, the activity will exit without any action. + * + * @param ifFalseActivities the ifFalseActivities value to set + * @return the IfConditionActivity object itself. + */ + public IfConditionActivity withIfFalseActivities(List ifFalseActivities) { + this.ifFalseActivities = ifFalseActivities; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ImpalaAuthenticationType.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ImpalaAuthenticationType.java new file mode 100644 index 0000000000000..0aba6de21e3b7 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ImpalaLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ImpalaLinkedService.java new file mode 100644 index 0000000000000..fe73dfc26bb7b --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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 IP address or host name of the Impala server. (i.e. 192.168.222.160). + * + * @return the host value + */ + public Object host() { + return this.host; + } + + /** + * Set the IP address or host name of the Impala server. (i.e. 192.168.222.160). + * + * @param host the host value to set + * @return the ImpalaLinkedService object itself. + */ + public ImpalaLinkedService withHost(Object host) { + this.host = host; + return this; + } + + /** + * Get the TCP port that the Impala server uses to listen for client connections. The default value is 21050. + * + * @return the port value + */ + public Object port() { + return this.port; + } + + /** + * Set the TCP port that the Impala server uses to listen for client connections. The default value is 21050. + * + * @param port the port value to set + * @return the ImpalaLinkedService object itself. + */ + public ImpalaLinkedService withPort(Object port) { + this.port = port; + return this; + } + + /** + * Get the authentication type to use. Possible values include: 'Anonymous', 'SASLUsername', 'UsernameAndPassword'. + * + * @return the authenticationType value + */ + public ImpalaAuthenticationType authenticationType() { + return this.authenticationType; + } + + /** + * Set the authentication type to use. Possible values include: 'Anonymous', 'SASLUsername', 'UsernameAndPassword'. + * + * @param authenticationType the authenticationType value to set + * @return the ImpalaLinkedService object itself. + */ + public ImpalaLinkedService withAuthenticationType(ImpalaAuthenticationType authenticationType) { + this.authenticationType = authenticationType; + return this; + } + + /** + * Get the user name used to access the Impala server. The default value is anonymous when using SASLUsername. + * + * @return the username value + */ + public Object username() { + return this.username; + } + + /** + * Set the user name used to access the Impala server. The default value is anonymous when using SASLUsername. + * + * @param username the username value to set + * @return the ImpalaLinkedService object itself. + */ + public ImpalaLinkedService withUsername(Object username) { + this.username = username; + return this; + } + + /** + * Get the password corresponding to the user name when using UsernameAndPassword. + * + * @return the password value + */ + public SecretBase password() { + return this.password; + } + + /** + * Set the password corresponding to the user name when using UsernameAndPassword. + * + * @param password the password value to set + * @return the ImpalaLinkedService object itself. + */ + public ImpalaLinkedService withPassword(SecretBase password) { + this.password = password; + return this; + } + + /** + * Get specifies whether the connections to the server are encrypted using SSL. The default value is false. + * + * @return the enableSsl value + */ + public Object enableSsl() { + return this.enableSsl; + } + + /** + * Set specifies whether the connections to the server are encrypted using SSL. The default value is false. + * + * @param enableSsl the enableSsl value to set + * @return the ImpalaLinkedService object itself. + */ + public ImpalaLinkedService withEnableSsl(Object enableSsl) { + this.enableSsl = enableSsl; + return this; + } + + /** + * Get the full path of the .pem file containing trusted CA certificates for verifying the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default value is the cacerts.pem file installed with the IR. + * + * @return the trustedCertPath value + */ + public Object trustedCertPath() { + return this.trustedCertPath; + } + + /** + * Set the full path of the .pem file containing trusted CA certificates for verifying the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default value is the cacerts.pem file installed with the IR. + * + * @param trustedCertPath the trustedCertPath value to set + * @return the ImpalaLinkedService object itself. + */ + public ImpalaLinkedService withTrustedCertPath(Object trustedCertPath) { + this.trustedCertPath = trustedCertPath; + return this; + } + + /** + * Get specifies whether to use a CA certificate from the system trust store or from a specified PEM file. The default value is false. + * + * @return the useSystemTrustStore value + */ + public Object useSystemTrustStore() { + return this.useSystemTrustStore; + } + + /** + * Set specifies whether to use a CA certificate from the system trust store or from a specified PEM file. The default value is false. + * + * @param useSystemTrustStore the useSystemTrustStore value to set + * @return the ImpalaLinkedService object itself. + */ + public ImpalaLinkedService withUseSystemTrustStore(Object useSystemTrustStore) { + this.useSystemTrustStore = useSystemTrustStore; + return this; + } + + /** + * Get specifies whether to require a CA-issued SSL certificate name to match the host name of the server when connecting over SSL. The default value is false. + * + * @return the allowHostNameCNMismatch value + */ + public Object allowHostNameCNMismatch() { + return this.allowHostNameCNMismatch; + } + + /** + * Set specifies whether to require a CA-issued SSL certificate name to match the host name of the server when connecting over SSL. The default value is false. + * + * @param allowHostNameCNMismatch the allowHostNameCNMismatch value to set + * @return the ImpalaLinkedService object itself. + */ + public ImpalaLinkedService withAllowHostNameCNMismatch(Object allowHostNameCNMismatch) { + this.allowHostNameCNMismatch = allowHostNameCNMismatch; + return this; + } + + /** + * Get specifies whether to allow self-signed certificates from the server. The default value is false. + * + * @return the allowSelfSignedServerCert value + */ + public Object allowSelfSignedServerCert() { + return this.allowSelfSignedServerCert; + } + + /** + * Set specifies whether to allow self-signed certificates from the server. The default value is false. + * + * @param allowSelfSignedServerCert the allowSelfSignedServerCert value to set + * @return the ImpalaLinkedService object itself. + */ + public ImpalaLinkedService withAllowSelfSignedServerCert(Object allowSelfSignedServerCert) { + this.allowSelfSignedServerCert = allowSelfSignedServerCert; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the ImpalaLinkedService object itself. + */ + public ImpalaLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ImpalaObjectDataset.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ImpalaObjectDataset.java new file mode 100644 index 0000000000000..53ad8ed01cfcc --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ImpalaObjectDataset.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DatasetInner; + +/** + * Impala server dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("ImpalaObject") +@JsonFlatten +public class ImpalaObjectDataset extends DatasetInner { + /** + * This property will be retired. Please consider using schema + table + * properties instead. + */ + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; + + /** + * The table name of the Impala. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.table") + private Object table; + + /** + * The schema name of the Impala. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.schema") + private Object impalaObjectDatasetSchema; + + /** + * Get this property will be retired. Please consider using schema + table properties instead. + * + * @return the tableName value + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set this property will be retired. Please consider using schema + table properties instead. + * + * @param tableName the tableName value to set + * @return the ImpalaObjectDataset object itself. + */ + public ImpalaObjectDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; + } + + /** + * Get the table name of the Impala. Type: string (or Expression with resultType string). + * + * @return the table value + */ + public Object table() { + return this.table; + } + + /** + * Set the table name of the Impala. Type: string (or Expression with resultType string). + * + * @param table the table value to set + * @return the ImpalaObjectDataset object itself. + */ + public ImpalaObjectDataset withTable(Object table) { + this.table = table; + return this; + } + + /** + * Get the schema name of the Impala. Type: string (or Expression with resultType string). + * + * @return the impalaObjectDatasetSchema value + */ + public Object impalaObjectDatasetSchema() { + return this.impalaObjectDatasetSchema; + } + + /** + * Set the schema name of the Impala. Type: string (or Expression with resultType string). + * + * @param impalaObjectDatasetSchema the impalaObjectDatasetSchema value to set + * @return the ImpalaObjectDataset object itself. + */ + public ImpalaObjectDataset withImpalaObjectDatasetSchema(Object impalaObjectDatasetSchema) { + this.impalaObjectDatasetSchema = impalaObjectDatasetSchema; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ImpalaSource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ImpalaSource.java new file mode 100644 index 0000000000000..d6dc8274e9b3e --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 a query to retrieve data from source. Type: string (or Expression with resultType string). + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set a query to retrieve data from source. Type: string (or Expression with resultType string). + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/InformixLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/InformixLinkedService.java new file mode 100644 index 0000000000000..5ba070af64743 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/InformixLinkedService.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.LinkedServiceInner; + +/** + * Informix linked service. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("Informix") +@JsonFlatten +public class InformixLinkedService extends LinkedServiceInner { + /** + * The non-access credential portion of the connection string as well as an + * optional encrypted credential. Type: string, SecureString or + * AzureKeyVaultSecretReference. + */ + @JsonProperty(value = "typeProperties.connectionString", required = true) + private Object connectionString; + + /** + * Type of authentication used to connect to the Informix as ODBC data + * store. Possible values are: Anonymous and Basic. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "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 non-access credential portion of the connection string as well as an optional encrypted credential. Type: string, SecureString or AzureKeyVaultSecretReference. + * + * @return the connectionString value + */ + public Object connectionString() { + return this.connectionString; + } + + /** + * Set the non-access credential portion of the connection string as well as an optional encrypted credential. Type: string, SecureString or AzureKeyVaultSecretReference. + * + * @param connectionString the connectionString value to set + * @return the InformixLinkedService object itself. + */ + public InformixLinkedService withConnectionString(Object connectionString) { + this.connectionString = connectionString; + return this; + } + + /** + * Get type of authentication used to connect to the Informix as ODBC data store. Possible values are: Anonymous and Basic. Type: string (or Expression with resultType string). + * + * @return the authenticationType value + */ + public Object authenticationType() { + return this.authenticationType; + } + + /** + * Set type of authentication used to connect to the Informix as ODBC data store. Possible values are: Anonymous and Basic. Type: string (or Expression with resultType string). + * + * @param authenticationType the authenticationType value to set + * @return the InformixLinkedService object itself. + */ + public InformixLinkedService withAuthenticationType(Object authenticationType) { + this.authenticationType = authenticationType; + return this; + } + + /** + * Get the access credential portion of the connection string specified in driver-specific property-value format. + * + * @return the credential value + */ + public SecretBase credential() { + return this.credential; + } + + /** + * Set the access credential portion of the connection string specified in driver-specific property-value format. + * + * @param credential the credential value to set + * @return the InformixLinkedService object itself. + */ + public InformixLinkedService withCredential(SecretBase credential) { + this.credential = credential; + return this; + } + + /** + * Get user name for Basic authentication. Type: string (or Expression with resultType string). + * + * @return the userName value + */ + public Object userName() { + return this.userName; + } + + /** + * Set user name for Basic authentication. Type: string (or Expression with resultType string). + * + * @param userName the userName value to set + * @return the InformixLinkedService object itself. + */ + public InformixLinkedService withUserName(Object userName) { + this.userName = userName; + return this; + } + + /** + * Get password for Basic authentication. + * + * @return the password value + */ + public SecretBase password() { + return this.password; + } + + /** + * Set password for Basic authentication. + * + * @param password the password value to set + * @return the InformixLinkedService object itself. + */ + public InformixLinkedService withPassword(SecretBase password) { + this.password = password; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the InformixLinkedService object itself. + */ + public InformixLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/InformixSink.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/InformixSink.java new file mode 100644 index 0000000000000..aa64200591f8d --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/InformixSink.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Informix sink. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("InformixSink") +public class InformixSink extends CopySink { + /** + * A query to execute before starting the copy. Type: string (or Expression + * with resultType string). + */ + @JsonProperty(value = "preCopyScript") + private Object preCopyScript; + + /** + * Get a query to execute before starting the copy. Type: string (or Expression with resultType string). + * + * @return the preCopyScript value + */ + public Object preCopyScript() { + return this.preCopyScript; + } + + /** + * Set a query to execute before starting the copy. Type: string (or Expression with resultType string). + * + * @param preCopyScript the preCopyScript value to set + * @return the InformixSink object itself. + */ + public InformixSink withPreCopyScript(Object preCopyScript) { + this.preCopyScript = preCopyScript; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/InformixSource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/InformixSource.java new file mode 100644 index 0000000000000..bd92b50696db0 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/InformixSource.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity source for Informix. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("InformixSource") +public class InformixSource extends CopySource { + /** + * Database query. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "query") + private Object query; + + /** + * Get database query. Type: string (or Expression with resultType string). + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set database query. Type: string (or Expression with resultType string). + * + * @param query the query value to set + * @return the InformixSource object itself. + */ + public InformixSource withQuery(Object query) { + this.query = query; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/InformixTableDataset.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/InformixTableDataset.java new file mode 100644 index 0000000000000..e6e9c598d032a --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/InformixTableDataset.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DatasetInner; + +/** + * The Informix table dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("InformixTable") +@JsonFlatten +public class InformixTableDataset extends DatasetInner { + /** + * The Informix table name. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; + + /** + * Get the Informix table name. Type: string (or Expression with resultType string). + * + * @return the tableName value + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set the Informix table name. Type: string (or Expression with resultType string). + * + * @param tableName the tableName value to set + * @return the InformixTableDataset object itself. + */ + public InformixTableDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeAuthKeyName.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeAuthKeyName.java new file mode 100644 index 0000000000000..0429f6534e833 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeAuthKeys.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeAuthKeys.java new file mode 100644 index 0000000000000..d63662aa902d8 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeAuthKeys.java @@ -0,0 +1,30 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DataFactoryManager; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.IntegrationRuntimeAuthKeysInner; + +/** + * Type representing IntegrationRuntimeAuthKeys. + */ +public interface IntegrationRuntimeAuthKeys extends HasInner, HasManager { + /** + * @return the authKey1 value. + */ + String authKey1(); + + /** + * @return the authKey2 value. + */ + String authKey2(); + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeAutoUpdate.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeAutoUpdate.java new file mode 100644 index 0000000000000..437a4395b6f3d --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeComputeProperties.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeComputeProperties.java new file mode 100644 index 0000000000000..3108030ec422e --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 unmatched properties from the message are deserialized this collection. + * + * @return the additionalProperties value + */ + public Map additionalProperties() { + return this.additionalProperties; + } + + /** + * Set unmatched properties from the message are deserialized this collection. + * + * @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 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. + * + * @return the location value + */ + public String location() { + return this.location; + } + + /** + * Set 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. + * + * @param location the location value to set + * @return the IntegrationRuntimeComputeProperties object itself. + */ + public IntegrationRuntimeComputeProperties withLocation(String location) { + this.location = location; + return this; + } + + /** + * Get the node size requirement to managed integration runtime. + * + * @return the nodeSize value + */ + public String nodeSize() { + return this.nodeSize; + } + + /** + * Set the node size requirement to managed integration runtime. + * + * @param nodeSize the nodeSize value to set + * @return the IntegrationRuntimeComputeProperties object itself. + */ + public IntegrationRuntimeComputeProperties withNodeSize(String nodeSize) { + this.nodeSize = nodeSize; + return this; + } + + /** + * Get the required number of nodes for managed integration runtime. + * + * @return the numberOfNodes value + */ + public Integer numberOfNodes() { + return this.numberOfNodes; + } + + /** + * Set the required number of nodes for managed integration runtime. + * + * @param numberOfNodes the numberOfNodes value to set + * @return the IntegrationRuntimeComputeProperties object itself. + */ + public IntegrationRuntimeComputeProperties withNumberOfNodes(Integer numberOfNodes) { + this.numberOfNodes = numberOfNodes; + return this; + } + + /** + * Get maximum parallel executions count per node for managed integration runtime. + * + * @return the maxParallelExecutionsPerNode value + */ + public Integer maxParallelExecutionsPerNode() { + return this.maxParallelExecutionsPerNode; + } + + /** + * Set maximum parallel executions count per node for managed integration runtime. + * + * @param maxParallelExecutionsPerNode the maxParallelExecutionsPerNode value to set + * @return the IntegrationRuntimeComputeProperties object itself. + */ + public IntegrationRuntimeComputeProperties withMaxParallelExecutionsPerNode(Integer maxParallelExecutionsPerNode) { + this.maxParallelExecutionsPerNode = maxParallelExecutionsPerNode; + return this; + } + + /** + * Get vNet properties for managed integration runtime. + * + * @return the vNetProperties value + */ + public IntegrationRuntimeVNetProperties vNetProperties() { + return this.vNetProperties; + } + + /** + * Set vNet properties for managed integration runtime. + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeConnectionInfo.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeConnectionInfo.java new file mode 100644 index 0000000000000..89fb2d36fa6b3 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeConnectionInfo.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.v2018_06_01; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DataFactoryManager; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.IntegrationRuntimeConnectionInfoInner; +import java.util.Map; + +/** + * Type representing IntegrationRuntimeConnectionInfo. + */ +public interface IntegrationRuntimeConnectionInfo extends HasInner, HasManager { + /** + * @return the additionalProperties value. + */ + Map additionalProperties(); + + /** + * @return the hostServiceUri value. + */ + String hostServiceUri(); + + /** + * @return the identityCertThumbprint value. + */ + String identityCertThumbprint(); + + /** + * @return the isIdentityCertExprired value. + */ + Boolean isIdentityCertExprired(); + + /** + * @return the publicKey value. + */ + String publicKey(); + + /** + * @return the serviceToken value. + */ + String serviceToken(); + + /** + * @return the version value. + */ + String version(); + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeCustomSetupScriptProperties.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeCustomSetupScriptProperties.java new file mode 100644 index 0000000000000..6a44b5976830e --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 URI of the Azure blob container that contains the custom setup script. + * + * @return the blobContainerUri value + */ + public String blobContainerUri() { + return this.blobContainerUri; + } + + /** + * Set the URI of the Azure blob container that contains the custom setup script. + * + * @param blobContainerUri the blobContainerUri value to set + * @return the IntegrationRuntimeCustomSetupScriptProperties object itself. + */ + public IntegrationRuntimeCustomSetupScriptProperties withBlobContainerUri(String blobContainerUri) { + this.blobContainerUri = blobContainerUri; + return this; + } + + /** + * Get the SAS token of the Azure blob container. + * + * @return the sasToken value + */ + public SecureString sasToken() { + return this.sasToken; + } + + /** + * Set the SAS token of the Azure blob container. + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeDataProxyProperties.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeDataProxyProperties.java new file mode 100644 index 0000000000000..798863c8365fc --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeDataProxyProperties.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Data proxy properties for a managed dedicated integration runtime. + */ +public class IntegrationRuntimeDataProxyProperties { + /** + * The self-hosted integration runtime reference. + */ + @JsonProperty(value = "connectVia") + private EntityReference connectVia; + + /** + * The staging linked service reference. + */ + @JsonProperty(value = "stagingLinkedService") + private EntityReference stagingLinkedService; + + /** + * The path to contain the staged data in the Blob storage. + */ + @JsonProperty(value = "path") + private String path; + + /** + * Get the self-hosted integration runtime reference. + * + * @return the connectVia value + */ + public EntityReference connectVia() { + return this.connectVia; + } + + /** + * Set the self-hosted integration runtime reference. + * + * @param connectVia the connectVia value to set + * @return the IntegrationRuntimeDataProxyProperties object itself. + */ + public IntegrationRuntimeDataProxyProperties withConnectVia(EntityReference connectVia) { + this.connectVia = connectVia; + return this; + } + + /** + * Get the staging linked service reference. + * + * @return the stagingLinkedService value + */ + public EntityReference stagingLinkedService() { + return this.stagingLinkedService; + } + + /** + * Set the staging linked service reference. + * + * @param stagingLinkedService the stagingLinkedService value to set + * @return the IntegrationRuntimeDataProxyProperties object itself. + */ + public IntegrationRuntimeDataProxyProperties withStagingLinkedService(EntityReference stagingLinkedService) { + this.stagingLinkedService = stagingLinkedService; + return this; + } + + /** + * Get the path to contain the staged data in the Blob storage. + * + * @return the path value + */ + public String path() { + return this.path; + } + + /** + * Set the path to contain the staged data in the Blob storage. + * + * @param path the path value to set + * @return the IntegrationRuntimeDataProxyProperties object itself. + */ + public IntegrationRuntimeDataProxyProperties withPath(String path) { + this.path = path; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeEdition.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeEdition.java new file mode 100644 index 0000000000000..4ca205041fcf8 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeEntityReferenceType.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeEntityReferenceType.java new file mode 100644 index 0000000000000..5b56a44ec660a --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeEntityReferenceType.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.v2018_06_01; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for IntegrationRuntimeEntityReferenceType. + */ +public final class IntegrationRuntimeEntityReferenceType extends ExpandableStringEnum { + /** Static value IntegrationRuntimeReference for IntegrationRuntimeEntityReferenceType. */ + public static final IntegrationRuntimeEntityReferenceType INTEGRATION_RUNTIME_REFERENCE = fromString("IntegrationRuntimeReference"); + + /** Static value LinkedServiceReference for IntegrationRuntimeEntityReferenceType. */ + public static final IntegrationRuntimeEntityReferenceType LINKED_SERVICE_REFERENCE = fromString("LinkedServiceReference"); + + /** + * Creates or finds a IntegrationRuntimeEntityReferenceType from its string representation. + * @param name a name to look for + * @return the corresponding IntegrationRuntimeEntityReferenceType + */ + @JsonCreator + public static IntegrationRuntimeEntityReferenceType fromString(String name) { + return fromString(name, IntegrationRuntimeEntityReferenceType.class); + } + + /** + * @return known IntegrationRuntimeEntityReferenceType values + */ + public static Collection values() { + return values(IntegrationRuntimeEntityReferenceType.class); + } +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeInternalChannelEncryptionMode.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeInternalChannelEncryptionMode.java new file mode 100644 index 0000000000000..05e64e5be86f5 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeLicenseType.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeLicenseType.java new file mode 100644 index 0000000000000..14cf23a7ad169 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeMonitoringData.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeMonitoringData.java new file mode 100644 index 0000000000000..f345783f74d7d --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeMonitoringData.java @@ -0,0 +1,31 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DataFactoryManager; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.IntegrationRuntimeMonitoringDataInner; +import java.util.List; + +/** + * Type representing IntegrationRuntimeMonitoringData. + */ +public interface IntegrationRuntimeMonitoringData extends HasInner, HasManager { + /** + * @return the name value. + */ + String name(); + + /** + * @return the nodes value. + */ + List nodes(); + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeNodeIpAddress.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeNodeIpAddress.java new file mode 100644 index 0000000000000..c4e4aa46253ea --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeNodeIpAddress.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.v2018_06_01; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DataFactoryManager; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.IntegrationRuntimeNodeIpAddressInner; + +/** + * Type representing IntegrationRuntimeNodeIpAddress. + */ +public interface IntegrationRuntimeNodeIpAddress extends HasInner, HasManager { + /** + * @return the ipAddress value. + */ + String ipAddress(); + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeNodeMonitoringData.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeNodeMonitoringData.java new file mode 100644 index 0000000000000..e9dd80edf60e4 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 Integer 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 unmatched properties from the message are deserialized this collection. + * + * @return the additionalProperties value + */ + public Map additionalProperties() { + return this.additionalProperties; + } + + /** + * Set unmatched properties from the message are deserialized this collection. + * + * @param additionalProperties the additionalProperties value to set + * @return the IntegrationRuntimeNodeMonitoringData object itself. + */ + public IntegrationRuntimeNodeMonitoringData withAdditionalProperties(Map additionalProperties) { + this.additionalProperties = additionalProperties; + return this; + } + + /** + * Get name of the integration runtime node. + * + * @return the nodeName value + */ + public String nodeName() { + return this.nodeName; + } + + /** + * Get available memory (MB) on the integration runtime node. + * + * @return the availableMemoryInMB value + */ + public Integer availableMemoryInMB() { + return this.availableMemoryInMB; + } + + /** + * Get cPU percentage on the integration runtime node. + * + * @return the cpuUtilization value + */ + public Integer cpuUtilization() { + return this.cpuUtilization; + } + + /** + * Get maximum concurrent jobs on the integration runtime node. + * + * @return the concurrentJobsLimit value + */ + public Integer concurrentJobsLimit() { + return this.concurrentJobsLimit; + } + + /** + * Get the number of jobs currently running on the integration runtime node. + * + * @return the concurrentJobsRunning value + */ + public Integer concurrentJobsRunning() { + return this.concurrentJobsRunning; + } + + /** + * Get the maximum concurrent jobs in this integration runtime. + * + * @return the maxConcurrentJobs value + */ + public Integer maxConcurrentJobs() { + return this.maxConcurrentJobs; + } + + /** + * Get sent bytes on the integration runtime node. + * + * @return the sentBytes value + */ + public Double sentBytes() { + return this.sentBytes; + } + + /** + * Get received bytes on the integration runtime node. + * + * @return the receivedBytes value + */ + public Double receivedBytes() { + return this.receivedBytes; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeNodes.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeNodes.java new file mode 100644 index 0000000000000..fa9e3b74b4762 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeNodes.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.v2018_06_01; + +import rx.Completable; +import rx.Observable; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.IntegrationRuntimeNodesInner; +import com.microsoft.azure.arm.model.HasInner; + +/** + * Type representing IntegrationRuntimeNodes. + */ +public interface IntegrationRuntimeNodes extends HasInner { + /** + * 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 for the request + */ + Observable updateAsync(String resourceGroupName, String factoryName, String integrationRuntimeName, String nodeName); + + /** + * 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 for the request + */ + Observable getIpAddressAsync(String resourceGroupName, String factoryName, String integrationRuntimeName, String nodeName); + + /** + * Gets 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 for the request + */ + Observable getAsync(String resourceGroupName, String factoryName, String integrationRuntimeName, String nodeName); + + /** + * 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 observable for the request + */ + Completable deleteAsync(String resourceGroupName, String factoryName, String integrationRuntimeName, String nodeName); + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeObjectMetadatas.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeObjectMetadatas.java new file mode 100644 index 0000000000000..9252d7eee5d8b --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeObjectMetadatas.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.v2018_06_01; + +import rx.Observable; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.IntegrationRuntimeObjectMetadatasInner; +import com.microsoft.azure.arm.model.HasInner; + +/** + * Type representing IntegrationRuntimeObjectMetadatas. + */ +public interface IntegrationRuntimeObjectMetadatas extends HasInner { + /** + * Refresh a SSIS integration runtime object metadata. + * + * @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 + */ + Observable refreshAsync(String resourceGroupName, String factoryName, String integrationRuntimeName); + + /** + * Get a SSIS integration runtime object metadata by specified path. The return is pageable metadata list. + * + * @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 + */ + Observable getAsync(String resourceGroupName, String factoryName, String integrationRuntimeName); + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeReference.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeReference.java new file mode 100644 index 0000000000000..4c239cb872365 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeReference.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.v2018_06_01; + +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. + * @param referenceName reference integration runtime name. + */ + public IntegrationRuntimeReference() { + type = "IntegrationRuntimeReference"; + } + + /** + * Get type of integration runtime. + * + * @return the type value + */ + public String type() { + return this.type; + } + + /** + * Set type of integration runtime. + * + * @param type the type value to set + * @return the IntegrationRuntimeReference object itself. + */ + public IntegrationRuntimeReference withType(String type) { + this.type = type; + return this; + } + + /** + * Get reference integration runtime name. + * + * @return the referenceName value + */ + public String referenceName() { + return this.referenceName; + } + + /** + * Set reference integration runtime name. + * + * @param referenceName the referenceName value to set + * @return the IntegrationRuntimeReference object itself. + */ + public IntegrationRuntimeReference withReferenceName(String referenceName) { + this.referenceName = referenceName; + return this; + } + + /** + * Get arguments for integration runtime. + * + * @return the parameters value + */ + public Map parameters() { + return this.parameters; + } + + /** + * Set arguments for integration runtime. + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeRegenerateKeyParameters.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeRegenerateKeyParameters.java new file mode 100644 index 0000000000000..6b326d3f5fa03 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 name of the authentication key to regenerate. Possible values include: 'authKey1', 'authKey2'. + * + * @return the keyName value + */ + public IntegrationRuntimeAuthKeyName keyName() { + return this.keyName; + } + + /** + * Set the name of the authentication key to regenerate. Possible values include: 'authKey1', 'authKey2'. + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeResource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeResource.java new file mode 100644 index 0000000000000..750fc0fa5193b --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeResource.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.v2018_06_01; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.IntegrationRuntimeResourceInner; +import com.microsoft.azure.arm.model.Indexable; +import com.microsoft.azure.arm.model.Refreshable; +import com.microsoft.azure.arm.model.Updatable; +import com.microsoft.azure.arm.model.Appliable; +import com.microsoft.azure.arm.model.Creatable; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DataFactoryManager; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.IntegrationRuntimeInner; +import java.util.Map; + +/** + * Type representing IntegrationRuntimeResource. + */ +public interface IntegrationRuntimeResource extends HasInner, Indexable, Refreshable, Updatable, HasManager { + /** + * @return the etag value. + */ + String etag(); + + /** + * @return the id value. + */ + String id(); + + /** + * @return the name value. + */ + String name(); + + /** + * @return the properties value. + */ + IntegrationRuntimeInner properties(); + + /** + * @return the type value. + */ + String type(); + + /** + * The entirety of the IntegrationRuntimeResource definition. + */ + interface Definition extends DefinitionStages.Blank, DefinitionStages.WithFactory, DefinitionStages.WithIfMatch, DefinitionStages.WithProperties, DefinitionStages.WithCreate { + } + + /** + * Grouping of IntegrationRuntimeResource definition stages. + */ + interface DefinitionStages { + /** + * The first stage of a IntegrationRuntimeResource definition. + */ + interface Blank extends WithFactory { + } + + /** + * The stage of the integrationruntimeresource definition allowing to specify Factory. + */ + interface WithFactory { + /** + * Specifies resourceGroupName, factoryName. + * @param resourceGroupName The resource group name + * @param factoryName The factory name + * @return the next definition stage + */ + WithIfMatch withExistingFactory(String resourceGroupName, String factoryName); + } + + /** + * The stage of the integrationruntimeresource definition allowing to specify IfMatch. + */ + interface WithIfMatch { + /** + * Specifies ifMatch. + * @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 + * @return the next definition stage + */ + WithProperties withIfMatch(String ifMatch); + } + + /** + * The stage of the integrationruntimeresource definition allowing to specify Properties. + */ + interface WithProperties { + /** + * Specifies properties. + * @param properties Integration runtime properties + * @return the next definition stage + */ + WithCreate withProperties(IntegrationRuntimeInner properties); + } + + /** + * The stage of the definition which contains all the minimum required inputs for + * the resource to be created (via {@link WithCreate#create()}), but also allows + * for any other optional settings to be specified. + */ + interface WithCreate extends Creatable { + } + } + /** + * The template for a IntegrationRuntimeResource update operation, containing all the settings that can be modified. + */ + interface Update extends Appliable, UpdateStages.WithAutoUpdate, UpdateStages.WithUpdateDelayOffset { + } + + /** + * Grouping of IntegrationRuntimeResource update stages. + */ + interface UpdateStages { + /** + * The stage of the integrationruntimeresource update allowing to specify AutoUpdate. + */ + interface WithAutoUpdate { + /** + * Specifies autoUpdate. + * @param autoUpdate 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' + * @return the next update stage + */ + Update withAutoUpdate(IntegrationRuntimeAutoUpdate autoUpdate); + } + + /** + * The stage of the integrationruntimeresource update allowing to specify UpdateDelayOffset. + */ + interface WithUpdateDelayOffset { + /** + * Specifies updateDelayOffset. + * @param updateDelayOffset The time offset (in hours) in the day, e.g., PT03H is 3 hours. The integration runtime auto update will happen on that time + * @return the next update stage + */ + Update withUpdateDelayOffset(String updateDelayOffset); + } + + } +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeSsisCatalogInfo.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeSsisCatalogInfo.java new file mode 100644 index 0000000000000..98fd1e3be4658 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 unmatched properties from the message are deserialized this collection. + * + * @return the additionalProperties value + */ + public Map additionalProperties() { + return this.additionalProperties; + } + + /** + * Set unmatched properties from the message are deserialized this collection. + * + * @param additionalProperties the additionalProperties value to set + * @return the IntegrationRuntimeSsisCatalogInfo object itself. + */ + public IntegrationRuntimeSsisCatalogInfo withAdditionalProperties(Map additionalProperties) { + this.additionalProperties = additionalProperties; + return this; + } + + /** + * Get the catalog database server URL. + * + * @return the catalogServerEndpoint value + */ + public String catalogServerEndpoint() { + return this.catalogServerEndpoint; + } + + /** + * Set the catalog database server URL. + * + * @param catalogServerEndpoint the catalogServerEndpoint value to set + * @return the IntegrationRuntimeSsisCatalogInfo object itself. + */ + public IntegrationRuntimeSsisCatalogInfo withCatalogServerEndpoint(String catalogServerEndpoint) { + this.catalogServerEndpoint = catalogServerEndpoint; + return this; + } + + /** + * Get the administrator user name of catalog database. + * + * @return the catalogAdminUserName value + */ + public String catalogAdminUserName() { + return this.catalogAdminUserName; + } + + /** + * Set the administrator user name of catalog database. + * + * @param catalogAdminUserName the catalogAdminUserName value to set + * @return the IntegrationRuntimeSsisCatalogInfo object itself. + */ + public IntegrationRuntimeSsisCatalogInfo withCatalogAdminUserName(String catalogAdminUserName) { + this.catalogAdminUserName = catalogAdminUserName; + return this; + } + + /** + * Get the password of the administrator user account of the catalog database. + * + * @return the catalogAdminPassword value + */ + public SecureString catalogAdminPassword() { + return this.catalogAdminPassword; + } + + /** + * Set the password of the administrator user account of the catalog database. + * + * @param catalogAdminPassword the catalogAdminPassword value to set + * @return the IntegrationRuntimeSsisCatalogInfo object itself. + */ + public IntegrationRuntimeSsisCatalogInfo withCatalogAdminPassword(SecureString catalogAdminPassword) { + this.catalogAdminPassword = catalogAdminPassword; + return this; + } + + /** + * Get 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'. + * + * @return the catalogPricingTier value + */ + public IntegrationRuntimeSsisCatalogPricingTier catalogPricingTier() { + return this.catalogPricingTier; + } + + /** + * Set 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'. + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeSsisCatalogPricingTier.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeSsisCatalogPricingTier.java new file mode 100644 index 0000000000000..34b7579415ae0 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeSsisProperties.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeSsisProperties.java new file mode 100644 index 0000000000000..dd9259e71e0ab --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeSsisProperties.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.v2018_06_01; + +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; + + /** + * Data proxy properties for a managed dedicated integration runtime. + */ + @JsonProperty(value = "dataProxyProperties") + private IntegrationRuntimeDataProxyProperties dataProxyProperties; + + /** + * The edition for the SSIS Integration Runtime. Possible values include: + * 'Standard', 'Enterprise'. + */ + @JsonProperty(value = "edition") + private IntegrationRuntimeEdition edition; + + /** + * Get unmatched properties from the message are deserialized this collection. + * + * @return the additionalProperties value + */ + public Map additionalProperties() { + return this.additionalProperties; + } + + /** + * Set unmatched properties from the message are deserialized this collection. + * + * @param additionalProperties the additionalProperties value to set + * @return the IntegrationRuntimeSsisProperties object itself. + */ + public IntegrationRuntimeSsisProperties withAdditionalProperties(Map additionalProperties) { + this.additionalProperties = additionalProperties; + return this; + } + + /** + * Get catalog information for managed dedicated integration runtime. + * + * @return the catalogInfo value + */ + public IntegrationRuntimeSsisCatalogInfo catalogInfo() { + return this.catalogInfo; + } + + /** + * Set catalog information for managed dedicated integration runtime. + * + * @param catalogInfo the catalogInfo value to set + * @return the IntegrationRuntimeSsisProperties object itself. + */ + public IntegrationRuntimeSsisProperties withCatalogInfo(IntegrationRuntimeSsisCatalogInfo catalogInfo) { + this.catalogInfo = catalogInfo; + return this; + } + + /** + * Get license type for bringing your own license scenario. Possible values include: 'BasePrice', 'LicenseIncluded'. + * + * @return the licenseType value + */ + public IntegrationRuntimeLicenseType licenseType() { + return this.licenseType; + } + + /** + * Set license type for bringing your own license scenario. Possible values include: 'BasePrice', 'LicenseIncluded'. + * + * @param licenseType the licenseType value to set + * @return the IntegrationRuntimeSsisProperties object itself. + */ + public IntegrationRuntimeSsisProperties withLicenseType(IntegrationRuntimeLicenseType licenseType) { + this.licenseType = licenseType; + return this; + } + + /** + * Get custom setup script properties for a managed dedicated integration runtime. + * + * @return the customSetupScriptProperties value + */ + public IntegrationRuntimeCustomSetupScriptProperties customSetupScriptProperties() { + return this.customSetupScriptProperties; + } + + /** + * Set custom setup script properties for a managed dedicated integration runtime. + * + * @param customSetupScriptProperties the customSetupScriptProperties value to set + * @return the IntegrationRuntimeSsisProperties object itself. + */ + public IntegrationRuntimeSsisProperties withCustomSetupScriptProperties(IntegrationRuntimeCustomSetupScriptProperties customSetupScriptProperties) { + this.customSetupScriptProperties = customSetupScriptProperties; + return this; + } + + /** + * Get data proxy properties for a managed dedicated integration runtime. + * + * @return the dataProxyProperties value + */ + public IntegrationRuntimeDataProxyProperties dataProxyProperties() { + return this.dataProxyProperties; + } + + /** + * Set data proxy properties for a managed dedicated integration runtime. + * + * @param dataProxyProperties the dataProxyProperties value to set + * @return the IntegrationRuntimeSsisProperties object itself. + */ + public IntegrationRuntimeSsisProperties withDataProxyProperties(IntegrationRuntimeDataProxyProperties dataProxyProperties) { + this.dataProxyProperties = dataProxyProperties; + return this; + } + + /** + * Get the edition for the SSIS Integration Runtime. Possible values include: 'Standard', 'Enterprise'. + * + * @return the edition value + */ + public IntegrationRuntimeEdition edition() { + return this.edition; + } + + /** + * Set the edition for the SSIS Integration Runtime. Possible values include: 'Standard', 'Enterprise'. + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeState.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeState.java new file mode 100644 index 0000000000000..5ce8b9897b393 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeState.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.v2018_06_01; + +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"); + + /** Static value AccessDenied for IntegrationRuntimeState. */ + public static final IntegrationRuntimeState ACCESS_DENIED = fromString("AccessDenied"); + + /** + * 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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeStatus.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeStatus.java new file mode 100644 index 0000000000000..40873a42fcd73 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +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', 'AccessDenied'. + */ + @JsonProperty(value = "state", access = JsonProperty.Access.WRITE_ONLY) + private IntegrationRuntimeState state; + + /** + * Get unmatched properties from the message are deserialized this collection. + * + * @return the additionalProperties value + */ + public Map additionalProperties() { + return this.additionalProperties; + } + + /** + * Set unmatched properties from the message are deserialized this collection. + * + * @param additionalProperties the additionalProperties value to set + * @return the IntegrationRuntimeStatus object itself. + */ + public IntegrationRuntimeStatus withAdditionalProperties(Map additionalProperties) { + this.additionalProperties = additionalProperties; + return this; + } + + /** + * Get the data factory name which the integration runtime belong to. + * + * @return the dataFactoryName value + */ + public String dataFactoryName() { + return this.dataFactoryName; + } + + /** + * Get the state of integration runtime. Possible values include: 'Initial', 'Stopped', 'Started', 'Starting', 'Stopping', 'NeedRegistration', 'Online', 'Limited', 'Offline', 'AccessDenied'. + * + * @return the state value + */ + public IntegrationRuntimeState state() { + return this.state; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeStatusListResponse.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeStatusListResponse.java new file mode 100644 index 0000000000000..4b0bb53ea3ae3 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import java.util.List; +import com.microsoft.azure.management.datafactory.v2018_06_01.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 list of integration runtime status. + * + * @return the value value + */ + public List value() { + return this.value; + } + + /** + * Set list of integration runtime status. + * + * @param value the value value to set + * @return the IntegrationRuntimeStatusListResponse object itself. + */ + public IntegrationRuntimeStatusListResponse withValue(List value) { + this.value = value; + return this; + } + + /** + * Get the link to the next page of results, if any remaining results exist. + * + * @return the nextLink value + */ + public String nextLink() { + return this.nextLink; + } + + /** + * Set the link to the next page of results, if any remaining results exist. + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeStatusResponse.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeStatusResponse.java new file mode 100644 index 0000000000000..6c3c9f3971fa1 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeStatusResponse.java @@ -0,0 +1,30 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DataFactoryManager; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.IntegrationRuntimeStatusResponseInner; + +/** + * Type representing IntegrationRuntimeStatusResponse. + */ +public interface IntegrationRuntimeStatusResponse extends HasInner, HasManager { + /** + * @return the name value. + */ + String name(); + + /** + * @return the properties value. + */ + IntegrationRuntimeStatus properties(); + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeType.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeType.java new file mode 100644 index 0000000000000..e6c406f9c2b27 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeUpdateResult.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeUpdateResult.java new file mode 100644 index 0000000000000..81f92b73f558c --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeUpdateResult.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.v2018_06_01; + +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 None for IntegrationRuntimeUpdateResult. */ + public static final IntegrationRuntimeUpdateResult NONE = fromString("None"); + + /** 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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeVNetProperties.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimeVNetProperties.java new file mode 100644 index 0000000000000..d9e6af7481c4f --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 unmatched properties from the message are deserialized this collection. + * + * @return the additionalProperties value + */ + public Map additionalProperties() { + return this.additionalProperties; + } + + /** + * Set unmatched properties from the message are deserialized this collection. + * + * @param additionalProperties the additionalProperties value to set + * @return the IntegrationRuntimeVNetProperties object itself. + */ + public IntegrationRuntimeVNetProperties withAdditionalProperties(Map additionalProperties) { + this.additionalProperties = additionalProperties; + return this; + } + + /** + * Get the ID of the VNet that this integration runtime will join. + * + * @return the vNetId value + */ + public String vNetId() { + return this.vNetId; + } + + /** + * Set the ID of the VNet that this integration runtime will join. + * + * @param vNetId the vNetId value to set + * @return the IntegrationRuntimeVNetProperties object itself. + */ + public IntegrationRuntimeVNetProperties withVNetId(String vNetId) { + this.vNetId = vNetId; + return this; + } + + /** + * Get the name of the subnet this integration runtime will join. + * + * @return the subnet value + */ + public String subnet() { + return this.subnet; + } + + /** + * Set the name of the subnet this integration runtime will join. + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimes.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimes.java new file mode 100644 index 0000000000000..4078a1c1758aa --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/IntegrationRuntimes.java @@ -0,0 +1,176 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +import com.microsoft.azure.arm.collection.SupportsCreating; +import rx.Completable; +import rx.Observable; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.IntegrationRuntimesInner; +import com.microsoft.azure.arm.model.HasInner; + +/** + * Type representing IntegrationRuntimes. + */ +public interface IntegrationRuntimes extends SupportsCreating, HasInner { + /** + * 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 for the request + */ + Observable getStatusAsync(String resourceGroupName, String factoryName, String integrationRuntimeName); + + /** + * 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 for the request + */ + Observable getConnectionInfoAsync(String resourceGroupName, String factoryName, String integrationRuntimeName); + + /** + * 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 for the request + */ + Observable regenerateAuthKeyAsync(String resourceGroupName, String factoryName, String integrationRuntimeName); + + /** + * 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 for the request + */ + Observable listAuthKeysAsync(String resourceGroupName, String factoryName, String integrationRuntimeName); + + /** + * 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 + */ + Observable startAsync(String resourceGroupName, String factoryName, String integrationRuntimeName); + + /** + * 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 + */ + Completable stopAsync(String resourceGroupName, String factoryName, String integrationRuntimeName); + + /** + * 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 observable for the request + */ + Completable syncCredentialsAsync(String resourceGroupName, String factoryName, String integrationRuntimeName); + + /** + * 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 for the request + */ + Observable getMonitoringDataAsync(String resourceGroupName, String factoryName, String integrationRuntimeName); + + /** + * Upgrade self-hosted integration runtime to latest version if availability. + * + * @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 + */ + Completable upgradeAsync(String resourceGroupName, String factoryName, String integrationRuntimeName); + + /** + * Remove all linked integration runtimes under specific data factory in a self-hosted integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param linkedFactoryName The data factory name for linked integration runtime. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Completable removeLinksAsync(String resourceGroupName, String factoryName, String integrationRuntimeName, String linkedFactoryName); + + /** + * Create a linked integration runtime entry in a shared integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param createLinkedIntegrationRuntimeRequest The linked integration runtime properties. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable createLinkedIntegrationRuntimeAsync(String resourceGroupName, String factoryName, String integrationRuntimeName, CreateLinkedIntegrationRuntimeRequest createLinkedIntegrationRuntimeRequest); + + /** + * 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 for the request + */ + Observable getAsync(String resourceGroupName, String factoryName, String integrationRuntimeName); + + /** + * 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 for the request + */ + Observable listByFactoryAsync(final String resourceGroupName, final String factoryName); + + /** + * 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 observable for the request + */ + Completable deleteAsync(String resourceGroupName, String factoryName, String integrationRuntimeName); + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/JiraLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/JiraLinkedService.java new file mode 100644 index 0000000000000..115d9f59db6fb --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.LinkedServiceInner; + +/** + * Jira Service 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 IP address or host name of the Jira service. (e.g. jira.example.com). + * + * @return the host value + */ + public Object host() { + return this.host; + } + + /** + * Set the IP address or host name of the Jira service. (e.g. jira.example.com). + * + * @param host the host value to set + * @return the JiraLinkedService object itself. + */ + public JiraLinkedService withHost(Object host) { + this.host = host; + return this; + } + + /** + * Get the TCP port that the Jira server uses to listen for client connections. The default value is 443 if connecting through HTTPS, or 8080 if connecting through HTTP. + * + * @return the port value + */ + public Object port() { + return this.port; + } + + /** + * Set the TCP port that the Jira server uses to listen for client connections. The default value is 443 if connecting through HTTPS, or 8080 if connecting through HTTP. + * + * @param port the port value to set + * @return the JiraLinkedService object itself. + */ + public JiraLinkedService withPort(Object port) { + this.port = port; + return this; + } + + /** + * Get the user name that you use to access Jira Service. + * + * @return the username value + */ + public Object username() { + return this.username; + } + + /** + * Set the user name that you use to access Jira Service. + * + * @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 corresponding to the user name that you provided in the username field. + * + * @return the password value + */ + public SecretBase password() { + return this.password; + } + + /** + * Set the password corresponding to the user name that you provided in the username field. + * + * @param password the password value to set + * @return the JiraLinkedService object itself. + */ + public JiraLinkedService withPassword(SecretBase password) { + this.password = password; + return this; + } + + /** + * Get specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. + * + * @return the useEncryptedEndpoints value + */ + public Object useEncryptedEndpoints() { + return this.useEncryptedEndpoints; + } + + /** + * Set specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. + * + * @param useEncryptedEndpoints the useEncryptedEndpoints value to set + * @return the JiraLinkedService object itself. + */ + public JiraLinkedService withUseEncryptedEndpoints(Object useEncryptedEndpoints) { + this.useEncryptedEndpoints = useEncryptedEndpoints; + return this; + } + + /** + * Get specifies whether to require the host name in the server's certificate to match the host name of the server when connecting over SSL. The default value is true. + * + * @return the useHostVerification value + */ + public Object useHostVerification() { + return this.useHostVerification; + } + + /** + * Set specifies whether to require the host name in the server's certificate to match the host name of the server when connecting over SSL. The default value is true. + * + * @param useHostVerification the useHostVerification value to set + * @return the JiraLinkedService object itself. + */ + public JiraLinkedService withUseHostVerification(Object useHostVerification) { + this.useHostVerification = useHostVerification; + return this; + } + + /** + * Get specifies whether to verify the identity of the server when connecting over SSL. The default value is true. + * + * @return the usePeerVerification value + */ + public Object usePeerVerification() { + return this.usePeerVerification; + } + + /** + * Set specifies whether to verify the identity of the server when connecting over SSL. The default value is true. + * + * @param usePeerVerification the usePeerVerification value to set + * @return the JiraLinkedService object itself. + */ + public JiraLinkedService withUsePeerVerification(Object usePeerVerification) { + this.usePeerVerification = usePeerVerification; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the JiraLinkedService object itself. + */ + public JiraLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/JiraObjectDataset.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/JiraObjectDataset.java new file mode 100644 index 0000000000000..7f3ee07a20271 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/JiraObjectDataset.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DatasetInner; + +/** + * Jira Service dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("JiraObject") +@JsonFlatten +public class JiraObjectDataset extends DatasetInner { + /** + * The table name. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; + + /** + * Get the table name. Type: string (or Expression with resultType string). + * + * @return the tableName value + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set the table name. Type: string (or Expression with resultType string). + * + * @param tableName the tableName value to set + * @return the JiraObjectDataset object itself. + */ + public JiraObjectDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/JiraSource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/JiraSource.java new file mode 100644 index 0000000000000..7a18a72b60805 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Jira Service 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 a query to retrieve data from source. Type: string (or Expression with resultType string). + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set a query to retrieve data from source. Type: string (or Expression with resultType string). + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/JsonFormat.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/JsonFormat.java new file mode 100644 index 0000000000000..5318595d7754b --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/JsonFormat.java @@ -0,0 +1,165 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +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. + */ + @JsonProperty(value = "filePattern") + private Object 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 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. + * + * @return the filePattern value + */ + public Object filePattern() { + return this.filePattern; + } + + /** + * Set 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. + * + * @param filePattern the filePattern value to set + * @return the JsonFormat object itself. + */ + public JsonFormat withFilePattern(Object filePattern) { + this.filePattern = filePattern; + return this; + } + + /** + * Get the character used to separate nesting levels. Default value is '.' (dot). Type: string (or Expression with resultType string). + * + * @return the nestingSeparator value + */ + public Object nestingSeparator() { + return this.nestingSeparator; + } + + /** + * Set the character used to separate nesting levels. Default value is '.' (dot). Type: string (or Expression with resultType string). + * + * @param nestingSeparator the nestingSeparator value to set + * @return the JsonFormat object itself. + */ + public JsonFormat withNestingSeparator(Object nestingSeparator) { + this.nestingSeparator = nestingSeparator; + return this; + } + + /** + * Get 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). + * + * @return the encodingName value + */ + public Object encodingName() { + return this.encodingName; + } + + /** + * Set 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). + * + * @param encodingName the encodingName value to set + * @return the JsonFormat object itself. + */ + public JsonFormat withEncodingName(Object encodingName) { + this.encodingName = encodingName; + return this; + } + + /** + * Get the JSONPath of the JSON array element to be flattened. Example: "$.ArrayPath". Type: string (or Expression with resultType string). + * + * @return the jsonNodeReference value + */ + public Object jsonNodeReference() { + return this.jsonNodeReference; + } + + /** + * Set the JSONPath of the JSON array element to be flattened. Example: "$.ArrayPath". Type: string (or Expression with resultType string). + * + * @param jsonNodeReference the jsonNodeReference value to set + * @return the JsonFormat object itself. + */ + public JsonFormat withJsonNodeReference(Object jsonNodeReference) { + this.jsonNodeReference = jsonNodeReference; + return this; + } + + /** + * Get 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). + * + * @return the jsonPathDefinition value + */ + public Object jsonPathDefinition() { + return this.jsonPathDefinition; + } + + /** + * Set 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). + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/LinkedIntegrationRuntime.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/LinkedIntegrationRuntime.java new file mode 100644 index 0000000000000..f4a73db0c4c59 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 of the linked integration runtime. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Get the subscription ID for which the linked integration runtime belong to. + * + * @return the subscriptionId value + */ + public String subscriptionId() { + return this.subscriptionId; + } + + /** + * Get the name of the data factory for which the linked integration runtime belong to. + * + * @return the dataFactoryName value + */ + public String dataFactoryName() { + return this.dataFactoryName; + } + + /** + * Get the location of the data factory for which the linked integration runtime belong to. + * + * @return the dataFactoryLocation value + */ + public String dataFactoryLocation() { + return this.dataFactoryLocation; + } + + /** + * Get the creating time of the linked integration runtime. + * + * @return the createTime value + */ + public DateTime createTime() { + return this.createTime; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/LinkedIntegrationRuntimeKeyAuthorization.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/LinkedIntegrationRuntimeKeyAuthorization.java new file mode 100644 index 0000000000000..ad6178f2279b7 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/LinkedIntegrationRuntimeKeyAuthorization.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * The key authorization type integration runtime. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "authorizationType") +@JsonTypeName("Key") +public class LinkedIntegrationRuntimeKeyAuthorization extends LinkedIntegrationRuntimeType { + /** + * The key used for authorization. + */ + @JsonProperty(value = "key", required = true) + private SecureString key; + + /** + * Get the key used for authorization. + * + * @return the key value + */ + public SecureString key() { + return this.key; + } + + /** + * Set the key used for authorization. + * + * @param key the key value to set + * @return the LinkedIntegrationRuntimeKeyAuthorization object itself. + */ + public LinkedIntegrationRuntimeKeyAuthorization withKey(SecureString key) { + this.key = key; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/LinkedIntegrationRuntimeRbacAuthorization.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/LinkedIntegrationRuntimeRbacAuthorization.java new file mode 100644 index 0000000000000..8ff2d49c64b55 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/LinkedIntegrationRuntimeRbacAuthorization.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * The role based access control (RBAC) authorization type integration runtime. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "authorizationType") +@JsonTypeName("RBAC") +public class LinkedIntegrationRuntimeRbacAuthorization extends LinkedIntegrationRuntimeType { + /** + * The resource identifier of the integration runtime to be shared. + */ + @JsonProperty(value = "resourceId", required = true) + private String resourceId; + + /** + * Get the resource identifier of the integration runtime to be shared. + * + * @return the resourceId value + */ + public String resourceId() { + return this.resourceId; + } + + /** + * Set the resource identifier of the integration runtime to be shared. + * + * @param resourceId the resourceId value to set + * @return the LinkedIntegrationRuntimeRbacAuthorization object itself. + */ + public LinkedIntegrationRuntimeRbacAuthorization withResourceId(String resourceId) { + this.resourceId = resourceId; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/LinkedIntegrationRuntimeRequest.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/LinkedIntegrationRuntimeRequest.java new file mode 100644 index 0000000000000..4269d8ab5b506 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/LinkedIntegrationRuntimeRequest.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Data factory name for linked integration runtime request. + */ +public class LinkedIntegrationRuntimeRequest { + /** + * The data factory name for linked integration runtime. + */ + @JsonProperty(value = "factoryName", required = true) + private String linkedFactoryName; + + /** + * Get the data factory name for linked integration runtime. + * + * @return the linkedFactoryName value + */ + public String linkedFactoryName() { + return this.linkedFactoryName; + } + + /** + * Set the data factory name for linked integration runtime. + * + * @param linkedFactoryName the linkedFactoryName value to set + * @return the LinkedIntegrationRuntimeRequest object itself. + */ + public LinkedIntegrationRuntimeRequest withLinkedFactoryName(String linkedFactoryName) { + this.linkedFactoryName = linkedFactoryName; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/LinkedIntegrationRuntimeType.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/LinkedIntegrationRuntimeType.java new file mode 100644 index 0000000000000..8f3927f26e6f5 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/LinkedIntegrationRuntimeType.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonSubTypes; + +/** + * The base definition of a linked integration runtime. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "authorizationType") +@JsonTypeName("LinkedIntegrationRuntimeType") +@JsonSubTypes({ + @JsonSubTypes.Type(name = "RBAC", value = LinkedIntegrationRuntimeRbacAuthorization.class), + @JsonSubTypes.Type(name = "Key", value = LinkedIntegrationRuntimeKeyAuthorization.class) +}) +public class LinkedIntegrationRuntimeType { +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/LinkedServiceReference.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/LinkedServiceReference.java new file mode 100644 index 0000000000000..9c38fb140fecf --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/LinkedServiceReference.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.v2018_06_01; + +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. + * @param referenceName reference LinkedService name. + */ + public LinkedServiceReference() { + type = "LinkedServiceReference"; + } + + /** + * Get linked service reference type. + * + * @return the type value + */ + public String type() { + return this.type; + } + + /** + * Set linked service reference type. + * + * @param type the type value to set + * @return the LinkedServiceReference object itself. + */ + public LinkedServiceReference withType(String type) { + this.type = type; + return this; + } + + /** + * Get reference LinkedService name. + * + * @return the referenceName value + */ + public String referenceName() { + return this.referenceName; + } + + /** + * Set reference LinkedService name. + * + * @param referenceName the referenceName value to set + * @return the LinkedServiceReference object itself. + */ + public LinkedServiceReference withReferenceName(String referenceName) { + this.referenceName = referenceName; + return this; + } + + /** + * Get arguments for LinkedService. + * + * @return the parameters value + */ + public Map parameters() { + return this.parameters; + } + + /** + * Set arguments for LinkedService. + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/LinkedServiceResource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/LinkedServiceResource.java new file mode 100644 index 0000000000000..f993e1bb78512 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/LinkedServiceResource.java @@ -0,0 +1,149 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.LinkedServiceResourceInner; +import com.microsoft.azure.arm.model.Indexable; +import com.microsoft.azure.arm.model.Refreshable; +import com.microsoft.azure.arm.model.Updatable; +import com.microsoft.azure.arm.model.Appliable; +import com.microsoft.azure.arm.model.Creatable; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DataFactoryManager; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.LinkedServiceInner; +import java.util.Map; +import java.util.List; + +/** + * Type representing LinkedServiceResource. + */ +public interface LinkedServiceResource extends HasInner, Indexable, Refreshable, Updatable, HasManager { + /** + * @return the etag value. + */ + String etag(); + + /** + * @return the id value. + */ + String id(); + + /** + * @return the name value. + */ + String name(); + + /** + * @return the properties value. + */ + LinkedServiceInner properties(); + + /** + * @return the type value. + */ + String type(); + + /** + * The entirety of the LinkedServiceResource definition. + */ + interface Definition extends DefinitionStages.Blank, DefinitionStages.WithFactory, DefinitionStages.WithIfMatch, DefinitionStages.WithProperties, DefinitionStages.WithCreate { + } + + /** + * Grouping of LinkedServiceResource definition stages. + */ + interface DefinitionStages { + /** + * The first stage of a LinkedServiceResource definition. + */ + interface Blank extends WithFactory { + } + + /** + * The stage of the linkedserviceresource definition allowing to specify Factory. + */ + interface WithFactory { + /** + * Specifies resourceGroupName, factoryName. + * @param resourceGroupName The resource group name + * @param factoryName The factory name + * @return the next definition stage + */ + WithIfMatch withExistingFactory(String resourceGroupName, String factoryName); + } + + /** + * The stage of the linkedserviceresource definition allowing to specify IfMatch. + */ + interface WithIfMatch { + /** + * Specifies ifMatch. + * @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 + * @return the next definition stage + */ + WithProperties withIfMatch(String ifMatch); + } + + /** + * The stage of the linkedserviceresource definition allowing to specify Properties. + */ + interface WithProperties { + /** + * Specifies properties. + * @param properties Properties of linked service + * @return the next definition stage + */ + WithCreate withProperties(LinkedServiceInner properties); + } + + /** + * The stage of the definition which contains all the minimum required inputs for + * the resource to be created (via {@link WithCreate#create()}), but also allows + * for any other optional settings to be specified. + */ + interface WithCreate extends Creatable { + } + } + /** + * The template for a LinkedServiceResource update operation, containing all the settings that can be modified. + */ + interface Update extends Appliable, UpdateStages.WithIfMatch, UpdateStages.WithProperties { + } + + /** + * Grouping of LinkedServiceResource update stages. + */ + interface UpdateStages { + /** + * The stage of the linkedserviceresource update allowing to specify IfMatch. + */ + interface WithIfMatch { + /** + * Specifies ifMatch. + * @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 + * @return the next update stage + */ + Update withIfMatch(String ifMatch); + } + + /** + * The stage of the linkedserviceresource update allowing to specify Properties. + */ + interface WithProperties { + /** + * Specifies properties. + * @param properties Properties of linked service + * @return the next update stage + */ + Update withProperties(LinkedServiceInner properties); + } + + } +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/LinkedServices.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/LinkedServices.java new file mode 100644 index 0000000000000..c3a3af9d281f4 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/LinkedServices.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.v2018_06_01; + +import com.microsoft.azure.arm.collection.SupportsCreating; +import rx.Completable; +import rx.Observable; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.LinkedServicesInner; +import com.microsoft.azure.arm.model.HasInner; + +/** + * Type representing LinkedServices. + */ +public interface LinkedServices extends SupportsCreating, HasInner { + /** + * 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 for the request + */ + Observable getAsync(String resourceGroupName, String factoryName, String linkedServiceName); + + /** + * 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 for the request + */ + Observable listByFactoryAsync(final String resourceGroupName, final String factoryName); + + /** + * 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 observable for the request + */ + Completable deleteAsync(String resourceGroupName, String factoryName, String linkedServiceName); + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/LogStorageSettings.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/LogStorageSettings.java new file mode 100644 index 0000000000000..710cdce199e71 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/LogStorageSettings.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.v2018_06_01; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Log storage settings. + */ +public class LogStorageSettings { + /** + * Unmatched properties from the message are deserialized this collection. + */ + @JsonProperty(value = "") + private Map additionalProperties; + + /** + * Log storage linked service reference. + */ + @JsonProperty(value = "linkedServiceName", required = true) + private LinkedServiceReference linkedServiceName; + + /** + * The path to storage for storing detailed logs of activity execution. + * Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "path") + private Object path; + + /** + * Get unmatched properties from the message are deserialized this collection. + * + * @return the additionalProperties value + */ + public Map additionalProperties() { + return this.additionalProperties; + } + + /** + * Set unmatched properties from the message are deserialized this collection. + * + * @param additionalProperties the additionalProperties value to set + * @return the LogStorageSettings object itself. + */ + public LogStorageSettings withAdditionalProperties(Map additionalProperties) { + this.additionalProperties = additionalProperties; + return this; + } + + /** + * Get log storage linked service reference. + * + * @return the linkedServiceName value + */ + public LinkedServiceReference linkedServiceName() { + return this.linkedServiceName; + } + + /** + * Set log storage linked service reference. + * + * @param linkedServiceName the linkedServiceName value to set + * @return the LogStorageSettings object itself. + */ + public LogStorageSettings withLinkedServiceName(LinkedServiceReference linkedServiceName) { + this.linkedServiceName = linkedServiceName; + return this; + } + + /** + * Get the path to storage for storing detailed logs of activity execution. Type: string (or Expression with resultType string). + * + * @return the path value + */ + public Object path() { + return this.path; + } + + /** + * Set the path to storage for storing detailed logs of activity execution. Type: string (or Expression with resultType string). + * + * @param path the path value to set + * @return the LogStorageSettings object itself. + */ + public LogStorageSettings withPath(Object path) { + this.path = path; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/LookupActivity.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/LookupActivity.java new file mode 100644 index 0000000000000..b0c5abda667b2 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; + +/** + * 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 dataset-specific source properties, same as copy activity source. + * + * @return the source value + */ + public CopySource source() { + return this.source; + } + + /** + * Set dataset-specific source properties, same as copy activity source. + * + * @param source the source value to set + * @return the LookupActivity object itself. + */ + public LookupActivity withSource(CopySource source) { + this.source = source; + return this; + } + + /** + * Get lookup activity dataset reference. + * + * @return the dataset value + */ + public DatasetReference dataset() { + return this.dataset; + } + + /** + * Set lookup activity dataset reference. + * + * @param dataset the dataset value to set + * @return the LookupActivity object itself. + */ + public LookupActivity withDataset(DatasetReference dataset) { + this.dataset = dataset; + return this; + } + + /** + * Get whether to return first row or all rows. Default value is true. Type: boolean (or Expression with resultType boolean). + * + * @return the firstRowOnly value + */ + public Object firstRowOnly() { + return this.firstRowOnly; + } + + /** + * Set whether to return first row or all rows. Default value is true. Type: boolean (or Expression with resultType boolean). + * + * @param firstRowOnly the firstRowOnly value to set + * @return the LookupActivity object itself. + */ + public LookupActivity withFirstRowOnly(Object firstRowOnly) { + this.firstRowOnly = firstRowOnly; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MagentoLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MagentoLinkedService.java new file mode 100644 index 0000000000000..3498298b37193 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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 URL of the Magento instance. (i.e. 192.168.222.110/magento3). + * + * @return the host value + */ + public Object host() { + return this.host; + } + + /** + * Set the URL of the Magento instance. (i.e. 192.168.222.110/magento3). + * + * @param host the host value to set + * @return the MagentoLinkedService object itself. + */ + public MagentoLinkedService withHost(Object host) { + this.host = host; + return this; + } + + /** + * Get the access token from Magento. + * + * @return the accessToken value + */ + public SecretBase accessToken() { + return this.accessToken; + } + + /** + * Set the access token from Magento. + * + * @param accessToken the accessToken value to set + * @return the MagentoLinkedService object itself. + */ + public MagentoLinkedService withAccessToken(SecretBase accessToken) { + this.accessToken = accessToken; + return this; + } + + /** + * Get specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. + * + * @return the useEncryptedEndpoints value + */ + public Object useEncryptedEndpoints() { + return this.useEncryptedEndpoints; + } + + /** + * Set specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. + * + * @param useEncryptedEndpoints the useEncryptedEndpoints value to set + * @return the MagentoLinkedService object itself. + */ + public MagentoLinkedService withUseEncryptedEndpoints(Object useEncryptedEndpoints) { + this.useEncryptedEndpoints = useEncryptedEndpoints; + return this; + } + + /** + * Get specifies whether to require the host name in the server's certificate to match the host name of the server when connecting over SSL. The default value is true. + * + * @return the useHostVerification value + */ + public Object useHostVerification() { + return this.useHostVerification; + } + + /** + * Set specifies whether to require the host name in the server's certificate to match the host name of the server when connecting over SSL. The default value is true. + * + * @param useHostVerification the useHostVerification value to set + * @return the MagentoLinkedService object itself. + */ + public MagentoLinkedService withUseHostVerification(Object useHostVerification) { + this.useHostVerification = useHostVerification; + return this; + } + + /** + * Get specifies whether to verify the identity of the server when connecting over SSL. The default value is true. + * + * @return the usePeerVerification value + */ + public Object usePeerVerification() { + return this.usePeerVerification; + } + + /** + * Set specifies whether to verify the identity of the server when connecting over SSL. The default value is true. + * + * @param usePeerVerification the usePeerVerification value to set + * @return the MagentoLinkedService object itself. + */ + public MagentoLinkedService withUsePeerVerification(Object usePeerVerification) { + this.usePeerVerification = usePeerVerification; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the MagentoLinkedService object itself. + */ + public MagentoLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MagentoObjectDataset.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MagentoObjectDataset.java new file mode 100644 index 0000000000000..7b25240eb2578 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MagentoObjectDataset.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DatasetInner; + +/** + * Magento server dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("MagentoObject") +@JsonFlatten +public class MagentoObjectDataset extends DatasetInner { + /** + * The table name. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; + + /** + * Get the table name. Type: string (or Expression with resultType string). + * + * @return the tableName value + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set the table name. Type: string (or Expression with resultType string). + * + * @param tableName the tableName value to set + * @return the MagentoObjectDataset object itself. + */ + public MagentoObjectDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MagentoSource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MagentoSource.java new file mode 100644 index 0000000000000..5f123197f9be3 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 a query to retrieve data from source. Type: string (or Expression with resultType string). + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set a query to retrieve data from source. Type: string (or Expression with resultType string). + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ManagedIntegrationRuntime.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ManagedIntegrationRuntime.java new file mode 100644 index 0000000000000..86d7915b7d167 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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', 'AccessDenied'. + */ + @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 integration runtime state, only valid for managed dedicated integration runtime. Possible values include: 'Initial', 'Stopped', 'Started', 'Starting', 'Stopping', 'NeedRegistration', 'Online', 'Limited', 'Offline', 'AccessDenied'. + * + * @return the state value + */ + public IntegrationRuntimeState state() { + return this.state; + } + + /** + * Get the compute resource for managed integration runtime. + * + * @return the computeProperties value + */ + public IntegrationRuntimeComputeProperties computeProperties() { + return this.computeProperties; + } + + /** + * Set the compute resource for managed integration runtime. + * + * @param computeProperties the computeProperties value to set + * @return the ManagedIntegrationRuntime object itself. + */ + public ManagedIntegrationRuntime withComputeProperties(IntegrationRuntimeComputeProperties computeProperties) { + this.computeProperties = computeProperties; + return this; + } + + /** + * Get sSIS properties for managed integration runtime. + * + * @return the ssisProperties value + */ + public IntegrationRuntimeSsisProperties ssisProperties() { + return this.ssisProperties; + } + + /** + * Set sSIS properties for managed integration runtime. + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ManagedIntegrationRuntimeError.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ManagedIntegrationRuntimeError.java new file mode 100644 index 0000000000000..9a5382aa12c18 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 when the error occurred. + * + * @return the time value + */ + public DateTime time() { + return this.time; + } + + /** + * Get error code. + * + * @return the code value + */ + public String code() { + return this.code; + } + + /** + * Get managed integration runtime error parameters. + * + * @return the parameters value + */ + public List parameters() { + return this.parameters; + } + + /** + * Get error message. + * + * @return the message value + */ + public String message() { + return this.message; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ManagedIntegrationRuntimeNode.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ManagedIntegrationRuntimeNode.java new file mode 100644 index 0000000000000..b76d7a528a594 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 managed integration runtime node id. + * + * @return the nodeId value + */ + public String nodeId() { + return this.nodeId; + } + + /** + * Get the managed integration runtime node status. Possible values include: 'Starting', 'Available', 'Recycling', 'Unavailable'. + * + * @return the status value + */ + public ManagedIntegrationRuntimeNodeStatus status() { + return this.status; + } + + /** + * Get the errors that occurred on this integration runtime node. + * + * @return the errors value + */ + public List errors() { + return this.errors; + } + + /** + * Set the errors that occurred on this integration runtime node. + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ManagedIntegrationRuntimeNodeStatus.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ManagedIntegrationRuntimeNodeStatus.java new file mode 100644 index 0000000000000..088a2c248f9e0 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ManagedIntegrationRuntimeOperationResult.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ManagedIntegrationRuntimeOperationResult.java new file mode 100644 index 0000000000000..443f70a5d9922 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 operation type. Could be start or stop. + * + * @return the type value + */ + public String type() { + return this.type; + } + + /** + * Get the start time of the operation. + * + * @return the startTime value + */ + public DateTime startTime() { + return this.startTime; + } + + /** + * Get the operation result. + * + * @return the result value + */ + public String result() { + return this.result; + } + + /** + * Get the error code. + * + * @return the errorCode value + */ + public String errorCode() { + return this.errorCode; + } + + /** + * Get managed integration runtime error parameters. + * + * @return the parameters value + */ + public List parameters() { + return this.parameters; + } + + /** + * Get the activity id for the operation request. + * + * @return the activityId value + */ + public String activityId() { + return this.activityId; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ManagedIntegrationRuntimeStatus.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ManagedIntegrationRuntimeStatus.java new file mode 100644 index 0000000000000..13235739f4546 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 time at which the integration runtime was created, in ISO8601 format. + * + * @return the createTime value + */ + public DateTime createTime() { + return this.createTime; + } + + /** + * Get the list of nodes for managed integration runtime. + * + * @return the nodes value + */ + public List nodes() { + return this.nodes; + } + + /** + * Get the errors that occurred on this integration runtime. + * + * @return the otherErrors value + */ + public List otherErrors() { + return this.otherErrors; + } + + /** + * Get the last operation result that occurred on this integration runtime. + * + * @return the lastOperation value + */ + public ManagedIntegrationRuntimeOperationResult lastOperation() { + return this.lastOperation; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MariaDBLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MariaDBLinkedService.java new file mode 100644 index 0000000000000..60cfc54f9fe5f --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MariaDBLinkedService.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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. Type: string, SecureString or + * AzureKeyVaultSecretReference. + */ + @JsonProperty(value = "typeProperties.connectionString") + private Object connectionString; + + /** + * The Azure key vault secret reference of password in connection string. + */ + @JsonProperty(value = "typeProperties.pwd") + private AzureKeyVaultSecretReference pwd; + + /** + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; + + /** + * Get an ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. + * + * @return the connectionString value + */ + public Object connectionString() { + return this.connectionString; + } + + /** + * Set an ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. + * + * @param connectionString the connectionString value to set + * @return the MariaDBLinkedService object itself. + */ + public MariaDBLinkedService withConnectionString(Object connectionString) { + this.connectionString = connectionString; + return this; + } + + /** + * Get the Azure key vault secret reference of password in connection string. + * + * @return the pwd value + */ + public AzureKeyVaultSecretReference pwd() { + return this.pwd; + } + + /** + * Set the Azure key vault secret reference of password in connection string. + * + * @param pwd the pwd value to set + * @return the MariaDBLinkedService object itself. + */ + public MariaDBLinkedService withPwd(AzureKeyVaultSecretReference pwd) { + this.pwd = pwd; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the MariaDBLinkedService object itself. + */ + public MariaDBLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MariaDBSource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MariaDBSource.java new file mode 100644 index 0000000000000..0a5fd4b929cdc --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 a query to retrieve data from source. Type: string (or Expression with resultType string). + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set a query to retrieve data from source. Type: string (or Expression with resultType string). + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MariaDBTableDataset.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MariaDBTableDataset.java new file mode 100644 index 0000000000000..75f9bb54dc891 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MariaDBTableDataset.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DatasetInner; + +/** + * MariaDB server dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("MariaDBTable") +@JsonFlatten +public class MariaDBTableDataset extends DatasetInner { + /** + * The table name. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; + + /** + * Get the table name. Type: string (or Expression with resultType string). + * + * @return the tableName value + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set the table name. Type: string (or Expression with resultType string). + * + * @param tableName the tableName value to set + * @return the MariaDBTableDataset object itself. + */ + public MariaDBTableDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MarketoLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MarketoLinkedService.java new file mode 100644 index 0000000000000..ac67f2c483141 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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 of the Marketo server. (i.e. 123-ABC-321.mktorest.com). + * + * @return the endpoint value + */ + public Object endpoint() { + return this.endpoint; + } + + /** + * Set the endpoint of the Marketo server. (i.e. 123-ABC-321.mktorest.com). + * + * @param endpoint the endpoint value to set + * @return the MarketoLinkedService object itself. + */ + public MarketoLinkedService withEndpoint(Object endpoint) { + this.endpoint = endpoint; + return this; + } + + /** + * Get the client Id of your Marketo service. + * + * @return the clientId value + */ + public Object clientId() { + return this.clientId; + } + + /** + * Set the client Id of your Marketo service. + * + * @param clientId the clientId value to set + * @return the MarketoLinkedService object itself. + */ + public MarketoLinkedService withClientId(Object clientId) { + this.clientId = clientId; + return this; + } + + /** + * Get the client secret of your Marketo service. + * + * @return the clientSecret value + */ + public SecretBase clientSecret() { + return this.clientSecret; + } + + /** + * Set the client secret of your Marketo service. + * + * @param clientSecret the clientSecret value to set + * @return the MarketoLinkedService object itself. + */ + public MarketoLinkedService withClientSecret(SecretBase clientSecret) { + this.clientSecret = clientSecret; + return this; + } + + /** + * Get specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. + * + * @return the useEncryptedEndpoints value + */ + public Object useEncryptedEndpoints() { + return this.useEncryptedEndpoints; + } + + /** + * Set specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. + * + * @param useEncryptedEndpoints the useEncryptedEndpoints value to set + * @return the MarketoLinkedService object itself. + */ + public MarketoLinkedService withUseEncryptedEndpoints(Object useEncryptedEndpoints) { + this.useEncryptedEndpoints = useEncryptedEndpoints; + return this; + } + + /** + * Get specifies whether to require the host name in the server's certificate to match the host name of the server when connecting over SSL. The default value is true. + * + * @return the useHostVerification value + */ + public Object useHostVerification() { + return this.useHostVerification; + } + + /** + * Set specifies whether to require the host name in the server's certificate to match the host name of the server when connecting over SSL. The default value is true. + * + * @param useHostVerification the useHostVerification value to set + * @return the MarketoLinkedService object itself. + */ + public MarketoLinkedService withUseHostVerification(Object useHostVerification) { + this.useHostVerification = useHostVerification; + return this; + } + + /** + * Get specifies whether to verify the identity of the server when connecting over SSL. The default value is true. + * + * @return the usePeerVerification value + */ + public Object usePeerVerification() { + return this.usePeerVerification; + } + + /** + * Set specifies whether to verify the identity of the server when connecting over SSL. The default value is true. + * + * @param usePeerVerification the usePeerVerification value to set + * @return the MarketoLinkedService object itself. + */ + public MarketoLinkedService withUsePeerVerification(Object usePeerVerification) { + this.usePeerVerification = usePeerVerification; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the MarketoLinkedService object itself. + */ + public MarketoLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MarketoObjectDataset.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MarketoObjectDataset.java new file mode 100644 index 0000000000000..5bc7b3b2e6ea8 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MarketoObjectDataset.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DatasetInner; + +/** + * Marketo server dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("MarketoObject") +@JsonFlatten +public class MarketoObjectDataset extends DatasetInner { + /** + * The table name. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; + + /** + * Get the table name. Type: string (or Expression with resultType string). + * + * @return the tableName value + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set the table name. Type: string (or Expression with resultType string). + * + * @param tableName the tableName value to set + * @return the MarketoObjectDataset object itself. + */ + public MarketoObjectDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MarketoSource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MarketoSource.java new file mode 100644 index 0000000000000..60352d8c792af --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 a query to retrieve data from source. Type: string (or Expression with resultType string). + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set a query to retrieve data from source. Type: string (or Expression with resultType string). + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MicrosoftAccessLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MicrosoftAccessLinkedService.java new file mode 100644 index 0000000000000..8d19dd415d869 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MicrosoftAccessLinkedService.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.LinkedServiceInner; + +/** + * Microsoft Access linked service. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("MicrosoftAccess") +@JsonFlatten +public class MicrosoftAccessLinkedService extends LinkedServiceInner { + /** + * The non-access credential portion of the connection string as well as an + * optional encrypted credential. Type: string, SecureString or + * AzureKeyVaultSecretReference. + */ + @JsonProperty(value = "typeProperties.connectionString", required = true) + private Object connectionString; + + /** + * Type of authentication used to connect to the Microsoft Access as ODBC + * data store. Possible values are: Anonymous and Basic. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "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 non-access credential portion of the connection string as well as an optional encrypted credential. Type: string, SecureString or AzureKeyVaultSecretReference. + * + * @return the connectionString value + */ + public Object connectionString() { + return this.connectionString; + } + + /** + * Set the non-access credential portion of the connection string as well as an optional encrypted credential. Type: string, SecureString or AzureKeyVaultSecretReference. + * + * @param connectionString the connectionString value to set + * @return the MicrosoftAccessLinkedService object itself. + */ + public MicrosoftAccessLinkedService withConnectionString(Object connectionString) { + this.connectionString = connectionString; + return this; + } + + /** + * Get type of authentication used to connect to the Microsoft Access as ODBC data store. Possible values are: Anonymous and Basic. Type: string (or Expression with resultType string). + * + * @return the authenticationType value + */ + public Object authenticationType() { + return this.authenticationType; + } + + /** + * Set type of authentication used to connect to the Microsoft Access as ODBC data store. Possible values are: Anonymous and Basic. Type: string (or Expression with resultType string). + * + * @param authenticationType the authenticationType value to set + * @return the MicrosoftAccessLinkedService object itself. + */ + public MicrosoftAccessLinkedService withAuthenticationType(Object authenticationType) { + this.authenticationType = authenticationType; + return this; + } + + /** + * Get the access credential portion of the connection string specified in driver-specific property-value format. + * + * @return the credential value + */ + public SecretBase credential() { + return this.credential; + } + + /** + * Set the access credential portion of the connection string specified in driver-specific property-value format. + * + * @param credential the credential value to set + * @return the MicrosoftAccessLinkedService object itself. + */ + public MicrosoftAccessLinkedService withCredential(SecretBase credential) { + this.credential = credential; + return this; + } + + /** + * Get user name for Basic authentication. Type: string (or Expression with resultType string). + * + * @return the userName value + */ + public Object userName() { + return this.userName; + } + + /** + * Set user name for Basic authentication. Type: string (or Expression with resultType string). + * + * @param userName the userName value to set + * @return the MicrosoftAccessLinkedService object itself. + */ + public MicrosoftAccessLinkedService withUserName(Object userName) { + this.userName = userName; + return this; + } + + /** + * Get password for Basic authentication. + * + * @return the password value + */ + public SecretBase password() { + return this.password; + } + + /** + * Set password for Basic authentication. + * + * @param password the password value to set + * @return the MicrosoftAccessLinkedService object itself. + */ + public MicrosoftAccessLinkedService withPassword(SecretBase password) { + this.password = password; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the MicrosoftAccessLinkedService object itself. + */ + public MicrosoftAccessLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MicrosoftAccessSink.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MicrosoftAccessSink.java new file mode 100644 index 0000000000000..ae8bc670adeca --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MicrosoftAccessSink.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Microsoft Access sink. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("MicrosoftAccessSink") +public class MicrosoftAccessSink extends CopySink { + /** + * A query to execute before starting the copy. Type: string (or Expression + * with resultType string). + */ + @JsonProperty(value = "preCopyScript") + private Object preCopyScript; + + /** + * Get a query to execute before starting the copy. Type: string (or Expression with resultType string). + * + * @return the preCopyScript value + */ + public Object preCopyScript() { + return this.preCopyScript; + } + + /** + * Set a query to execute before starting the copy. Type: string (or Expression with resultType string). + * + * @param preCopyScript the preCopyScript value to set + * @return the MicrosoftAccessSink object itself. + */ + public MicrosoftAccessSink withPreCopyScript(Object preCopyScript) { + this.preCopyScript = preCopyScript; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MicrosoftAccessSource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MicrosoftAccessSource.java new file mode 100644 index 0000000000000..3076ed9f7d754 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MicrosoftAccessSource.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity source for Microsoft Access. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("MicrosoftAccessSource") +public class MicrosoftAccessSource extends CopySource { + /** + * Database query. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "query") + private Object query; + + /** + * Get database query. Type: string (or Expression with resultType string). + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set database query. Type: string (or Expression with resultType string). + * + * @param query the query value to set + * @return the MicrosoftAccessSource object itself. + */ + public MicrosoftAccessSource withQuery(Object query) { + this.query = query; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MicrosoftAccessTableDataset.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MicrosoftAccessTableDataset.java new file mode 100644 index 0000000000000..9f8f4d018b17d --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MicrosoftAccessTableDataset.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DatasetInner; + +/** + * The Microsoft Access table dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("MicrosoftAccessTable") +@JsonFlatten +public class MicrosoftAccessTableDataset extends DatasetInner { + /** + * The Microsoft Access table name. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; + + /** + * Get the Microsoft Access table name. Type: string (or Expression with resultType string). + * + * @return the tableName value + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set the Microsoft Access table name. Type: string (or Expression with resultType string). + * + * @param tableName the tableName value to set + * @return the MicrosoftAccessTableDataset object itself. + */ + public MicrosoftAccessTableDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MongoDbAuthenticationType.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MongoDbAuthenticationType.java new file mode 100644 index 0000000000000..ff5ff100092cb --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MongoDbCollectionDataset.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MongoDbCollectionDataset.java new file mode 100644 index 0000000000000..818bc8e8e7f31 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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 table name of the MongoDB database. Type: string (or Expression with resultType string). + * + * @return the collectionName value + */ + public Object collectionName() { + return this.collectionName; + } + + /** + * Set the table name of the MongoDB database. Type: string (or Expression with resultType string). + * + * @param collectionName the collectionName value to set + * @return the MongoDbCollectionDataset object itself. + */ + public MongoDbCollectionDataset withCollectionName(Object collectionName) { + this.collectionName = collectionName; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MongoDbCursorMethodsProperties.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MongoDbCursorMethodsProperties.java new file mode 100644 index 0000000000000..292df1352c1df --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MongoDbCursorMethodsProperties.java @@ -0,0 +1,156 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Cursor methods for Mongodb query. + */ +public class MongoDbCursorMethodsProperties { + /** + * Unmatched properties from the message are deserialized this collection. + */ + @JsonProperty(value = "") + private Map additionalProperties; + + /** + * Specifies the fields to return in the documents that match the query + * filter. To return all fields in the matching documents, omit this + * parameter. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "project") + private Object project; + + /** + * Specifies the order in which the query returns matching documents. Type: + * string (or Expression with resultType string). Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "sort") + private Object sort; + + /** + * Specifies the how many documents skipped and where MongoDB begins + * returning results. This approach may be useful in implementing paginated + * results. Type: integer (or Expression with resultType integer). + */ + @JsonProperty(value = "skip") + private Object skip; + + /** + * Specifies the maximum number of documents the server returns. limit() is + * analogous to the LIMIT statement in a SQL database. Type: integer (or + * Expression with resultType integer). + */ + @JsonProperty(value = "limit") + private Object limit; + + /** + * Get unmatched properties from the message are deserialized this collection. + * + * @return the additionalProperties value + */ + public Map additionalProperties() { + return this.additionalProperties; + } + + /** + * Set unmatched properties from the message are deserialized this collection. + * + * @param additionalProperties the additionalProperties value to set + * @return the MongoDbCursorMethodsProperties object itself. + */ + public MongoDbCursorMethodsProperties withAdditionalProperties(Map additionalProperties) { + this.additionalProperties = additionalProperties; + return this; + } + + /** + * Get specifies the fields to return in the documents that match the query filter. To return all fields in the matching documents, omit this parameter. Type: string (or Expression with resultType string). + * + * @return the project value + */ + public Object project() { + return this.project; + } + + /** + * Set specifies the fields to return in the documents that match the query filter. To return all fields in the matching documents, omit this parameter. Type: string (or Expression with resultType string). + * + * @param project the project value to set + * @return the MongoDbCursorMethodsProperties object itself. + */ + public MongoDbCursorMethodsProperties withProject(Object project) { + this.project = project; + return this; + } + + /** + * Get specifies the order in which the query returns matching documents. Type: string (or Expression with resultType string). Type: string (or Expression with resultType string). + * + * @return the sort value + */ + public Object sort() { + return this.sort; + } + + /** + * Set specifies the order in which the query returns matching documents. Type: string (or Expression with resultType string). Type: string (or Expression with resultType string). + * + * @param sort the sort value to set + * @return the MongoDbCursorMethodsProperties object itself. + */ + public MongoDbCursorMethodsProperties withSort(Object sort) { + this.sort = sort; + return this; + } + + /** + * Get specifies the how many documents skipped and where MongoDB begins returning results. This approach may be useful in implementing paginated results. Type: integer (or Expression with resultType integer). + * + * @return the skip value + */ + public Object skip() { + return this.skip; + } + + /** + * Set specifies the how many documents skipped and where MongoDB begins returning results. This approach may be useful in implementing paginated results. Type: integer (or Expression with resultType integer). + * + * @param skip the skip value to set + * @return the MongoDbCursorMethodsProperties object itself. + */ + public MongoDbCursorMethodsProperties withSkip(Object skip) { + this.skip = skip; + return this; + } + + /** + * Get specifies the maximum number of documents the server returns. limit() is analogous to the LIMIT statement in a SQL database. Type: integer (or Expression with resultType integer). + * + * @return the limit value + */ + public Object limit() { + return this.limit; + } + + /** + * Set specifies the maximum number of documents the server returns. limit() is analogous to the LIMIT statement in a SQL database. Type: integer (or Expression with resultType integer). + * + * @param limit the limit value to set + * @return the MongoDbCursorMethodsProperties object itself. + */ + public MongoDbCursorMethodsProperties withLimit(Object limit) { + this.limit = limit; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MongoDbLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MongoDbLinkedService.java new file mode 100644 index 0000000000000..af101432a98f3 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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 IP address or server name of the MongoDB server. Type: string (or Expression with resultType string). + * + * @return the server value + */ + public Object server() { + return this.server; + } + + /** + * Set the IP address or server name of the MongoDB server. Type: string (or Expression with resultType string). + * + * @param server the server value to set + * @return the MongoDbLinkedService object itself. + */ + public MongoDbLinkedService withServer(Object server) { + this.server = server; + return this; + } + + /** + * Get the authentication type to be used to connect to the MongoDB database. Possible values include: 'Basic', 'Anonymous'. + * + * @return the authenticationType value + */ + public MongoDbAuthenticationType authenticationType() { + return this.authenticationType; + } + + /** + * Set the authentication type to be used to connect to the MongoDB database. Possible values include: 'Basic', 'Anonymous'. + * + * @param authenticationType the authenticationType value to set + * @return the MongoDbLinkedService object itself. + */ + public MongoDbLinkedService withAuthenticationType(MongoDbAuthenticationType authenticationType) { + this.authenticationType = authenticationType; + return this; + } + + /** + * Get the name of the MongoDB database that you want to access. Type: string (or Expression with resultType string). + * + * @return the databaseName value + */ + public Object databaseName() { + return this.databaseName; + } + + /** + * Set the name of the MongoDB database that you want to access. Type: string (or Expression with resultType string). + * + * @param databaseName the databaseName value to set + * @return the MongoDbLinkedService object itself. + */ + public MongoDbLinkedService withDatabaseName(Object databaseName) { + this.databaseName = databaseName; + return this; + } + + /** + * Get username for authentication. Type: string (or Expression with resultType string). + * + * @return the username value + */ + public Object username() { + return this.username; + } + + /** + * Set username for authentication. Type: string (or Expression with resultType string). + * + * @param username the username value to set + * @return the MongoDbLinkedService object itself. + */ + public MongoDbLinkedService withUsername(Object username) { + this.username = username; + return this; + } + + /** + * Get password for authentication. + * + * @return the password value + */ + public SecretBase password() { + return this.password; + } + + /** + * Set password for authentication. + * + * @param password the password value to set + * @return the MongoDbLinkedService object itself. + */ + public MongoDbLinkedService withPassword(SecretBase password) { + this.password = password; + return this; + } + + /** + * Get database to verify the username and password. Type: string (or Expression with resultType string). + * + * @return the authSource value + */ + public Object authSource() { + return this.authSource; + } + + /** + * Set database to verify the username and password. Type: string (or Expression with resultType string). + * + * @param authSource the authSource value to set + * @return the MongoDbLinkedService object itself. + */ + public MongoDbLinkedService withAuthSource(Object authSource) { + this.authSource = authSource; + return this; + } + + /** + * Get the TCP port number that the MongoDB server uses to listen for client connections. The default value is 27017. Type: integer (or Expression with resultType integer), minimum: 0. + * + * @return the port value + */ + public Object port() { + return this.port; + } + + /** + * Set the TCP port number that the MongoDB server uses to listen for client connections. The default value is 27017. Type: integer (or Expression with resultType integer), minimum: 0. + * + * @param port the port value to set + * @return the MongoDbLinkedService object itself. + */ + public MongoDbLinkedService withPort(Object port) { + this.port = port; + return this; + } + + /** + * Get specifies whether the connections to the server are encrypted using SSL. The default value is false. Type: boolean (or Expression with resultType boolean). + * + * @return the enableSsl value + */ + public Object enableSsl() { + return this.enableSsl; + } + + /** + * Set specifies whether the connections to the server are encrypted using SSL. The default value is false. Type: boolean (or Expression with resultType boolean). + * + * @param enableSsl the enableSsl value to set + * @return the MongoDbLinkedService object itself. + */ + public MongoDbLinkedService withEnableSsl(Object enableSsl) { + this.enableSsl = enableSsl; + return this; + } + + /** + * Get specifies whether to allow self-signed certificates from the server. The default value is false. Type: boolean (or Expression with resultType boolean). + * + * @return the allowSelfSignedServerCert value + */ + public Object allowSelfSignedServerCert() { + return this.allowSelfSignedServerCert; + } + + /** + * Set specifies whether to allow self-signed certificates from the server. The default value is false. Type: boolean (or Expression with resultType boolean). + * + * @param allowSelfSignedServerCert the allowSelfSignedServerCert value to set + * @return the MongoDbLinkedService object itself. + */ + public MongoDbLinkedService withAllowSelfSignedServerCert(Object allowSelfSignedServerCert) { + this.allowSelfSignedServerCert = allowSelfSignedServerCert; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the MongoDbLinkedService object itself. + */ + public MongoDbLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MongoDbSource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MongoDbSource.java new file mode 100644 index 0000000000000..50a6cc43a248b --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 database query. Should be a SQL-92 query expression. Type: string (or Expression with resultType string). + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set database query. Should be a SQL-92 query expression. Type: string (or Expression with resultType string). + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MongoDbV2CollectionDataset.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MongoDbV2CollectionDataset.java new file mode 100644 index 0000000000000..6dd4f2167afe1 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MongoDbV2CollectionDataset.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DatasetInner; + +/** + * The MongoDB database dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("MongoDbV2Collection") +@JsonFlatten +public class MongoDbV2CollectionDataset extends DatasetInner { + /** + * The collection name of the MongoDB database. Type: string (or Expression + * with resultType string). + */ + @JsonProperty(value = "typeProperties.collection", required = true) + private Object collection; + + /** + * Get the collection name of the MongoDB database. Type: string (or Expression with resultType string). + * + * @return the collection value + */ + public Object collection() { + return this.collection; + } + + /** + * Set the collection name of the MongoDB database. Type: string (or Expression with resultType string). + * + * @param collection the collection value to set + * @return the MongoDbV2CollectionDataset object itself. + */ + public MongoDbV2CollectionDataset withCollection(Object collection) { + this.collection = collection; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MongoDbV2LinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MongoDbV2LinkedService.java new file mode 100644 index 0000000000000..672f02afea661 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MongoDbV2LinkedService.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.LinkedServiceInner; + +/** + * Linked service for MongoDB data source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("MongoDbV2") +@JsonFlatten +public class MongoDbV2LinkedService extends LinkedServiceInner { + /** + * The MongoDB connection string. Type: string, SecureString or + * AzureKeyVaultSecretReference. Type: string, SecureString or + * AzureKeyVaultSecretReference. + */ + @JsonProperty(value = "typeProperties.connectionString", required = true) + private Object connectionString; + + /** + * The name of the MongoDB database that you want to access. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.database", required = true) + private Object database; + + /** + * Get the MongoDB connection string. Type: string, SecureString or AzureKeyVaultSecretReference. Type: string, SecureString or AzureKeyVaultSecretReference. + * + * @return the connectionString value + */ + public Object connectionString() { + return this.connectionString; + } + + /** + * Set the MongoDB connection string. Type: string, SecureString or AzureKeyVaultSecretReference. Type: string, SecureString or AzureKeyVaultSecretReference. + * + * @param connectionString the connectionString value to set + * @return the MongoDbV2LinkedService object itself. + */ + public MongoDbV2LinkedService withConnectionString(Object connectionString) { + this.connectionString = connectionString; + return this; + } + + /** + * Get the name of the MongoDB database that you want to access. Type: string (or Expression with resultType string). + * + * @return the database value + */ + public Object database() { + return this.database; + } + + /** + * Set the name of the MongoDB database that you want to access. Type: string (or Expression with resultType string). + * + * @param database the database value to set + * @return the MongoDbV2LinkedService object itself. + */ + public MongoDbV2LinkedService withDatabase(Object database) { + this.database = database; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MongoDbV2Source.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MongoDbV2Source.java new file mode 100644 index 0000000000000..9a46bdb490e97 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MongoDbV2Source.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.v2018_06_01; + +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("MongoDbV2Source") +public class MongoDbV2Source extends CopySource { + /** + * Specifies selection filter using query operators. To return all + * documents in a collection, omit this parameter or pass an empty document + * ({}). Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "filter") + private Object filter; + + /** + * Cursor methods for Mongodb query. + */ + @JsonProperty(value = "cursorMethods") + private MongoDbCursorMethodsProperties cursorMethods; + + /** + * Specifies the number of documents to return in each batch of the + * response from MongoDB instance. In most cases, modifying the batch size + * will not affect the user or the application. This property's main + * purpose is to avoid hit the limitation of response size. Type: integer + * (or Expression with resultType integer). + */ + @JsonProperty(value = "batchSize") + private Object batchSize; + + /** + * Get specifies selection filter using query operators. To return all documents in a collection, omit this parameter or pass an empty document ({}). Type: string (or Expression with resultType string). + * + * @return the filter value + */ + public Object filter() { + return this.filter; + } + + /** + * Set specifies selection filter using query operators. To return all documents in a collection, omit this parameter or pass an empty document ({}). Type: string (or Expression with resultType string). + * + * @param filter the filter value to set + * @return the MongoDbV2Source object itself. + */ + public MongoDbV2Source withFilter(Object filter) { + this.filter = filter; + return this; + } + + /** + * Get cursor methods for Mongodb query. + * + * @return the cursorMethods value + */ + public MongoDbCursorMethodsProperties cursorMethods() { + return this.cursorMethods; + } + + /** + * Set cursor methods for Mongodb query. + * + * @param cursorMethods the cursorMethods value to set + * @return the MongoDbV2Source object itself. + */ + public MongoDbV2Source withCursorMethods(MongoDbCursorMethodsProperties cursorMethods) { + this.cursorMethods = cursorMethods; + return this; + } + + /** + * Get specifies the number of documents to return in each batch of the response from MongoDB instance. In most cases, modifying the batch size will not affect the user or the application. This property's main purpose is to avoid hit the limitation of response size. Type: integer (or Expression with resultType integer). + * + * @return the batchSize value + */ + public Object batchSize() { + return this.batchSize; + } + + /** + * Set specifies the number of documents to return in each batch of the response from MongoDB instance. In most cases, modifying the batch size will not affect the user or the application. This property's main purpose is to avoid hit the limitation of response size. Type: integer (or Expression with resultType integer). + * + * @param batchSize the batchSize value to set + * @return the MongoDbV2Source object itself. + */ + public MongoDbV2Source withBatchSize(Object batchSize) { + this.batchSize = batchSize; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MultiplePipelineTrigger.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MultiplePipelineTrigger.java new file mode 100644 index 0000000000000..092ed4d5f1d8b --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MultiplePipelineTrigger.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.v2018_06_01; + +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.v2018_06_01.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 = "BlobEventsTrigger", value = BlobEventsTrigger.class), + @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 pipelines that need to be started. + * + * @return the pipelines value + */ + public List pipelines() { + return this.pipelines; + } + + /** + * Set pipelines that need to be started. + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MySqlLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MySqlLinkedService.java new file mode 100644 index 0000000000000..2b32d7f46dc30 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MySqlLinkedService.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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 { + /** + * The connection string. + */ + @JsonProperty(value = "typeProperties.connectionString", required = true) + private SecretBase connectionString; + + /** + * The Azure key vault secret reference of password in connection string. + */ + @JsonProperty(value = "typeProperties.password") + private AzureKeyVaultSecretReference password; + + /** + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; + + /** + * Get the connection string. + * + * @return the connectionString value + */ + public SecretBase connectionString() { + return this.connectionString; + } + + /** + * Set the connection string. + * + * @param connectionString the connectionString value to set + * @return the MySqlLinkedService object itself. + */ + public MySqlLinkedService withConnectionString(SecretBase connectionString) { + this.connectionString = connectionString; + return this; + } + + /** + * Get the Azure key vault secret reference of password in connection string. + * + * @return the password value + */ + public AzureKeyVaultSecretReference password() { + return this.password; + } + + /** + * Set the Azure key vault secret reference of password in connection string. + * + * @param password the password value to set + * @return the MySqlLinkedService object itself. + */ + public MySqlLinkedService withPassword(AzureKeyVaultSecretReference password) { + this.password = password; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the MySqlLinkedService object itself. + */ + public MySqlLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MySqlSource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MySqlSource.java new file mode 100644 index 0000000000000..351f85eda64f0 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MySqlSource.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity source for MySQL databases. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("MySqlSource") +public class MySqlSource extends CopySource { + /** + * Database query. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "query") + private Object query; + + /** + * Get database query. Type: string (or Expression with resultType string). + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set database query. Type: string (or Expression with resultType string). + * + * @param query the query value to set + * @return the MySqlSource object itself. + */ + public MySqlSource withQuery(Object query) { + this.query = query; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MySqlTableDataset.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MySqlTableDataset.java new file mode 100644 index 0000000000000..8ddff734035ee --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/MySqlTableDataset.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DatasetInner; + +/** + * The MySQL table dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("MySqlTable") +@JsonFlatten +public class MySqlTableDataset extends DatasetInner { + /** + * The MySQL table name. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; + + /** + * Get the MySQL table name. Type: string (or Expression with resultType string). + * + * @return the tableName value + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set the MySQL table name. Type: string (or Expression with resultType string). + * + * @param tableName the tableName value to set + * @return the MySqlTableDataset object itself. + */ + public MySqlTableDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/NetezzaLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/NetezzaLinkedService.java new file mode 100644 index 0000000000000..0e31a453ec5f2 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/NetezzaLinkedService.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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. Type: string, SecureString or + * AzureKeyVaultSecretReference. + */ + @JsonProperty(value = "typeProperties.connectionString") + private Object connectionString; + + /** + * The Azure key vault secret reference of password in connection string. + */ + @JsonProperty(value = "typeProperties.pwd") + private AzureKeyVaultSecretReference pwd; + + /** + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; + + /** + * Get an ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. + * + * @return the connectionString value + */ + public Object connectionString() { + return this.connectionString; + } + + /** + * Set an ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. + * + * @param connectionString the connectionString value to set + * @return the NetezzaLinkedService object itself. + */ + public NetezzaLinkedService withConnectionString(Object connectionString) { + this.connectionString = connectionString; + return this; + } + + /** + * Get the Azure key vault secret reference of password in connection string. + * + * @return the pwd value + */ + public AzureKeyVaultSecretReference pwd() { + return this.pwd; + } + + /** + * Set the Azure key vault secret reference of password in connection string. + * + * @param pwd the pwd value to set + * @return the NetezzaLinkedService object itself. + */ + public NetezzaLinkedService withPwd(AzureKeyVaultSecretReference pwd) { + this.pwd = pwd; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the NetezzaLinkedService object itself. + */ + public NetezzaLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/NetezzaPartitionOption.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/NetezzaPartitionOption.java new file mode 100644 index 0000000000000..b2d8b8c5d5d90 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/NetezzaPartitionOption.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.v2018_06_01; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for NetezzaPartitionOption. + */ +public final class NetezzaPartitionOption extends ExpandableStringEnum { + /** Static value None for NetezzaPartitionOption. */ + public static final NetezzaPartitionOption NONE = fromString("None"); + + /** Static value DataSlice for NetezzaPartitionOption. */ + public static final NetezzaPartitionOption DATA_SLICE = fromString("DataSlice"); + + /** Static value DynamicRange for NetezzaPartitionOption. */ + public static final NetezzaPartitionOption DYNAMIC_RANGE = fromString("DynamicRange"); + + /** + * Creates or finds a NetezzaPartitionOption from its string representation. + * @param name a name to look for + * @return the corresponding NetezzaPartitionOption + */ + @JsonCreator + public static NetezzaPartitionOption fromString(String name) { + return fromString(name, NetezzaPartitionOption.class); + } + + /** + * @return known NetezzaPartitionOption values + */ + public static Collection values() { + return values(NetezzaPartitionOption.class); + } +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/NetezzaPartitionSettings.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/NetezzaPartitionSettings.java new file mode 100644 index 0000000000000..7da0d1c3a2d9b --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/NetezzaPartitionSettings.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The settings that will be leveraged for Netezza source partitioning. + */ +public class NetezzaPartitionSettings { + /** + * The name of the column in integer type that will be used for proceeding + * range partitioning. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "partitionColumnName") + private Object partitionColumnName; + + /** + * The maximum value of column specified in partitionColumnName that will + * be used for proceeding range partitioning. Type: string (or Expression + * with resultType string). + */ + @JsonProperty(value = "partitionUpperBound") + private Object partitionUpperBound; + + /** + * The minimum value of column specified in partitionColumnName that will + * be used for proceeding range partitioning. Type: string (or Expression + * with resultType string). + */ + @JsonProperty(value = "partitionLowerBound") + private Object partitionLowerBound; + + /** + * Get the name of the column in integer type that will be used for proceeding range partitioning. Type: string (or Expression with resultType string). + * + * @return the partitionColumnName value + */ + public Object partitionColumnName() { + return this.partitionColumnName; + } + + /** + * Set the name of the column in integer type that will be used for proceeding range partitioning. Type: string (or Expression with resultType string). + * + * @param partitionColumnName the partitionColumnName value to set + * @return the NetezzaPartitionSettings object itself. + */ + public NetezzaPartitionSettings withPartitionColumnName(Object partitionColumnName) { + this.partitionColumnName = partitionColumnName; + return this; + } + + /** + * Get the maximum value of column specified in partitionColumnName that will be used for proceeding range partitioning. Type: string (or Expression with resultType string). + * + * @return the partitionUpperBound value + */ + public Object partitionUpperBound() { + return this.partitionUpperBound; + } + + /** + * Set the maximum value of column specified in partitionColumnName that will be used for proceeding range partitioning. Type: string (or Expression with resultType string). + * + * @param partitionUpperBound the partitionUpperBound value to set + * @return the NetezzaPartitionSettings object itself. + */ + public NetezzaPartitionSettings withPartitionUpperBound(Object partitionUpperBound) { + this.partitionUpperBound = partitionUpperBound; + return this; + } + + /** + * Get the minimum value of column specified in partitionColumnName that will be used for proceeding range partitioning. Type: string (or Expression with resultType string). + * + * @return the partitionLowerBound value + */ + public Object partitionLowerBound() { + return this.partitionLowerBound; + } + + /** + * Set the minimum value of column specified in partitionColumnName that will be used for proceeding range partitioning. Type: string (or Expression with resultType string). + * + * @param partitionLowerBound the partitionLowerBound value to set + * @return the NetezzaPartitionSettings object itself. + */ + public NetezzaPartitionSettings withPartitionLowerBound(Object partitionLowerBound) { + this.partitionLowerBound = partitionLowerBound; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/NetezzaSource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/NetezzaSource.java new file mode 100644 index 0000000000000..324d9b161dd78 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/NetezzaSource.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.v2018_06_01; + +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; + + /** + * The partition mechanism that will be used for Netezza read in parallel. + * Possible values include: 'None', 'DataSlice', 'DynamicRange'. + */ + @JsonProperty(value = "partitionOption") + private NetezzaPartitionOption partitionOption; + + /** + * The settings that will be leveraged for Netezza source partitioning. + */ + @JsonProperty(value = "partitionSettings") + private NetezzaPartitionSettings partitionSettings; + + /** + * Get a query to retrieve data from source. Type: string (or Expression with resultType string). + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set a query to retrieve data from source. Type: string (or Expression with resultType string). + * + * @param query the query value to set + * @return the NetezzaSource object itself. + */ + public NetezzaSource withQuery(Object query) { + this.query = query; + return this; + } + + /** + * Get the partition mechanism that will be used for Netezza read in parallel. Possible values include: 'None', 'DataSlice', 'DynamicRange'. + * + * @return the partitionOption value + */ + public NetezzaPartitionOption partitionOption() { + return this.partitionOption; + } + + /** + * Set the partition mechanism that will be used for Netezza read in parallel. Possible values include: 'None', 'DataSlice', 'DynamicRange'. + * + * @param partitionOption the partitionOption value to set + * @return the NetezzaSource object itself. + */ + public NetezzaSource withPartitionOption(NetezzaPartitionOption partitionOption) { + this.partitionOption = partitionOption; + return this; + } + + /** + * Get the settings that will be leveraged for Netezza source partitioning. + * + * @return the partitionSettings value + */ + public NetezzaPartitionSettings partitionSettings() { + return this.partitionSettings; + } + + /** + * Set the settings that will be leveraged for Netezza source partitioning. + * + * @param partitionSettings the partitionSettings value to set + * @return the NetezzaSource object itself. + */ + public NetezzaSource withPartitionSettings(NetezzaPartitionSettings partitionSettings) { + this.partitionSettings = partitionSettings; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/NetezzaTableDataset.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/NetezzaTableDataset.java new file mode 100644 index 0000000000000..40cda912acf84 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/NetezzaTableDataset.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DatasetInner; + +/** + * Netezza dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("NetezzaTable") +@JsonFlatten +public class NetezzaTableDataset extends DatasetInner { + /** + * The table name. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; + + /** + * Get the table name. Type: string (or Expression with resultType string). + * + * @return the tableName value + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set the table name. Type: string (or Expression with resultType string). + * + * @param tableName the tableName value to set + * @return the NetezzaTableDataset object itself. + */ + public NetezzaTableDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ODataAadServicePrincipalCredentialType.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ODataAadServicePrincipalCredentialType.java new file mode 100644 index 0000000000000..4efe835e7c552 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ODataAadServicePrincipalCredentialType.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.v2018_06_01; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for ODataAadServicePrincipalCredentialType. + */ +public final class ODataAadServicePrincipalCredentialType extends ExpandableStringEnum { + /** Static value ServicePrincipalKey for ODataAadServicePrincipalCredentialType. */ + public static final ODataAadServicePrincipalCredentialType SERVICE_PRINCIPAL_KEY = fromString("ServicePrincipalKey"); + + /** Static value ServicePrincipalCert for ODataAadServicePrincipalCredentialType. */ + public static final ODataAadServicePrincipalCredentialType SERVICE_PRINCIPAL_CERT = fromString("ServicePrincipalCert"); + + /** + * Creates or finds a ODataAadServicePrincipalCredentialType from its string representation. + * @param name a name to look for + * @return the corresponding ODataAadServicePrincipalCredentialType + */ + @JsonCreator + public static ODataAadServicePrincipalCredentialType fromString(String name) { + return fromString(name, ODataAadServicePrincipalCredentialType.class); + } + + /** + * @return known ODataAadServicePrincipalCredentialType values + */ + public static Collection values() { + return values(ODataAadServicePrincipalCredentialType.class); + } +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ODataAuthenticationType.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ODataAuthenticationType.java new file mode 100644 index 0000000000000..92644b8c5704e --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ODataAuthenticationType.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.v2018_06_01; + +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"); + + /** Static value Windows for ODataAuthenticationType. */ + public static final ODataAuthenticationType WINDOWS = fromString("Windows"); + + /** Static value AadServicePrincipal for ODataAuthenticationType. */ + public static final ODataAuthenticationType AAD_SERVICE_PRINCIPAL = fromString("AadServicePrincipal"); + + /** Static value ManagedServiceIdentity for ODataAuthenticationType. */ + public static final ODataAuthenticationType MANAGED_SERVICE_IDENTITY = fromString("ManagedServiceIdentity"); + + /** + * 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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ODataLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ODataLinkedService.java new file mode 100644 index 0000000000000..1a7dead0f2e0c --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ODataLinkedService.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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', 'Windows', 'AadServicePrincipal', + * 'ManagedServiceIdentity'. + */ + @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; + + /** + * Specify the tenant information (domain name or tenant ID) under which + * your application resides. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.tenant") + private Object tenant; + + /** + * Specify the application id of your application registered in Azure + * Active Directory. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.servicePrincipalId") + private Object servicePrincipalId; + + /** + * Specify the resource you are requesting authorization to use Directory. + * Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.aadResourceId") + private Object aadResourceId; + + /** + * Specify the credential type (key or cert) is used for service principal. + * Possible values include: 'ServicePrincipalKey', 'ServicePrincipalCert'. + */ + @JsonProperty(value = "typeProperties.aadServicePrincipalCredentialType") + private ODataAadServicePrincipalCredentialType aadServicePrincipalCredentialType; + + /** + * Specify the secret of your application registered in Azure Active + * Directory. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.servicePrincipalKey") + private SecretBase servicePrincipalKey; + + /** + * Specify the base64 encoded certificate of your application registered in + * Azure Active Directory. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.servicePrincipalEmbeddedCert") + private SecretBase servicePrincipalEmbeddedCert; + + /** + * Specify the password of your certificate if your certificate has a + * password and you are using AadServicePrincipal authentication. Type: + * string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.servicePrincipalEmbeddedCertPassword") + private SecretBase servicePrincipalEmbeddedCertPassword; + + /** + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; + + /** + * Get the URL of the OData service endpoint. Type: string (or Expression with resultType string). + * + * @return the url value + */ + public Object url() { + return this.url; + } + + /** + * Set the URL of the OData service endpoint. Type: string (or Expression with resultType string). + * + * @param url the url value to set + * @return the ODataLinkedService object itself. + */ + public ODataLinkedService withUrl(Object url) { + this.url = url; + return this; + } + + /** + * Get type of authentication used to connect to the OData service. Possible values include: 'Basic', 'Anonymous', 'Windows', 'AadServicePrincipal', 'ManagedServiceIdentity'. + * + * @return the authenticationType value + */ + public ODataAuthenticationType authenticationType() { + return this.authenticationType; + } + + /** + * Set type of authentication used to connect to the OData service. Possible values include: 'Basic', 'Anonymous', 'Windows', 'AadServicePrincipal', 'ManagedServiceIdentity'. + * + * @param authenticationType the authenticationType value to set + * @return the ODataLinkedService object itself. + */ + public ODataLinkedService withAuthenticationType(ODataAuthenticationType authenticationType) { + this.authenticationType = authenticationType; + return this; + } + + /** + * Get user name of the OData service. Type: string (or Expression with resultType string). + * + * @return the userName value + */ + public Object userName() { + return this.userName; + } + + /** + * Set user name of the OData service. Type: string (or Expression with resultType string). + * + * @param userName the userName value to set + * @return the ODataLinkedService object itself. + */ + public ODataLinkedService withUserName(Object userName) { + this.userName = userName; + return this; + } + + /** + * Get password of the OData service. + * + * @return the password value + */ + public SecretBase password() { + return this.password; + } + + /** + * Set password of the OData service. + * + * @param password the password value to set + * @return the ODataLinkedService object itself. + */ + public ODataLinkedService withPassword(SecretBase password) { + this.password = password; + return this; + } + + /** + * Get specify the tenant information (domain name or tenant ID) under which your application resides. Type: string (or Expression with resultType string). + * + * @return the tenant value + */ + public Object tenant() { + return this.tenant; + } + + /** + * Set specify the tenant information (domain name or tenant ID) under which your application resides. Type: string (or Expression with resultType string). + * + * @param tenant the tenant value to set + * @return the ODataLinkedService object itself. + */ + public ODataLinkedService withTenant(Object tenant) { + this.tenant = tenant; + return this; + } + + /** + * Get specify the application id of your application registered in Azure Active Directory. Type: string (or Expression with resultType string). + * + * @return the servicePrincipalId value + */ + public Object servicePrincipalId() { + return this.servicePrincipalId; + } + + /** + * Set specify the application id of your application registered in Azure Active Directory. Type: string (or Expression with resultType string). + * + * @param servicePrincipalId the servicePrincipalId value to set + * @return the ODataLinkedService object itself. + */ + public ODataLinkedService withServicePrincipalId(Object servicePrincipalId) { + this.servicePrincipalId = servicePrincipalId; + return this; + } + + /** + * Get specify the resource you are requesting authorization to use Directory. Type: string (or Expression with resultType string). + * + * @return the aadResourceId value + */ + public Object aadResourceId() { + return this.aadResourceId; + } + + /** + * Set specify the resource you are requesting authorization to use Directory. Type: string (or Expression with resultType string). + * + * @param aadResourceId the aadResourceId value to set + * @return the ODataLinkedService object itself. + */ + public ODataLinkedService withAadResourceId(Object aadResourceId) { + this.aadResourceId = aadResourceId; + return this; + } + + /** + * Get specify the credential type (key or cert) is used for service principal. Possible values include: 'ServicePrincipalKey', 'ServicePrincipalCert'. + * + * @return the aadServicePrincipalCredentialType value + */ + public ODataAadServicePrincipalCredentialType aadServicePrincipalCredentialType() { + return this.aadServicePrincipalCredentialType; + } + + /** + * Set specify the credential type (key or cert) is used for service principal. Possible values include: 'ServicePrincipalKey', 'ServicePrincipalCert'. + * + * @param aadServicePrincipalCredentialType the aadServicePrincipalCredentialType value to set + * @return the ODataLinkedService object itself. + */ + public ODataLinkedService withAadServicePrincipalCredentialType(ODataAadServicePrincipalCredentialType aadServicePrincipalCredentialType) { + this.aadServicePrincipalCredentialType = aadServicePrincipalCredentialType; + return this; + } + + /** + * Get specify the secret of your application registered in Azure Active Directory. Type: string (or Expression with resultType string). + * + * @return the servicePrincipalKey value + */ + public SecretBase servicePrincipalKey() { + return this.servicePrincipalKey; + } + + /** + * Set specify the secret of your application registered in Azure Active Directory. Type: string (or Expression with resultType string). + * + * @param servicePrincipalKey the servicePrincipalKey value to set + * @return the ODataLinkedService object itself. + */ + public ODataLinkedService withServicePrincipalKey(SecretBase servicePrincipalKey) { + this.servicePrincipalKey = servicePrincipalKey; + return this; + } + + /** + * Get specify the base64 encoded certificate of your application registered in Azure Active Directory. Type: string (or Expression with resultType string). + * + * @return the servicePrincipalEmbeddedCert value + */ + public SecretBase servicePrincipalEmbeddedCert() { + return this.servicePrincipalEmbeddedCert; + } + + /** + * Set specify the base64 encoded certificate of your application registered in Azure Active Directory. Type: string (or Expression with resultType string). + * + * @param servicePrincipalEmbeddedCert the servicePrincipalEmbeddedCert value to set + * @return the ODataLinkedService object itself. + */ + public ODataLinkedService withServicePrincipalEmbeddedCert(SecretBase servicePrincipalEmbeddedCert) { + this.servicePrincipalEmbeddedCert = servicePrincipalEmbeddedCert; + return this; + } + + /** + * Get specify the password of your certificate if your certificate has a password and you are using AadServicePrincipal authentication. Type: string (or Expression with resultType string). + * + * @return the servicePrincipalEmbeddedCertPassword value + */ + public SecretBase servicePrincipalEmbeddedCertPassword() { + return this.servicePrincipalEmbeddedCertPassword; + } + + /** + * Set specify the password of your certificate if your certificate has a password and you are using AadServicePrincipal authentication. Type: string (or Expression with resultType string). + * + * @param servicePrincipalEmbeddedCertPassword the servicePrincipalEmbeddedCertPassword value to set + * @return the ODataLinkedService object itself. + */ + public ODataLinkedService withServicePrincipalEmbeddedCertPassword(SecretBase servicePrincipalEmbeddedCertPassword) { + this.servicePrincipalEmbeddedCertPassword = servicePrincipalEmbeddedCertPassword; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the ODataLinkedService object itself. + */ + public ODataLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ODataResourceDataset.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ODataResourceDataset.java new file mode 100644 index 0000000000000..31a1f2d067359 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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 OData resource path. Type: string (or Expression with resultType string). + * + * @return the path value + */ + public Object path() { + return this.path; + } + + /** + * Set the OData resource path. Type: string (or Expression with resultType string). + * + * @param path the path value to set + * @return the ODataResourceDataset object itself. + */ + public ODataResourceDataset withPath(Object path) { + this.path = path; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ODataSource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ODataSource.java new file mode 100644 index 0000000000000..37249fba90249 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ODataSource.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity source for OData source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("ODataSource") +public class ODataSource extends CopySource { + /** + * OData query. For example, "$top=1". Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "query") + private Object query; + + /** + * Get oData query. For example, "$top=1". Type: string (or Expression with resultType string). + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set oData query. For example, "$top=1". Type: string (or Expression with resultType string). + * + * @param query the query value to set + * @return the ODataSource object itself. + */ + public ODataSource withQuery(Object query) { + this.query = query; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/OdbcLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/OdbcLinkedService.java new file mode 100644 index 0000000000000..55f55c2b3f939 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/OdbcLinkedService.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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. Type: string, SecureString or + * AzureKeyVaultSecretReference. + */ + @JsonProperty(value = "typeProperties.connectionString", required = true) + private Object connectionString; + + /** + * Type of authentication used to connect to the ODBC data store. Possible + * values are: Anonymous and Basic. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "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 non-access credential portion of the connection string as well as an optional encrypted credential. Type: string, SecureString or AzureKeyVaultSecretReference. + * + * @return the connectionString value + */ + public Object connectionString() { + return this.connectionString; + } + + /** + * Set the non-access credential portion of the connection string as well as an optional encrypted credential. Type: string, SecureString or AzureKeyVaultSecretReference. + * + * @param connectionString the connectionString value to set + * @return the OdbcLinkedService object itself. + */ + public OdbcLinkedService withConnectionString(Object connectionString) { + this.connectionString = connectionString; + return this; + } + + /** + * Get type of authentication used to connect to the ODBC data store. Possible values are: Anonymous and Basic. Type: string (or Expression with resultType string). + * + * @return the authenticationType value + */ + public Object authenticationType() { + return this.authenticationType; + } + + /** + * Set type of authentication used to connect to the ODBC data store. Possible values are: Anonymous and Basic. Type: string (or Expression with resultType string). + * + * @param authenticationType the authenticationType value to set + * @return the OdbcLinkedService object itself. + */ + public OdbcLinkedService withAuthenticationType(Object authenticationType) { + this.authenticationType = authenticationType; + return this; + } + + /** + * Get the access credential portion of the connection string specified in driver-specific property-value format. + * + * @return the credential value + */ + public SecretBase credential() { + return this.credential; + } + + /** + * Set the access credential portion of the connection string specified in driver-specific property-value format. + * + * @param credential the credential value to set + * @return the OdbcLinkedService object itself. + */ + public OdbcLinkedService withCredential(SecretBase credential) { + this.credential = credential; + return this; + } + + /** + * Get user name for Basic authentication. Type: string (or Expression with resultType string). + * + * @return the userName value + */ + public Object userName() { + return this.userName; + } + + /** + * Set user name for Basic authentication. Type: string (or Expression with resultType string). + * + * @param userName the userName value to set + * @return the OdbcLinkedService object itself. + */ + public OdbcLinkedService withUserName(Object userName) { + this.userName = userName; + return this; + } + + /** + * Get password for Basic authentication. + * + * @return the password value + */ + public SecretBase password() { + return this.password; + } + + /** + * Set password for Basic authentication. + * + * @param password the password value to set + * @return the OdbcLinkedService object itself. + */ + public OdbcLinkedService withPassword(SecretBase password) { + this.password = password; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the OdbcLinkedService object itself. + */ + public OdbcLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/OdbcSink.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/OdbcSink.java new file mode 100644 index 0000000000000..b2d4aa3819ffe --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 a query to execute before starting the copy. Type: string (or Expression with resultType string). + * + * @return the preCopyScript value + */ + public Object preCopyScript() { + return this.preCopyScript; + } + + /** + * Set a query to execute before starting the copy. Type: string (or Expression with resultType string). + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/OdbcSource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/OdbcSource.java new file mode 100644 index 0000000000000..e7b931ffe715f --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/OdbcSource.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity source for ODBC databases. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("OdbcSource") +public class OdbcSource extends CopySource { + /** + * Database query. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "query") + private Object query; + + /** + * Get database query. Type: string (or Expression with resultType string). + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set database query. Type: string (or Expression with resultType string). + * + * @param query the query value to set + * @return the OdbcSource object itself. + */ + public OdbcSource withQuery(Object query) { + this.query = query; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/OdbcTableDataset.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/OdbcTableDataset.java new file mode 100644 index 0000000000000..59d2dda1c04f0 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/OdbcTableDataset.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DatasetInner; + +/** + * The ODBC table dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("OdbcTable") +@JsonFlatten +public class OdbcTableDataset extends DatasetInner { + /** + * The ODBC table name. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; + + /** + * Get the ODBC table name. Type: string (or Expression with resultType string). + * + * @return the tableName value + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set the ODBC table name. Type: string (or Expression with resultType string). + * + * @param tableName the tableName value to set + * @return the OdbcTableDataset object itself. + */ + public OdbcTableDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/Office365Dataset.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/Office365Dataset.java new file mode 100644 index 0000000000000..cf0aa1cf1628b --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/Office365Dataset.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DatasetInner; + +/** + * The Office365 account. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("Office365Table") +@JsonFlatten +public class Office365Dataset extends DatasetInner { + /** + * Name of the dataset to extract from Office 365. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.tableName", required = true) + private Object tableName; + + /** + * A predicate expression that can be used to filter the specific rows to + * extract from Office 365. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.predicate") + private Object predicate; + + /** + * Get name of the dataset to extract from Office 365. Type: string (or Expression with resultType string). + * + * @return the tableName value + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set name of the dataset to extract from Office 365. Type: string (or Expression with resultType string). + * + * @param tableName the tableName value to set + * @return the Office365Dataset object itself. + */ + public Office365Dataset withTableName(Object tableName) { + this.tableName = tableName; + return this; + } + + /** + * Get a predicate expression that can be used to filter the specific rows to extract from Office 365. Type: string (or Expression with resultType string). + * + * @return the predicate value + */ + public Object predicate() { + return this.predicate; + } + + /** + * Set a predicate expression that can be used to filter the specific rows to extract from Office 365. Type: string (or Expression with resultType string). + * + * @param predicate the predicate value to set + * @return the Office365Dataset object itself. + */ + public Office365Dataset withPredicate(Object predicate) { + this.predicate = predicate; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/Office365LinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/Office365LinkedService.java new file mode 100644 index 0000000000000..7c0b56e2f44a5 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/Office365LinkedService.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.LinkedServiceInner; + +/** + * Office365 linked service. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("Office365") +@JsonFlatten +public class Office365LinkedService extends LinkedServiceInner { + /** + * Azure tenant ID to which the Office 365 account belongs. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.office365TenantId", required = true) + private Object office365TenantId; + + /** + * Specify the tenant information under which your Azure AD web application + * resides. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.servicePrincipalTenantId", required = true) + private Object servicePrincipalTenantId; + + /** + * Specify the application's client ID. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.servicePrincipalId", required = true) + private Object servicePrincipalId; + + /** + * Specify the application's key. + */ + @JsonProperty(value = "typeProperties.servicePrincipalKey", required = true) + private SecretBase servicePrincipalKey; + + /** + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; + + /** + * Get azure tenant ID to which the Office 365 account belongs. Type: string (or Expression with resultType string). + * + * @return the office365TenantId value + */ + public Object office365TenantId() { + return this.office365TenantId; + } + + /** + * Set azure tenant ID to which the Office 365 account belongs. Type: string (or Expression with resultType string). + * + * @param office365TenantId the office365TenantId value to set + * @return the Office365LinkedService object itself. + */ + public Office365LinkedService withOffice365TenantId(Object office365TenantId) { + this.office365TenantId = office365TenantId; + return this; + } + + /** + * Get specify the tenant information under which your Azure AD web application resides. Type: string (or Expression with resultType string). + * + * @return the servicePrincipalTenantId value + */ + public Object servicePrincipalTenantId() { + return this.servicePrincipalTenantId; + } + + /** + * Set specify the tenant information under which your Azure AD web application resides. Type: string (or Expression with resultType string). + * + * @param servicePrincipalTenantId the servicePrincipalTenantId value to set + * @return the Office365LinkedService object itself. + */ + public Office365LinkedService withServicePrincipalTenantId(Object servicePrincipalTenantId) { + this.servicePrincipalTenantId = servicePrincipalTenantId; + return this; + } + + /** + * Get specify the application's client ID. Type: string (or Expression with resultType string). + * + * @return the servicePrincipalId value + */ + public Object servicePrincipalId() { + return this.servicePrincipalId; + } + + /** + * Set specify the application's client ID. Type: string (or Expression with resultType string). + * + * @param servicePrincipalId the servicePrincipalId value to set + * @return the Office365LinkedService object itself. + */ + public Office365LinkedService withServicePrincipalId(Object servicePrincipalId) { + this.servicePrincipalId = servicePrincipalId; + return this; + } + + /** + * Get specify the application's key. + * + * @return the servicePrincipalKey value + */ + public SecretBase servicePrincipalKey() { + return this.servicePrincipalKey; + } + + /** + * Set specify the application's key. + * + * @param servicePrincipalKey the servicePrincipalKey value to set + * @return the Office365LinkedService object itself. + */ + public Office365LinkedService withServicePrincipalKey(SecretBase servicePrincipalKey) { + this.servicePrincipalKey = servicePrincipalKey; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the Office365LinkedService object itself. + */ + public Office365LinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/Office365Source.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/Office365Source.java new file mode 100644 index 0000000000000..7c1babfed200d --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/Office365Source.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity source for an Office365 service. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("Office365Source") +public class Office365Source extends CopySource { +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/Operation.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/Operation.java new file mode 100644 index 0000000000000..d9d13e7209a5a --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/Operation.java @@ -0,0 +1,40 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DataFactoryManager; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.OperationInner; + +/** + * Type representing Operation. + */ +public interface Operation extends HasInner, HasManager { + /** + * @return the display value. + */ + OperationDisplay display(); + + /** + * @return the name value. + */ + String name(); + + /** + * @return the origin value. + */ + String origin(); + + /** + * @return the serviceSpecification value. + */ + OperationServiceSpecification serviceSpecification(); + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/OperationDisplay.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/OperationDisplay.java new file mode 100644 index 0000000000000..498fd606b79a2 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 of the operation. + * + * @return the description value + */ + public String description() { + return this.description; + } + + /** + * Set the description of the operation. + * + * @param description the description value to set + * @return the OperationDisplay object itself. + */ + public OperationDisplay withDescription(String description) { + this.description = description; + return this; + } + + /** + * Get the name of the provider. + * + * @return the provider value + */ + public String provider() { + return this.provider; + } + + /** + * Set the name of the provider. + * + * @param provider the provider value to set + * @return the OperationDisplay object itself. + */ + public OperationDisplay withProvider(String provider) { + this.provider = provider; + return this; + } + + /** + * Get the name of the resource type on which the operation is performed. + * + * @return the resource value + */ + public String resource() { + return this.resource; + } + + /** + * Set the name of the resource type on which the operation is performed. + * + * @param resource the resource value to set + * @return the OperationDisplay object itself. + */ + public OperationDisplay withResource(String resource) { + this.resource = resource; + return this; + } + + /** + * Get the type of operation: get, read, delete, etc. + * + * @return the operation value + */ + public String operation() { + return this.operation; + } + + /** + * Set the type of operation: get, read, delete, etc. + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/OperationLogSpecification.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/OperationLogSpecification.java new file mode 100644 index 0000000000000..cbf76892cf717 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 of the log category. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Set the name of the log category. + * + * @param name the name value to set + * @return the OperationLogSpecification object itself. + */ + public OperationLogSpecification withName(String name) { + this.name = name; + return this; + } + + /** + * Get localized display name. + * + * @return the displayName value + */ + public String displayName() { + return this.displayName; + } + + /** + * Set localized display name. + * + * @param displayName the displayName value to set + * @return the OperationLogSpecification object itself. + */ + public OperationLogSpecification withDisplayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Get blobs created in the customer storage account, per hour. + * + * @return the blobDuration value + */ + public String blobDuration() { + return this.blobDuration; + } + + /** + * Set blobs created in the customer storage account, per hour. + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/OperationMetricAvailability.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/OperationMetricAvailability.java new file mode 100644 index 0000000000000..9a05a717acd07 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 granularity for the metric. + * + * @return the timeGrain value + */ + public String timeGrain() { + return this.timeGrain; + } + + /** + * Set the granularity for the metric. + * + * @param timeGrain the timeGrain value to set + * @return the OperationMetricAvailability object itself. + */ + public OperationMetricAvailability withTimeGrain(String timeGrain) { + this.timeGrain = timeGrain; + return this; + } + + /** + * Get blob created in the customer storage account, per hour. + * + * @return the blobDuration value + */ + public String blobDuration() { + return this.blobDuration; + } + + /** + * Set blob created in the customer storage account, per hour. + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/OperationMetricDimension.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/OperationMetricDimension.java new file mode 100644 index 0000000000000..a21e95efe05ef --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/OperationMetricDimension.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Defines the metric dimension. + */ +public class OperationMetricDimension { + /** + * The name of the dimension for the metric. + */ + @JsonProperty(value = "name") + private String name; + + /** + * The display name of the metric dimension. + */ + @JsonProperty(value = "displayName") + private String displayName; + + /** + * Whether the dimension should be exported to Azure Monitor. + */ + @JsonProperty(value = "toBeExportedForShoebox") + private Boolean toBeExportedForShoebox; + + /** + * Get the name of the dimension for the metric. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Set the name of the dimension for the metric. + * + * @param name the name value to set + * @return the OperationMetricDimension object itself. + */ + public OperationMetricDimension withName(String name) { + this.name = name; + return this; + } + + /** + * Get the display name of the metric dimension. + * + * @return the displayName value + */ + public String displayName() { + return this.displayName; + } + + /** + * Set the display name of the metric dimension. + * + * @param displayName the displayName value to set + * @return the OperationMetricDimension object itself. + */ + public OperationMetricDimension withDisplayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Get whether the dimension should be exported to Azure Monitor. + * + * @return the toBeExportedForShoebox value + */ + public Boolean toBeExportedForShoebox() { + return this.toBeExportedForShoebox; + } + + /** + * Set whether the dimension should be exported to Azure Monitor. + * + * @param toBeExportedForShoebox the toBeExportedForShoebox value to set + * @return the OperationMetricDimension object itself. + */ + public OperationMetricDimension withToBeExportedForShoebox(Boolean toBeExportedForShoebox) { + this.toBeExportedForShoebox = toBeExportedForShoebox; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/OperationMetricSpecification.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/OperationMetricSpecification.java new file mode 100644 index 0000000000000..045fc0f47df46 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/OperationMetricSpecification.java @@ -0,0 +1,278 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +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; + + /** + * Defines the metric dimension. + */ + @JsonProperty(value = "dimensions") + private List dimensions; + + /** + * Get the name of the metric. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Set the name of the metric. + * + * @param name the name value to set + * @return the OperationMetricSpecification object itself. + */ + public OperationMetricSpecification withName(String name) { + this.name = name; + return this; + } + + /** + * Get localized display name of the metric. + * + * @return the displayName value + */ + public String displayName() { + return this.displayName; + } + + /** + * Set localized display name of the metric. + * + * @param displayName the displayName value to set + * @return the OperationMetricSpecification object itself. + */ + public OperationMetricSpecification withDisplayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Get the description of the metric. + * + * @return the displayDescription value + */ + public String displayDescription() { + return this.displayDescription; + } + + /** + * Set the description of the metric. + * + * @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 that the metric is measured in. + * + * @return the unit value + */ + public String unit() { + return this.unit; + } + + /** + * Set the unit that the metric is measured in. + * + * @param unit the unit value to set + * @return the OperationMetricSpecification object itself. + */ + public OperationMetricSpecification withUnit(String unit) { + this.unit = unit; + return this; + } + + /** + * Get the type of metric aggregation. + * + * @return the aggregationType value + */ + public String aggregationType() { + return this.aggregationType; + } + + /** + * Set the type of metric aggregation. + * + * @param aggregationType the aggregationType value to set + * @return the OperationMetricSpecification object itself. + */ + public OperationMetricSpecification withAggregationType(String aggregationType) { + this.aggregationType = aggregationType; + return this; + } + + /** + * Get whether or not the service is using regional MDM accounts. + * + * @return the enableRegionalMdmAccount value + */ + public String enableRegionalMdmAccount() { + return this.enableRegionalMdmAccount; + } + + /** + * Set whether or not the service is using regional MDM accounts. + * + * @param enableRegionalMdmAccount the enableRegionalMdmAccount value to set + * @return the OperationMetricSpecification object itself. + */ + public OperationMetricSpecification withEnableRegionalMdmAccount(String enableRegionalMdmAccount) { + this.enableRegionalMdmAccount = enableRegionalMdmAccount; + return this; + } + + /** + * Get the name of the MDM account. + * + * @return the sourceMdmAccount value + */ + public String sourceMdmAccount() { + return this.sourceMdmAccount; + } + + /** + * Set the name of the MDM account. + * + * @param sourceMdmAccount the sourceMdmAccount value to set + * @return the OperationMetricSpecification object itself. + */ + public OperationMetricSpecification withSourceMdmAccount(String sourceMdmAccount) { + this.sourceMdmAccount = sourceMdmAccount; + return this; + } + + /** + * Get the name of the MDM namespace. + * + * @return the sourceMdmNamespace value + */ + public String sourceMdmNamespace() { + return this.sourceMdmNamespace; + } + + /** + * Set the name of the MDM namespace. + * + * @param sourceMdmNamespace the sourceMdmNamespace value to set + * @return the OperationMetricSpecification object itself. + */ + public OperationMetricSpecification withSourceMdmNamespace(String sourceMdmNamespace) { + this.sourceMdmNamespace = sourceMdmNamespace; + return this; + } + + /** + * Get defines how often data for metrics becomes available. + * + * @return the availabilities value + */ + public List availabilities() { + return this.availabilities; + } + + /** + * Set defines how often data for metrics becomes available. + * + * @param availabilities the availabilities value to set + * @return the OperationMetricSpecification object itself. + */ + public OperationMetricSpecification withAvailabilities(List availabilities) { + this.availabilities = availabilities; + return this; + } + + /** + * Get defines the metric dimension. + * + * @return the dimensions value + */ + public List dimensions() { + return this.dimensions; + } + + /** + * Set defines the metric dimension. + * + * @param dimensions the dimensions value to set + * @return the OperationMetricSpecification object itself. + */ + public OperationMetricSpecification withDimensions(List dimensions) { + this.dimensions = dimensions; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/OperationServiceSpecification.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/OperationServiceSpecification.java new file mode 100644 index 0000000000000..f1b97f7703322 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 details about operations related to logs. + * + * @return the logSpecifications value + */ + public List logSpecifications() { + return this.logSpecifications; + } + + /** + * Set details about operations related to logs. + * + * @param logSpecifications the logSpecifications value to set + * @return the OperationServiceSpecification object itself. + */ + public OperationServiceSpecification withLogSpecifications(List logSpecifications) { + this.logSpecifications = logSpecifications; + return this; + } + + /** + * Get details about operations related to metrics. + * + * @return the metricSpecifications value + */ + public List metricSpecifications() { + return this.metricSpecifications; + } + + /** + * Set details about operations related to metrics. + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/Operations.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/Operations.java new file mode 100644 index 0000000000000..cd03d299b1ebf --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/Operations.java @@ -0,0 +1,27 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +import rx.Observable; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.OperationsInner; +import com.microsoft.azure.arm.model.HasInner; + +/** + * Type representing Operations. + */ +public interface Operations extends HasInner { + /** + * Lists the available Azure Data Factory API operations. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable listAsync(); + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/OracleLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/OracleLinkedService.java new file mode 100644 index 0000000000000..2683929f002a4 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/OracleLinkedService.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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. Type: string, SecureString or + * AzureKeyVaultSecretReference. + */ + @JsonProperty(value = "typeProperties.connectionString", required = true) + private Object connectionString; + + /** + * The Azure key vault secret reference of password in connection string. + */ + @JsonProperty(value = "typeProperties.password") + private AzureKeyVaultSecretReference password; + + /** + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; + + /** + * Get the connection string. Type: string, SecureString or AzureKeyVaultSecretReference. + * + * @return the connectionString value + */ + public Object connectionString() { + return this.connectionString; + } + + /** + * Set the connection string. Type: string, SecureString or AzureKeyVaultSecretReference. + * + * @param connectionString the connectionString value to set + * @return the OracleLinkedService object itself. + */ + public OracleLinkedService withConnectionString(Object connectionString) { + this.connectionString = connectionString; + return this; + } + + /** + * Get the Azure key vault secret reference of password in connection string. + * + * @return the password value + */ + public AzureKeyVaultSecretReference password() { + return this.password; + } + + /** + * Set the Azure key vault secret reference of password in connection string. + * + * @param password the password value to set + * @return the OracleLinkedService object itself. + */ + public OracleLinkedService withPassword(AzureKeyVaultSecretReference password) { + this.password = password; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the OracleLinkedService object itself. + */ + public OracleLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/OraclePartitionOption.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/OraclePartitionOption.java new file mode 100644 index 0000000000000..fcd2103615156 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/OraclePartitionOption.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.v2018_06_01; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for OraclePartitionOption. + */ +public final class OraclePartitionOption extends ExpandableStringEnum { + /** Static value None for OraclePartitionOption. */ + public static final OraclePartitionOption NONE = fromString("None"); + + /** Static value PhysicalPartitionsOfTable for OraclePartitionOption. */ + public static final OraclePartitionOption PHYSICAL_PARTITIONS_OF_TABLE = fromString("PhysicalPartitionsOfTable"); + + /** Static value DynamicRange for OraclePartitionOption. */ + public static final OraclePartitionOption DYNAMIC_RANGE = fromString("DynamicRange"); + + /** + * Creates or finds a OraclePartitionOption from its string representation. + * @param name a name to look for + * @return the corresponding OraclePartitionOption + */ + @JsonCreator + public static OraclePartitionOption fromString(String name) { + return fromString(name, OraclePartitionOption.class); + } + + /** + * @return known OraclePartitionOption values + */ + public static Collection values() { + return values(OraclePartitionOption.class); + } +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/OraclePartitionSettings.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/OraclePartitionSettings.java new file mode 100644 index 0000000000000..34d089bfc2a99 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/OraclePartitionSettings.java @@ -0,0 +1,126 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The settings that will be leveraged for Oracle source partitioning. + */ +public class OraclePartitionSettings { + /** + * Names of the physical partitions of Oracle table. + */ + @JsonProperty(value = "partitionNames") + private Object partitionNames; + + /** + * The name of the column in integer type that will be used for proceeding + * range partitioning. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "partitionColumnName") + private Object partitionColumnName; + + /** + * The maximum value of column specified in partitionColumnName that will + * be used for proceeding range partitioning. Type: string (or Expression + * with resultType string). + */ + @JsonProperty(value = "partitionUpperBound") + private Object partitionUpperBound; + + /** + * The minimum value of column specified in partitionColumnName that will + * be used for proceeding range partitioning. Type: string (or Expression + * with resultType string). + */ + @JsonProperty(value = "partitionLowerBound") + private Object partitionLowerBound; + + /** + * Get names of the physical partitions of Oracle table. + * + * @return the partitionNames value + */ + public Object partitionNames() { + return this.partitionNames; + } + + /** + * Set names of the physical partitions of Oracle table. + * + * @param partitionNames the partitionNames value to set + * @return the OraclePartitionSettings object itself. + */ + public OraclePartitionSettings withPartitionNames(Object partitionNames) { + this.partitionNames = partitionNames; + return this; + } + + /** + * Get the name of the column in integer type that will be used for proceeding range partitioning. Type: string (or Expression with resultType string). + * + * @return the partitionColumnName value + */ + public Object partitionColumnName() { + return this.partitionColumnName; + } + + /** + * Set the name of the column in integer type that will be used for proceeding range partitioning. Type: string (or Expression with resultType string). + * + * @param partitionColumnName the partitionColumnName value to set + * @return the OraclePartitionSettings object itself. + */ + public OraclePartitionSettings withPartitionColumnName(Object partitionColumnName) { + this.partitionColumnName = partitionColumnName; + return this; + } + + /** + * Get the maximum value of column specified in partitionColumnName that will be used for proceeding range partitioning. Type: string (or Expression with resultType string). + * + * @return the partitionUpperBound value + */ + public Object partitionUpperBound() { + return this.partitionUpperBound; + } + + /** + * Set the maximum value of column specified in partitionColumnName that will be used for proceeding range partitioning. Type: string (or Expression with resultType string). + * + * @param partitionUpperBound the partitionUpperBound value to set + * @return the OraclePartitionSettings object itself. + */ + public OraclePartitionSettings withPartitionUpperBound(Object partitionUpperBound) { + this.partitionUpperBound = partitionUpperBound; + return this; + } + + /** + * Get the minimum value of column specified in partitionColumnName that will be used for proceeding range partitioning. Type: string (or Expression with resultType string). + * + * @return the partitionLowerBound value + */ + public Object partitionLowerBound() { + return this.partitionLowerBound; + } + + /** + * Set the minimum value of column specified in partitionColumnName that will be used for proceeding range partitioning. Type: string (or Expression with resultType string). + * + * @param partitionLowerBound the partitionLowerBound value to set + * @return the OraclePartitionSettings object itself. + */ + public OraclePartitionSettings withPartitionLowerBound(Object partitionLowerBound) { + this.partitionLowerBound = partitionLowerBound; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/OracleServiceCloudLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/OracleServiceCloudLinkedService.java new file mode 100644 index 0000000000000..7bb9e194f7765 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/OracleServiceCloudLinkedService.java @@ -0,0 +1,216 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.LinkedServiceInner; + +/** + * Oracle Service Cloud linked service. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("OracleServiceCloud") +@JsonFlatten +public class OracleServiceCloudLinkedService extends LinkedServiceInner { + /** + * The URL of the Oracle Service Cloud instance. + */ + @JsonProperty(value = "typeProperties.host", required = true) + private Object host; + + /** + * The user name that you use to access Oracle Service Cloud server. + */ + @JsonProperty(value = "typeProperties.username", required = true) + private Object username; + + /** + * The password corresponding to the user name that you provided in the + * username key. + */ + @JsonProperty(value = "typeProperties.password", required = true) + private SecretBase password; + + /** + * Specifies whether the data source endpoints are encrypted using HTTPS. + * The default value is true. Type: boolean (or Expression with resultType + * boolean). + */ + @JsonProperty(value = "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 URL of the Oracle Service Cloud instance. + * + * @return the host value + */ + public Object host() { + return this.host; + } + + /** + * Set the URL of the Oracle Service Cloud instance. + * + * @param host the host value to set + * @return the OracleServiceCloudLinkedService object itself. + */ + public OracleServiceCloudLinkedService withHost(Object host) { + this.host = host; + return this; + } + + /** + * Get the user name that you use to access Oracle Service Cloud server. + * + * @return the username value + */ + public Object username() { + return this.username; + } + + /** + * Set the user name that you use to access Oracle Service Cloud server. + * + * @param username the username value to set + * @return the OracleServiceCloudLinkedService object itself. + */ + public OracleServiceCloudLinkedService withUsername(Object username) { + this.username = username; + return this; + } + + /** + * Get the password corresponding to the user name that you provided in the username key. + * + * @return the password value + */ + public SecretBase password() { + return this.password; + } + + /** + * Set the password corresponding to the user name that you provided in the username key. + * + * @param password the password value to set + * @return the OracleServiceCloudLinkedService object itself. + */ + public OracleServiceCloudLinkedService withPassword(SecretBase password) { + this.password = password; + return this; + } + + /** + * Get specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. Type: boolean (or Expression with resultType boolean). + * + * @return the useEncryptedEndpoints value + */ + public Object useEncryptedEndpoints() { + return this.useEncryptedEndpoints; + } + + /** + * Set specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. Type: boolean (or Expression with resultType boolean). + * + * @param useEncryptedEndpoints the useEncryptedEndpoints value to set + * @return the OracleServiceCloudLinkedService object itself. + */ + public OracleServiceCloudLinkedService withUseEncryptedEndpoints(Object useEncryptedEndpoints) { + this.useEncryptedEndpoints = useEncryptedEndpoints; + return this; + } + + /** + * Get specifies whether to require the host name in the server's certificate to match the host name of the server when connecting over SSL. The default value is true. Type: boolean (or Expression with resultType boolean). + * + * @return the useHostVerification value + */ + public Object useHostVerification() { + return this.useHostVerification; + } + + /** + * Set specifies whether to require the host name in the server's certificate to match the host name of the server when connecting over SSL. The default value is true. Type: boolean (or Expression with resultType boolean). + * + * @param useHostVerification the useHostVerification value to set + * @return the OracleServiceCloudLinkedService object itself. + */ + public OracleServiceCloudLinkedService withUseHostVerification(Object useHostVerification) { + this.useHostVerification = useHostVerification; + return this; + } + + /** + * Get specifies whether to verify the identity of the server when connecting over SSL. The default value is true. Type: boolean (or Expression with resultType boolean). + * + * @return the usePeerVerification value + */ + public Object usePeerVerification() { + return this.usePeerVerification; + } + + /** + * Set specifies whether to verify the identity of the server when connecting over SSL. The default value is true. Type: boolean (or Expression with resultType boolean). + * + * @param usePeerVerification the usePeerVerification value to set + * @return the OracleServiceCloudLinkedService object itself. + */ + public OracleServiceCloudLinkedService withUsePeerVerification(Object usePeerVerification) { + this.usePeerVerification = usePeerVerification; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the OracleServiceCloudLinkedService object itself. + */ + public OracleServiceCloudLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/OracleServiceCloudObjectDataset.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/OracleServiceCloudObjectDataset.java new file mode 100644 index 0000000000000..2d8c88c98bd82 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/OracleServiceCloudObjectDataset.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DatasetInner; + +/** + * Oracle Service Cloud dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("OracleServiceCloudObject") +@JsonFlatten +public class OracleServiceCloudObjectDataset extends DatasetInner { + /** + * The table name. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; + + /** + * Get the table name. Type: string (or Expression with resultType string). + * + * @return the tableName value + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set the table name. Type: string (or Expression with resultType string). + * + * @param tableName the tableName value to set + * @return the OracleServiceCloudObjectDataset object itself. + */ + public OracleServiceCloudObjectDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/OracleServiceCloudSource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/OracleServiceCloudSource.java new file mode 100644 index 0000000000000..121a1419531f5 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/OracleServiceCloudSource.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Oracle Service Cloud source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("OracleServiceCloudSource") +public class OracleServiceCloudSource extends CopySource { + /** + * A query to retrieve data from source. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "query") + private Object query; + + /** + * Get a query to retrieve data from source. Type: string (or Expression with resultType string). + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set a query to retrieve data from source. Type: string (or Expression with resultType string). + * + * @param query the query value to set + * @return the OracleServiceCloudSource object itself. + */ + public OracleServiceCloudSource withQuery(Object query) { + this.query = query; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/OracleSink.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/OracleSink.java new file mode 100644 index 0000000000000..8a93d1c42ab9a --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 sQL pre-copy script. Type: string (or Expression with resultType string). + * + * @return the preCopyScript value + */ + public Object preCopyScript() { + return this.preCopyScript; + } + + /** + * Set sQL pre-copy script. Type: string (or Expression with resultType string). + * + * @param preCopyScript the preCopyScript value to set + * @return the OracleSink object itself. + */ + public OracleSink withPreCopyScript(Object preCopyScript) { + this.preCopyScript = preCopyScript; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/OracleSource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/OracleSource.java new file mode 100644 index 0000000000000..75117d13ee4f0 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/OracleSource.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.v2018_06_01; + +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; + + /** + * The partition mechanism that will be used for Oracle read in parallel. + * Possible values include: 'None', 'PhysicalPartitionsOfTable', + * 'DynamicRange'. + */ + @JsonProperty(value = "partitionOption") + private OraclePartitionOption partitionOption; + + /** + * The settings that will be leveraged for Oracle source partitioning. + */ + @JsonProperty(value = "partitionSettings") + private OraclePartitionSettings partitionSettings; + + /** + * Get oracle reader query. Type: string (or Expression with resultType string). + * + * @return the oracleReaderQuery value + */ + public Object oracleReaderQuery() { + return this.oracleReaderQuery; + } + + /** + * Set oracle reader query. Type: string (or Expression with resultType string). + * + * @param oracleReaderQuery the oracleReaderQuery value to set + * @return the OracleSource object itself. + */ + public OracleSource withOracleReaderQuery(Object oracleReaderQuery) { + this.oracleReaderQuery = oracleReaderQuery; + return this; + } + + /** + * Get query timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + * + * @return the queryTimeout value + */ + public Object queryTimeout() { + return this.queryTimeout; + } + + /** + * Set query timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + * + * @param queryTimeout the queryTimeout value to set + * @return the OracleSource object itself. + */ + public OracleSource withQueryTimeout(Object queryTimeout) { + this.queryTimeout = queryTimeout; + return this; + } + + /** + * Get the partition mechanism that will be used for Oracle read in parallel. Possible values include: 'None', 'PhysicalPartitionsOfTable', 'DynamicRange'. + * + * @return the partitionOption value + */ + public OraclePartitionOption partitionOption() { + return this.partitionOption; + } + + /** + * Set the partition mechanism that will be used for Oracle read in parallel. Possible values include: 'None', 'PhysicalPartitionsOfTable', 'DynamicRange'. + * + * @param partitionOption the partitionOption value to set + * @return the OracleSource object itself. + */ + public OracleSource withPartitionOption(OraclePartitionOption partitionOption) { + this.partitionOption = partitionOption; + return this; + } + + /** + * Get the settings that will be leveraged for Oracle source partitioning. + * + * @return the partitionSettings value + */ + public OraclePartitionSettings partitionSettings() { + return this.partitionSettings; + } + + /** + * Set the settings that will be leveraged for Oracle source partitioning. + * + * @param partitionSettings the partitionSettings value to set + * @return the OracleSource object itself. + */ + public OracleSource withPartitionSettings(OraclePartitionSettings partitionSettings) { + this.partitionSettings = partitionSettings; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/OracleTableDataset.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/OracleTableDataset.java new file mode 100644 index 0000000000000..f980380dac83e --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/OracleTableDataset.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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 { + /** + * This property will be retired. Please consider using schema + table + * properties instead. + */ + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; + + /** + * The schema name of the on-premises Oracle database. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.schema") + private Object oracleTableDatasetSchema; + + /** + * The table name of the on-premises Oracle database. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.table") + private Object table; + + /** + * Get this property will be retired. Please consider using schema + table properties instead. + * + * @return the tableName value + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set this property will be retired. Please consider using schema + table properties instead. + * + * @param tableName the tableName value to set + * @return the OracleTableDataset object itself. + */ + public OracleTableDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; + } + + /** + * Get the schema name of the on-premises Oracle database. Type: string (or Expression with resultType string). + * + * @return the oracleTableDatasetSchema value + */ + public Object oracleTableDatasetSchema() { + return this.oracleTableDatasetSchema; + } + + /** + * Set the schema name of the on-premises Oracle database. Type: string (or Expression with resultType string). + * + * @param oracleTableDatasetSchema the oracleTableDatasetSchema value to set + * @return the OracleTableDataset object itself. + */ + public OracleTableDataset withOracleTableDatasetSchema(Object oracleTableDatasetSchema) { + this.oracleTableDatasetSchema = oracleTableDatasetSchema; + return this; + } + + /** + * Get the table name of the on-premises Oracle database. Type: string (or Expression with resultType string). + * + * @return the table value + */ + public Object table() { + return this.table; + } + + /** + * Set the table name of the on-premises Oracle database. Type: string (or Expression with resultType string). + * + * @param table the table value to set + * @return the OracleTableDataset object itself. + */ + public OracleTableDataset withTable(Object table) { + this.table = table; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/OrcFormat.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/OrcFormat.java new file mode 100644 index 0000000000000..b4d1940f7dfc4 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ParameterSpecification.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ParameterSpecification.java new file mode 100644 index 0000000000000..3c5f36133fc5e --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 parameter type. Possible values include: 'Object', 'String', 'Int', 'Float', 'Bool', 'Array', 'SecureString'. + * + * @return the type value + */ + public ParameterType type() { + return this.type; + } + + /** + * Set parameter type. Possible values include: 'Object', 'String', 'Int', 'Float', 'Bool', 'Array', 'SecureString'. + * + * @param type the type value to set + * @return the ParameterSpecification object itself. + */ + public ParameterSpecification withType(ParameterType type) { + this.type = type; + return this; + } + + /** + * Get default value of parameter. + * + * @return the defaultValue value + */ + public Object defaultValue() { + return this.defaultValue; + } + + /** + * Set default value of parameter. + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ParameterType.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ParameterType.java new file mode 100644 index 0000000000000..184147dd9a806 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ParquetDataset.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ParquetDataset.java new file mode 100644 index 0000000000000..acd93b974b25a --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ParquetDataset.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DatasetInner; + +/** + * Parquet dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("Parquet") +@JsonFlatten +public class ParquetDataset extends DatasetInner { + /** + * The location of the parquet storage. + */ + @JsonProperty(value = "typeProperties.location", required = true) + private DatasetLocation location; + + /** + * The compressionCodec property. + */ + @JsonProperty(value = "typeProperties.compressionCodec") + private Object compressionCodec; + + /** + * Get the location of the parquet storage. + * + * @return the location value + */ + public DatasetLocation location() { + return this.location; + } + + /** + * Set the location of the parquet storage. + * + * @param location the location value to set + * @return the ParquetDataset object itself. + */ + public ParquetDataset withLocation(DatasetLocation location) { + this.location = location; + return this; + } + + /** + * Get the compressionCodec value. + * + * @return the compressionCodec value + */ + public Object compressionCodec() { + return this.compressionCodec; + } + + /** + * Set the compressionCodec value. + * + * @param compressionCodec the compressionCodec value to set + * @return the ParquetDataset object itself. + */ + public ParquetDataset withCompressionCodec(Object compressionCodec) { + this.compressionCodec = compressionCodec; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ParquetFormat.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ParquetFormat.java new file mode 100644 index 0000000000000..b4091ba23f935 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ParquetSink.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ParquetSink.java new file mode 100644 index 0000000000000..426705902420a --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ParquetSink.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Parquet sink. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("ParquetSink") +public class ParquetSink extends CopySink { + /** + * Parquet store settings. + */ + @JsonProperty(value = "storeSettings") + private StoreWriteSettings storeSettings; + + /** + * Get parquet store settings. + * + * @return the storeSettings value + */ + public StoreWriteSettings storeSettings() { + return this.storeSettings; + } + + /** + * Set parquet store settings. + * + * @param storeSettings the storeSettings value to set + * @return the ParquetSink object itself. + */ + public ParquetSink withStoreSettings(StoreWriteSettings storeSettings) { + this.storeSettings = storeSettings; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ParquetSource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ParquetSource.java new file mode 100644 index 0000000000000..d6f883bf3cc09 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ParquetSource.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Parquet source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("ParquetSource") +public class ParquetSource extends CopySource { + /** + * Parquet store settings. + */ + @JsonProperty(value = "storeSettings") + private StoreReadSettings storeSettings; + + /** + * Get parquet store settings. + * + * @return the storeSettings value + */ + public StoreReadSettings storeSettings() { + return this.storeSettings; + } + + /** + * Set parquet store settings. + * + * @param storeSettings the storeSettings value to set + * @return the ParquetSource object itself. + */ + public ParquetSource withStoreSettings(StoreReadSettings storeSettings) { + this.storeSettings = storeSettings; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PaypalLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PaypalLinkedService.java new file mode 100644 index 0000000000000..c4cdab1907f8d --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.LinkedServiceInner; + +/** + * Paypal Service 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 URL of the PayPal instance. (i.e. api.sandbox.paypal.com). + * + * @return the host value + */ + public Object host() { + return this.host; + } + + /** + * Set the URL of the PayPal instance. (i.e. api.sandbox.paypal.com). + * + * @param host the host value to set + * @return the PaypalLinkedService object itself. + */ + public PaypalLinkedService withHost(Object host) { + this.host = host; + return this; + } + + /** + * Get the client ID associated with your PayPal application. + * + * @return the clientId value + */ + public Object clientId() { + return this.clientId; + } + + /** + * Set the client ID associated with your PayPal application. + * + * @param clientId the clientId value to set + * @return the PaypalLinkedService object itself. + */ + public PaypalLinkedService withClientId(Object clientId) { + this.clientId = clientId; + return this; + } + + /** + * Get the client secret associated with your PayPal application. + * + * @return the clientSecret value + */ + public SecretBase clientSecret() { + return this.clientSecret; + } + + /** + * Set the client secret associated with your PayPal application. + * + * @param clientSecret the clientSecret value to set + * @return the PaypalLinkedService object itself. + */ + public PaypalLinkedService withClientSecret(SecretBase clientSecret) { + this.clientSecret = clientSecret; + return this; + } + + /** + * Get specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. + * + * @return the useEncryptedEndpoints value + */ + public Object useEncryptedEndpoints() { + return this.useEncryptedEndpoints; + } + + /** + * Set specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. + * + * @param useEncryptedEndpoints the useEncryptedEndpoints value to set + * @return the PaypalLinkedService object itself. + */ + public PaypalLinkedService withUseEncryptedEndpoints(Object useEncryptedEndpoints) { + this.useEncryptedEndpoints = useEncryptedEndpoints; + return this; + } + + /** + * Get specifies whether to require the host name in the server's certificate to match the host name of the server when connecting over SSL. The default value is true. + * + * @return the useHostVerification value + */ + public Object useHostVerification() { + return this.useHostVerification; + } + + /** + * Set specifies whether to require the host name in the server's certificate to match the host name of the server when connecting over SSL. The default value is true. + * + * @param useHostVerification the useHostVerification value to set + * @return the PaypalLinkedService object itself. + */ + public PaypalLinkedService withUseHostVerification(Object useHostVerification) { + this.useHostVerification = useHostVerification; + return this; + } + + /** + * Get specifies whether to verify the identity of the server when connecting over SSL. The default value is true. + * + * @return the usePeerVerification value + */ + public Object usePeerVerification() { + return this.usePeerVerification; + } + + /** + * Set specifies whether to verify the identity of the server when connecting over SSL. The default value is true. + * + * @param usePeerVerification the usePeerVerification value to set + * @return the PaypalLinkedService object itself. + */ + public PaypalLinkedService withUsePeerVerification(Object usePeerVerification) { + this.usePeerVerification = usePeerVerification; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the PaypalLinkedService object itself. + */ + public PaypalLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PaypalObjectDataset.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PaypalObjectDataset.java new file mode 100644 index 0000000000000..0449751310691 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PaypalObjectDataset.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DatasetInner; + +/** + * Paypal Service dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("PaypalObject") +@JsonFlatten +public class PaypalObjectDataset extends DatasetInner { + /** + * The table name. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; + + /** + * Get the table name. Type: string (or Expression with resultType string). + * + * @return the tableName value + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set the table name. Type: string (or Expression with resultType string). + * + * @param tableName the tableName value to set + * @return the PaypalObjectDataset object itself. + */ + public PaypalObjectDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PaypalSource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PaypalSource.java new file mode 100644 index 0000000000000..1e630cedf5fa1 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Paypal Service 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 a query to retrieve data from source. Type: string (or Expression with resultType string). + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set a query to retrieve data from source. Type: string (or Expression with resultType string). + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PhoenixAuthenticationType.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PhoenixAuthenticationType.java new file mode 100644 index 0000000000000..bcf9dfe78e3d0 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PhoenixLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PhoenixLinkedService.java new file mode 100644 index 0000000000000..3097308b48ccf --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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 IP address or host name of the Phoenix server. (i.e. 192.168.222.160). + * + * @return the host value + */ + public Object host() { + return this.host; + } + + /** + * Set the IP address or host name of the Phoenix server. (i.e. 192.168.222.160). + * + * @param host the host value to set + * @return the PhoenixLinkedService object itself. + */ + public PhoenixLinkedService withHost(Object host) { + this.host = host; + return this; + } + + /** + * Get the TCP port that the Phoenix server uses to listen for client connections. The default value is 8765. + * + * @return the port value + */ + public Object port() { + return this.port; + } + + /** + * Set the TCP port that the Phoenix server uses to listen for client connections. The default value is 8765. + * + * @param port the port value to set + * @return the PhoenixLinkedService object itself. + */ + public PhoenixLinkedService withPort(Object port) { + this.port = port; + return this; + } + + /** + * Get the partial URL corresponding to the Phoenix server. (i.e. /gateway/sandbox/phoenix/version). The default value is hbasephoenix if using WindowsAzureHDInsightService. + * + * @return the httpPath value + */ + public Object httpPath() { + return this.httpPath; + } + + /** + * Set the partial URL corresponding to the Phoenix server. (i.e. /gateway/sandbox/phoenix/version). The default value is hbasephoenix if using WindowsAzureHDInsightService. + * + * @param httpPath the httpPath value to set + * @return the PhoenixLinkedService object itself. + */ + public PhoenixLinkedService withHttpPath(Object httpPath) { + this.httpPath = httpPath; + return this; + } + + /** + * Get the authentication mechanism used to connect to the Phoenix server. Possible values include: 'Anonymous', 'UsernameAndPassword', 'WindowsAzureHDInsightService'. + * + * @return the authenticationType value + */ + public PhoenixAuthenticationType authenticationType() { + return this.authenticationType; + } + + /** + * Set the authentication mechanism used to connect to the Phoenix server. Possible values include: 'Anonymous', 'UsernameAndPassword', 'WindowsAzureHDInsightService'. + * + * @param authenticationType the authenticationType value to set + * @return the PhoenixLinkedService object itself. + */ + public PhoenixLinkedService withAuthenticationType(PhoenixAuthenticationType authenticationType) { + this.authenticationType = authenticationType; + return this; + } + + /** + * Get the user name used to connect to the Phoenix server. + * + * @return the username value + */ + public Object username() { + return this.username; + } + + /** + * Set the user name used to connect to the Phoenix server. + * + * @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 corresponding to the user name. + * + * @return the password value + */ + public SecretBase password() { + return this.password; + } + + /** + * Set the password corresponding to the user name. + * + * @param password the password value to set + * @return the PhoenixLinkedService object itself. + */ + public PhoenixLinkedService withPassword(SecretBase password) { + this.password = password; + return this; + } + + /** + * Get specifies whether the connections to the server are encrypted using SSL. The default value is false. + * + * @return the enableSsl value + */ + public Object enableSsl() { + return this.enableSsl; + } + + /** + * Set specifies whether the connections to the server are encrypted using SSL. The default value is false. + * + * @param enableSsl the enableSsl value to set + * @return the PhoenixLinkedService object itself. + */ + public PhoenixLinkedService withEnableSsl(Object enableSsl) { + this.enableSsl = enableSsl; + return this; + } + + /** + * Get the full path of the .pem file containing trusted CA certificates for verifying the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default value is the cacerts.pem file installed with the IR. + * + * @return the trustedCertPath value + */ + public Object trustedCertPath() { + return this.trustedCertPath; + } + + /** + * Set the full path of the .pem file containing trusted CA certificates for verifying the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default value is the cacerts.pem file installed with the IR. + * + * @param trustedCertPath the trustedCertPath value to set + * @return the PhoenixLinkedService object itself. + */ + public PhoenixLinkedService withTrustedCertPath(Object trustedCertPath) { + this.trustedCertPath = trustedCertPath; + return this; + } + + /** + * Get specifies whether to use a CA certificate from the system trust store or from a specified PEM file. The default value is false. + * + * @return the useSystemTrustStore value + */ + public Object useSystemTrustStore() { + return this.useSystemTrustStore; + } + + /** + * Set specifies whether to use a CA certificate from the system trust store or from a specified PEM file. The default value is false. + * + * @param useSystemTrustStore the useSystemTrustStore value to set + * @return the PhoenixLinkedService object itself. + */ + public PhoenixLinkedService withUseSystemTrustStore(Object useSystemTrustStore) { + this.useSystemTrustStore = useSystemTrustStore; + return this; + } + + /** + * Get specifies whether to require a CA-issued SSL certificate name to match the host name of the server when connecting over SSL. The default value is false. + * + * @return the allowHostNameCNMismatch value + */ + public Object allowHostNameCNMismatch() { + return this.allowHostNameCNMismatch; + } + + /** + * Set specifies whether to require a CA-issued SSL certificate name to match the host name of the server when connecting over SSL. The default value is false. + * + * @param allowHostNameCNMismatch the allowHostNameCNMismatch value to set + * @return the PhoenixLinkedService object itself. + */ + public PhoenixLinkedService withAllowHostNameCNMismatch(Object allowHostNameCNMismatch) { + this.allowHostNameCNMismatch = allowHostNameCNMismatch; + return this; + } + + /** + * Get specifies whether to allow self-signed certificates from the server. The default value is false. + * + * @return the allowSelfSignedServerCert value + */ + public Object allowSelfSignedServerCert() { + return this.allowSelfSignedServerCert; + } + + /** + * Set specifies whether to allow self-signed certificates from the server. The default value is false. + * + * @param allowSelfSignedServerCert the allowSelfSignedServerCert value to set + * @return the PhoenixLinkedService object itself. + */ + public PhoenixLinkedService withAllowSelfSignedServerCert(Object allowSelfSignedServerCert) { + this.allowSelfSignedServerCert = allowSelfSignedServerCert; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the PhoenixLinkedService object itself. + */ + public PhoenixLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PhoenixObjectDataset.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PhoenixObjectDataset.java new file mode 100644 index 0000000000000..e38b3ff0dfb7c --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PhoenixObjectDataset.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DatasetInner; + +/** + * Phoenix server dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("PhoenixObject") +@JsonFlatten +public class PhoenixObjectDataset extends DatasetInner { + /** + * This property will be retired. Please consider using schema + table + * properties instead. + */ + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; + + /** + * The table name of the Phoenix. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.table") + private Object table; + + /** + * The schema name of the Phoenix. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.schema") + private Object phoenixObjectDatasetSchema; + + /** + * Get this property will be retired. Please consider using schema + table properties instead. + * + * @return the tableName value + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set this property will be retired. Please consider using schema + table properties instead. + * + * @param tableName the tableName value to set + * @return the PhoenixObjectDataset object itself. + */ + public PhoenixObjectDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; + } + + /** + * Get the table name of the Phoenix. Type: string (or Expression with resultType string). + * + * @return the table value + */ + public Object table() { + return this.table; + } + + /** + * Set the table name of the Phoenix. Type: string (or Expression with resultType string). + * + * @param table the table value to set + * @return the PhoenixObjectDataset object itself. + */ + public PhoenixObjectDataset withTable(Object table) { + this.table = table; + return this; + } + + /** + * Get the schema name of the Phoenix. Type: string (or Expression with resultType string). + * + * @return the phoenixObjectDatasetSchema value + */ + public Object phoenixObjectDatasetSchema() { + return this.phoenixObjectDatasetSchema; + } + + /** + * Set the schema name of the Phoenix. Type: string (or Expression with resultType string). + * + * @param phoenixObjectDatasetSchema the phoenixObjectDatasetSchema value to set + * @return the PhoenixObjectDataset object itself. + */ + public PhoenixObjectDataset withPhoenixObjectDatasetSchema(Object phoenixObjectDatasetSchema) { + this.phoenixObjectDatasetSchema = phoenixObjectDatasetSchema; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PhoenixSource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PhoenixSource.java new file mode 100644 index 0000000000000..afb96c1b645ca --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 a query to retrieve data from source. Type: string (or Expression with resultType string). + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set a query to retrieve data from source. Type: string (or Expression with resultType string). + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PipelineFolder.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PipelineFolder.java new file mode 100644 index 0000000000000..aff4d5fc55f9a --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PipelineFolder.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The folder that this Pipeline is in. If not specified, Pipeline will appear + * at the root level. + */ +public class PipelineFolder { + /** + * The name of the folder that this Pipeline is in. + */ + @JsonProperty(value = "name") + private String name; + + /** + * Get the name of the folder that this Pipeline is in. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Set the name of the folder that this Pipeline is in. + * + * @param name the name value to set + * @return the PipelineFolder object itself. + */ + public PipelineFolder withName(String name) { + this.name = name; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PipelineReference.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PipelineReference.java new file mode 100644 index 0000000000000..be24b4edabfd9 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PipelineReference.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.v2018_06_01; + +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. + * @param referenceName reference pipeline name. + */ + public PipelineReference() { + type = "PipelineReference"; + } + + /** + * Get pipeline reference type. + * + * @return the type value + */ + public String type() { + return this.type; + } + + /** + * Set pipeline reference type. + * + * @param type the type value to set + * @return the PipelineReference object itself. + */ + public PipelineReference withType(String type) { + this.type = type; + return this; + } + + /** + * Get reference pipeline name. + * + * @return the referenceName value + */ + public String referenceName() { + return this.referenceName; + } + + /** + * Set reference pipeline name. + * + * @param referenceName the referenceName value to set + * @return the PipelineReference object itself. + */ + public PipelineReference withReferenceName(String referenceName) { + this.referenceName = referenceName; + return this; + } + + /** + * Get reference name. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Set reference name. + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PipelineResource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PipelineResource.java new file mode 100644 index 0000000000000..eeb2079726d5d --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PipelineResource.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.v2018_06_01; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.PipelineResourceInner; +import com.microsoft.azure.arm.model.Indexable; +import com.microsoft.azure.arm.model.Refreshable; +import com.microsoft.azure.arm.model.Updatable; +import com.microsoft.azure.arm.model.Appliable; +import com.microsoft.azure.arm.model.Creatable; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DataFactoryManager; +import java.util.Map; +import java.util.List; + +/** + * Type representing PipelineResource. + */ +public interface PipelineResource extends HasInner, Indexable, Refreshable, Updatable, HasManager { + /** + * @return the activities value. + */ + List activities(); + + /** + * @return the additionalProperties value. + */ + Map additionalProperties(); + + /** + * @return the annotations value. + */ + List annotations(); + + /** + * @return the concurrency value. + */ + Integer concurrency(); + + /** + * @return the description value. + */ + String description(); + + /** + * @return the etag value. + */ + String etag(); + + /** + * @return the folder value. + */ + PipelineFolder folder(); + + /** + * @return the id value. + */ + String id(); + + /** + * @return the name value. + */ + String name(); + + /** + * @return the parameters value. + */ + Map parameters(); + + /** + * @return the type value. + */ + String type(); + + /** + * @return the variables value. + */ + Map variables(); + + /** + * The entirety of the PipelineResource definition. + */ + interface Definition extends DefinitionStages.Blank, DefinitionStages.WithFactory, DefinitionStages.WithIfMatch, DefinitionStages.WithCreate { + } + + /** + * Grouping of PipelineResource definition stages. + */ + interface DefinitionStages { + /** + * The first stage of a PipelineResource definition. + */ + interface Blank extends WithFactory { + } + + /** + * The stage of the pipelineresource definition allowing to specify Factory. + */ + interface WithFactory { + /** + * Specifies resourceGroupName, factoryName. + * @param resourceGroupName The resource group name + * @param factoryName The factory name + * @return the next definition stage + */ + WithIfMatch withExistingFactory(String resourceGroupName, String factoryName); + } + + /** + * The stage of the pipelineresource definition allowing to specify IfMatch. + */ + interface WithIfMatch { + /** + * Specifies ifMatch. + * @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 + * @return the next definition stage + */ + WithCreate withIfMatch(String ifMatch); + } + + /** + * The stage of the pipelineresource definition allowing to specify Activities. + */ + interface WithActivities { + /** + * Specifies activities. + * @param activities List of activities in pipeline + * @return the next definition stage + */ + WithCreate withActivities(List activities); + } + + /** + * The stage of the pipelineresource definition allowing to specify AdditionalProperties. + */ + interface WithAdditionalProperties { + /** + * Specifies additionalProperties. + * @param additionalProperties Unmatched properties from the message are deserialized this collection + * @return the next definition stage + */ + WithCreate withAdditionalProperties(Map additionalProperties); + } + + /** + * The stage of the pipelineresource definition allowing to specify Annotations. + */ + interface WithAnnotations { + /** + * Specifies annotations. + * @param annotations List of tags that can be used for describing the Pipeline + * @return the next definition stage + */ + WithCreate withAnnotations(List annotations); + } + + /** + * The stage of the pipelineresource definition allowing to specify Concurrency. + */ + interface WithConcurrency { + /** + * Specifies concurrency. + * @param concurrency The max number of concurrent runs for the pipeline + * @return the next definition stage + */ + WithCreate withConcurrency(Integer concurrency); + } + + /** + * The stage of the pipelineresource definition allowing to specify Description. + */ + interface WithDescription { + /** + * Specifies description. + * @param description The description of the pipeline + * @return the next definition stage + */ + WithCreate withDescription(String description); + } + + /** + * The stage of the pipelineresource definition allowing to specify Folder. + */ + interface WithFolder { + /** + * Specifies folder. + * @param folder The folder that this Pipeline is in. If not specified, Pipeline will appear at the root level + * @return the next definition stage + */ + WithCreate withFolder(PipelineFolder folder); + } + + /** + * The stage of the pipelineresource definition allowing to specify Parameters. + */ + interface WithParameters { + /** + * Specifies parameters. + * @param parameters List of parameters for pipeline + * @return the next definition stage + */ + WithCreate withParameters(Map parameters); + } + + /** + * The stage of the pipelineresource definition allowing to specify Variables. + */ + interface WithVariables { + /** + * Specifies variables. + * @param variables List of variables for pipeline + * @return the next definition stage + */ + WithCreate withVariables(Map variables); + } + + /** + * The stage of the definition which contains all the minimum required inputs for + * the resource to be created (via {@link WithCreate#create()}), but also allows + * for any other optional settings to be specified. + */ + interface WithCreate extends Creatable, DefinitionStages.WithActivities, DefinitionStages.WithAdditionalProperties, DefinitionStages.WithAnnotations, DefinitionStages.WithConcurrency, DefinitionStages.WithDescription, DefinitionStages.WithFolder, DefinitionStages.WithParameters, DefinitionStages.WithVariables { + } + } + /** + * The template for a PipelineResource update operation, containing all the settings that can be modified. + */ + interface Update extends Appliable, UpdateStages.WithIfMatch, UpdateStages.WithActivities, UpdateStages.WithAdditionalProperties, UpdateStages.WithAnnotations, UpdateStages.WithConcurrency, UpdateStages.WithDescription, UpdateStages.WithFolder, UpdateStages.WithParameters, UpdateStages.WithVariables { + } + + /** + * Grouping of PipelineResource update stages. + */ + interface UpdateStages { + /** + * The stage of the pipelineresource update allowing to specify IfMatch. + */ + interface WithIfMatch { + /** + * Specifies ifMatch. + * @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 + * @return the next update stage + */ + Update withIfMatch(String ifMatch); + } + + /** + * The stage of the pipelineresource update allowing to specify Activities. + */ + interface WithActivities { + /** + * Specifies activities. + * @param activities List of activities in pipeline + * @return the next update stage + */ + Update withActivities(List activities); + } + + /** + * The stage of the pipelineresource update allowing to specify AdditionalProperties. + */ + interface WithAdditionalProperties { + /** + * Specifies additionalProperties. + * @param additionalProperties Unmatched properties from the message are deserialized this collection + * @return the next update stage + */ + Update withAdditionalProperties(Map additionalProperties); + } + + /** + * The stage of the pipelineresource update allowing to specify Annotations. + */ + interface WithAnnotations { + /** + * Specifies annotations. + * @param annotations List of tags that can be used for describing the Pipeline + * @return the next update stage + */ + Update withAnnotations(List annotations); + } + + /** + * The stage of the pipelineresource update allowing to specify Concurrency. + */ + interface WithConcurrency { + /** + * Specifies concurrency. + * @param concurrency The max number of concurrent runs for the pipeline + * @return the next update stage + */ + Update withConcurrency(Integer concurrency); + } + + /** + * The stage of the pipelineresource update allowing to specify Description. + */ + interface WithDescription { + /** + * Specifies description. + * @param description The description of the pipeline + * @return the next update stage + */ + Update withDescription(String description); + } + + /** + * The stage of the pipelineresource update allowing to specify Folder. + */ + interface WithFolder { + /** + * Specifies folder. + * @param folder The folder that this Pipeline is in. If not specified, Pipeline will appear at the root level + * @return the next update stage + */ + Update withFolder(PipelineFolder folder); + } + + /** + * The stage of the pipelineresource update allowing to specify Parameters. + */ + interface WithParameters { + /** + * Specifies parameters. + * @param parameters List of parameters for pipeline + * @return the next update stage + */ + Update withParameters(Map parameters); + } + + /** + * The stage of the pipelineresource update allowing to specify Variables. + */ + interface WithVariables { + /** + * Specifies variables. + * @param variables List of variables for pipeline + * @return the next update stage + */ + Update withVariables(Map variables); + } + + } +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PipelineRun.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PipelineRun.java new file mode 100644 index 0000000000000..a03567b47213a --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PipelineRun.java @@ -0,0 +1,87 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.PipelineRunInner; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DataFactoryManager; +import java.util.Map; +import org.joda.time.DateTime; + +/** + * Type representing PipelineRun. + */ +public interface PipelineRun extends HasInner, HasManager { + /** + * @return the additionalProperties value. + */ + Map additionalProperties(); + + /** + * @return the durationInMs value. + */ + Integer durationInMs(); + + /** + * @return the invokedBy value. + */ + PipelineRunInvokedBy invokedBy(); + + /** + * @return the isLatest value. + */ + Boolean isLatest(); + + /** + * @return the lastUpdated value. + */ + DateTime lastUpdated(); + + /** + * @return the message value. + */ + String message(); + + /** + * @return the parameters value. + */ + Map parameters(); + + /** + * @return the pipelineName value. + */ + String pipelineName(); + + /** + * @return the runEnd value. + */ + DateTime runEnd(); + + /** + * @return the runGroupId value. + */ + String runGroupId(); + + /** + * @return the runId value. + */ + String runId(); + + /** + * @return the runStart value. + */ + DateTime runStart(); + + /** + * @return the status value. + */ + String status(); + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PipelineRunInvokedBy.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PipelineRunInvokedBy.java new file mode 100644 index 0000000000000..66d8a671e6572 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PipelineRunInvokedBy.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.v2018_06_01; + +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; + + /** + * The type of the entity that started the run. + */ + @JsonProperty(value = "invokedByType", access = JsonProperty.Access.WRITE_ONLY) + private String invokedByType; + + /** + * Get name of the entity that started the pipeline run. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Get the ID of the entity that started the run. + * + * @return the id value + */ + public String id() { + return this.id; + } + + /** + * Get the type of the entity that started the run. + * + * @return the invokedByType value + */ + public String invokedByType() { + return this.invokedByType; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PipelineRuns.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PipelineRuns.java new file mode 100644 index 0000000000000..3c58b21f37f68 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PipelineRuns.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.v2018_06_01; + +import rx.Observable; +import rx.Completable; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.PipelineRunsInner; +import com.microsoft.azure.arm.model.HasInner; + +/** + * Type representing PipelineRuns. + */ +public interface PipelineRuns extends HasInner { + /** + * 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 observable for the request + */ + Completable cancelAsync(String resourceGroupName, String factoryName, String runId); + + /** + * 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 for the request + */ + Observable getAsync(String resourceGroupName, String factoryName, String runId); + + /** + * 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 for the request + */ + Observable queryByFactoryAsync(String resourceGroupName, String factoryName, RunFilterParameters filterParameters); + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PipelineRunsQueryResponse.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PipelineRunsQueryResponse.java new file mode 100644 index 0000000000000..9f154aaf2f8e8 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PipelineRunsQueryResponse.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.v2018_06_01; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DataFactoryManager; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.PipelineRunsQueryResponseInner; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.PipelineRunInner; +import java.util.List; + +/** + * Type representing PipelineRunsQueryResponse. + */ +public interface PipelineRunsQueryResponse extends HasInner, HasManager { + /** + * @return the continuationToken value. + */ + String continuationToken(); + + /** + * @return the value value. + */ + List value(); + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/Pipelines.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/Pipelines.java new file mode 100644 index 0000000000000..3712b327b8dbc --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/Pipelines.java @@ -0,0 +1,64 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +import com.microsoft.azure.arm.collection.SupportsCreating; +import rx.Completable; +import rx.Observable; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.PipelinesInner; +import com.microsoft.azure.arm.model.HasInner; + +/** + * Type representing Pipelines. + */ +public interface Pipelines extends SupportsCreating, HasInner { + /** + * 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 for the request + */ + Observable createRunAsync(String resourceGroupName, String factoryName, String pipelineName); + + /** + * 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 for the request + */ + Observable getAsync(String resourceGroupName, String factoryName, String pipelineName); + + /** + * Lists pipelines. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable listByFactoryAsync(final String resourceGroupName, final String factoryName); + + /** + * 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 observable for the request + */ + Completable deleteAsync(String resourceGroupName, String factoryName, String pipelineName); + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PolybaseSettings.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PolybaseSettings.java new file mode 100644 index 0000000000000..a5b8b69dcea3e --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 unmatched properties from the message are deserialized this collection. + * + * @return the additionalProperties value + */ + public Map additionalProperties() { + return this.additionalProperties; + } + + /** + * Set unmatched properties from the message are deserialized this collection. + * + * @param additionalProperties the additionalProperties value to set + * @return the PolybaseSettings object itself. + */ + public PolybaseSettings withAdditionalProperties(Map additionalProperties) { + this.additionalProperties = additionalProperties; + return this; + } + + /** + * Get reject type. Possible values include: 'value', 'percentage'. + * + * @return the rejectType value + */ + public PolybaseSettingsRejectType rejectType() { + return this.rejectType; + } + + /** + * Set reject type. Possible values include: 'value', 'percentage'. + * + * @param rejectType the rejectType value to set + * @return the PolybaseSettings object itself. + */ + public PolybaseSettings withRejectType(PolybaseSettingsRejectType rejectType) { + this.rejectType = rejectType; + return this; + } + + /** + * Get 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. + * + * @return the rejectValue value + */ + public Object rejectValue() { + return this.rejectValue; + } + + /** + * Set 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. + * + * @param rejectValue the rejectValue value to set + * @return the PolybaseSettings object itself. + */ + public PolybaseSettings withRejectValue(Object rejectValue) { + this.rejectValue = rejectValue; + return this; + } + + /** + * Get 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. + * + * @return the rejectSampleValue value + */ + public Object rejectSampleValue() { + return this.rejectSampleValue; + } + + /** + * Set 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. + * + * @param rejectSampleValue the rejectSampleValue value to set + * @return the PolybaseSettings object itself. + */ + public PolybaseSettings withRejectSampleValue(Object rejectSampleValue) { + this.rejectSampleValue = rejectSampleValue; + return this; + } + + /** + * Get 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). + * + * @return the useTypeDefault value + */ + public Object useTypeDefault() { + return this.useTypeDefault; + } + + /** + * Set 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). + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PolybaseSettingsRejectType.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PolybaseSettingsRejectType.java new file mode 100644 index 0000000000000..c4768024478e5 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PostgreSqlLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PostgreSqlLinkedService.java new file mode 100644 index 0000000000000..abd9efe990bd4 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PostgreSqlLinkedService.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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 { + /** + * The connection string. + */ + @JsonProperty(value = "typeProperties.connectionString", required = true) + private SecretBase connectionString; + + /** + * The Azure key vault secret reference of password in connection string. + */ + @JsonProperty(value = "typeProperties.password") + private AzureKeyVaultSecretReference password; + + /** + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; + + /** + * Get the connection string. + * + * @return the connectionString value + */ + public SecretBase connectionString() { + return this.connectionString; + } + + /** + * Set the connection string. + * + * @param connectionString the connectionString value to set + * @return the PostgreSqlLinkedService object itself. + */ + public PostgreSqlLinkedService withConnectionString(SecretBase connectionString) { + this.connectionString = connectionString; + return this; + } + + /** + * Get the Azure key vault secret reference of password in connection string. + * + * @return the password value + */ + public AzureKeyVaultSecretReference password() { + return this.password; + } + + /** + * Set the Azure key vault secret reference of password in connection string. + * + * @param password the password value to set + * @return the PostgreSqlLinkedService object itself. + */ + public PostgreSqlLinkedService withPassword(AzureKeyVaultSecretReference password) { + this.password = password; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the PostgreSqlLinkedService object itself. + */ + public PostgreSqlLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PostgreSqlSource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PostgreSqlSource.java new file mode 100644 index 0000000000000..1903bd3306a52 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PostgreSqlSource.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity source for PostgreSQL databases. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("PostgreSqlSource") +public class PostgreSqlSource extends CopySource { + /** + * Database query. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "query") + private Object query; + + /** + * Get database query. Type: string (or Expression with resultType string). + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set database query. Type: string (or Expression with resultType string). + * + * @param query the query value to set + * @return the PostgreSqlSource object itself. + */ + public PostgreSqlSource withQuery(Object query) { + this.query = query; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PostgreSqlTableDataset.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PostgreSqlTableDataset.java new file mode 100644 index 0000000000000..9dbf85baf476c --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PostgreSqlTableDataset.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DatasetInner; + +/** + * The PostgreSQL table dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("PostgreSqlTable") +@JsonFlatten +public class PostgreSqlTableDataset extends DatasetInner { + /** + * The PostgreSQL table name. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; + + /** + * Get the PostgreSQL table name. Type: string (or Expression with resultType string). + * + * @return the tableName value + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set the PostgreSQL table name. Type: string (or Expression with resultType string). + * + * @param tableName the tableName value to set + * @return the PostgreSqlTableDataset object itself. + */ + public PostgreSqlTableDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PrestoAuthenticationType.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PrestoAuthenticationType.java new file mode 100644 index 0000000000000..684318f691aee --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PrestoLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PrestoLinkedService.java new file mode 100644 index 0000000000000..854cba15c9524 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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 IP address or host name of the Presto server. (i.e. 192.168.222.160). + * + * @return the host value + */ + public Object host() { + return this.host; + } + + /** + * Set the IP address or host name of the Presto server. (i.e. 192.168.222.160). + * + * @param host the host value to set + * @return the PrestoLinkedService object itself. + */ + public PrestoLinkedService withHost(Object host) { + this.host = host; + return this; + } + + /** + * Get the version of the Presto server. (i.e. 0.148-t). + * + * @return the serverVersion value + */ + public Object serverVersion() { + return this.serverVersion; + } + + /** + * Set the version of the Presto server. (i.e. 0.148-t). + * + * @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 context for all request against the server. + * + * @return the catalog value + */ + public Object catalog() { + return this.catalog; + } + + /** + * Set the catalog context for all request against the server. + * + * @param catalog the catalog value to set + * @return the PrestoLinkedService object itself. + */ + public PrestoLinkedService withCatalog(Object catalog) { + this.catalog = catalog; + return this; + } + + /** + * Get the TCP port that the Presto server uses to listen for client connections. The default value is 8080. + * + * @return the port value + */ + public Object port() { + return this.port; + } + + /** + * Set the TCP port that the Presto server uses to listen for client connections. The default value is 8080. + * + * @param port the port value to set + * @return the PrestoLinkedService object itself. + */ + public PrestoLinkedService withPort(Object port) { + this.port = port; + return this; + } + + /** + * Get the authentication mechanism used to connect to the Presto server. Possible values include: 'Anonymous', 'LDAP'. + * + * @return the authenticationType value + */ + public PrestoAuthenticationType authenticationType() { + return this.authenticationType; + } + + /** + * Set the authentication mechanism used to connect to the Presto server. Possible values include: 'Anonymous', 'LDAP'. + * + * @param authenticationType the authenticationType value to set + * @return the PrestoLinkedService object itself. + */ + public PrestoLinkedService withAuthenticationType(PrestoAuthenticationType authenticationType) { + this.authenticationType = authenticationType; + return this; + } + + /** + * Get the user name used to connect to the Presto server. + * + * @return the username value + */ + public Object username() { + return this.username; + } + + /** + * Set the user name used to connect to the Presto server. + * + * @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 corresponding to the user name. + * + * @return the password value + */ + public SecretBase password() { + return this.password; + } + + /** + * Set the password corresponding to the user name. + * + * @param password the password value to set + * @return the PrestoLinkedService object itself. + */ + public PrestoLinkedService withPassword(SecretBase password) { + this.password = password; + return this; + } + + /** + * Get specifies whether the connections to the server are encrypted using SSL. The default value is false. + * + * @return the enableSsl value + */ + public Object enableSsl() { + return this.enableSsl; + } + + /** + * Set specifies whether the connections to the server are encrypted using SSL. The default value is false. + * + * @param enableSsl the enableSsl value to set + * @return the PrestoLinkedService object itself. + */ + public PrestoLinkedService withEnableSsl(Object enableSsl) { + this.enableSsl = enableSsl; + return this; + } + + /** + * Get the full path of the .pem file containing trusted CA certificates for verifying the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default value is the cacerts.pem file installed with the IR. + * + * @return the trustedCertPath value + */ + public Object trustedCertPath() { + return this.trustedCertPath; + } + + /** + * Set the full path of the .pem file containing trusted CA certificates for verifying the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default value is the cacerts.pem file installed with the IR. + * + * @param trustedCertPath the trustedCertPath value to set + * @return the PrestoLinkedService object itself. + */ + public PrestoLinkedService withTrustedCertPath(Object trustedCertPath) { + this.trustedCertPath = trustedCertPath; + return this; + } + + /** + * Get specifies whether to use a CA certificate from the system trust store or from a specified PEM file. The default value is false. + * + * @return the useSystemTrustStore value + */ + public Object useSystemTrustStore() { + return this.useSystemTrustStore; + } + + /** + * Set specifies whether to use a CA certificate from the system trust store or from a specified PEM file. The default value is false. + * + * @param useSystemTrustStore the useSystemTrustStore value to set + * @return the PrestoLinkedService object itself. + */ + public PrestoLinkedService withUseSystemTrustStore(Object useSystemTrustStore) { + this.useSystemTrustStore = useSystemTrustStore; + return this; + } + + /** + * Get specifies whether to require a CA-issued SSL certificate name to match the host name of the server when connecting over SSL. The default value is false. + * + * @return the allowHostNameCNMismatch value + */ + public Object allowHostNameCNMismatch() { + return this.allowHostNameCNMismatch; + } + + /** + * Set specifies whether to require a CA-issued SSL certificate name to match the host name of the server when connecting over SSL. The default value is false. + * + * @param allowHostNameCNMismatch the allowHostNameCNMismatch value to set + * @return the PrestoLinkedService object itself. + */ + public PrestoLinkedService withAllowHostNameCNMismatch(Object allowHostNameCNMismatch) { + this.allowHostNameCNMismatch = allowHostNameCNMismatch; + return this; + } + + /** + * Get specifies whether to allow self-signed certificates from the server. The default value is false. + * + * @return the allowSelfSignedServerCert value + */ + public Object allowSelfSignedServerCert() { + return this.allowSelfSignedServerCert; + } + + /** + * Set specifies whether to allow self-signed certificates from the server. The default value is false. + * + * @param allowSelfSignedServerCert the allowSelfSignedServerCert value to set + * @return the PrestoLinkedService object itself. + */ + public PrestoLinkedService withAllowSelfSignedServerCert(Object allowSelfSignedServerCert) { + this.allowSelfSignedServerCert = allowSelfSignedServerCert; + return this; + } + + /** + * Get the local time zone used by the connection. Valid values for this option are specified in the IANA Time Zone Database. The default value is the system time zone. + * + * @return the timeZoneID value + */ + public Object timeZoneID() { + return this.timeZoneID; + } + + /** + * Set the local time zone used by the connection. Valid values for this option are specified in the IANA Time Zone Database. The default value is the system time zone. + * + * @param timeZoneID the timeZoneID value to set + * @return the PrestoLinkedService object itself. + */ + public PrestoLinkedService withTimeZoneID(Object timeZoneID) { + this.timeZoneID = timeZoneID; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the PrestoLinkedService object itself. + */ + public PrestoLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PrestoObjectDataset.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PrestoObjectDataset.java new file mode 100644 index 0000000000000..dc7d7d8518cb4 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PrestoObjectDataset.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DatasetInner; + +/** + * Presto server dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("PrestoObject") +@JsonFlatten +public class PrestoObjectDataset extends DatasetInner { + /** + * This property will be retired. Please consider using schema + table + * properties instead. + */ + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; + + /** + * The table name of the Presto. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.table") + private Object table; + + /** + * The schema name of the Presto. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.schema") + private Object prestoObjectDatasetSchema; + + /** + * Get this property will be retired. Please consider using schema + table properties instead. + * + * @return the tableName value + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set this property will be retired. Please consider using schema + table properties instead. + * + * @param tableName the tableName value to set + * @return the PrestoObjectDataset object itself. + */ + public PrestoObjectDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; + } + + /** + * Get the table name of the Presto. Type: string (or Expression with resultType string). + * + * @return the table value + */ + public Object table() { + return this.table; + } + + /** + * Set the table name of the Presto. Type: string (or Expression with resultType string). + * + * @param table the table value to set + * @return the PrestoObjectDataset object itself. + */ + public PrestoObjectDataset withTable(Object table) { + this.table = table; + return this; + } + + /** + * Get the schema name of the Presto. Type: string (or Expression with resultType string). + * + * @return the prestoObjectDatasetSchema value + */ + public Object prestoObjectDatasetSchema() { + return this.prestoObjectDatasetSchema; + } + + /** + * Set the schema name of the Presto. Type: string (or Expression with resultType string). + * + * @param prestoObjectDatasetSchema the prestoObjectDatasetSchema value to set + * @return the PrestoObjectDataset object itself. + */ + public PrestoObjectDataset withPrestoObjectDatasetSchema(Object prestoObjectDatasetSchema) { + this.prestoObjectDatasetSchema = prestoObjectDatasetSchema; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PrestoSource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PrestoSource.java new file mode 100644 index 0000000000000..befa35e75694b --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 a query to retrieve data from source. Type: string (or Expression with resultType string). + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set a query to retrieve data from source. Type: string (or Expression with resultType string). + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/QuickBooksLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/QuickBooksLinkedService.java new file mode 100644 index 0000000000000..80c2f0c47fe06 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/QuickBooksLinkedService.java @@ -0,0 +1,235 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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 consumer key for OAuth 1.0 authentication. + */ + @JsonProperty(value = "typeProperties.consumerKey", required = true) + private Object consumerKey; + + /** + * The consumer secret for OAuth 1.0 authentication. + */ + @JsonProperty(value = "typeProperties.consumerSecret", required = true) + private SecretBase consumerSecret; + + /** + * The access token for OAuth 1.0 authentication. + */ + @JsonProperty(value = "typeProperties.accessToken", required = true) + private SecretBase accessToken; + + /** + * The access token secret for OAuth 1.0 authentication. + */ + @JsonProperty(value = "typeProperties.accessTokenSecret", required = true) + 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 of the QuickBooks server. (i.e. quickbooks.api.intuit.com). + * + * @return the endpoint value + */ + public Object endpoint() { + return this.endpoint; + } + + /** + * Set the endpoint of the QuickBooks server. (i.e. quickbooks.api.intuit.com). + * + * @param endpoint the endpoint value to set + * @return the QuickBooksLinkedService object itself. + */ + public QuickBooksLinkedService withEndpoint(Object endpoint) { + this.endpoint = endpoint; + return this; + } + + /** + * Get the company ID of the QuickBooks company to authorize. + * + * @return the companyId value + */ + public Object companyId() { + return this.companyId; + } + + /** + * Set the company ID of the QuickBooks company to authorize. + * + * @param companyId the companyId value to set + * @return the QuickBooksLinkedService object itself. + */ + public QuickBooksLinkedService withCompanyId(Object companyId) { + this.companyId = companyId; + return this; + } + + /** + * Get the consumer key for OAuth 1.0 authentication. + * + * @return the consumerKey value + */ + public Object consumerKey() { + return this.consumerKey; + } + + /** + * Set the consumer key for OAuth 1.0 authentication. + * + * @param consumerKey the consumerKey value to set + * @return the QuickBooksLinkedService object itself. + */ + public QuickBooksLinkedService withConsumerKey(Object consumerKey) { + this.consumerKey = consumerKey; + return this; + } + + /** + * Get the consumer secret for OAuth 1.0 authentication. + * + * @return the consumerSecret value + */ + public SecretBase consumerSecret() { + return this.consumerSecret; + } + + /** + * Set the consumer secret for OAuth 1.0 authentication. + * + * @param consumerSecret the consumerSecret value to set + * @return the QuickBooksLinkedService object itself. + */ + public QuickBooksLinkedService withConsumerSecret(SecretBase consumerSecret) { + this.consumerSecret = consumerSecret; + return this; + } + + /** + * Get the access token for OAuth 1.0 authentication. + * + * @return the accessToken value + */ + public SecretBase accessToken() { + return this.accessToken; + } + + /** + * Set the access token for OAuth 1.0 authentication. + * + * @param accessToken the accessToken value to set + * @return the QuickBooksLinkedService object itself. + */ + public QuickBooksLinkedService withAccessToken(SecretBase accessToken) { + this.accessToken = accessToken; + return this; + } + + /** + * Get the access token secret for OAuth 1.0 authentication. + * + * @return the accessTokenSecret value + */ + public SecretBase accessTokenSecret() { + return this.accessTokenSecret; + } + + /** + * Set the access token secret for OAuth 1.0 authentication. + * + * @param accessTokenSecret the accessTokenSecret value to set + * @return the QuickBooksLinkedService object itself. + */ + public QuickBooksLinkedService withAccessTokenSecret(SecretBase accessTokenSecret) { + this.accessTokenSecret = accessTokenSecret; + return this; + } + + /** + * Get specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. + * + * @return the useEncryptedEndpoints value + */ + public Object useEncryptedEndpoints() { + return this.useEncryptedEndpoints; + } + + /** + * Set specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. + * + * @param useEncryptedEndpoints the useEncryptedEndpoints value to set + * @return the QuickBooksLinkedService object itself. + */ + public QuickBooksLinkedService withUseEncryptedEndpoints(Object useEncryptedEndpoints) { + this.useEncryptedEndpoints = useEncryptedEndpoints; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the QuickBooksLinkedService object itself. + */ + public QuickBooksLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/QuickBooksObjectDataset.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/QuickBooksObjectDataset.java new file mode 100644 index 0000000000000..ef7695873a5a1 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/QuickBooksObjectDataset.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DatasetInner; + +/** + * QuickBooks server dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("QuickBooksObject") +@JsonFlatten +public class QuickBooksObjectDataset extends DatasetInner { + /** + * The table name. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; + + /** + * Get the table name. Type: string (or Expression with resultType string). + * + * @return the tableName value + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set the table name. Type: string (or Expression with resultType string). + * + * @param tableName the tableName value to set + * @return the QuickBooksObjectDataset object itself. + */ + public QuickBooksObjectDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/QuickBooksSource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/QuickBooksSource.java new file mode 100644 index 0000000000000..7c7235e080bdb --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 a query to retrieve data from source. Type: string (or Expression with resultType string). + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set a query to retrieve data from source. Type: string (or Expression with resultType string). + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/RecurrenceFrequency.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/RecurrenceFrequency.java new file mode 100644 index 0000000000000..9d62d7daba646 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/RecurrenceSchedule.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/RecurrenceSchedule.java new file mode 100644 index 0000000000000..63ec225bece17 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 unmatched properties from the message are deserialized this collection. + * + * @return the additionalProperties value + */ + public Map additionalProperties() { + return this.additionalProperties; + } + + /** + * Set unmatched properties from the message are deserialized this collection. + * + * @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. + * + * @return the minutes value + */ + public List minutes() { + return this.minutes; + } + + /** + * Set the minutes. + * + * @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. + * + * @return the hours value + */ + public List hours() { + return this.hours; + } + + /** + * Set the hours. + * + * @param hours the hours value to set + * @return the RecurrenceSchedule object itself. + */ + public RecurrenceSchedule withHours(List hours) { + this.hours = hours; + return this; + } + + /** + * Get the days of the week. + * + * @return the weekDays value + */ + public List weekDays() { + return this.weekDays; + } + + /** + * Set the days of the week. + * + * @param weekDays the weekDays value to set + * @return the RecurrenceSchedule object itself. + */ + public RecurrenceSchedule withWeekDays(List weekDays) { + this.weekDays = weekDays; + return this; + } + + /** + * Get the month days. + * + * @return the monthDays value + */ + public List monthDays() { + return this.monthDays; + } + + /** + * Set the month days. + * + * @param monthDays the monthDays value to set + * @return the RecurrenceSchedule object itself. + */ + public RecurrenceSchedule withMonthDays(List monthDays) { + this.monthDays = monthDays; + return this; + } + + /** + * Get the monthly occurrences. + * + * @return the monthlyOccurrences value + */ + public List monthlyOccurrences() { + return this.monthlyOccurrences; + } + + /** + * Set the monthly occurrences. + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/RecurrenceScheduleOccurrence.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/RecurrenceScheduleOccurrence.java new file mode 100644 index 0000000000000..d9f07d41d2e2e --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The recurrence schedule occurrence. + */ +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 unmatched properties from the message are deserialized this collection. + * + * @return the additionalProperties value + */ + public Map additionalProperties() { + return this.additionalProperties; + } + + /** + * Set unmatched properties from the message are deserialized this collection. + * + * @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 of the week. Possible values include: 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'. + * + * @return the day value + */ + public DayOfWeek day() { + return this.day; + } + + /** + * Set the day of the week. Possible values include: 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'. + * + * @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. + * + * @return the occurrence value + */ + public Integer occurrence() { + return this.occurrence; + } + + /** + * Set the occurrence. + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/RedirectIncompatibleRowSettings.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/RedirectIncompatibleRowSettings.java new file mode 100644 index 0000000000000..0a4a9dbf3e7f2 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 unmatched properties from the message are deserialized this collection. + * + * @return the additionalProperties value + */ + public Map additionalProperties() { + return this.additionalProperties; + } + + /** + * Set unmatched properties from the message are deserialized this collection. + * + * @param additionalProperties the additionalProperties value to set + * @return the RedirectIncompatibleRowSettings object itself. + */ + public RedirectIncompatibleRowSettings withAdditionalProperties(Map additionalProperties) { + this.additionalProperties = additionalProperties; + return this; + } + + /** + * Get 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). + * + * @return the linkedServiceName value + */ + public Object linkedServiceName() { + return this.linkedServiceName; + } + + /** + * Set 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). + * + * @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 for storing the redirect incompatible row data. Type: string (or Expression with resultType string). + * + * @return the path value + */ + public Object path() { + return this.path; + } + + /** + * Set the path for storing the redirect incompatible row data. Type: string (or Expression with resultType string). + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/RedshiftUnloadSettings.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/RedshiftUnloadSettings.java new file mode 100644 index 0000000000000..0993fd2e82310 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 name of the Amazon S3 linked service which will be used for the unload operation when copying from the Amazon Redshift source. + * + * @return the s3LinkedServiceName value + */ + public LinkedServiceReference s3LinkedServiceName() { + return this.s3LinkedServiceName; + } + + /** + * Set the name of the Amazon S3 linked service which will be used for the unload operation when copying from the Amazon Redshift source. + * + * @param s3LinkedServiceName the s3LinkedServiceName value to set + * @return the RedshiftUnloadSettings object itself. + */ + public RedshiftUnloadSettings withS3LinkedServiceName(LinkedServiceReference s3LinkedServiceName) { + this.s3LinkedServiceName = s3LinkedServiceName; + return this; + } + + /** + * Get 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). + * + * @return the bucketName value + */ + public Object bucketName() { + return this.bucketName; + } + + /** + * Set 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). + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/RelationalSource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/RelationalSource.java new file mode 100644 index 0000000000000..1adac84f7fb0d --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 database query. Type: string (or Expression with resultType string). + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set database query. Type: string (or Expression with resultType string). + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/RelationalTableDataset.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/RelationalTableDataset.java new file mode 100644 index 0000000000000..8dcf8f1d757ab --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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 relational table name. Type: string (or Expression with resultType string). + * + * @return the tableName value + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set the relational table name. Type: string (or Expression with resultType string). + * + * @param tableName the tableName value to set + * @return the RelationalTableDataset object itself. + */ + public RelationalTableDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/RerunTriggers.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/RerunTriggers.java new file mode 100644 index 0000000000000..d4233458e8a40 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/RerunTriggers.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.v2018_06_01; + +import com.microsoft.azure.arm.collection.SupportsCreating; +import rx.Observable; +import rx.Completable; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.RerunTriggersInner; +import com.microsoft.azure.arm.model.HasInner; + +/** + * Type representing RerunTriggers. + */ +public interface RerunTriggers extends SupportsCreating, HasInner { + /** + * Starts a trigger. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param triggerName The trigger name. + * @param rerunTriggerName The rerun trigger name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Completable startAsync(String resourceGroupName, String factoryName, String triggerName, String rerunTriggerName); + + /** + * Stops a trigger. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param triggerName The trigger name. + * @param rerunTriggerName The rerun trigger name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Completable stopAsync(String resourceGroupName, String factoryName, String triggerName, String rerunTriggerName); + + /** + * Cancels a trigger. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param triggerName The trigger name. + * @param rerunTriggerName The rerun trigger name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Completable cancelAsync(String resourceGroupName, String factoryName, String triggerName, String rerunTriggerName); + + /** + * Lists rerun triggers by an original trigger name. + * + * @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 + */ + Observable listByTriggerAsync(final String resourceGroupName, final String factoryName, final String triggerName); + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/RerunTumblingWindowTrigger.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/RerunTumblingWindowTrigger.java new file mode 100644 index 0000000000000..a0a6c9561284a --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/RerunTumblingWindowTrigger.java @@ -0,0 +1,133 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +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.v2018_06_01.implementation.TriggerInner; + +/** + * Trigger that schedules pipeline reruns for all fixed time interval windows + * from a requested start time to requested end time. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("RerunTumblingWindowTrigger") +@JsonFlatten +public class RerunTumblingWindowTrigger extends TriggerInner { + /** + * The parent trigger reference. + */ + @JsonProperty(value = "typeProperties.parentTrigger") + private Object parentTrigger; + + /** + * The start time for the time period for which restatement is initiated. + * Only UTC time is currently supported. + */ + @JsonProperty(value = "typeProperties.requestedStartTime", required = true) + private DateTime requestedStartTime; + + /** + * The end time for the time period for which restatement is initiated. + * Only UTC time is currently supported. + */ + @JsonProperty(value = "typeProperties.requestedEndTime", required = true) + private DateTime requestedEndTime; + + /** + * The max number of parallel time windows (ready for execution) for which + * a rerun is triggered. + */ + @JsonProperty(value = "typeProperties.maxConcurrency", required = true) + private int maxConcurrency; + + /** + * Get the parent trigger reference. + * + * @return the parentTrigger value + */ + public Object parentTrigger() { + return this.parentTrigger; + } + + /** + * Set the parent trigger reference. + * + * @param parentTrigger the parentTrigger value to set + * @return the RerunTumblingWindowTrigger object itself. + */ + public RerunTumblingWindowTrigger withParentTrigger(Object parentTrigger) { + this.parentTrigger = parentTrigger; + return this; + } + + /** + * Get the start time for the time period for which restatement is initiated. Only UTC time is currently supported. + * + * @return the requestedStartTime value + */ + public DateTime requestedStartTime() { + return this.requestedStartTime; + } + + /** + * Set the start time for the time period for which restatement is initiated. Only UTC time is currently supported. + * + * @param requestedStartTime the requestedStartTime value to set + * @return the RerunTumblingWindowTrigger object itself. + */ + public RerunTumblingWindowTrigger withRequestedStartTime(DateTime requestedStartTime) { + this.requestedStartTime = requestedStartTime; + return this; + } + + /** + * Get the end time for the time period for which restatement is initiated. Only UTC time is currently supported. + * + * @return the requestedEndTime value + */ + public DateTime requestedEndTime() { + return this.requestedEndTime; + } + + /** + * Set the end time for the time period for which restatement is initiated. Only UTC time is currently supported. + * + * @param requestedEndTime the requestedEndTime value to set + * @return the RerunTumblingWindowTrigger object itself. + */ + public RerunTumblingWindowTrigger withRequestedEndTime(DateTime requestedEndTime) { + this.requestedEndTime = requestedEndTime; + return this; + } + + /** + * Get the max number of parallel time windows (ready for execution) for which a rerun is triggered. + * + * @return the maxConcurrency value + */ + public int maxConcurrency() { + return this.maxConcurrency; + } + + /** + * Set the max number of parallel time windows (ready for execution) for which a rerun is triggered. + * + * @param maxConcurrency the maxConcurrency value to set + * @return the RerunTumblingWindowTrigger object itself. + */ + public RerunTumblingWindowTrigger withMaxConcurrency(int maxConcurrency) { + this.maxConcurrency = maxConcurrency; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/RerunTumblingWindowTriggerActionParameters.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/RerunTumblingWindowTriggerActionParameters.java new file mode 100644 index 0000000000000..4c6fa3d1b0cc7 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/RerunTumblingWindowTriggerActionParameters.java @@ -0,0 +1,99 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +import org.joda.time.DateTime; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Rerun tumbling window trigger Parameters. + */ +public class RerunTumblingWindowTriggerActionParameters { + /** + * The start time for the time period for which restatement is initiated. + * Only UTC time is currently supported. + */ + @JsonProperty(value = "startTime", required = true) + private DateTime startTime; + + /** + * The end time for the time period for which restatement is initiated. + * Only UTC time is currently supported. + */ + @JsonProperty(value = "endTime", required = true) + private DateTime endTime; + + /** + * The max number of parallel time windows (ready for execution) for which + * a rerun is triggered. + */ + @JsonProperty(value = "maxConcurrency", required = true) + private int maxConcurrency; + + /** + * Get the start time for the time period for which restatement is initiated. Only UTC time is currently supported. + * + * @return the startTime value + */ + public DateTime startTime() { + return this.startTime; + } + + /** + * Set the start time for the time period for which restatement is initiated. Only UTC time is currently supported. + * + * @param startTime the startTime value to set + * @return the RerunTumblingWindowTriggerActionParameters object itself. + */ + public RerunTumblingWindowTriggerActionParameters withStartTime(DateTime startTime) { + this.startTime = startTime; + return this; + } + + /** + * Get the end time for the time period for which restatement is initiated. Only UTC time is currently supported. + * + * @return the endTime value + */ + public DateTime endTime() { + return this.endTime; + } + + /** + * Set the end time for the time period for which restatement is initiated. Only UTC time is currently supported. + * + * @param endTime the endTime value to set + * @return the RerunTumblingWindowTriggerActionParameters object itself. + */ + public RerunTumblingWindowTriggerActionParameters withEndTime(DateTime endTime) { + this.endTime = endTime; + return this; + } + + /** + * Get the max number of parallel time windows (ready for execution) for which a rerun is triggered. + * + * @return the maxConcurrency value + */ + public int maxConcurrency() { + return this.maxConcurrency; + } + + /** + * Set the max number of parallel time windows (ready for execution) for which a rerun is triggered. + * + * @param maxConcurrency the maxConcurrency value to set + * @return the RerunTumblingWindowTriggerActionParameters object itself. + */ + public RerunTumblingWindowTriggerActionParameters withMaxConcurrency(int maxConcurrency) { + this.maxConcurrency = maxConcurrency; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ResponsysLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ResponsysLinkedService.java new file mode 100644 index 0000000000000..ef101634de43a --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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 of the Responsys server. + * + * @return the endpoint value + */ + public Object endpoint() { + return this.endpoint; + } + + /** + * Set the endpoint of the Responsys server. + * + * @param endpoint the endpoint value to set + * @return the ResponsysLinkedService object itself. + */ + public ResponsysLinkedService withEndpoint(Object endpoint) { + this.endpoint = endpoint; + return this; + } + + /** + * Get the client ID associated with the Responsys application. Type: string (or Expression with resultType string). + * + * @return the clientId value + */ + public Object clientId() { + return this.clientId; + } + + /** + * Set the client ID associated with the Responsys application. Type: string (or Expression with resultType string). + * + * @param clientId the clientId value to set + * @return the ResponsysLinkedService object itself. + */ + public ResponsysLinkedService withClientId(Object clientId) { + this.clientId = clientId; + return this; + } + + /** + * Get the client secret associated with the Responsys application. Type: string (or Expression with resultType string). + * + * @return the clientSecret value + */ + public SecretBase clientSecret() { + return this.clientSecret; + } + + /** + * Set the client secret associated with the Responsys application. Type: string (or Expression with resultType string). + * + * @param clientSecret the clientSecret value to set + * @return the ResponsysLinkedService object itself. + */ + public ResponsysLinkedService withClientSecret(SecretBase clientSecret) { + this.clientSecret = clientSecret; + return this; + } + + /** + * Get specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. Type: boolean (or Expression with resultType boolean). + * + * @return the useEncryptedEndpoints value + */ + public Object useEncryptedEndpoints() { + return this.useEncryptedEndpoints; + } + + /** + * Set specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. Type: boolean (or Expression with resultType boolean). + * + * @param useEncryptedEndpoints the useEncryptedEndpoints value to set + * @return the ResponsysLinkedService object itself. + */ + public ResponsysLinkedService withUseEncryptedEndpoints(Object useEncryptedEndpoints) { + this.useEncryptedEndpoints = useEncryptedEndpoints; + return this; + } + + /** + * Get specifies whether to require the host name in the server's certificate to match the host name of the server when connecting over SSL. The default value is true. Type: boolean (or Expression with resultType boolean). + * + * @return the useHostVerification value + */ + public Object useHostVerification() { + return this.useHostVerification; + } + + /** + * Set specifies whether to require the host name in the server's certificate to match the host name of the server when connecting over SSL. The default value is true. Type: boolean (or Expression with resultType boolean). + * + * @param useHostVerification the useHostVerification value to set + * @return the ResponsysLinkedService object itself. + */ + public ResponsysLinkedService withUseHostVerification(Object useHostVerification) { + this.useHostVerification = useHostVerification; + return this; + } + + /** + * Get specifies whether to verify the identity of the server when connecting over SSL. The default value is true. Type: boolean (or Expression with resultType boolean). + * + * @return the usePeerVerification value + */ + public Object usePeerVerification() { + return this.usePeerVerification; + } + + /** + * Set specifies whether to verify the identity of the server when connecting over SSL. The default value is true. Type: boolean (or Expression with resultType boolean). + * + * @param usePeerVerification the usePeerVerification value to set + * @return the ResponsysLinkedService object itself. + */ + public ResponsysLinkedService withUsePeerVerification(Object usePeerVerification) { + this.usePeerVerification = usePeerVerification; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the ResponsysLinkedService object itself. + */ + public ResponsysLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ResponsysObjectDataset.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ResponsysObjectDataset.java new file mode 100644 index 0000000000000..23c0b65a5b4af --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ResponsysObjectDataset.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DatasetInner; + +/** + * Responsys dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("ResponsysObject") +@JsonFlatten +public class ResponsysObjectDataset extends DatasetInner { + /** + * The table name. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; + + /** + * Get the table name. Type: string (or Expression with resultType string). + * + * @return the tableName value + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set the table name. Type: string (or Expression with resultType string). + * + * @param tableName the tableName value to set + * @return the ResponsysObjectDataset object itself. + */ + public ResponsysObjectDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ResponsysSource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ResponsysSource.java new file mode 100644 index 0000000000000..824c241a3a083 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 a query to retrieve data from source. Type: string (or Expression with resultType string). + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set a query to retrieve data from source. Type: string (or Expression with resultType string). + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/RestResourceDataset.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/RestResourceDataset.java new file mode 100644 index 0000000000000..5af4dfb62b21a --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/RestResourceDataset.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DatasetInner; + +/** + * A Rest service dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("RestResource") +@JsonFlatten +public class RestResourceDataset extends DatasetInner { + /** + * The relative URL to the resource that the RESTful API provides. Type: + * string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.relativeUrl") + private Object relativeUrl; + + /** + * The HTTP method used to call the RESTful API. The default is GET. Type: + * string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.requestMethod") + private Object requestMethod; + + /** + * The HTTP request body to the RESTful API if requestMethod is POST. Type: + * string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.requestBody") + private Object requestBody; + + /** + * The additional HTTP headers in the request to the RESTful API. Type: + * string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.additionalHeaders") + private Object additionalHeaders; + + /** + * The pagination rules to compose next page requests. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.paginationRules") + private Object paginationRules; + + /** + * Get the relative URL to the resource that the RESTful API provides. Type: string (or Expression with resultType string). + * + * @return the relativeUrl value + */ + public Object relativeUrl() { + return this.relativeUrl; + } + + /** + * Set the relative URL to the resource that the RESTful API provides. Type: string (or Expression with resultType string). + * + * @param relativeUrl the relativeUrl value to set + * @return the RestResourceDataset object itself. + */ + public RestResourceDataset withRelativeUrl(Object relativeUrl) { + this.relativeUrl = relativeUrl; + return this; + } + + /** + * Get the HTTP method used to call the RESTful API. The default is GET. Type: string (or Expression with resultType string). + * + * @return the requestMethod value + */ + public Object requestMethod() { + return this.requestMethod; + } + + /** + * Set the HTTP method used to call the RESTful API. The default is GET. Type: string (or Expression with resultType string). + * + * @param requestMethod the requestMethod value to set + * @return the RestResourceDataset object itself. + */ + public RestResourceDataset withRequestMethod(Object requestMethod) { + this.requestMethod = requestMethod; + return this; + } + + /** + * Get the HTTP request body to the RESTful API if requestMethod is POST. Type: string (or Expression with resultType string). + * + * @return the requestBody value + */ + public Object requestBody() { + return this.requestBody; + } + + /** + * Set the HTTP request body to the RESTful API if requestMethod is POST. Type: string (or Expression with resultType string). + * + * @param requestBody the requestBody value to set + * @return the RestResourceDataset object itself. + */ + public RestResourceDataset withRequestBody(Object requestBody) { + this.requestBody = requestBody; + return this; + } + + /** + * Get the additional HTTP headers in the request to the RESTful API. Type: string (or Expression with resultType string). + * + * @return the additionalHeaders value + */ + public Object additionalHeaders() { + return this.additionalHeaders; + } + + /** + * Set the additional HTTP headers in the request to the RESTful API. Type: string (or Expression with resultType string). + * + * @param additionalHeaders the additionalHeaders value to set + * @return the RestResourceDataset object itself. + */ + public RestResourceDataset withAdditionalHeaders(Object additionalHeaders) { + this.additionalHeaders = additionalHeaders; + return this; + } + + /** + * Get the pagination rules to compose next page requests. Type: string (or Expression with resultType string). + * + * @return the paginationRules value + */ + public Object paginationRules() { + return this.paginationRules; + } + + /** + * Set the pagination rules to compose next page requests. Type: string (or Expression with resultType string). + * + * @param paginationRules the paginationRules value to set + * @return the RestResourceDataset object itself. + */ + public RestResourceDataset withPaginationRules(Object paginationRules) { + this.paginationRules = paginationRules; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/RestServiceAuthenticationType.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/RestServiceAuthenticationType.java new file mode 100644 index 0000000000000..a5b80c68ea1d1 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/RestServiceAuthenticationType.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.v2018_06_01; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for RestServiceAuthenticationType. + */ +public final class RestServiceAuthenticationType extends ExpandableStringEnum { + /** Static value Anonymous for RestServiceAuthenticationType. */ + public static final RestServiceAuthenticationType ANONYMOUS = fromString("Anonymous"); + + /** Static value Basic for RestServiceAuthenticationType. */ + public static final RestServiceAuthenticationType BASIC = fromString("Basic"); + + /** Static value AadServicePrincipal for RestServiceAuthenticationType. */ + public static final RestServiceAuthenticationType AAD_SERVICE_PRINCIPAL = fromString("AadServicePrincipal"); + + /** Static value ManagedServiceIdentity for RestServiceAuthenticationType. */ + public static final RestServiceAuthenticationType MANAGED_SERVICE_IDENTITY = fromString("ManagedServiceIdentity"); + + /** + * Creates or finds a RestServiceAuthenticationType from its string representation. + * @param name a name to look for + * @return the corresponding RestServiceAuthenticationType + */ + @JsonCreator + public static RestServiceAuthenticationType fromString(String name) { + return fromString(name, RestServiceAuthenticationType.class); + } + + /** + * @return known RestServiceAuthenticationType values + */ + public static Collection values() { + return values(RestServiceAuthenticationType.class); + } +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/RestServiceLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/RestServiceLinkedService.java new file mode 100644 index 0000000000000..75d0037378fd6 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/RestServiceLinkedService.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.LinkedServiceInner; + +/** + * Rest Service linked service. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("RestService") +@JsonFlatten +public class RestServiceLinkedService extends LinkedServiceInner { + /** + * The base URL of the REST service. + */ + @JsonProperty(value = "typeProperties.url", required = true) + private Object url; + + /** + * Whether to validate server side SSL certificate when connecting to the + * endpoint.The default value is true. Type: boolean (or Expression with + * resultType boolean). + */ + @JsonProperty(value = "typeProperties.enableServerCertificateValidation") + private Object enableServerCertificateValidation; + + /** + * Type of authentication used to connect to the REST service. Possible + * values include: 'Anonymous', 'Basic', 'AadServicePrincipal', + * 'ManagedServiceIdentity'. + */ + @JsonProperty(value = "typeProperties.authenticationType", required = true) + private RestServiceAuthenticationType authenticationType; + + /** + * The user name used in Basic authentication type. + */ + @JsonProperty(value = "typeProperties.userName") + private Object userName; + + /** + * The password used in Basic authentication type. + */ + @JsonProperty(value = "typeProperties.password") + private SecretBase password; + + /** + * The application's client ID used in AadServicePrincipal authentication + * type. + */ + @JsonProperty(value = "typeProperties.servicePrincipalId") + private Object servicePrincipalId; + + /** + * The application's key used in AadServicePrincipal authentication type. + */ + @JsonProperty(value = "typeProperties.servicePrincipalKey") + private SecretBase servicePrincipalKey; + + /** + * The tenant information (domain name or tenant ID) used in + * AadServicePrincipal authentication type under which your application + * resides. + */ + @JsonProperty(value = "typeProperties.tenant") + private Object tenant; + + /** + * The resource you are requesting authorization to use. + */ + @JsonProperty(value = "typeProperties.aadResourceId") + private Object aadResourceId; + + /** + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; + + /** + * Get the base URL of the REST service. + * + * @return the url value + */ + public Object url() { + return this.url; + } + + /** + * Set the base URL of the REST service. + * + * @param url the url value to set + * @return the RestServiceLinkedService object itself. + */ + public RestServiceLinkedService withUrl(Object url) { + this.url = url; + return this; + } + + /** + * Get whether to validate server side SSL certificate when connecting to the endpoint.The default value is true. Type: boolean (or Expression with resultType boolean). + * + * @return the enableServerCertificateValidation value + */ + public Object enableServerCertificateValidation() { + return this.enableServerCertificateValidation; + } + + /** + * Set whether to validate server side SSL certificate when connecting to the endpoint.The default value is true. Type: boolean (or Expression with resultType boolean). + * + * @param enableServerCertificateValidation the enableServerCertificateValidation value to set + * @return the RestServiceLinkedService object itself. + */ + public RestServiceLinkedService withEnableServerCertificateValidation(Object enableServerCertificateValidation) { + this.enableServerCertificateValidation = enableServerCertificateValidation; + return this; + } + + /** + * Get type of authentication used to connect to the REST service. Possible values include: 'Anonymous', 'Basic', 'AadServicePrincipal', 'ManagedServiceIdentity'. + * + * @return the authenticationType value + */ + public RestServiceAuthenticationType authenticationType() { + return this.authenticationType; + } + + /** + * Set type of authentication used to connect to the REST service. Possible values include: 'Anonymous', 'Basic', 'AadServicePrincipal', 'ManagedServiceIdentity'. + * + * @param authenticationType the authenticationType value to set + * @return the RestServiceLinkedService object itself. + */ + public RestServiceLinkedService withAuthenticationType(RestServiceAuthenticationType authenticationType) { + this.authenticationType = authenticationType; + return this; + } + + /** + * Get the user name used in Basic authentication type. + * + * @return the userName value + */ + public Object userName() { + return this.userName; + } + + /** + * Set the user name used in Basic authentication type. + * + * @param userName the userName value to set + * @return the RestServiceLinkedService object itself. + */ + public RestServiceLinkedService withUserName(Object userName) { + this.userName = userName; + return this; + } + + /** + * Get the password used in Basic authentication type. + * + * @return the password value + */ + public SecretBase password() { + return this.password; + } + + /** + * Set the password used in Basic authentication type. + * + * @param password the password value to set + * @return the RestServiceLinkedService object itself. + */ + public RestServiceLinkedService withPassword(SecretBase password) { + this.password = password; + return this; + } + + /** + * Get the application's client ID used in AadServicePrincipal authentication type. + * + * @return the servicePrincipalId value + */ + public Object servicePrincipalId() { + return this.servicePrincipalId; + } + + /** + * Set the application's client ID used in AadServicePrincipal authentication type. + * + * @param servicePrincipalId the servicePrincipalId value to set + * @return the RestServiceLinkedService object itself. + */ + public RestServiceLinkedService withServicePrincipalId(Object servicePrincipalId) { + this.servicePrincipalId = servicePrincipalId; + return this; + } + + /** + * Get the application's key used in AadServicePrincipal authentication type. + * + * @return the servicePrincipalKey value + */ + public SecretBase servicePrincipalKey() { + return this.servicePrincipalKey; + } + + /** + * Set the application's key used in AadServicePrincipal authentication type. + * + * @param servicePrincipalKey the servicePrincipalKey value to set + * @return the RestServiceLinkedService object itself. + */ + public RestServiceLinkedService withServicePrincipalKey(SecretBase servicePrincipalKey) { + this.servicePrincipalKey = servicePrincipalKey; + return this; + } + + /** + * Get the tenant information (domain name or tenant ID) used in AadServicePrincipal authentication type under which your application resides. + * + * @return the tenant value + */ + public Object tenant() { + return this.tenant; + } + + /** + * Set the tenant information (domain name or tenant ID) used in AadServicePrincipal authentication type under which your application resides. + * + * @param tenant the tenant value to set + * @return the RestServiceLinkedService object itself. + */ + public RestServiceLinkedService withTenant(Object tenant) { + this.tenant = tenant; + return this; + } + + /** + * Get the resource you are requesting authorization to use. + * + * @return the aadResourceId value + */ + public Object aadResourceId() { + return this.aadResourceId; + } + + /** + * Set the resource you are requesting authorization to use. + * + * @param aadResourceId the aadResourceId value to set + * @return the RestServiceLinkedService object itself. + */ + public RestServiceLinkedService withAadResourceId(Object aadResourceId) { + this.aadResourceId = aadResourceId; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the RestServiceLinkedService object itself. + */ + public RestServiceLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/RestSource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/RestSource.java new file mode 100644 index 0000000000000..dd2d0cf303dca --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/RestSource.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Rest service source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("RestSource") +public class RestSource extends CopySource { + /** + * The timeout (TimeSpan) to get an HTTP response. It is the timeout to get + * a response, not the timeout to read response data. Default value: + * 00:01:40. 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; + + /** + * The time to await before sending next page request. + */ + @JsonProperty(value = "requestInterval") + private Object requestInterval; + + /** + * Get the timeout (TimeSpan) to get an HTTP response. It is the timeout to get a response, not the timeout to read response data. Default value: 00:01:40. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + * + * @return the httpRequestTimeout value + */ + public Object httpRequestTimeout() { + return this.httpRequestTimeout; + } + + /** + * Set the timeout (TimeSpan) to get an HTTP response. It is the timeout to get a response, not the timeout to read response data. Default value: 00:01:40. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + * + * @param httpRequestTimeout the httpRequestTimeout value to set + * @return the RestSource object itself. + */ + public RestSource withHttpRequestTimeout(Object httpRequestTimeout) { + this.httpRequestTimeout = httpRequestTimeout; + return this; + } + + /** + * Get the time to await before sending next page request. + * + * @return the requestInterval value + */ + public Object requestInterval() { + return this.requestInterval; + } + + /** + * Set the time to await before sending next page request. + * + * @param requestInterval the requestInterval value to set + * @return the RestSource object itself. + */ + public RestSource withRequestInterval(Object requestInterval) { + this.requestInterval = requestInterval; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/RetryPolicy.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/RetryPolicy.java new file mode 100644 index 0000000000000..779ca42ff96f3 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 maximum ordinary retry attempts. Default is 0. Type: integer (or Expression with resultType integer), minimum: 0. + * + * @return the count value + */ + public Object count() { + return this.count; + } + + /** + * Set maximum ordinary retry attempts. Default is 0. Type: integer (or Expression with resultType integer), minimum: 0. + * + * @param count the count value to set + * @return the RetryPolicy object itself. + */ + public RetryPolicy withCount(Object count) { + this.count = count; + return this; + } + + /** + * Get interval between retries in seconds. Default is 30. + * + * @return the intervalInSeconds value + */ + public Integer intervalInSeconds() { + return this.intervalInSeconds; + } + + /** + * Set interval between retries in seconds. Default is 30. + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/RunFilterParameters.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/RunFilterParameters.java new file mode 100644 index 0000000000000..2a77ec112fd4d --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/RunFilterParameters.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.v2018_06_01; + +import org.joda.time.DateTime; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Query parameters for listing runs. + */ +public class RunFilterParameters { + /** + * 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 run event was updated in 'ISO 8601' + * format. + */ + @JsonProperty(value = "lastUpdatedAfter", required = true) + private DateTime lastUpdatedAfter; + + /** + * The time at or before which the 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 continuation token for getting the next page of results. Null for first page. + * + * @return the continuationToken value + */ + public String continuationToken() { + return this.continuationToken; + } + + /** + * Set the continuation token for getting the next page of results. Null for first page. + * + * @param continuationToken the continuationToken value to set + * @return the RunFilterParameters object itself. + */ + public RunFilterParameters withContinuationToken(String continuationToken) { + this.continuationToken = continuationToken; + return this; + } + + /** + * Get the time at or after which the run event was updated in 'ISO 8601' format. + * + * @return the lastUpdatedAfter value + */ + public DateTime lastUpdatedAfter() { + return this.lastUpdatedAfter; + } + + /** + * Set the time at or after which the run event was updated in 'ISO 8601' format. + * + * @param lastUpdatedAfter the lastUpdatedAfter value to set + * @return the RunFilterParameters object itself. + */ + public RunFilterParameters withLastUpdatedAfter(DateTime lastUpdatedAfter) { + this.lastUpdatedAfter = lastUpdatedAfter; + return this; + } + + /** + * Get the time at or before which the run event was updated in 'ISO 8601' format. + * + * @return the lastUpdatedBefore value + */ + public DateTime lastUpdatedBefore() { + return this.lastUpdatedBefore; + } + + /** + * Set the time at or before which the run event was updated in 'ISO 8601' format. + * + * @param lastUpdatedBefore the lastUpdatedBefore value to set + * @return the RunFilterParameters object itself. + */ + public RunFilterParameters withLastUpdatedBefore(DateTime lastUpdatedBefore) { + this.lastUpdatedBefore = lastUpdatedBefore; + return this; + } + + /** + * Get list of filters. + * + * @return the filters value + */ + public List filters() { + return this.filters; + } + + /** + * Set list of filters. + * + * @param filters the filters value to set + * @return the RunFilterParameters object itself. + */ + public RunFilterParameters withFilters(List filters) { + this.filters = filters; + return this; + } + + /** + * Get list of OrderBy option. + * + * @return the orderBy value + */ + public List orderBy() { + return this.orderBy; + } + + /** + * Set list of OrderBy option. + * + * @param orderBy the orderBy value to set + * @return the RunFilterParameters object itself. + */ + public RunFilterParameters withOrderBy(List orderBy) { + this.orderBy = orderBy; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/RunQueryFilter.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/RunQueryFilter.java new file mode 100644 index 0000000000000..45e36541ed2b3 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/RunQueryFilter.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.v2018_06_01; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Query filter option for listing runs. + */ +public class RunQueryFilter { + /** + * Parameter name to be used for filter. The allowed operands to query + * pipeline runs are PipelineName, RunStart, RunEnd and Status; to query + * activity runs are ActivityName, ActivityRunStart, ActivityRunEnd, + * ActivityType and Status, and to query trigger runs are TriggerName, + * TriggerRunTimestamp and Status. Possible values include: 'PipelineName', + * 'Status', 'RunStart', 'RunEnd', 'ActivityName', 'ActivityRunStart', + * 'ActivityRunEnd', 'ActivityType', 'TriggerName', 'TriggerRunTimestamp', + * 'RunGroupId', 'LatestOnly'. + */ + @JsonProperty(value = "operand", required = true) + private RunQueryFilterOperand operand; + + /** + * Operator to be used for filter. Possible values include: 'Equals', + * 'NotEquals', 'In', 'NotIn'. + */ + @JsonProperty(value = "operator", required = true) + private RunQueryFilterOperator operator; + + /** + * List of filter values. + */ + @JsonProperty(value = "values", required = true) + private List values; + + /** + * Get parameter name to be used for filter. The allowed operands to query pipeline runs are PipelineName, RunStart, RunEnd and Status; to query activity runs are ActivityName, ActivityRunStart, ActivityRunEnd, ActivityType and Status, and to query trigger runs are TriggerName, TriggerRunTimestamp and Status. Possible values include: 'PipelineName', 'Status', 'RunStart', 'RunEnd', 'ActivityName', 'ActivityRunStart', 'ActivityRunEnd', 'ActivityType', 'TriggerName', 'TriggerRunTimestamp', 'RunGroupId', 'LatestOnly'. + * + * @return the operand value + */ + public RunQueryFilterOperand operand() { + return this.operand; + } + + /** + * Set parameter name to be used for filter. The allowed operands to query pipeline runs are PipelineName, RunStart, RunEnd and Status; to query activity runs are ActivityName, ActivityRunStart, ActivityRunEnd, ActivityType and Status, and to query trigger runs are TriggerName, TriggerRunTimestamp and Status. Possible values include: 'PipelineName', 'Status', 'RunStart', 'RunEnd', 'ActivityName', 'ActivityRunStart', 'ActivityRunEnd', 'ActivityType', 'TriggerName', 'TriggerRunTimestamp', 'RunGroupId', 'LatestOnly'. + * + * @param operand the operand value to set + * @return the RunQueryFilter object itself. + */ + public RunQueryFilter withOperand(RunQueryFilterOperand operand) { + this.operand = operand; + return this; + } + + /** + * Get operator to be used for filter. Possible values include: 'Equals', 'NotEquals', 'In', 'NotIn'. + * + * @return the operator value + */ + public RunQueryFilterOperator operator() { + return this.operator; + } + + /** + * Set operator to be used for filter. Possible values include: 'Equals', 'NotEquals', 'In', 'NotIn'. + * + * @param operator the operator value to set + * @return the RunQueryFilter object itself. + */ + public RunQueryFilter withOperator(RunQueryFilterOperator operator) { + this.operator = operator; + return this; + } + + /** + * Get list of filter values. + * + * @return the values value + */ + public List values() { + return this.values; + } + + /** + * Set list of filter values. + * + * @param values the values value to set + * @return the RunQueryFilter object itself. + */ + public RunQueryFilter withValues(List values) { + this.values = values; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/RunQueryFilterOperand.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/RunQueryFilterOperand.java new file mode 100644 index 0000000000000..d4d6f01e27936 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/RunQueryFilterOperand.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.v2018_06_01; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for RunQueryFilterOperand. + */ +public final class RunQueryFilterOperand extends ExpandableStringEnum { + /** Static value PipelineName for RunQueryFilterOperand. */ + public static final RunQueryFilterOperand PIPELINE_NAME = fromString("PipelineName"); + + /** Static value Status for RunQueryFilterOperand. */ + public static final RunQueryFilterOperand STATUS = fromString("Status"); + + /** Static value RunStart for RunQueryFilterOperand. */ + public static final RunQueryFilterOperand RUN_START = fromString("RunStart"); + + /** Static value RunEnd for RunQueryFilterOperand. */ + public static final RunQueryFilterOperand RUN_END = fromString("RunEnd"); + + /** Static value ActivityName for RunQueryFilterOperand. */ + public static final RunQueryFilterOperand ACTIVITY_NAME = fromString("ActivityName"); + + /** Static value ActivityRunStart for RunQueryFilterOperand. */ + public static final RunQueryFilterOperand ACTIVITY_RUN_START = fromString("ActivityRunStart"); + + /** Static value ActivityRunEnd for RunQueryFilterOperand. */ + public static final RunQueryFilterOperand ACTIVITY_RUN_END = fromString("ActivityRunEnd"); + + /** Static value ActivityType for RunQueryFilterOperand. */ + public static final RunQueryFilterOperand ACTIVITY_TYPE = fromString("ActivityType"); + + /** Static value TriggerName for RunQueryFilterOperand. */ + public static final RunQueryFilterOperand TRIGGER_NAME = fromString("TriggerName"); + + /** Static value TriggerRunTimestamp for RunQueryFilterOperand. */ + public static final RunQueryFilterOperand TRIGGER_RUN_TIMESTAMP = fromString("TriggerRunTimestamp"); + + /** Static value RunGroupId for RunQueryFilterOperand. */ + public static final RunQueryFilterOperand RUN_GROUP_ID = fromString("RunGroupId"); + + /** Static value LatestOnly for RunQueryFilterOperand. */ + public static final RunQueryFilterOperand LATEST_ONLY = fromString("LatestOnly"); + + /** + * Creates or finds a RunQueryFilterOperand from its string representation. + * @param name a name to look for + * @return the corresponding RunQueryFilterOperand + */ + @JsonCreator + public static RunQueryFilterOperand fromString(String name) { + return fromString(name, RunQueryFilterOperand.class); + } + + /** + * @return known RunQueryFilterOperand values + */ + public static Collection values() { + return values(RunQueryFilterOperand.class); + } +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/RunQueryFilterOperator.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/RunQueryFilterOperator.java new file mode 100644 index 0000000000000..51835bc1ae115 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/RunQueryFilterOperator.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.v2018_06_01; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for RunQueryFilterOperator. + */ +public final class RunQueryFilterOperator extends ExpandableStringEnum { + /** Static value Equals for RunQueryFilterOperator. */ + public static final RunQueryFilterOperator EQUALS = fromString("Equals"); + + /** Static value NotEquals for RunQueryFilterOperator. */ + public static final RunQueryFilterOperator NOT_EQUALS = fromString("NotEquals"); + + /** Static value In for RunQueryFilterOperator. */ + public static final RunQueryFilterOperator IN = fromString("In"); + + /** Static value NotIn for RunQueryFilterOperator. */ + public static final RunQueryFilterOperator NOT_IN = fromString("NotIn"); + + /** + * Creates or finds a RunQueryFilterOperator from its string representation. + * @param name a name to look for + * @return the corresponding RunQueryFilterOperator + */ + @JsonCreator + public static RunQueryFilterOperator fromString(String name) { + return fromString(name, RunQueryFilterOperator.class); + } + + /** + * @return known RunQueryFilterOperator values + */ + public static Collection values() { + return values(RunQueryFilterOperator.class); + } +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/RunQueryOrder.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/RunQueryOrder.java new file mode 100644 index 0000000000000..f83b500d3e5d8 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/RunQueryOrder.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.v2018_06_01; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for RunQueryOrder. + */ +public final class RunQueryOrder extends ExpandableStringEnum { + /** Static value ASC for RunQueryOrder. */ + public static final RunQueryOrder ASC = fromString("ASC"); + + /** Static value DESC for RunQueryOrder. */ + public static final RunQueryOrder DESC = fromString("DESC"); + + /** + * Creates or finds a RunQueryOrder from its string representation. + * @param name a name to look for + * @return the corresponding RunQueryOrder + */ + @JsonCreator + public static RunQueryOrder fromString(String name) { + return fromString(name, RunQueryOrder.class); + } + + /** + * @return known RunQueryOrder values + */ + public static Collection values() { + return values(RunQueryOrder.class); + } +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/RunQueryOrderBy.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/RunQueryOrderBy.java new file mode 100644 index 0000000000000..d62dc6c2dd8f8 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/RunQueryOrderBy.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * An object to provide order by options for listing runs. + */ +public class RunQueryOrderBy { + /** + * Parameter name to be used for order by. The allowed parameters to order + * by for pipeline runs are PipelineName, RunStart, RunEnd and Status; for + * activity runs are ActivityName, ActivityRunStart, ActivityRunEnd and + * Status; for trigger runs are TriggerName, TriggerRunTimestamp and + * Status. Possible values include: 'RunStart', 'RunEnd', 'PipelineName', + * 'Status', 'ActivityName', 'ActivityRunStart', 'ActivityRunEnd', + * 'TriggerName', 'TriggerRunTimestamp'. + */ + @JsonProperty(value = "orderBy", required = true) + private RunQueryOrderByField orderBy; + + /** + * Sorting order of the parameter. Possible values include: 'ASC', 'DESC'. + */ + @JsonProperty(value = "order", required = true) + private RunQueryOrder order; + + /** + * Get parameter name to be used for order by. The allowed parameters to order by for pipeline runs are PipelineName, RunStart, RunEnd and Status; for activity runs are ActivityName, ActivityRunStart, ActivityRunEnd and Status; for trigger runs are TriggerName, TriggerRunTimestamp and Status. Possible values include: 'RunStart', 'RunEnd', 'PipelineName', 'Status', 'ActivityName', 'ActivityRunStart', 'ActivityRunEnd', 'TriggerName', 'TriggerRunTimestamp'. + * + * @return the orderBy value + */ + public RunQueryOrderByField orderBy() { + return this.orderBy; + } + + /** + * Set parameter name to be used for order by. The allowed parameters to order by for pipeline runs are PipelineName, RunStart, RunEnd and Status; for activity runs are ActivityName, ActivityRunStart, ActivityRunEnd and Status; for trigger runs are TriggerName, TriggerRunTimestamp and Status. Possible values include: 'RunStart', 'RunEnd', 'PipelineName', 'Status', 'ActivityName', 'ActivityRunStart', 'ActivityRunEnd', 'TriggerName', 'TriggerRunTimestamp'. + * + * @param orderBy the orderBy value to set + * @return the RunQueryOrderBy object itself. + */ + public RunQueryOrderBy withOrderBy(RunQueryOrderByField orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Get sorting order of the parameter. Possible values include: 'ASC', 'DESC'. + * + * @return the order value + */ + public RunQueryOrder order() { + return this.order; + } + + /** + * Set sorting order of the parameter. Possible values include: 'ASC', 'DESC'. + * + * @param order the order value to set + * @return the RunQueryOrderBy object itself. + */ + public RunQueryOrderBy withOrder(RunQueryOrder order) { + this.order = order; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/RunQueryOrderByField.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/RunQueryOrderByField.java new file mode 100644 index 0000000000000..ddb1e8bbabe21 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/RunQueryOrderByField.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.v2018_06_01; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for RunQueryOrderByField. + */ +public final class RunQueryOrderByField extends ExpandableStringEnum { + /** Static value RunStart for RunQueryOrderByField. */ + public static final RunQueryOrderByField RUN_START = fromString("RunStart"); + + /** Static value RunEnd for RunQueryOrderByField. */ + public static final RunQueryOrderByField RUN_END = fromString("RunEnd"); + + /** Static value PipelineName for RunQueryOrderByField. */ + public static final RunQueryOrderByField PIPELINE_NAME = fromString("PipelineName"); + + /** Static value Status for RunQueryOrderByField. */ + public static final RunQueryOrderByField STATUS = fromString("Status"); + + /** Static value ActivityName for RunQueryOrderByField. */ + public static final RunQueryOrderByField ACTIVITY_NAME = fromString("ActivityName"); + + /** Static value ActivityRunStart for RunQueryOrderByField. */ + public static final RunQueryOrderByField ACTIVITY_RUN_START = fromString("ActivityRunStart"); + + /** Static value ActivityRunEnd for RunQueryOrderByField. */ + public static final RunQueryOrderByField ACTIVITY_RUN_END = fromString("ActivityRunEnd"); + + /** Static value TriggerName for RunQueryOrderByField. */ + public static final RunQueryOrderByField TRIGGER_NAME = fromString("TriggerName"); + + /** Static value TriggerRunTimestamp for RunQueryOrderByField. */ + public static final RunQueryOrderByField TRIGGER_RUN_TIMESTAMP = fromString("TriggerRunTimestamp"); + + /** + * Creates or finds a RunQueryOrderByField from its string representation. + * @param name a name to look for + * @return the corresponding RunQueryOrderByField + */ + @JsonCreator + public static RunQueryOrderByField fromString(String name) { + return fromString(name, RunQueryOrderByField.class); + } + + /** + * @return known RunQueryOrderByField values + */ + public static Collection values() { + return values(RunQueryOrderByField.class); + } +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SSISAccessCredential.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SSISAccessCredential.java new file mode 100644 index 0000000000000..87b32bcce2067 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SSISAccessCredential.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * SSIS access credential. + */ +public class SSISAccessCredential { + /** + * Domain for windows authentication. + */ + @JsonProperty(value = "domain", required = true) + private Object domain; + + /** + * UseName for windows authentication. + */ + @JsonProperty(value = "userName", required = true) + private Object userName; + + /** + * Password for windows authentication. + */ + @JsonProperty(value = "password", required = true) + private SecureString password; + + /** + * Get domain for windows authentication. + * + * @return the domain value + */ + public Object domain() { + return this.domain; + } + + /** + * Set domain for windows authentication. + * + * @param domain the domain value to set + * @return the SSISAccessCredential object itself. + */ + public SSISAccessCredential withDomain(Object domain) { + this.domain = domain; + return this; + } + + /** + * Get useName for windows authentication. + * + * @return the userName value + */ + public Object userName() { + return this.userName; + } + + /** + * Set useName for windows authentication. + * + * @param userName the userName value to set + * @return the SSISAccessCredential object itself. + */ + public SSISAccessCredential withUserName(Object userName) { + this.userName = userName; + return this; + } + + /** + * Get password for windows authentication. + * + * @return the password value + */ + public SecureString password() { + return this.password; + } + + /** + * Set password for windows authentication. + * + * @param password the password value to set + * @return the SSISAccessCredential object itself. + */ + public SSISAccessCredential withPassword(SecureString password) { + this.password = password; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SSISExecutionCredential.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SSISExecutionCredential.java new file mode 100644 index 0000000000000..e6017cb5bae20 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SSISExecutionCredential.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * SSIS package execution credential. + */ +public class SSISExecutionCredential { + /** + * Domain for windows authentication. + */ + @JsonProperty(value = "domain", required = true) + private Object domain; + + /** + * UseName for windows authentication. + */ + @JsonProperty(value = "userName", required = true) + private Object userName; + + /** + * Password for windows authentication. + */ + @JsonProperty(value = "password", required = true) + private SecureString password; + + /** + * Get domain for windows authentication. + * + * @return the domain value + */ + public Object domain() { + return this.domain; + } + + /** + * Set domain for windows authentication. + * + * @param domain the domain value to set + * @return the SSISExecutionCredential object itself. + */ + public SSISExecutionCredential withDomain(Object domain) { + this.domain = domain; + return this; + } + + /** + * Get useName for windows authentication. + * + * @return the userName value + */ + public Object userName() { + return this.userName; + } + + /** + * Set useName for windows authentication. + * + * @param userName the userName value to set + * @return the SSISExecutionCredential object itself. + */ + public SSISExecutionCredential withUserName(Object userName) { + this.userName = userName; + return this; + } + + /** + * Get password for windows authentication. + * + * @return the password value + */ + public SecureString password() { + return this.password; + } + + /** + * Set password for windows authentication. + * + * @param password the password value to set + * @return the SSISExecutionCredential object itself. + */ + public SSISExecutionCredential withPassword(SecureString password) { + this.password = password; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SSISExecutionParameter.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SSISExecutionParameter.java new file mode 100644 index 0000000000000..c89bb4d62f5a5 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SSISExecutionParameter.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * SSIS execution parameter. + */ +public class SSISExecutionParameter { + /** + * SSIS package execution parameter value. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "value", required = true) + private Object value; + + /** + * Get sSIS package execution parameter value. Type: string (or Expression with resultType string). + * + * @return the value value + */ + public Object value() { + return this.value; + } + + /** + * Set sSIS package execution parameter value. Type: string (or Expression with resultType string). + * + * @param value the value value to set + * @return the SSISExecutionParameter object itself. + */ + public SSISExecutionParameter withValue(Object value) { + this.value = value; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SSISLogLocation.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SSISLogLocation.java new file mode 100644 index 0000000000000..a84b89c6f551a --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SSISLogLocation.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; + +/** + * SSIS package execution log location. + */ +@JsonFlatten +public class SSISLogLocation { + /** + * The SSIS package execution log path. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "logPath", required = true) + private Object logPath; + + /** + * The type of SSIS log location. + */ + @JsonProperty(value = "type", required = true) + private String type; + + /** + * The package execution log access credential. + */ + @JsonProperty(value = "typeProperties.accessCredential") + private SSISAccessCredential accessCredential; + + /** + * Specifies the interval to refresh log. The default interval is 5 + * minutes. Type: string (or Expression with resultType string), pattern: + * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + */ + @JsonProperty(value = "typeProperties.logRefreshInterval") + private Object logRefreshInterval; + + /** + * Creates an instance of SSISLogLocation class. + * @param logPath the SSIS package execution log path. Type: string (or Expression with resultType string). + */ + public SSISLogLocation() { + type = "File"; + } + + /** + * Get the SSIS package execution log path. Type: string (or Expression with resultType string). + * + * @return the logPath value + */ + public Object logPath() { + return this.logPath; + } + + /** + * Set the SSIS package execution log path. Type: string (or Expression with resultType string). + * + * @param logPath the logPath value to set + * @return the SSISLogLocation object itself. + */ + public SSISLogLocation withLogPath(Object logPath) { + this.logPath = logPath; + return this; + } + + /** + * Get the type of SSIS log location. + * + * @return the type value + */ + public String type() { + return this.type; + } + + /** + * Set the type of SSIS log location. + * + * @param type the type value to set + * @return the SSISLogLocation object itself. + */ + public SSISLogLocation withType(String type) { + this.type = type; + return this; + } + + /** + * Get the package execution log access credential. + * + * @return the accessCredential value + */ + public SSISAccessCredential accessCredential() { + return this.accessCredential; + } + + /** + * Set the package execution log access credential. + * + * @param accessCredential the accessCredential value to set + * @return the SSISLogLocation object itself. + */ + public SSISLogLocation withAccessCredential(SSISAccessCredential accessCredential) { + this.accessCredential = accessCredential; + return this; + } + + /** + * Get specifies the interval to refresh log. The default interval is 5 minutes. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + * + * @return the logRefreshInterval value + */ + public Object logRefreshInterval() { + return this.logRefreshInterval; + } + + /** + * Set specifies the interval to refresh log. The default interval is 5 minutes. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + * + * @param logRefreshInterval the logRefreshInterval value to set + * @return the SSISLogLocation object itself. + */ + public SSISLogLocation withLogRefreshInterval(Object logRefreshInterval) { + this.logRefreshInterval = logRefreshInterval; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SSISPackageLocation.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SSISPackageLocation.java new file mode 100644 index 0000000000000..661d60ef01ba4 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SSISPackageLocation.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; + +/** + * SSIS package location. + */ +@JsonFlatten +public class SSISPackageLocation { + /** + * The SSIS package path. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "packagePath", required = true) + private Object packagePath; + + /** + * The type of SSIS package location. Possible values include: 'SSISDB', + * 'File'. + */ + @JsonProperty(value = "type") + private SsisPackageLocationType type; + + /** + * Password of the package. + */ + @JsonProperty(value = "typeProperties.packagePassword") + private SecureString packagePassword; + + /** + * The package access credential. + */ + @JsonProperty(value = "typeProperties.accessCredential") + private SSISAccessCredential accessCredential; + + /** + * The configuration file of the package execution. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.configurationPath") + private Object configurationPath; + + /** + * Get the SSIS package path. Type: string (or Expression with resultType string). + * + * @return the packagePath value + */ + public Object packagePath() { + return this.packagePath; + } + + /** + * Set the SSIS package path. Type: string (or Expression with resultType string). + * + * @param packagePath the packagePath value to set + * @return the SSISPackageLocation object itself. + */ + public SSISPackageLocation withPackagePath(Object packagePath) { + this.packagePath = packagePath; + return this; + } + + /** + * Get the type of SSIS package location. Possible values include: 'SSISDB', 'File'. + * + * @return the type value + */ + public SsisPackageLocationType type() { + return this.type; + } + + /** + * Set the type of SSIS package location. Possible values include: 'SSISDB', 'File'. + * + * @param type the type value to set + * @return the SSISPackageLocation object itself. + */ + public SSISPackageLocation withType(SsisPackageLocationType type) { + this.type = type; + return this; + } + + /** + * Get password of the package. + * + * @return the packagePassword value + */ + public SecureString packagePassword() { + return this.packagePassword; + } + + /** + * Set password of the package. + * + * @param packagePassword the packagePassword value to set + * @return the SSISPackageLocation object itself. + */ + public SSISPackageLocation withPackagePassword(SecureString packagePassword) { + this.packagePassword = packagePassword; + return this; + } + + /** + * Get the package access credential. + * + * @return the accessCredential value + */ + public SSISAccessCredential accessCredential() { + return this.accessCredential; + } + + /** + * Set the package access credential. + * + * @param accessCredential the accessCredential value to set + * @return the SSISPackageLocation object itself. + */ + public SSISPackageLocation withAccessCredential(SSISAccessCredential accessCredential) { + this.accessCredential = accessCredential; + return this; + } + + /** + * Get the configuration file of the package execution. Type: string (or Expression with resultType string). + * + * @return the configurationPath value + */ + public Object configurationPath() { + return this.configurationPath; + } + + /** + * Set the configuration file of the package execution. Type: string (or Expression with resultType string). + * + * @param configurationPath the configurationPath value to set + * @return the SSISPackageLocation object itself. + */ + public SSISPackageLocation withConfigurationPath(Object configurationPath) { + this.configurationPath = configurationPath; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SSISPropertyOverride.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SSISPropertyOverride.java new file mode 100644 index 0000000000000..44a1168a142c7 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SSISPropertyOverride.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * SSIS property override. + */ +public class SSISPropertyOverride { + /** + * SSIS package property override value. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "value", required = true) + private Object value; + + /** + * Whether SSIS package property override value is sensitive data. Value + * will be encrypted in SSISDB if it is true. + */ + @JsonProperty(value = "isSensitive") + private Boolean isSensitive; + + /** + * Get sSIS package property override value. Type: string (or Expression with resultType string). + * + * @return the value value + */ + public Object value() { + return this.value; + } + + /** + * Set sSIS package property override value. Type: string (or Expression with resultType string). + * + * @param value the value value to set + * @return the SSISPropertyOverride object itself. + */ + public SSISPropertyOverride withValue(Object value) { + this.value = value; + return this; + } + + /** + * Get whether SSIS package property override value is sensitive data. Value will be encrypted in SSISDB if it is true. + * + * @return the isSensitive value + */ + public Boolean isSensitive() { + return this.isSensitive; + } + + /** + * Set whether SSIS package property override value is sensitive data. Value will be encrypted in SSISDB if it is true. + * + * @param isSensitive the isSensitive value to set + * @return the SSISPropertyOverride object itself. + */ + public SSISPropertyOverride withIsSensitive(Boolean isSensitive) { + this.isSensitive = isSensitive; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SalesforceLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SalesforceLinkedService.java new file mode 100644 index 0000000000000..22106e73f7548 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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 URL of Salesforce instance. Default is 'https://login.salesforce.com'. To copy data from sandbox, specify 'https://test.salesforce.com'. To copy data from custom domain, specify, for example, 'https://[domain].my.salesforce.com'. Type: string (or Expression with resultType string). + * + * @return the environmentUrl value + */ + public Object environmentUrl() { + return this.environmentUrl; + } + + /** + * Set the URL of Salesforce instance. Default is 'https://login.salesforce.com'. To copy data from sandbox, specify 'https://test.salesforce.com'. To copy data from custom domain, specify, for example, 'https://[domain].my.salesforce.com'. Type: string (or Expression with resultType string). + * + * @param environmentUrl the environmentUrl value to set + * @return the SalesforceLinkedService object itself. + */ + public SalesforceLinkedService withEnvironmentUrl(Object environmentUrl) { + this.environmentUrl = environmentUrl; + return this; + } + + /** + * Get the username for Basic authentication of the Salesforce instance. Type: string (or Expression with resultType string). + * + * @return the username value + */ + public Object username() { + return this.username; + } + + /** + * Set the username for Basic authentication of the Salesforce instance. Type: string (or Expression with resultType string). + * + * @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 for Basic authentication of the Salesforce instance. + * + * @return the password value + */ + public SecretBase password() { + return this.password; + } + + /** + * Set the password for Basic authentication of the Salesforce instance. + * + * @param password the password value to set + * @return the SalesforceLinkedService object itself. + */ + public SalesforceLinkedService withPassword(SecretBase password) { + this.password = password; + return this; + } + + /** + * Get the security token is required to remotely access Salesforce instance. + * + * @return the securityToken value + */ + public SecretBase securityToken() { + return this.securityToken; + } + + /** + * Set the security token is required to remotely access Salesforce instance. + * + * @param securityToken the securityToken value to set + * @return the SalesforceLinkedService object itself. + */ + public SalesforceLinkedService withSecurityToken(SecretBase securityToken) { + this.securityToken = securityToken; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the SalesforceLinkedService object itself. + */ + public SalesforceLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SalesforceMarketingCloudLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SalesforceMarketingCloudLinkedService.java new file mode 100644 index 0000000000000..f4af75d47e00a --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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 client ID associated with the Salesforce Marketing Cloud application. Type: string (or Expression with resultType string). + * + * @return the clientId value + */ + public Object clientId() { + return this.clientId; + } + + /** + * Set the client ID associated with the Salesforce Marketing Cloud application. Type: string (or Expression with resultType string). + * + * @param clientId the clientId value to set + * @return the SalesforceMarketingCloudLinkedService object itself. + */ + public SalesforceMarketingCloudLinkedService withClientId(Object clientId) { + this.clientId = clientId; + return this; + } + + /** + * Get the client secret associated with the Salesforce Marketing Cloud application. Type: string (or Expression with resultType string). + * + * @return the clientSecret value + */ + public SecretBase clientSecret() { + return this.clientSecret; + } + + /** + * Set the client secret associated with the Salesforce Marketing Cloud application. Type: string (or Expression with resultType string). + * + * @param clientSecret the clientSecret value to set + * @return the SalesforceMarketingCloudLinkedService object itself. + */ + public SalesforceMarketingCloudLinkedService withClientSecret(SecretBase clientSecret) { + this.clientSecret = clientSecret; + return this; + } + + /** + * Get specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. Type: boolean (or Expression with resultType boolean). + * + * @return the useEncryptedEndpoints value + */ + public Object useEncryptedEndpoints() { + return this.useEncryptedEndpoints; + } + + /** + * Set specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. Type: boolean (or Expression with resultType boolean). + * + * @param useEncryptedEndpoints the useEncryptedEndpoints value to set + * @return the SalesforceMarketingCloudLinkedService object itself. + */ + public SalesforceMarketingCloudLinkedService withUseEncryptedEndpoints(Object useEncryptedEndpoints) { + this.useEncryptedEndpoints = useEncryptedEndpoints; + return this; + } + + /** + * Get specifies whether to require the host name in the server's certificate to match the host name of the server when connecting over SSL. The default value is true. Type: boolean (or Expression with resultType boolean). + * + * @return the useHostVerification value + */ + public Object useHostVerification() { + return this.useHostVerification; + } + + /** + * Set specifies whether to require the host name in the server's certificate to match the host name of the server when connecting over SSL. The default value is true. Type: boolean (or Expression with resultType boolean). + * + * @param useHostVerification the useHostVerification value to set + * @return the SalesforceMarketingCloudLinkedService object itself. + */ + public SalesforceMarketingCloudLinkedService withUseHostVerification(Object useHostVerification) { + this.useHostVerification = useHostVerification; + return this; + } + + /** + * Get specifies whether to verify the identity of the server when connecting over SSL. The default value is true. Type: boolean (or Expression with resultType boolean). + * + * @return the usePeerVerification value + */ + public Object usePeerVerification() { + return this.usePeerVerification; + } + + /** + * Set specifies whether to verify the identity of the server when connecting over SSL. The default value is true. Type: boolean (or Expression with resultType boolean). + * + * @param usePeerVerification the usePeerVerification value to set + * @return the SalesforceMarketingCloudLinkedService object itself. + */ + public SalesforceMarketingCloudLinkedService withUsePeerVerification(Object usePeerVerification) { + this.usePeerVerification = usePeerVerification; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the SalesforceMarketingCloudLinkedService object itself. + */ + public SalesforceMarketingCloudLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SalesforceMarketingCloudObjectDataset.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SalesforceMarketingCloudObjectDataset.java new file mode 100644 index 0000000000000..2e7c7877dc2fa --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SalesforceMarketingCloudObjectDataset.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DatasetInner; + +/** + * Salesforce Marketing Cloud dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("SalesforceMarketingCloudObject") +@JsonFlatten +public class SalesforceMarketingCloudObjectDataset extends DatasetInner { + /** + * The table name. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; + + /** + * Get the table name. Type: string (or Expression with resultType string). + * + * @return the tableName value + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set the table name. Type: string (or Expression with resultType string). + * + * @param tableName the tableName value to set + * @return the SalesforceMarketingCloudObjectDataset object itself. + */ + public SalesforceMarketingCloudObjectDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SalesforceMarketingCloudSource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SalesforceMarketingCloudSource.java new file mode 100644 index 0000000000000..39ebdec8f708a --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 a query to retrieve data from source. Type: string (or Expression with resultType string). + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set a query to retrieve data from source. Type: string (or Expression with resultType string). + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SalesforceObjectDataset.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SalesforceObjectDataset.java new file mode 100644 index 0000000000000..771b6df725c2d --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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 Salesforce object API name. Type: string (or Expression with resultType string). + * + * @return the objectApiName value + */ + public Object objectApiName() { + return this.objectApiName; + } + + /** + * Set the Salesforce object API name. Type: string (or Expression with resultType string). + * + * @param objectApiName the objectApiName value to set + * @return the SalesforceObjectDataset object itself. + */ + public SalesforceObjectDataset withObjectApiName(Object objectApiName) { + this.objectApiName = objectApiName; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SalesforceServiceCloudLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SalesforceServiceCloudLinkedService.java new file mode 100644 index 0000000000000..501d1bf6aba6e --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SalesforceServiceCloudLinkedService.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.LinkedServiceInner; + +/** + * Linked service for Salesforce Service Cloud. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("SalesforceServiceCloud") +@JsonFlatten +public class SalesforceServiceCloudLinkedService extends LinkedServiceInner { + /** + * The URL of Salesforce Service Cloud instance. Default is + * 'https://login.salesforce.com'. To copy data from sandbox, specify + * 'https://test.salesforce.com'. To copy data from custom domain, specify, + * for example, 'https://[domain].my.salesforce.com'. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.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; + + /** + * Extended properties appended to the connection string. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.extendedProperties") + private Object extendedProperties; + + /** + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; + + /** + * Get the URL of Salesforce Service Cloud instance. Default is 'https://login.salesforce.com'. To copy data from sandbox, specify 'https://test.salesforce.com'. To copy data from custom domain, specify, for example, 'https://[domain].my.salesforce.com'. Type: string (or Expression with resultType string). + * + * @return the environmentUrl value + */ + public Object environmentUrl() { + return this.environmentUrl; + } + + /** + * Set the URL of Salesforce Service Cloud instance. Default is 'https://login.salesforce.com'. To copy data from sandbox, specify 'https://test.salesforce.com'. To copy data from custom domain, specify, for example, 'https://[domain].my.salesforce.com'. Type: string (or Expression with resultType string). + * + * @param environmentUrl the environmentUrl value to set + * @return the SalesforceServiceCloudLinkedService object itself. + */ + public SalesforceServiceCloudLinkedService withEnvironmentUrl(Object environmentUrl) { + this.environmentUrl = environmentUrl; + return this; + } + + /** + * Get the username for Basic authentication of the Salesforce instance. Type: string (or Expression with resultType string). + * + * @return the username value + */ + public Object username() { + return this.username; + } + + /** + * Set the username for Basic authentication of the Salesforce instance. Type: string (or Expression with resultType string). + * + * @param username the username value to set + * @return the SalesforceServiceCloudLinkedService object itself. + */ + public SalesforceServiceCloudLinkedService withUsername(Object username) { + this.username = username; + return this; + } + + /** + * Get the password for Basic authentication of the Salesforce instance. + * + * @return the password value + */ + public SecretBase password() { + return this.password; + } + + /** + * Set the password for Basic authentication of the Salesforce instance. + * + * @param password the password value to set + * @return the SalesforceServiceCloudLinkedService object itself. + */ + public SalesforceServiceCloudLinkedService withPassword(SecretBase password) { + this.password = password; + return this; + } + + /** + * Get the security token is required to remotely access Salesforce instance. + * + * @return the securityToken value + */ + public SecretBase securityToken() { + return this.securityToken; + } + + /** + * Set the security token is required to remotely access Salesforce instance. + * + * @param securityToken the securityToken value to set + * @return the SalesforceServiceCloudLinkedService object itself. + */ + public SalesforceServiceCloudLinkedService withSecurityToken(SecretBase securityToken) { + this.securityToken = securityToken; + return this; + } + + /** + * Get extended properties appended to the connection string. Type: string (or Expression with resultType string). + * + * @return the extendedProperties value + */ + public Object extendedProperties() { + return this.extendedProperties; + } + + /** + * Set extended properties appended to the connection string. Type: string (or Expression with resultType string). + * + * @param extendedProperties the extendedProperties value to set + * @return the SalesforceServiceCloudLinkedService object itself. + */ + public SalesforceServiceCloudLinkedService withExtendedProperties(Object extendedProperties) { + this.extendedProperties = extendedProperties; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the SalesforceServiceCloudLinkedService object itself. + */ + public SalesforceServiceCloudLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SalesforceServiceCloudObjectDataset.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SalesforceServiceCloudObjectDataset.java new file mode 100644 index 0000000000000..06f8bf9a47a4b --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SalesforceServiceCloudObjectDataset.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DatasetInner; + +/** + * The Salesforce Service Cloud object dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("SalesforceServiceCloudObject") +@JsonFlatten +public class SalesforceServiceCloudObjectDataset extends DatasetInner { + /** + * The Salesforce Service Cloud object API name. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.objectApiName") + private Object objectApiName; + + /** + * Get the Salesforce Service Cloud object API name. Type: string (or Expression with resultType string). + * + * @return the objectApiName value + */ + public Object objectApiName() { + return this.objectApiName; + } + + /** + * Set the Salesforce Service Cloud object API name. Type: string (or Expression with resultType string). + * + * @param objectApiName the objectApiName value to set + * @return the SalesforceServiceCloudObjectDataset object itself. + */ + public SalesforceServiceCloudObjectDataset withObjectApiName(Object objectApiName) { + this.objectApiName = objectApiName; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SalesforceServiceCloudSink.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SalesforceServiceCloudSink.java new file mode 100644 index 0000000000000..001254c59b890 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SalesforceServiceCloudSink.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Salesforce Service Cloud sink. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("SalesforceServiceCloudSink") +public class SalesforceServiceCloudSink 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 write behavior for the operation. Default is Insert. Possible values include: 'Insert', 'Upsert'. + * + * @return the writeBehavior value + */ + public SalesforceSinkWriteBehavior writeBehavior() { + return this.writeBehavior; + } + + /** + * Set the write behavior for the operation. Default is Insert. Possible values include: 'Insert', 'Upsert'. + * + * @param writeBehavior the writeBehavior value to set + * @return the SalesforceServiceCloudSink object itself. + */ + public SalesforceServiceCloudSink withWriteBehavior(SalesforceSinkWriteBehavior writeBehavior) { + this.writeBehavior = writeBehavior; + return this; + } + + /** + * Get the name of the external ID field for upsert operation. Default value is 'Id' column. Type: string (or Expression with resultType string). + * + * @return the externalIdFieldName value + */ + public Object externalIdFieldName() { + return this.externalIdFieldName; + } + + /** + * Set the name of the external ID field for upsert operation. Default value is 'Id' column. Type: string (or Expression with resultType string). + * + * @param externalIdFieldName the externalIdFieldName value to set + * @return the SalesforceServiceCloudSink object itself. + */ + public SalesforceServiceCloudSink withExternalIdFieldName(Object externalIdFieldName) { + this.externalIdFieldName = externalIdFieldName; + return this; + } + + /** + * Get 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). + * + * @return the ignoreNullValues value + */ + public Object ignoreNullValues() { + return this.ignoreNullValues; + } + + /** + * Set 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). + * + * @param ignoreNullValues the ignoreNullValues value to set + * @return the SalesforceServiceCloudSink object itself. + */ + public SalesforceServiceCloudSink withIgnoreNullValues(Object ignoreNullValues) { + this.ignoreNullValues = ignoreNullValues; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SalesforceServiceCloudSource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SalesforceServiceCloudSource.java new file mode 100644 index 0000000000000..41a4c6ce7612b --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SalesforceServiceCloudSource.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Salesforce Service Cloud source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("SalesforceServiceCloudSource") +public class SalesforceServiceCloudSource 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 database query. Type: string (or Expression with resultType string). + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set database query. Type: string (or Expression with resultType string). + * + * @param query the query value to set + * @return the SalesforceServiceCloudSource object itself. + */ + public SalesforceServiceCloudSource withQuery(Object query) { + this.query = query; + return this; + } + + /** + * Get the read behavior for the operation. Default is Query. Possible values include: 'Query', 'QueryAll'. + * + * @return the readBehavior value + */ + public SalesforceSourceReadBehavior readBehavior() { + return this.readBehavior; + } + + /** + * Set the read behavior for the operation. Default is Query. Possible values include: 'Query', 'QueryAll'. + * + * @param readBehavior the readBehavior value to set + * @return the SalesforceServiceCloudSource object itself. + */ + public SalesforceServiceCloudSource withReadBehavior(SalesforceSourceReadBehavior readBehavior) { + this.readBehavior = readBehavior; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SalesforceSink.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SalesforceSink.java new file mode 100644 index 0000000000000..6eee865b9d208 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 write behavior for the operation. Default is Insert. Possible values include: 'Insert', 'Upsert'. + * + * @return the writeBehavior value + */ + public SalesforceSinkWriteBehavior writeBehavior() { + return this.writeBehavior; + } + + /** + * Set the write behavior for the operation. Default is Insert. Possible values include: 'Insert', 'Upsert'. + * + * @param writeBehavior the writeBehavior value to set + * @return the SalesforceSink object itself. + */ + public SalesforceSink withWriteBehavior(SalesforceSinkWriteBehavior writeBehavior) { + this.writeBehavior = writeBehavior; + return this; + } + + /** + * Get the name of the external ID field for upsert operation. Default value is 'Id' column. Type: string (or Expression with resultType string). + * + * @return the externalIdFieldName value + */ + public Object externalIdFieldName() { + return this.externalIdFieldName; + } + + /** + * Set the name of the external ID field for upsert operation. Default value is 'Id' column. Type: string (or Expression with resultType string). + * + * @param externalIdFieldName the externalIdFieldName value to set + * @return the SalesforceSink object itself. + */ + public SalesforceSink withExternalIdFieldName(Object externalIdFieldName) { + this.externalIdFieldName = externalIdFieldName; + return this; + } + + /** + * Get 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). + * + * @return the ignoreNullValues value + */ + public Object ignoreNullValues() { + return this.ignoreNullValues; + } + + /** + * Set 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). + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SalesforceSinkWriteBehavior.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SalesforceSinkWriteBehavior.java new file mode 100644 index 0000000000000..7a648e61fb423 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SalesforceSource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SalesforceSource.java new file mode 100644 index 0000000000000..f81d31fefef2a --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 database query. Type: string (or Expression with resultType string). + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set database query. Type: string (or Expression with resultType string). + * + * @param query the query value to set + * @return the SalesforceSource object itself. + */ + public SalesforceSource withQuery(Object query) { + this.query = query; + return this; + } + + /** + * Get the read behavior for the operation. Default is Query. Possible values include: 'Query', 'QueryAll'. + * + * @return the readBehavior value + */ + public SalesforceSourceReadBehavior readBehavior() { + return this.readBehavior; + } + + /** + * Set the read behavior for the operation. Default is Query. Possible values include: 'Query', 'QueryAll'. + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SalesforceSourceReadBehavior.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SalesforceSourceReadBehavior.java new file mode 100644 index 0000000000000..9d7f1be59aeba --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SapBWLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SapBWLinkedService.java new file mode 100644 index 0000000000000..3beed9b0ab002 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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 host name of the SAP BW instance. Type: string (or Expression with resultType string). + * + * @return the server value + */ + public Object server() { + return this.server; + } + + /** + * Set host name of the SAP BW instance. Type: string (or Expression with resultType string). + * + * @param server the server value to set + * @return the SapBWLinkedService object itself. + */ + public SapBWLinkedService withServer(Object server) { + this.server = server; + return this; + } + + /** + * Get system number of the BW system. (Usually a two-digit decimal number represented as a string.) Type: string (or Expression with resultType string). + * + * @return the systemNumber value + */ + public Object systemNumber() { + return this.systemNumber; + } + + /** + * Set system number of the BW system. (Usually a two-digit decimal number represented as a string.) Type: string (or Expression with resultType string). + * + * @param systemNumber the systemNumber value to set + * @return the SapBWLinkedService object itself. + */ + public SapBWLinkedService withSystemNumber(Object systemNumber) { + this.systemNumber = systemNumber; + return this; + } + + /** + * Get client ID of the client on the BW system. (Usually a three-digit decimal number represented as a string) Type: string (or Expression with resultType string). + * + * @return the clientId value + */ + public Object clientId() { + return this.clientId; + } + + /** + * Set client ID of the client on the BW system. (Usually a three-digit decimal number represented as a string) Type: string (or Expression with resultType string). + * + * @param clientId the clientId value to set + * @return the SapBWLinkedService object itself. + */ + public SapBWLinkedService withClientId(Object clientId) { + this.clientId = clientId; + return this; + } + + /** + * Get username to access the SAP BW server. Type: string (or Expression with resultType string). + * + * @return the userName value + */ + public Object userName() { + return this.userName; + } + + /** + * Set username to access the SAP BW server. Type: string (or Expression with resultType string). + * + * @param userName the userName value to set + * @return the SapBWLinkedService object itself. + */ + public SapBWLinkedService withUserName(Object userName) { + this.userName = userName; + return this; + } + + /** + * Get password to access the SAP BW server. + * + * @return the password value + */ + public SecretBase password() { + return this.password; + } + + /** + * Set password to access the SAP BW server. + * + * @param password the password value to set + * @return the SapBWLinkedService object itself. + */ + public SapBWLinkedService withPassword(SecretBase password) { + this.password = password; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the SapBWLinkedService object itself. + */ + public SapBWLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SapCloudForCustomerLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SapCloudForCustomerLinkedService.java new file mode 100644 index 0000000000000..817669f3ca289 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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 of SAP Cloud for Customer OData API. For example, '[https://[tenantname].crm.ondemand.com/sap/c4c/odata/v1]'. Type: string (or Expression with resultType string). + * + * @return the url value + */ + public Object url() { + return this.url; + } + + /** + * Set the URL of SAP Cloud for Customer OData API. For example, '[https://[tenantname].crm.ondemand.com/sap/c4c/odata/v1]'. Type: string (or Expression with resultType string). + * + * @param url the url value to set + * @return the SapCloudForCustomerLinkedService object itself. + */ + public SapCloudForCustomerLinkedService withUrl(Object url) { + this.url = url; + return this; + } + + /** + * Get the username for Basic authentication. Type: string (or Expression with resultType string). + * + * @return the username value + */ + public Object username() { + return this.username; + } + + /** + * Set the username for Basic authentication. Type: string (or Expression with resultType string). + * + * @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 for Basic authentication. + * + * @return the password value + */ + public SecretBase password() { + return this.password; + } + + /** + * Set the password for Basic authentication. + * + * @param password the password value to set + * @return the SapCloudForCustomerLinkedService object itself. + */ + public SapCloudForCustomerLinkedService withPassword(SecretBase password) { + this.password = password; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Either encryptedCredential or username/password must be provided. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Either encryptedCredential or username/password must be provided. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the SapCloudForCustomerLinkedService object itself. + */ + public SapCloudForCustomerLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SapCloudForCustomerResourceDataset.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SapCloudForCustomerResourceDataset.java new file mode 100644 index 0000000000000..de6877fbc941a --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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 of the SAP Cloud for Customer OData entity. Type: string (or Expression with resultType string). + * + * @return the path value + */ + public Object path() { + return this.path; + } + + /** + * Set the path of the SAP Cloud for Customer OData entity. Type: string (or Expression with resultType string). + * + * @param path the path value to set + * @return the SapCloudForCustomerResourceDataset object itself. + */ + public SapCloudForCustomerResourceDataset withPath(Object path) { + this.path = path; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SapCloudForCustomerSink.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SapCloudForCustomerSink.java new file mode 100644 index 0000000000000..a92ddf26fb666 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 write behavior for the operation. Default is 'Insert'. Possible values include: 'Insert', 'Update'. + * + * @return the writeBehavior value + */ + public SapCloudForCustomerSinkWriteBehavior writeBehavior() { + return this.writeBehavior; + } + + /** + * Set the write behavior for the operation. Default is 'Insert'. Possible values include: 'Insert', 'Update'. + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SapCloudForCustomerSinkWriteBehavior.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SapCloudForCustomerSinkWriteBehavior.java new file mode 100644 index 0000000000000..5c85e2eec89fa --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SapCloudForCustomerSource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SapCloudForCustomerSource.java new file mode 100644 index 0000000000000..7c72915021ecf --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 sAP Cloud for Customer OData query. For example, "$top=1". Type: string (or Expression with resultType string). + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set sAP Cloud for Customer OData query. For example, "$top=1". Type: string (or Expression with resultType string). + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SapEccLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SapEccLinkedService.java new file mode 100644 index 0000000000000..c36225023fc86 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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 of SAP ECC OData API. For example, '[https://hostname:port/sap/opu/odata/sap/servicename/]'. Type: string (or Expression with resultType string). + * + * @return the url value + */ + public String url() { + return this.url; + } + + /** + * Set the URL of SAP ECC OData API. For example, '[https://hostname:port/sap/opu/odata/sap/servicename/]'. Type: string (or Expression with resultType string). + * + * @param url the url value to set + * @return the SapEccLinkedService object itself. + */ + public SapEccLinkedService withUrl(String url) { + this.url = url; + return this; + } + + /** + * Get the username for Basic authentication. Type: string (or Expression with resultType string). + * + * @return the username value + */ + public String username() { + return this.username; + } + + /** + * Set the username for Basic authentication. Type: string (or Expression with resultType string). + * + * @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 for Basic authentication. + * + * @return the password value + */ + public SecretBase password() { + return this.password; + } + + /** + * Set the password for Basic authentication. + * + * @param password the password value to set + * @return the SapEccLinkedService object itself. + */ + public SapEccLinkedService withPassword(SecretBase password) { + this.password = password; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Either encryptedCredential or username/password must be provided. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public String encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Either encryptedCredential or username/password must be provided. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the SapEccLinkedService object itself. + */ + public SapEccLinkedService withEncryptedCredential(String encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SapEccResourceDataset.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SapEccResourceDataset.java new file mode 100644 index 0000000000000..52d9ef2effb3c --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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 Object path; + + /** + * Get the path of the SAP ECC OData entity. Type: string (or Expression with resultType string). + * + * @return the path value + */ + public Object path() { + return this.path; + } + + /** + * Set the path of the SAP ECC OData entity. Type: string (or Expression with resultType string). + * + * @param path the path value to set + * @return the SapEccResourceDataset object itself. + */ + public SapEccResourceDataset withPath(Object path) { + this.path = path; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SapEccSource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SapEccSource.java new file mode 100644 index 0000000000000..1072240b856e5 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 Object query; + + /** + * Get sAP ECC OData query. For example, "$top=1". Type: string (or Expression with resultType string). + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set sAP ECC OData query. For example, "$top=1". Type: string (or Expression with resultType string). + * + * @param query the query value to set + * @return the SapEccSource object itself. + */ + public SapEccSource withQuery(Object query) { + this.query = query; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SapHanaAuthenticationType.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SapHanaAuthenticationType.java new file mode 100644 index 0000000000000..1555f81738bf0 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SapHanaLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SapHanaLinkedService.java new file mode 100644 index 0000000000000..9285c6e65b1ae --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SapHanaLinkedService.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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 { + /** + * SAP HANA ODBC connection string. Type: string, SecureString or + * AzureKeyVaultSecretReference. + */ + @JsonProperty(value = "typeProperties.connectionString") + private Object connectionString; + + /** + * 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 sAP HANA ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. + * + * @return the connectionString value + */ + public Object connectionString() { + return this.connectionString; + } + + /** + * Set sAP HANA ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. + * + * @param connectionString the connectionString value to set + * @return the SapHanaLinkedService object itself. + */ + public SapHanaLinkedService withConnectionString(Object connectionString) { + this.connectionString = connectionString; + return this; + } + + /** + * Get host name of the SAP HANA server. Type: string (or Expression with resultType string). + * + * @return the server value + */ + public Object server() { + return this.server; + } + + /** + * Set host name of the SAP HANA server. Type: string (or Expression with resultType string). + * + * @param server the server value to set + * @return the SapHanaLinkedService object itself. + */ + public SapHanaLinkedService withServer(Object server) { + this.server = server; + return this; + } + + /** + * Get the authentication type to be used to connect to the SAP HANA server. Possible values include: 'Basic', 'Windows'. + * + * @return the authenticationType value + */ + public SapHanaAuthenticationType authenticationType() { + return this.authenticationType; + } + + /** + * Set the authentication type to be used to connect to the SAP HANA server. Possible values include: 'Basic', 'Windows'. + * + * @param authenticationType the authenticationType value to set + * @return the SapHanaLinkedService object itself. + */ + public SapHanaLinkedService withAuthenticationType(SapHanaAuthenticationType authenticationType) { + this.authenticationType = authenticationType; + return this; + } + + /** + * Get username to access the SAP HANA server. Type: string (or Expression with resultType string). + * + * @return the userName value + */ + public Object userName() { + return this.userName; + } + + /** + * Set username to access the SAP HANA server. Type: string (or Expression with resultType string). + * + * @param userName the userName value to set + * @return the SapHanaLinkedService object itself. + */ + public SapHanaLinkedService withUserName(Object userName) { + this.userName = userName; + return this; + } + + /** + * Get password to access the SAP HANA server. + * + * @return the password value + */ + public SecretBase password() { + return this.password; + } + + /** + * Set password to access the SAP HANA server. + * + * @param password the password value to set + * @return the SapHanaLinkedService object itself. + */ + public SapHanaLinkedService withPassword(SecretBase password) { + this.password = password; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the SapHanaLinkedService object itself. + */ + public SapHanaLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SapHanaSource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SapHanaSource.java new file mode 100644 index 0000000000000..060a3c40396e5 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SapHanaSource.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity source for SAP HANA source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("SapHanaSource") +public class SapHanaSource extends CopySource { + /** + * SAP HANA Sql query. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "query") + private Object query; + + /** + * The packet size of data read from SAP HANA. Type: integer(or Expression + * with resultType integer). + */ + @JsonProperty(value = "packetSize") + private Object packetSize; + + /** + * Get sAP HANA Sql query. Type: string (or Expression with resultType string). + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set sAP HANA Sql query. Type: string (or Expression with resultType string). + * + * @param query the query value to set + * @return the SapHanaSource object itself. + */ + public SapHanaSource withQuery(Object query) { + this.query = query; + return this; + } + + /** + * Get the packet size of data read from SAP HANA. Type: integer(or Expression with resultType integer). + * + * @return the packetSize value + */ + public Object packetSize() { + return this.packetSize; + } + + /** + * Set the packet size of data read from SAP HANA. Type: integer(or Expression with resultType integer). + * + * @param packetSize the packetSize value to set + * @return the SapHanaSource object itself. + */ + public SapHanaSource withPacketSize(Object packetSize) { + this.packetSize = packetSize; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SapHanaTableDataset.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SapHanaTableDataset.java new file mode 100644 index 0000000000000..e0fb2b9a6eee6 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SapHanaTableDataset.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DatasetInner; + +/** + * SAP HANA Table properties. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("SapHanaTable") +@JsonFlatten +public class SapHanaTableDataset extends DatasetInner { + /** + * The schema name of SAP HANA. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.schema") + private Object sapHanaTableDatasetSchema; + + /** + * The table name of SAP HANA. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.table") + private Object table; + + /** + * Get the schema name of SAP HANA. Type: string (or Expression with resultType string). + * + * @return the sapHanaTableDatasetSchema value + */ + public Object sapHanaTableDatasetSchema() { + return this.sapHanaTableDatasetSchema; + } + + /** + * Set the schema name of SAP HANA. Type: string (or Expression with resultType string). + * + * @param sapHanaTableDatasetSchema the sapHanaTableDatasetSchema value to set + * @return the SapHanaTableDataset object itself. + */ + public SapHanaTableDataset withSapHanaTableDatasetSchema(Object sapHanaTableDatasetSchema) { + this.sapHanaTableDatasetSchema = sapHanaTableDatasetSchema; + return this; + } + + /** + * Get the table name of SAP HANA. Type: string (or Expression with resultType string). + * + * @return the table value + */ + public Object table() { + return this.table; + } + + /** + * Set the table name of SAP HANA. Type: string (or Expression with resultType string). + * + * @param table the table value to set + * @return the SapHanaTableDataset object itself. + */ + public SapHanaTableDataset withTable(Object table) { + this.table = table; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SapOpenHubLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SapOpenHubLinkedService.java new file mode 100644 index 0000000000000..806b056490ccf --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SapOpenHubLinkedService.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.LinkedServiceInner; + +/** + * SAP Business Warehouse Open Hub Destination Linked Service. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("SapOpenHub") +@JsonFlatten +public class SapOpenHubLinkedService extends LinkedServiceInner { + /** + * Host name of the SAP BW instance where the open hub destination is + * located. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.server", required = true) + private Object server; + + /** + * System number of the BW system where the open hub destination is + * located. (Usually a two-digit decimal number represented as a string.) + * Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.systemNumber", required = true) + private Object systemNumber; + + /** + * Client ID of the client on the BW system where the open hub destination + * is located. (Usually a three-digit decimal number represented as a + * string) Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.clientId", required = true) + private Object clientId; + + /** + * Language of the BW system where the open hub destination is located. The + * default value is EN. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.language") + private Object language; + + /** + * Username to access the SAP BW server where the open hub destination is + * located. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.userName") + private Object userName; + + /** + * Password to access the SAP BW server where the open hub destination is + * located. + */ + @JsonProperty(value = "typeProperties.password") + private SecretBase password; + + /** + * The 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 host name of the SAP BW instance where the open hub destination is located. Type: string (or Expression with resultType string). + * + * @return the server value + */ + public Object server() { + return this.server; + } + + /** + * Set host name of the SAP BW instance where the open hub destination is located. Type: string (or Expression with resultType string). + * + * @param server the server value to set + * @return the SapOpenHubLinkedService object itself. + */ + public SapOpenHubLinkedService withServer(Object server) { + this.server = server; + return this; + } + + /** + * Get system number of the BW system where the open hub destination is located. (Usually a two-digit decimal number represented as a string.) Type: string (or Expression with resultType string). + * + * @return the systemNumber value + */ + public Object systemNumber() { + return this.systemNumber; + } + + /** + * Set system number of the BW system where the open hub destination is located. (Usually a two-digit decimal number represented as a string.) Type: string (or Expression with resultType string). + * + * @param systemNumber the systemNumber value to set + * @return the SapOpenHubLinkedService object itself. + */ + public SapOpenHubLinkedService withSystemNumber(Object systemNumber) { + this.systemNumber = systemNumber; + return this; + } + + /** + * Get client ID of the client on the BW system where the open hub destination is located. (Usually a three-digit decimal number represented as a string) Type: string (or Expression with resultType string). + * + * @return the clientId value + */ + public Object clientId() { + return this.clientId; + } + + /** + * Set client ID of the client on the BW system where the open hub destination is located. (Usually a three-digit decimal number represented as a string) Type: string (or Expression with resultType string). + * + * @param clientId the clientId value to set + * @return the SapOpenHubLinkedService object itself. + */ + public SapOpenHubLinkedService withClientId(Object clientId) { + this.clientId = clientId; + return this; + } + + /** + * Get language of the BW system where the open hub destination is located. The default value is EN. Type: string (or Expression with resultType string). + * + * @return the language value + */ + public Object language() { + return this.language; + } + + /** + * Set language of the BW system where the open hub destination is located. The default value is EN. Type: string (or Expression with resultType string). + * + * @param language the language value to set + * @return the SapOpenHubLinkedService object itself. + */ + public SapOpenHubLinkedService withLanguage(Object language) { + this.language = language; + return this; + } + + /** + * Get username to access the SAP BW server where the open hub destination is located. Type: string (or Expression with resultType string). + * + * @return the userName value + */ + public Object userName() { + return this.userName; + } + + /** + * Set username to access the SAP BW server where the open hub destination is located. Type: string (or Expression with resultType string). + * + * @param userName the userName value to set + * @return the SapOpenHubLinkedService object itself. + */ + public SapOpenHubLinkedService withUserName(Object userName) { + this.userName = userName; + return this; + } + + /** + * Get password to access the SAP BW server where the open hub destination is located. + * + * @return the password value + */ + public SecretBase password() { + return this.password; + } + + /** + * Set password to access the SAP BW server where the open hub destination is located. + * + * @param password the password value to set + * @return the SapOpenHubLinkedService object itself. + */ + public SapOpenHubLinkedService withPassword(SecretBase password) { + this.password = password; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the SapOpenHubLinkedService object itself. + */ + public SapOpenHubLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SapOpenHubSource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SapOpenHubSource.java new file mode 100644 index 0000000000000..2a925f1f4b02a --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SapOpenHubSource.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity source for SAP Business Warehouse Open Hub Destination + * source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("SapOpenHubSource") +public class SapOpenHubSource extends CopySource { +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SapOpenHubTableDataset.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SapOpenHubTableDataset.java new file mode 100644 index 0000000000000..c498307062e8d --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SapOpenHubTableDataset.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DatasetInner; + +/** + * Sap Business Warehouse Open Hub Destination Table properties. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("SapOpenHubTable") +@JsonFlatten +public class SapOpenHubTableDataset extends DatasetInner { + /** + * The name of the Open Hub Destination with destination type as Database + * Table. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.openHubDestinationName", required = true) + private Object openHubDestinationName; + + /** + * Whether to exclude the records of the last request. The default value is + * true. Type: boolean (or Expression with resultType boolean). + */ + @JsonProperty(value = "typeProperties.excludeLastRequest") + private Object excludeLastRequest; + + /** + * The ID of request for delta loading. Once it is set, only data with + * requestId larger than the value of this property will be retrieved. The + * default value is 0. Type: integer (or Expression with resultType integer + * ). + */ + @JsonProperty(value = "typeProperties.baseRequestId") + private Object baseRequestId; + + /** + * Get the name of the Open Hub Destination with destination type as Database Table. Type: string (or Expression with resultType string). + * + * @return the openHubDestinationName value + */ + public Object openHubDestinationName() { + return this.openHubDestinationName; + } + + /** + * Set the name of the Open Hub Destination with destination type as Database Table. Type: string (or Expression with resultType string). + * + * @param openHubDestinationName the openHubDestinationName value to set + * @return the SapOpenHubTableDataset object itself. + */ + public SapOpenHubTableDataset withOpenHubDestinationName(Object openHubDestinationName) { + this.openHubDestinationName = openHubDestinationName; + return this; + } + + /** + * Get whether to exclude the records of the last request. The default value is true. Type: boolean (or Expression with resultType boolean). + * + * @return the excludeLastRequest value + */ + public Object excludeLastRequest() { + return this.excludeLastRequest; + } + + /** + * Set whether to exclude the records of the last request. The default value is true. Type: boolean (or Expression with resultType boolean). + * + * @param excludeLastRequest the excludeLastRequest value to set + * @return the SapOpenHubTableDataset object itself. + */ + public SapOpenHubTableDataset withExcludeLastRequest(Object excludeLastRequest) { + this.excludeLastRequest = excludeLastRequest; + return this; + } + + /** + * Get the ID of request for delta loading. Once it is set, only data with requestId larger than the value of this property will be retrieved. The default value is 0. Type: integer (or Expression with resultType integer ). + * + * @return the baseRequestId value + */ + public Object baseRequestId() { + return this.baseRequestId; + } + + /** + * Set the ID of request for delta loading. Once it is set, only data with requestId larger than the value of this property will be retrieved. The default value is 0. Type: integer (or Expression with resultType integer ). + * + * @param baseRequestId the baseRequestId value to set + * @return the SapOpenHubTableDataset object itself. + */ + public SapOpenHubTableDataset withBaseRequestId(Object baseRequestId) { + this.baseRequestId = baseRequestId; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SapTableLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SapTableLinkedService.java new file mode 100644 index 0000000000000..9e23eb251e8c9 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SapTableLinkedService.java @@ -0,0 +1,459 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.LinkedServiceInner; + +/** + * SAP Table Linked Service. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("SapTable") +@JsonFlatten +public class SapTableLinkedService extends LinkedServiceInner { + /** + * Host name of the SAP instance where the table is located. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.server") + private Object server; + + /** + * System number of the SAP system where the table is located. (Usually a + * two-digit decimal number represented as a string.) Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.systemNumber") + private Object systemNumber; + + /** + * Client ID of the client on the SAP system where the table is located. + * (Usually a three-digit decimal number represented as a string) Type: + * string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.clientId") + private Object clientId; + + /** + * Language of the SAP system where the table is located. The default value + * is EN. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.language") + private Object language; + + /** + * SystemID of the SAP system where the table is located. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.systemId") + private Object systemId; + + /** + * Username to access the SAP server where the table is located. Type: + * string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.userName") + private Object userName; + + /** + * Password to access the SAP server where the table is located. + */ + @JsonProperty(value = "typeProperties.password") + private SecretBase password; + + /** + * The hostname of the SAP Message Server. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.messageServer") + private Object messageServer; + + /** + * The service name or port number of the Message Server. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.messageServerService") + private Object messageServerService; + + /** + * SNC activation indicator to access the SAP server where the table is + * located. Must be either 0 (off) or 1 (on). Type: string (or Expression + * with resultType string). + */ + @JsonProperty(value = "typeProperties.sncMode") + private Object sncMode; + + /** + * Initiator's SNC name to access the SAP server where the table is + * located. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.sncMyName") + private Object sncMyName; + + /** + * Communication partner's SNC name to access the SAP server where the + * table is located. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.sncPartnerName") + private Object sncPartnerName; + + /** + * External security product's library to access the SAP server where the + * table is located. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.sncLibraryPath") + private Object sncLibraryPath; + + /** + * SNC Quality of Protection. Allowed value include: 1, 2, 3, 8, 9. Type: + * string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.sncQop") + private Object sncQop; + + /** + * The Logon Group for the SAP System. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.logonGroup") + private Object logonGroup; + + /** + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; + + /** + * Get host name of the SAP instance where the table is located. Type: string (or Expression with resultType string). + * + * @return the server value + */ + public Object server() { + return this.server; + } + + /** + * Set host name of the SAP instance where the table is located. Type: string (or Expression with resultType string). + * + * @param server the server value to set + * @return the SapTableLinkedService object itself. + */ + public SapTableLinkedService withServer(Object server) { + this.server = server; + return this; + } + + /** + * Get system number of the SAP system where the table is located. (Usually a two-digit decimal number represented as a string.) Type: string (or Expression with resultType string). + * + * @return the systemNumber value + */ + public Object systemNumber() { + return this.systemNumber; + } + + /** + * Set system number of the SAP system where the table is located. (Usually a two-digit decimal number represented as a string.) Type: string (or Expression with resultType string). + * + * @param systemNumber the systemNumber value to set + * @return the SapTableLinkedService object itself. + */ + public SapTableLinkedService withSystemNumber(Object systemNumber) { + this.systemNumber = systemNumber; + return this; + } + + /** + * Get client ID of the client on the SAP system where the table is located. (Usually a three-digit decimal number represented as a string) Type: string (or Expression with resultType string). + * + * @return the clientId value + */ + public Object clientId() { + return this.clientId; + } + + /** + * Set client ID of the client on the SAP system where the table is located. (Usually a three-digit decimal number represented as a string) Type: string (or Expression with resultType string). + * + * @param clientId the clientId value to set + * @return the SapTableLinkedService object itself. + */ + public SapTableLinkedService withClientId(Object clientId) { + this.clientId = clientId; + return this; + } + + /** + * Get language of the SAP system where the table is located. The default value is EN. Type: string (or Expression with resultType string). + * + * @return the language value + */ + public Object language() { + return this.language; + } + + /** + * Set language of the SAP system where the table is located. The default value is EN. Type: string (or Expression with resultType string). + * + * @param language the language value to set + * @return the SapTableLinkedService object itself. + */ + public SapTableLinkedService withLanguage(Object language) { + this.language = language; + return this; + } + + /** + * Get systemID of the SAP system where the table is located. Type: string (or Expression with resultType string). + * + * @return the systemId value + */ + public Object systemId() { + return this.systemId; + } + + /** + * Set systemID of the SAP system where the table is located. Type: string (or Expression with resultType string). + * + * @param systemId the systemId value to set + * @return the SapTableLinkedService object itself. + */ + public SapTableLinkedService withSystemId(Object systemId) { + this.systemId = systemId; + return this; + } + + /** + * Get username to access the SAP server where the table is located. Type: string (or Expression with resultType string). + * + * @return the userName value + */ + public Object userName() { + return this.userName; + } + + /** + * Set username to access the SAP server where the table is located. Type: string (or Expression with resultType string). + * + * @param userName the userName value to set + * @return the SapTableLinkedService object itself. + */ + public SapTableLinkedService withUserName(Object userName) { + this.userName = userName; + return this; + } + + /** + * Get password to access the SAP server where the table is located. + * + * @return the password value + */ + public SecretBase password() { + return this.password; + } + + /** + * Set password to access the SAP server where the table is located. + * + * @param password the password value to set + * @return the SapTableLinkedService object itself. + */ + public SapTableLinkedService withPassword(SecretBase password) { + this.password = password; + return this; + } + + /** + * Get the hostname of the SAP Message Server. Type: string (or Expression with resultType string). + * + * @return the messageServer value + */ + public Object messageServer() { + return this.messageServer; + } + + /** + * Set the hostname of the SAP Message Server. Type: string (or Expression with resultType string). + * + * @param messageServer the messageServer value to set + * @return the SapTableLinkedService object itself. + */ + public SapTableLinkedService withMessageServer(Object messageServer) { + this.messageServer = messageServer; + return this; + } + + /** + * Get the service name or port number of the Message Server. Type: string (or Expression with resultType string). + * + * @return the messageServerService value + */ + public Object messageServerService() { + return this.messageServerService; + } + + /** + * Set the service name or port number of the Message Server. Type: string (or Expression with resultType string). + * + * @param messageServerService the messageServerService value to set + * @return the SapTableLinkedService object itself. + */ + public SapTableLinkedService withMessageServerService(Object messageServerService) { + this.messageServerService = messageServerService; + return this; + } + + /** + * Get sNC activation indicator to access the SAP server where the table is located. Must be either 0 (off) or 1 (on). Type: string (or Expression with resultType string). + * + * @return the sncMode value + */ + public Object sncMode() { + return this.sncMode; + } + + /** + * Set sNC activation indicator to access the SAP server where the table is located. Must be either 0 (off) or 1 (on). Type: string (or Expression with resultType string). + * + * @param sncMode the sncMode value to set + * @return the SapTableLinkedService object itself. + */ + public SapTableLinkedService withSncMode(Object sncMode) { + this.sncMode = sncMode; + return this; + } + + /** + * Get initiator's SNC name to access the SAP server where the table is located. Type: string (or Expression with resultType string). + * + * @return the sncMyName value + */ + public Object sncMyName() { + return this.sncMyName; + } + + /** + * Set initiator's SNC name to access the SAP server where the table is located. Type: string (or Expression with resultType string). + * + * @param sncMyName the sncMyName value to set + * @return the SapTableLinkedService object itself. + */ + public SapTableLinkedService withSncMyName(Object sncMyName) { + this.sncMyName = sncMyName; + return this; + } + + /** + * Get communication partner's SNC name to access the SAP server where the table is located. Type: string (or Expression with resultType string). + * + * @return the sncPartnerName value + */ + public Object sncPartnerName() { + return this.sncPartnerName; + } + + /** + * Set communication partner's SNC name to access the SAP server where the table is located. Type: string (or Expression with resultType string). + * + * @param sncPartnerName the sncPartnerName value to set + * @return the SapTableLinkedService object itself. + */ + public SapTableLinkedService withSncPartnerName(Object sncPartnerName) { + this.sncPartnerName = sncPartnerName; + return this; + } + + /** + * Get external security product's library to access the SAP server where the table is located. Type: string (or Expression with resultType string). + * + * @return the sncLibraryPath value + */ + public Object sncLibraryPath() { + return this.sncLibraryPath; + } + + /** + * Set external security product's library to access the SAP server where the table is located. Type: string (or Expression with resultType string). + * + * @param sncLibraryPath the sncLibraryPath value to set + * @return the SapTableLinkedService object itself. + */ + public SapTableLinkedService withSncLibraryPath(Object sncLibraryPath) { + this.sncLibraryPath = sncLibraryPath; + return this; + } + + /** + * Get sNC Quality of Protection. Allowed value include: 1, 2, 3, 8, 9. Type: string (or Expression with resultType string). + * + * @return the sncQop value + */ + public Object sncQop() { + return this.sncQop; + } + + /** + * Set sNC Quality of Protection. Allowed value include: 1, 2, 3, 8, 9. Type: string (or Expression with resultType string). + * + * @param sncQop the sncQop value to set + * @return the SapTableLinkedService object itself. + */ + public SapTableLinkedService withSncQop(Object sncQop) { + this.sncQop = sncQop; + return this; + } + + /** + * Get the Logon Group for the SAP System. Type: string (or Expression with resultType string). + * + * @return the logonGroup value + */ + public Object logonGroup() { + return this.logonGroup; + } + + /** + * Set the Logon Group for the SAP System. Type: string (or Expression with resultType string). + * + * @param logonGroup the logonGroup value to set + * @return the SapTableLinkedService object itself. + */ + public SapTableLinkedService withLogonGroup(Object logonGroup) { + this.logonGroup = logonGroup; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the SapTableLinkedService object itself. + */ + public SapTableLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SapTablePartitionOption.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SapTablePartitionOption.java new file mode 100644 index 0000000000000..7ab97833911aa --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SapTablePartitionOption.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.v2018_06_01; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for SapTablePartitionOption. + */ +public final class SapTablePartitionOption extends ExpandableStringEnum { + /** Static value None for SapTablePartitionOption. */ + public static final SapTablePartitionOption NONE = fromString("None"); + + /** Static value PartitionOnInt for SapTablePartitionOption. */ + public static final SapTablePartitionOption PARTITION_ON_INT = fromString("PartitionOnInt"); + + /** Static value PartitionOnCalendarYear for SapTablePartitionOption. */ + public static final SapTablePartitionOption PARTITION_ON_CALENDAR_YEAR = fromString("PartitionOnCalendarYear"); + + /** Static value PartitionOnCalendarMonth for SapTablePartitionOption. */ + public static final SapTablePartitionOption PARTITION_ON_CALENDAR_MONTH = fromString("PartitionOnCalendarMonth"); + + /** Static value PartitionOnCalendarDate for SapTablePartitionOption. */ + public static final SapTablePartitionOption PARTITION_ON_CALENDAR_DATE = fromString("PartitionOnCalendarDate"); + + /** Static value PartitionOnTime for SapTablePartitionOption. */ + public static final SapTablePartitionOption PARTITION_ON_TIME = fromString("PartitionOnTime"); + + /** + * Creates or finds a SapTablePartitionOption from its string representation. + * @param name a name to look for + * @return the corresponding SapTablePartitionOption + */ + @JsonCreator + public static SapTablePartitionOption fromString(String name) { + return fromString(name, SapTablePartitionOption.class); + } + + /** + * @return known SapTablePartitionOption values + */ + public static Collection values() { + return values(SapTablePartitionOption.class); + } +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SapTablePartitionSettings.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SapTablePartitionSettings.java new file mode 100644 index 0000000000000..5d33fde4709cc --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SapTablePartitionSettings.java @@ -0,0 +1,127 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The settings that will be leveraged for SAP table source partitioning. + */ +public class SapTablePartitionSettings { + /** + * The name of the column that will be used for proceeding range + * partitioning. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "partitionColumnName") + private Object partitionColumnName; + + /** + * The maximum value of column specified in partitionColumnName that will + * be used for proceeding range partitioning. Type: string (or Expression + * with resultType string). + */ + @JsonProperty(value = "partitionUpperBound") + private Object partitionUpperBound; + + /** + * The minimum value of column specified in partitionColumnName that will + * be used for proceeding range partitioning. Type: string (or Expression + * with resultType string). + */ + @JsonProperty(value = "partitionLowerBound") + private Object partitionLowerBound; + + /** + * The maximum value of partitions the table will be split into. Type: + * integer (or Expression with resultType string). + */ + @JsonProperty(value = "maxPartitionsNumber") + private Object maxPartitionsNumber; + + /** + * Get the name of the column that will be used for proceeding range partitioning. Type: string (or Expression with resultType string). + * + * @return the partitionColumnName value + */ + public Object partitionColumnName() { + return this.partitionColumnName; + } + + /** + * Set the name of the column that will be used for proceeding range partitioning. Type: string (or Expression with resultType string). + * + * @param partitionColumnName the partitionColumnName value to set + * @return the SapTablePartitionSettings object itself. + */ + public SapTablePartitionSettings withPartitionColumnName(Object partitionColumnName) { + this.partitionColumnName = partitionColumnName; + return this; + } + + /** + * Get the maximum value of column specified in partitionColumnName that will be used for proceeding range partitioning. Type: string (or Expression with resultType string). + * + * @return the partitionUpperBound value + */ + public Object partitionUpperBound() { + return this.partitionUpperBound; + } + + /** + * Set the maximum value of column specified in partitionColumnName that will be used for proceeding range partitioning. Type: string (or Expression with resultType string). + * + * @param partitionUpperBound the partitionUpperBound value to set + * @return the SapTablePartitionSettings object itself. + */ + public SapTablePartitionSettings withPartitionUpperBound(Object partitionUpperBound) { + this.partitionUpperBound = partitionUpperBound; + return this; + } + + /** + * Get the minimum value of column specified in partitionColumnName that will be used for proceeding range partitioning. Type: string (or Expression with resultType string). + * + * @return the partitionLowerBound value + */ + public Object partitionLowerBound() { + return this.partitionLowerBound; + } + + /** + * Set the minimum value of column specified in partitionColumnName that will be used for proceeding range partitioning. Type: string (or Expression with resultType string). + * + * @param partitionLowerBound the partitionLowerBound value to set + * @return the SapTablePartitionSettings object itself. + */ + public SapTablePartitionSettings withPartitionLowerBound(Object partitionLowerBound) { + this.partitionLowerBound = partitionLowerBound; + return this; + } + + /** + * Get the maximum value of partitions the table will be split into. Type: integer (or Expression with resultType string). + * + * @return the maxPartitionsNumber value + */ + public Object maxPartitionsNumber() { + return this.maxPartitionsNumber; + } + + /** + * Set the maximum value of partitions the table will be split into. Type: integer (or Expression with resultType string). + * + * @param maxPartitionsNumber the maxPartitionsNumber value to set + * @return the SapTablePartitionSettings object itself. + */ + public SapTablePartitionSettings withMaxPartitionsNumber(Object maxPartitionsNumber) { + this.maxPartitionsNumber = maxPartitionsNumber; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SapTableResourceDataset.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SapTableResourceDataset.java new file mode 100644 index 0000000000000..4d65f8e5d367c --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SapTableResourceDataset.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DatasetInner; + +/** + * SAP Table Resource properties. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("SapTableResource") +@JsonFlatten +public class SapTableResourceDataset extends DatasetInner { + /** + * The name of the SAP Table. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.tableName", required = true) + private Object tableName; + + /** + * Get the name of the SAP Table. Type: string (or Expression with resultType string). + * + * @return the tableName value + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set the name of the SAP Table. Type: string (or Expression with resultType string). + * + * @param tableName the tableName value to set + * @return the SapTableResourceDataset object itself. + */ + public SapTableResourceDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SapTableSource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SapTableSource.java new file mode 100644 index 0000000000000..4dc94bb519767 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SapTableSource.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity source for SAP Table source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("SapTableSource") +public class SapTableSource extends CopySource { + /** + * The number of rows to be retrieved. Type: integer(or Expression with + * resultType integer). + */ + @JsonProperty(value = "rowCount") + private Object rowCount; + + /** + * The number of rows that will be skipped. Type: integer (or Expression + * with resultType integer). + */ + @JsonProperty(value = "rowSkips") + private Object rowSkips; + + /** + * The fields of the SAP table that will be retrieved. For example, + * column0, column1. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "rfcTableFields") + private Object rfcTableFields; + + /** + * The options for the filtering of the SAP Table. For example, COLUMN0 EQ + * SOME VALUE. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "rfcTableOptions") + private Object rfcTableOptions; + + /** + * Specifies the maximum number of rows that will be retrieved at a time + * when retrieving data from SAP Table. Type: integer (or Expression with + * resultType integer). + */ + @JsonProperty(value = "batchSize") + private Object batchSize; + + /** + * Specifies the custom RFC function module that will be used to read data + * from SAP Table. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "customRfcReadTableFunctionModule") + private Object customRfcReadTableFunctionModule; + + /** + * The partition mechanism that will be used for SAP table read in + * parallel. Possible values include: 'None', 'PartitionOnInt', + * 'PartitionOnCalendarYear', 'PartitionOnCalendarMonth', + * 'PartitionOnCalendarDate', 'PartitionOnTime'. + */ + @JsonProperty(value = "partitionOption") + private SapTablePartitionOption partitionOption; + + /** + * The settings that will be leveraged for SAP table source partitioning. + */ + @JsonProperty(value = "partitionSettings") + private SapTablePartitionSettings partitionSettings; + + /** + * Get the number of rows to be retrieved. Type: integer(or Expression with resultType integer). + * + * @return the rowCount value + */ + public Object rowCount() { + return this.rowCount; + } + + /** + * Set the number of rows to be retrieved. Type: integer(or Expression with resultType integer). + * + * @param rowCount the rowCount value to set + * @return the SapTableSource object itself. + */ + public SapTableSource withRowCount(Object rowCount) { + this.rowCount = rowCount; + return this; + } + + /** + * Get the number of rows that will be skipped. Type: integer (or Expression with resultType integer). + * + * @return the rowSkips value + */ + public Object rowSkips() { + return this.rowSkips; + } + + /** + * Set the number of rows that will be skipped. Type: integer (or Expression with resultType integer). + * + * @param rowSkips the rowSkips value to set + * @return the SapTableSource object itself. + */ + public SapTableSource withRowSkips(Object rowSkips) { + this.rowSkips = rowSkips; + return this; + } + + /** + * Get the fields of the SAP table that will be retrieved. For example, column0, column1. Type: string (or Expression with resultType string). + * + * @return the rfcTableFields value + */ + public Object rfcTableFields() { + return this.rfcTableFields; + } + + /** + * Set the fields of the SAP table that will be retrieved. For example, column0, column1. Type: string (or Expression with resultType string). + * + * @param rfcTableFields the rfcTableFields value to set + * @return the SapTableSource object itself. + */ + public SapTableSource withRfcTableFields(Object rfcTableFields) { + this.rfcTableFields = rfcTableFields; + return this; + } + + /** + * Get the options for the filtering of the SAP Table. For example, COLUMN0 EQ SOME VALUE. Type: string (or Expression with resultType string). + * + * @return the rfcTableOptions value + */ + public Object rfcTableOptions() { + return this.rfcTableOptions; + } + + /** + * Set the options for the filtering of the SAP Table. For example, COLUMN0 EQ SOME VALUE. Type: string (or Expression with resultType string). + * + * @param rfcTableOptions the rfcTableOptions value to set + * @return the SapTableSource object itself. + */ + public SapTableSource withRfcTableOptions(Object rfcTableOptions) { + this.rfcTableOptions = rfcTableOptions; + return this; + } + + /** + * Get specifies the maximum number of rows that will be retrieved at a time when retrieving data from SAP Table. Type: integer (or Expression with resultType integer). + * + * @return the batchSize value + */ + public Object batchSize() { + return this.batchSize; + } + + /** + * Set specifies the maximum number of rows that will be retrieved at a time when retrieving data from SAP Table. Type: integer (or Expression with resultType integer). + * + * @param batchSize the batchSize value to set + * @return the SapTableSource object itself. + */ + public SapTableSource withBatchSize(Object batchSize) { + this.batchSize = batchSize; + return this; + } + + /** + * Get specifies the custom RFC function module that will be used to read data from SAP Table. Type: string (or Expression with resultType string). + * + * @return the customRfcReadTableFunctionModule value + */ + public Object customRfcReadTableFunctionModule() { + return this.customRfcReadTableFunctionModule; + } + + /** + * Set specifies the custom RFC function module that will be used to read data from SAP Table. Type: string (or Expression with resultType string). + * + * @param customRfcReadTableFunctionModule the customRfcReadTableFunctionModule value to set + * @return the SapTableSource object itself. + */ + public SapTableSource withCustomRfcReadTableFunctionModule(Object customRfcReadTableFunctionModule) { + this.customRfcReadTableFunctionModule = customRfcReadTableFunctionModule; + return this; + } + + /** + * Get the partition mechanism that will be used for SAP table read in parallel. Possible values include: 'None', 'PartitionOnInt', 'PartitionOnCalendarYear', 'PartitionOnCalendarMonth', 'PartitionOnCalendarDate', 'PartitionOnTime'. + * + * @return the partitionOption value + */ + public SapTablePartitionOption partitionOption() { + return this.partitionOption; + } + + /** + * Set the partition mechanism that will be used for SAP table read in parallel. Possible values include: 'None', 'PartitionOnInt', 'PartitionOnCalendarYear', 'PartitionOnCalendarMonth', 'PartitionOnCalendarDate', 'PartitionOnTime'. + * + * @param partitionOption the partitionOption value to set + * @return the SapTableSource object itself. + */ + public SapTableSource withPartitionOption(SapTablePartitionOption partitionOption) { + this.partitionOption = partitionOption; + return this; + } + + /** + * Get the settings that will be leveraged for SAP table source partitioning. + * + * @return the partitionSettings value + */ + public SapTablePartitionSettings partitionSettings() { + return this.partitionSettings; + } + + /** + * Set the settings that will be leveraged for SAP table source partitioning. + * + * @param partitionSettings the partitionSettings value to set + * @return the SapTableSource object itself. + */ + public SapTableSource withPartitionSettings(SapTablePartitionSettings partitionSettings) { + this.partitionSettings = partitionSettings; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ScheduleTrigger.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ScheduleTrigger.java new file mode 100644 index 0000000000000..2c156f62b5fb4 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; + +/** + * 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 recurrence schedule configuration. + * + * @return the recurrence value + */ + public ScheduleTriggerRecurrence recurrence() { + return this.recurrence; + } + + /** + * Set recurrence schedule configuration. + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ScheduleTriggerRecurrence.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ScheduleTriggerRecurrence.java new file mode 100644 index 0000000000000..5aa456fda4bd1 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 unmatched properties from the message are deserialized this collection. + * + * @return the additionalProperties value + */ + public Map additionalProperties() { + return this.additionalProperties; + } + + /** + * Set unmatched properties from the message are deserialized this collection. + * + * @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. Possible values include: 'NotSpecified', 'Minute', 'Hour', 'Day', 'Week', 'Month', 'Year'. + * + * @return the frequency value + */ + public RecurrenceFrequency frequency() { + return this.frequency; + } + + /** + * Set the frequency. Possible values include: 'NotSpecified', 'Minute', 'Hour', 'Day', 'Week', 'Month', 'Year'. + * + * @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. + * + * @return the interval value + */ + public Integer interval() { + return this.interval; + } + + /** + * Set the interval. + * + * @param interval the interval value to set + * @return the ScheduleTriggerRecurrence object itself. + */ + public ScheduleTriggerRecurrence withInterval(Integer interval) { + this.interval = interval; + return this; + } + + /** + * Get the start time. + * + * @return the startTime value + */ + public DateTime startTime() { + return this.startTime; + } + + /** + * Set the start time. + * + * @param startTime the startTime value to set + * @return the ScheduleTriggerRecurrence object itself. + */ + public ScheduleTriggerRecurrence withStartTime(DateTime startTime) { + this.startTime = startTime; + return this; + } + + /** + * Get the end time. + * + * @return the endTime value + */ + public DateTime endTime() { + return this.endTime; + } + + /** + * Set the end time. + * + * @param endTime the endTime value to set + * @return the ScheduleTriggerRecurrence object itself. + */ + public ScheduleTriggerRecurrence withEndTime(DateTime endTime) { + this.endTime = endTime; + return this; + } + + /** + * Get the time zone. + * + * @return the timeZone value + */ + public String timeZone() { + return this.timeZone; + } + + /** + * Set the time zone. + * + * @param timeZone the timeZone value to set + * @return the ScheduleTriggerRecurrence object itself. + */ + public ScheduleTriggerRecurrence withTimeZone(String timeZone) { + this.timeZone = timeZone; + return this; + } + + /** + * Get the recurrence schedule. + * + * @return the schedule value + */ + public RecurrenceSchedule schedule() { + return this.schedule; + } + + /** + * Set the recurrence schedule. + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ScriptAction.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ScriptAction.java new file mode 100644 index 0000000000000..afa6a7a288c79 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ScriptAction.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Custom script action to run on HDI ondemand cluster once it's up. + */ +public class ScriptAction { + /** + * The user provided name of the script action. + */ + @JsonProperty(value = "name", required = true) + private String name; + + /** + * The URI for the script action. + */ + @JsonProperty(value = "uri", required = true) + private String uri; + + /** + * The node types on which the script action should be executed. + */ + @JsonProperty(value = "roles", required = true) + private Object roles; + + /** + * The parameters for the script action. + */ + @JsonProperty(value = "parameters") + private String parameters; + + /** + * Get the user provided name of the script action. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Set the user provided name of the script action. + * + * @param name the name value to set + * @return the ScriptAction object itself. + */ + public ScriptAction withName(String name) { + this.name = name; + return this; + } + + /** + * Get the URI for the script action. + * + * @return the uri value + */ + public String uri() { + return this.uri; + } + + /** + * Set the URI for the script action. + * + * @param uri the uri value to set + * @return the ScriptAction object itself. + */ + public ScriptAction withUri(String uri) { + this.uri = uri; + return this; + } + + /** + * Get the node types on which the script action should be executed. + * + * @return the roles value + */ + public Object roles() { + return this.roles; + } + + /** + * Set the node types on which the script action should be executed. + * + * @param roles the roles value to set + * @return the ScriptAction object itself. + */ + public ScriptAction withRoles(Object roles) { + this.roles = roles; + return this; + } + + /** + * Get the parameters for the script action. + * + * @return the parameters value + */ + public String parameters() { + return this.parameters; + } + + /** + * Set the parameters for the script action. + * + * @param parameters the parameters value to set + * @return the ScriptAction object itself. + */ + public ScriptAction withParameters(String parameters) { + this.parameters = parameters; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SecretBase.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SecretBase.java new file mode 100644 index 0000000000000..3313021e763f9 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SecureString.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SecureString.java new file mode 100644 index 0000000000000..67a6499314d65 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 value of secure string. + * + * @return the value value + */ + public String value() { + return this.value; + } + + /** + * Set value of secure string. + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SelfDependencyTumblingWindowTriggerReference.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SelfDependencyTumblingWindowTriggerReference.java new file mode 100644 index 0000000000000..56ab0ba86fc56 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SelfDependencyTumblingWindowTriggerReference.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * Self referenced tumbling window trigger dependency. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("SelfDependencyTumblingWindowTriggerReference") +public class SelfDependencyTumblingWindowTriggerReference extends DependencyReference { + /** + * Timespan applied to the start time of a tumbling window when evaluating + * dependency. + */ + @JsonProperty(value = "offset", required = true) + private String offset; + + /** + * The size of the window when evaluating the dependency. If undefined the + * frequency of the tumbling window will be used. + */ + @JsonProperty(value = "size") + private String size; + + /** + * Get timespan applied to the start time of a tumbling window when evaluating dependency. + * + * @return the offset value + */ + public String offset() { + return this.offset; + } + + /** + * Set timespan applied to the start time of a tumbling window when evaluating dependency. + * + * @param offset the offset value to set + * @return the SelfDependencyTumblingWindowTriggerReference object itself. + */ + public SelfDependencyTumblingWindowTriggerReference withOffset(String offset) { + this.offset = offset; + return this; + } + + /** + * Get the size of the window when evaluating the dependency. If undefined the frequency of the tumbling window will be used. + * + * @return the size value + */ + public String size() { + return this.size; + } + + /** + * Set the size of the window when evaluating the dependency. If undefined the frequency of the tumbling window will be used. + * + * @param size the size value to set + * @return the SelfDependencyTumblingWindowTriggerReference object itself. + */ + public SelfDependencyTumblingWindowTriggerReference withSize(String size) { + this.size = size; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SelfHostedIntegrationRuntime.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SelfHostedIntegrationRuntime.java new file mode 100644 index 0000000000000..af1bcfd4d6559 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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 LinkedIntegrationRuntimeType linkedInfo; + + /** + * Get the linkedInfo value. + * + * @return the linkedInfo value + */ + public LinkedIntegrationRuntimeType linkedInfo() { + return this.linkedInfo; + } + + /** + * Set the linkedInfo value. + * + * @param linkedInfo the linkedInfo value to set + * @return the SelfHostedIntegrationRuntime object itself. + */ + public SelfHostedIntegrationRuntime withLinkedInfo(LinkedIntegrationRuntimeType linkedInfo) { + this.linkedInfo = linkedInfo; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SelfHostedIntegrationRuntimeNode.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SelfHostedIntegrationRuntimeNode.java new file mode 100644 index 0000000000000..04b565ee9d9f7 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SelfHostedIntegrationRuntimeNode.java @@ -0,0 +1,112 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.SelfHostedIntegrationRuntimeNodeInner; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DataFactoryManager; +import java.util.Map; +import org.joda.time.DateTime; + +/** + * Type representing SelfHostedIntegrationRuntimeNode. + */ +public interface SelfHostedIntegrationRuntimeNode extends HasInner, HasManager { + /** + * @return the capabilities value. + */ + Map capabilities(); + + /** + * @return the concurrentJobsLimit value. + */ + Integer concurrentJobsLimit(); + + /** + * @return the expiryTime value. + */ + DateTime expiryTime(); + + /** + * @return the hostServiceUri value. + */ + String hostServiceUri(); + + /** + * @return the isActiveDispatcher value. + */ + Boolean isActiveDispatcher(); + + /** + * @return the lastConnectTime value. + */ + DateTime lastConnectTime(); + + /** + * @return the lastEndUpdateTime value. + */ + DateTime lastEndUpdateTime(); + + /** + * @return the lastStartTime value. + */ + DateTime lastStartTime(); + + /** + * @return the lastStartUpdateTime value. + */ + DateTime lastStartUpdateTime(); + + /** + * @return the lastStopTime value. + */ + DateTime lastStopTime(); + + /** + * @return the lastUpdateResult value. + */ + IntegrationRuntimeUpdateResult lastUpdateResult(); + + /** + * @return the machineName value. + */ + String machineName(); + + /** + * @return the maxConcurrentJobs value. + */ + Integer maxConcurrentJobs(); + + /** + * @return the nodeName value. + */ + String nodeName(); + + /** + * @return the registerTime value. + */ + DateTime registerTime(); + + /** + * @return the status value. + */ + SelfHostedIntegrationRuntimeNodeStatus status(); + + /** + * @return the version value. + */ + String version(); + + /** + * @return the versionStatus value. + */ + String versionStatus(); + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SelfHostedIntegrationRuntimeNodeStatus.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SelfHostedIntegrationRuntimeNodeStatus.java new file mode 100644 index 0000000000000..0f133119b77ab --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SelfHostedIntegrationRuntimeStatus.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SelfHostedIntegrationRuntimeStatus.java new file mode 100644 index 0000000000000..841827c9f437a --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SelfHostedIntegrationRuntimeStatus.java @@ -0,0 +1,298 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +import org.joda.time.DateTime; +import java.util.List; +import com.microsoft.azure.management.datafactory.v2018_06_01.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; + + /** + * The version that the integration runtime is going to update to. + */ + @JsonProperty(value = "typeProperties.pushedVersion", access = JsonProperty.Access.WRITE_ONLY) + private String pushedVersion; + + /** + * The latest version on download center. + */ + @JsonProperty(value = "typeProperties.latestVersion", access = JsonProperty.Access.WRITE_ONLY) + private String latestVersion; + + /** + * The estimated time when the self-hosted integration runtime will be + * updated. + */ + @JsonProperty(value = "typeProperties.autoUpdateETA", access = JsonProperty.Access.WRITE_ONLY) + private DateTime autoUpdateETA; + + /** + * Get the time at which the integration runtime was created, in ISO8601 format. + * + * @return the createTime value + */ + public DateTime createTime() { + return this.createTime; + } + + /** + * Get the task queue id of the integration runtime. + * + * @return the taskQueueId value + */ + public String taskQueueId() { + return this.taskQueueId; + } + + /** + * Get 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'. + * + * @return the internalChannelEncryption value + */ + public IntegrationRuntimeInternalChannelEncryptionMode internalChannelEncryption() { + return this.internalChannelEncryption; + } + + /** + * Get version of the integration runtime. + * + * @return the version value + */ + public String version() { + return this.version; + } + + /** + * Get the list of nodes for this integration runtime. + * + * @return the nodes value + */ + public List nodes() { + return this.nodes; + } + + /** + * Set the list of nodes for this integration runtime. + * + * @param nodes the nodes value to set + * @return the SelfHostedIntegrationRuntimeStatus object itself. + */ + public SelfHostedIntegrationRuntimeStatus withNodes(List nodes) { + this.nodes = nodes; + return this; + } + + /** + * Get the date at which the integration runtime will be scheduled to update, in ISO8601 format. + * + * @return the scheduledUpdateDate value + */ + public DateTime scheduledUpdateDate() { + return this.scheduledUpdateDate; + } + + /** + * Get the time in the date scheduled by service to update the integration runtime, e.g., PT03H is 3 hours. + * + * @return the updateDelayOffset value + */ + public String updateDelayOffset() { + return this.updateDelayOffset; + } + + /** + * Get the local time zone offset in hours. + * + * @return the localTimeZoneOffset value + */ + public String localTimeZoneOffset() { + return this.localTimeZoneOffset; + } + + /** + * Get object with additional information about integration runtime capabilities. + * + * @return the capabilities value + */ + public Map capabilities() { + return this.capabilities; + } + + /** + * Get the URLs for the services used in integration runtime backend service. + * + * @return the serviceUrls value + */ + public List serviceUrls() { + return this.serviceUrls; + } + + /** + * Get whether Self-hosted integration runtime auto update has been turned on. Possible values include: 'On', 'Off'. + * + * @return the autoUpdate value + */ + public IntegrationRuntimeAutoUpdate autoUpdate() { + return this.autoUpdate; + } + + /** + * Get status of the integration runtime version. + * + * @return the versionStatus value + */ + public String versionStatus() { + return this.versionStatus; + } + + /** + * Get the list of linked integration runtimes that are created to share with this integration runtime. + * + * @return the links value + */ + public List links() { + return this.links; + } + + /** + * Set the list of linked integration runtimes that are created to share with this integration runtime. + * + * @param links the links value to set + * @return the SelfHostedIntegrationRuntimeStatus object itself. + */ + public SelfHostedIntegrationRuntimeStatus withLinks(List links) { + this.links = links; + return this; + } + + /** + * Get the version that the integration runtime is going to update to. + * + * @return the pushedVersion value + */ + public String pushedVersion() { + return this.pushedVersion; + } + + /** + * Get the latest version on download center. + * + * @return the latestVersion value + */ + public String latestVersion() { + return this.latestVersion; + } + + /** + * Get the estimated time when the self-hosted integration runtime will be updated. + * + * @return the autoUpdateETA value + */ + public DateTime autoUpdateETA() { + return this.autoUpdateETA; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ServiceNowAuthenticationType.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ServiceNowAuthenticationType.java new file mode 100644 index 0000000000000..8d630c0014902 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ServiceNowLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ServiceNowLinkedService.java new file mode 100644 index 0000000000000..d1fbcf3788742 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ServiceNowLinkedService.java @@ -0,0 +1,294 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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. + * <instance>.service-now.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 of the ServiceNow server. (i.e. <instance>.service-now.com). + * + * @return the endpoint value + */ + public Object endpoint() { + return this.endpoint; + } + + /** + * Set the endpoint of the ServiceNow server. (i.e. <instance>.service-now.com). + * + * @param endpoint the endpoint value to set + * @return the ServiceNowLinkedService object itself. + */ + public ServiceNowLinkedService withEndpoint(Object endpoint) { + this.endpoint = endpoint; + return this; + } + + /** + * Get the authentication type to use. Possible values include: 'Basic', 'OAuth2'. + * + * @return the authenticationType value + */ + public ServiceNowAuthenticationType authenticationType() { + return this.authenticationType; + } + + /** + * Set the authentication type to use. Possible values include: 'Basic', 'OAuth2'. + * + * @param authenticationType the authenticationType value to set + * @return the ServiceNowLinkedService object itself. + */ + public ServiceNowLinkedService withAuthenticationType(ServiceNowAuthenticationType authenticationType) { + this.authenticationType = authenticationType; + return this; + } + + /** + * Get the user name used to connect to the ServiceNow server for Basic and OAuth2 authentication. + * + * @return the username value + */ + public Object username() { + return this.username; + } + + /** + * Set the user name used to connect to the ServiceNow server for Basic and OAuth2 authentication. + * + * @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 corresponding to the user name for Basic and OAuth2 authentication. + * + * @return the password value + */ + public SecretBase password() { + return this.password; + } + + /** + * Set the password corresponding to the user name for Basic and OAuth2 authentication. + * + * @param password the password value to set + * @return the ServiceNowLinkedService object itself. + */ + public ServiceNowLinkedService withPassword(SecretBase password) { + this.password = password; + return this; + } + + /** + * Get the client id for OAuth2 authentication. + * + * @return the clientId value + */ + public Object clientId() { + return this.clientId; + } + + /** + * Set the client id for OAuth2 authentication. + * + * @param clientId the clientId value to set + * @return the ServiceNowLinkedService object itself. + */ + public ServiceNowLinkedService withClientId(Object clientId) { + this.clientId = clientId; + return this; + } + + /** + * Get the client secret for OAuth2 authentication. + * + * @return the clientSecret value + */ + public SecretBase clientSecret() { + return this.clientSecret; + } + + /** + * Set the client secret for OAuth2 authentication. + * + * @param clientSecret the clientSecret value to set + * @return the ServiceNowLinkedService object itself. + */ + public ServiceNowLinkedService withClientSecret(SecretBase clientSecret) { + this.clientSecret = clientSecret; + return this; + } + + /** + * Get specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. + * + * @return the useEncryptedEndpoints value + */ + public Object useEncryptedEndpoints() { + return this.useEncryptedEndpoints; + } + + /** + * Set specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. + * + * @param useEncryptedEndpoints the useEncryptedEndpoints value to set + * @return the ServiceNowLinkedService object itself. + */ + public ServiceNowLinkedService withUseEncryptedEndpoints(Object useEncryptedEndpoints) { + this.useEncryptedEndpoints = useEncryptedEndpoints; + return this; + } + + /** + * Get specifies whether to require the host name in the server's certificate to match the host name of the server when connecting over SSL. The default value is true. + * + * @return the useHostVerification value + */ + public Object useHostVerification() { + return this.useHostVerification; + } + + /** + * Set specifies whether to require the host name in the server's certificate to match the host name of the server when connecting over SSL. The default value is true. + * + * @param useHostVerification the useHostVerification value to set + * @return the ServiceNowLinkedService object itself. + */ + public ServiceNowLinkedService withUseHostVerification(Object useHostVerification) { + this.useHostVerification = useHostVerification; + return this; + } + + /** + * Get specifies whether to verify the identity of the server when connecting over SSL. The default value is true. + * + * @return the usePeerVerification value + */ + public Object usePeerVerification() { + return this.usePeerVerification; + } + + /** + * Set specifies whether to verify the identity of the server when connecting over SSL. The default value is true. + * + * @param usePeerVerification the usePeerVerification value to set + * @return the ServiceNowLinkedService object itself. + */ + public ServiceNowLinkedService withUsePeerVerification(Object usePeerVerification) { + this.usePeerVerification = usePeerVerification; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the ServiceNowLinkedService object itself. + */ + public ServiceNowLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ServiceNowObjectDataset.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ServiceNowObjectDataset.java new file mode 100644 index 0000000000000..5051fec372dc4 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ServiceNowObjectDataset.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DatasetInner; + +/** + * ServiceNow server dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("ServiceNowObject") +@JsonFlatten +public class ServiceNowObjectDataset extends DatasetInner { + /** + * The table name. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; + + /** + * Get the table name. Type: string (or Expression with resultType string). + * + * @return the tableName value + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set the table name. Type: string (or Expression with resultType string). + * + * @param tableName the tableName value to set + * @return the ServiceNowObjectDataset object itself. + */ + public ServiceNowObjectDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ServiceNowSource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ServiceNowSource.java new file mode 100644 index 0000000000000..1189b6da13d1a --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 a query to retrieve data from source. Type: string (or Expression with resultType string). + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set a query to retrieve data from source. Type: string (or Expression with resultType string). + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SetVariableActivity.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SetVariableActivity.java new file mode 100644 index 0000000000000..c2b5ce3cf77db --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SetVariableActivity.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; + +/** + * Set value for a Variable. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("SetVariable") +@JsonFlatten +public class SetVariableActivity extends ControlActivity { + /** + * Name of the variable whose value needs to be set. + */ + @JsonProperty(value = "typeProperties.variableName") + private String variableName; + + /** + * Value to be set. Could be a static value or Expression. + */ + @JsonProperty(value = "typeProperties.value") + private Object value; + + /** + * Get name of the variable whose value needs to be set. + * + * @return the variableName value + */ + public String variableName() { + return this.variableName; + } + + /** + * Set name of the variable whose value needs to be set. + * + * @param variableName the variableName value to set + * @return the SetVariableActivity object itself. + */ + public SetVariableActivity withVariableName(String variableName) { + this.variableName = variableName; + return this; + } + + /** + * Get value to be set. Could be a static value or Expression. + * + * @return the value value + */ + public Object value() { + return this.value; + } + + /** + * Set value to be set. Could be a static value or Expression. + * + * @param value the value value to set + * @return the SetVariableActivity object itself. + */ + public SetVariableActivity withValue(Object value) { + this.value = value; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SftpAuthenticationType.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SftpAuthenticationType.java new file mode 100644 index 0000000000000..0ec97bbf56196 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SftpLocation.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SftpLocation.java new file mode 100644 index 0000000000000..512cf95948e03 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SftpLocation.java @@ -0,0 +1,16 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + + +/** + * The location of SFTP dataset. + */ +public class SftpLocation extends DatasetLocation { +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SftpReadSettings.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SftpReadSettings.java new file mode 100644 index 0000000000000..edf25256bb58e --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SftpReadSettings.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Sftp read settings. + */ +public class SftpReadSettings extends StoreReadSettings { + /** + * 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; + + /** + * Sftp wildcardFolderPath. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "wildcardFolderPath") + private Object wildcardFolderPath; + + /** + * Sftp wildcardFileName. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "wildcardFileName") + private Object wildcardFileName; + + /** + * The start of file's modified datetime. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "modifiedDatetimeStart") + private Object modifiedDatetimeStart; + + /** + * The end of file's modified datetime. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "modifiedDatetimeEnd") + private Object modifiedDatetimeEnd; + + /** + * Get if true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType boolean). + * + * @return the recursive value + */ + public Object recursive() { + return this.recursive; + } + + /** + * Set if true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType boolean). + * + * @param recursive the recursive value to set + * @return the SftpReadSettings object itself. + */ + public SftpReadSettings withRecursive(Object recursive) { + this.recursive = recursive; + return this; + } + + /** + * Get sftp wildcardFolderPath. Type: string (or Expression with resultType string). + * + * @return the wildcardFolderPath value + */ + public Object wildcardFolderPath() { + return this.wildcardFolderPath; + } + + /** + * Set sftp wildcardFolderPath. Type: string (or Expression with resultType string). + * + * @param wildcardFolderPath the wildcardFolderPath value to set + * @return the SftpReadSettings object itself. + */ + public SftpReadSettings withWildcardFolderPath(Object wildcardFolderPath) { + this.wildcardFolderPath = wildcardFolderPath; + return this; + } + + /** + * Get sftp wildcardFileName. Type: string (or Expression with resultType string). + * + * @return the wildcardFileName value + */ + public Object wildcardFileName() { + return this.wildcardFileName; + } + + /** + * Set sftp wildcardFileName. Type: string (or Expression with resultType string). + * + * @param wildcardFileName the wildcardFileName value to set + * @return the SftpReadSettings object itself. + */ + public SftpReadSettings withWildcardFileName(Object wildcardFileName) { + this.wildcardFileName = wildcardFileName; + return this; + } + + /** + * Get the start of file's modified datetime. Type: string (or Expression with resultType string). + * + * @return the modifiedDatetimeStart value + */ + public Object modifiedDatetimeStart() { + return this.modifiedDatetimeStart; + } + + /** + * Set the start of file's modified datetime. Type: string (or Expression with resultType string). + * + * @param modifiedDatetimeStart the modifiedDatetimeStart value to set + * @return the SftpReadSettings object itself. + */ + public SftpReadSettings withModifiedDatetimeStart(Object modifiedDatetimeStart) { + this.modifiedDatetimeStart = modifiedDatetimeStart; + return this; + } + + /** + * Get the end of file's modified datetime. Type: string (or Expression with resultType string). + * + * @return the modifiedDatetimeEnd value + */ + public Object modifiedDatetimeEnd() { + return this.modifiedDatetimeEnd; + } + + /** + * Set the end of file's modified datetime. Type: string (or Expression with resultType string). + * + * @param modifiedDatetimeEnd the modifiedDatetimeEnd value to set + * @return the SftpReadSettings object itself. + */ + public SftpReadSettings withModifiedDatetimeEnd(Object modifiedDatetimeEnd) { + this.modifiedDatetimeEnd = modifiedDatetimeEnd; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SftpServerLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SftpServerLinkedService.java new file mode 100644 index 0000000000000..6d3cd6585f326 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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 SFTP server host name. Type: string (or Expression with resultType string). + * + * @return the host value + */ + public Object host() { + return this.host; + } + + /** + * Set the SFTP server host name. Type: string (or Expression with resultType string). + * + * @param host the host value to set + * @return the SftpServerLinkedService object itself. + */ + public SftpServerLinkedService withHost(Object host) { + this.host = host; + return this; + } + + /** + * Get the TCP port number that the SFTP server uses to listen for client connections. Default value is 22. Type: integer (or Expression with resultType integer), minimum: 0. + * + * @return the port value + */ + public Object port() { + return this.port; + } + + /** + * Set the TCP port number that the SFTP server uses to listen for client connections. Default value is 22. Type: integer (or Expression with resultType integer), minimum: 0. + * + * @param port the port value to set + * @return the SftpServerLinkedService object itself. + */ + public SftpServerLinkedService withPort(Object port) { + this.port = port; + return this; + } + + /** + * Get the authentication type to be used to connect to the FTP server. Possible values include: 'Basic', 'SshPublicKey'. + * + * @return the authenticationType value + */ + public SftpAuthenticationType authenticationType() { + return this.authenticationType; + } + + /** + * Set the authentication type to be used to connect to the FTP server. Possible values include: 'Basic', 'SshPublicKey'. + * + * @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 used to log on to the SFTP server. Type: string (or Expression with resultType string). + * + * @return the userName value + */ + public Object userName() { + return this.userName; + } + + /** + * Set the username used to log on to the SFTP server. Type: string (or Expression with resultType string). + * + * @param userName the userName value to set + * @return the SftpServerLinkedService object itself. + */ + public SftpServerLinkedService withUserName(Object userName) { + this.userName = userName; + return this; + } + + /** + * Get password to logon the SFTP server for Basic authentication. + * + * @return the password value + */ + public SecretBase password() { + return this.password; + } + + /** + * Set password to logon the SFTP server for Basic authentication. + * + * @param password the password value to set + * @return the SftpServerLinkedService object itself. + */ + public SftpServerLinkedService withPassword(SecretBase password) { + this.password = password; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the SftpServerLinkedService object itself. + */ + public SftpServerLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + + /** + * Get the SSH private key file path for SshPublicKey authentication. Only valid for on-premises copy. For on-premises copy with SshPublicKey authentication, either PrivateKeyPath or PrivateKeyContent should be specified. SSH private key should be OpenSSH format. Type: string (or Expression with resultType string). + * + * @return the privateKeyPath value + */ + public Object privateKeyPath() { + return this.privateKeyPath; + } + + /** + * Set the SSH private key file path for SshPublicKey authentication. Only valid for on-premises copy. For on-premises copy with SshPublicKey authentication, either PrivateKeyPath or PrivateKeyContent should be specified. SSH private key should be OpenSSH format. Type: string (or Expression with resultType string). + * + * @param privateKeyPath the privateKeyPath value to set + * @return the SftpServerLinkedService object itself. + */ + public SftpServerLinkedService withPrivateKeyPath(Object privateKeyPath) { + this.privateKeyPath = privateKeyPath; + return this; + } + + /** + * Get base64 encoded SSH private key content for SshPublicKey authentication. For on-premises copy with SshPublicKey authentication, either PrivateKeyPath or PrivateKeyContent should be specified. SSH private key should be OpenSSH format. + * + * @return the privateKeyContent value + */ + public SecretBase privateKeyContent() { + return this.privateKeyContent; + } + + /** + * Set base64 encoded SSH private key content for SshPublicKey authentication. For on-premises copy with SshPublicKey authentication, either PrivateKeyPath or PrivateKeyContent should be specified. SSH private key should be OpenSSH format. + * + * @param privateKeyContent the privateKeyContent value to set + * @return the SftpServerLinkedService object itself. + */ + public SftpServerLinkedService withPrivateKeyContent(SecretBase privateKeyContent) { + this.privateKeyContent = privateKeyContent; + return this; + } + + /** + * Get the password to decrypt the SSH private key if the SSH private key is encrypted. + * + * @return the passPhrase value + */ + public SecretBase passPhrase() { + return this.passPhrase; + } + + /** + * Set the password to decrypt the SSH private key if the SSH private key is encrypted. + * + * @param passPhrase the passPhrase value to set + * @return the SftpServerLinkedService object itself. + */ + public SftpServerLinkedService withPassPhrase(SecretBase passPhrase) { + this.passPhrase = passPhrase; + return this; + } + + /** + * Get if true, skip the SSH host key validation. Default value is false. Type: boolean (or Expression with resultType boolean). + * + * @return the skipHostKeyValidation value + */ + public Object skipHostKeyValidation() { + return this.skipHostKeyValidation; + } + + /** + * Set if true, skip the SSH host key validation. Default value is false. Type: boolean (or Expression with resultType boolean). + * + * @param skipHostKeyValidation the skipHostKeyValidation value to set + * @return the SftpServerLinkedService object itself. + */ + public SftpServerLinkedService withSkipHostKeyValidation(Object skipHostKeyValidation) { + this.skipHostKeyValidation = skipHostKeyValidation; + return this; + } + + /** + * Get the host key finger-print of the SFTP server. When SkipHostKeyValidation is false, HostKeyFingerprint should be specified. Type: string (or Expression with resultType string). + * + * @return the hostKeyFingerprint value + */ + public Object hostKeyFingerprint() { + return this.hostKeyFingerprint; + } + + /** + * Set the host key finger-print of the SFTP server. When SkipHostKeyValidation is false, HostKeyFingerprint should be specified. Type: string (or Expression with resultType string). + * + * @param hostKeyFingerprint the hostKeyFingerprint value to set + * @return the SftpServerLinkedService object itself. + */ + public SftpServerLinkedService withHostKeyFingerprint(Object hostKeyFingerprint) { + this.hostKeyFingerprint = hostKeyFingerprint; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ShopifyLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ShopifyLinkedService.java new file mode 100644 index 0000000000000..0ed814d8dda78 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.LinkedServiceInner; + +/** + * Shopify Service 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 endpoint of the Shopify server. (i.e. mystore.myshopify.com). + * + * @return the host value + */ + public Object host() { + return this.host; + } + + /** + * Set the endpoint of the Shopify server. (i.e. mystore.myshopify.com). + * + * @param host the host value to set + * @return the ShopifyLinkedService object itself. + */ + public ShopifyLinkedService withHost(Object host) { + this.host = host; + return this; + } + + /** + * Get the API access token that can be used to access Shopify’s data. The token won't expire if it is offline mode. + * + * @return the accessToken value + */ + public SecretBase accessToken() { + return this.accessToken; + } + + /** + * Set the API access token that can be used to access Shopify’s data. The token won't expire if it is offline mode. + * + * @param accessToken the accessToken value to set + * @return the ShopifyLinkedService object itself. + */ + public ShopifyLinkedService withAccessToken(SecretBase accessToken) { + this.accessToken = accessToken; + return this; + } + + /** + * Get specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. + * + * @return the useEncryptedEndpoints value + */ + public Object useEncryptedEndpoints() { + return this.useEncryptedEndpoints; + } + + /** + * Set specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. + * + * @param useEncryptedEndpoints the useEncryptedEndpoints value to set + * @return the ShopifyLinkedService object itself. + */ + public ShopifyLinkedService withUseEncryptedEndpoints(Object useEncryptedEndpoints) { + this.useEncryptedEndpoints = useEncryptedEndpoints; + return this; + } + + /** + * Get specifies whether to require the host name in the server's certificate to match the host name of the server when connecting over SSL. The default value is true. + * + * @return the useHostVerification value + */ + public Object useHostVerification() { + return this.useHostVerification; + } + + /** + * Set specifies whether to require the host name in the server's certificate to match the host name of the server when connecting over SSL. The default value is true. + * + * @param useHostVerification the useHostVerification value to set + * @return the ShopifyLinkedService object itself. + */ + public ShopifyLinkedService withUseHostVerification(Object useHostVerification) { + this.useHostVerification = useHostVerification; + return this; + } + + /** + * Get specifies whether to verify the identity of the server when connecting over SSL. The default value is true. + * + * @return the usePeerVerification value + */ + public Object usePeerVerification() { + return this.usePeerVerification; + } + + /** + * Set specifies whether to verify the identity of the server when connecting over SSL. The default value is true. + * + * @param usePeerVerification the usePeerVerification value to set + * @return the ShopifyLinkedService object itself. + */ + public ShopifyLinkedService withUsePeerVerification(Object usePeerVerification) { + this.usePeerVerification = usePeerVerification; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the ShopifyLinkedService object itself. + */ + public ShopifyLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ShopifyObjectDataset.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ShopifyObjectDataset.java new file mode 100644 index 0000000000000..76c8ac35f0955 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ShopifyObjectDataset.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DatasetInner; + +/** + * Shopify Service dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("ShopifyObject") +@JsonFlatten +public class ShopifyObjectDataset extends DatasetInner { + /** + * The table name. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; + + /** + * Get the table name. Type: string (or Expression with resultType string). + * + * @return the tableName value + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set the table name. Type: string (or Expression with resultType string). + * + * @param tableName the tableName value to set + * @return the ShopifyObjectDataset object itself. + */ + public ShopifyObjectDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ShopifySource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ShopifySource.java new file mode 100644 index 0000000000000..585999676e5e1 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Shopify Service 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 a query to retrieve data from source. Type: string (or Expression with resultType string). + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set a query to retrieve data from source. Type: string (or Expression with resultType string). + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SparkAuthenticationType.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SparkAuthenticationType.java new file mode 100644 index 0000000000000..43836660d0abc --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SparkLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SparkLinkedService.java new file mode 100644 index 0000000000000..ad0d85741d382 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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 iP address or host name of the Spark server. + * + * @return the host value + */ + public Object host() { + return this.host; + } + + /** + * Set iP address or host name of the Spark server. + * + * @param host the host value to set + * @return the SparkLinkedService object itself. + */ + public SparkLinkedService withHost(Object host) { + this.host = host; + return this; + } + + /** + * Get the TCP port that the Spark server uses to listen for client connections. + * + * @return the port value + */ + public Object port() { + return this.port; + } + + /** + * Set the TCP port that the Spark server uses to listen for client connections. + * + * @param port the port value to set + * @return the SparkLinkedService object itself. + */ + public SparkLinkedService withPort(Object port) { + this.port = port; + return this; + } + + /** + * Get the type of Spark server. Possible values include: 'SharkServer', 'SharkServer2', 'SparkThriftServer'. + * + * @return the serverType value + */ + public SparkServerType serverType() { + return this.serverType; + } + + /** + * Set the type of Spark server. Possible values include: 'SharkServer', 'SharkServer2', 'SparkThriftServer'. + * + * @param serverType the serverType value to set + * @return the SparkLinkedService object itself. + */ + public SparkLinkedService withServerType(SparkServerType serverType) { + this.serverType = serverType; + return this; + } + + /** + * Get the transport protocol to use in the Thrift layer. Possible values include: 'Binary', 'SASL', 'HTTP '. + * + * @return the thriftTransportProtocol value + */ + public SparkThriftTransportProtocol thriftTransportProtocol() { + return this.thriftTransportProtocol; + } + + /** + * Set the transport protocol to use in the Thrift layer. Possible values include: 'Binary', 'SASL', 'HTTP '. + * + * @param thriftTransportProtocol the thriftTransportProtocol value to set + * @return the SparkLinkedService object itself. + */ + public SparkLinkedService withThriftTransportProtocol(SparkThriftTransportProtocol thriftTransportProtocol) { + this.thriftTransportProtocol = thriftTransportProtocol; + return this; + } + + /** + * Get the authentication method used to access the Spark server. Possible values include: 'Anonymous', 'Username', 'UsernameAndPassword', 'WindowsAzureHDInsightService'. + * + * @return the authenticationType value + */ + public SparkAuthenticationType authenticationType() { + return this.authenticationType; + } + + /** + * Set the authentication method used to access the Spark server. Possible values include: 'Anonymous', 'Username', 'UsernameAndPassword', 'WindowsAzureHDInsightService'. + * + * @param authenticationType the authenticationType value to set + * @return the SparkLinkedService object itself. + */ + public SparkLinkedService withAuthenticationType(SparkAuthenticationType authenticationType) { + this.authenticationType = authenticationType; + return this; + } + + /** + * Get the user name that you use to access Spark Server. + * + * @return the username value + */ + public Object username() { + return this.username; + } + + /** + * Set the user name that you use to access Spark Server. + * + * @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 corresponding to the user name that you provided in the Username field. + * + * @return the password value + */ + public SecretBase password() { + return this.password; + } + + /** + * Set the password corresponding to the user name that you provided in the Username field. + * + * @param password the password value to set + * @return the SparkLinkedService object itself. + */ + public SparkLinkedService withPassword(SecretBase password) { + this.password = password; + return this; + } + + /** + * Get the partial URL corresponding to the Spark server. + * + * @return the httpPath value + */ + public Object httpPath() { + return this.httpPath; + } + + /** + * Set the partial URL corresponding to the Spark server. + * + * @param httpPath the httpPath value to set + * @return the SparkLinkedService object itself. + */ + public SparkLinkedService withHttpPath(Object httpPath) { + this.httpPath = httpPath; + return this; + } + + /** + * Get specifies whether the connections to the server are encrypted using SSL. The default value is false. + * + * @return the enableSsl value + */ + public Object enableSsl() { + return this.enableSsl; + } + + /** + * Set specifies whether the connections to the server are encrypted using SSL. The default value is false. + * + * @param enableSsl the enableSsl value to set + * @return the SparkLinkedService object itself. + */ + public SparkLinkedService withEnableSsl(Object enableSsl) { + this.enableSsl = enableSsl; + return this; + } + + /** + * Get the full path of the .pem file containing trusted CA certificates for verifying the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default value is the cacerts.pem file installed with the IR. + * + * @return the trustedCertPath value + */ + public Object trustedCertPath() { + return this.trustedCertPath; + } + + /** + * Set the full path of the .pem file containing trusted CA certificates for verifying the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default value is the cacerts.pem file installed with the IR. + * + * @param trustedCertPath the trustedCertPath value to set + * @return the SparkLinkedService object itself. + */ + public SparkLinkedService withTrustedCertPath(Object trustedCertPath) { + this.trustedCertPath = trustedCertPath; + return this; + } + + /** + * Get specifies whether to use a CA certificate from the system trust store or from a specified PEM file. The default value is false. + * + * @return the useSystemTrustStore value + */ + public Object useSystemTrustStore() { + return this.useSystemTrustStore; + } + + /** + * Set specifies whether to use a CA certificate from the system trust store or from a specified PEM file. The default value is false. + * + * @param useSystemTrustStore the useSystemTrustStore value to set + * @return the SparkLinkedService object itself. + */ + public SparkLinkedService withUseSystemTrustStore(Object useSystemTrustStore) { + this.useSystemTrustStore = useSystemTrustStore; + return this; + } + + /** + * Get specifies whether to require a CA-issued SSL certificate name to match the host name of the server when connecting over SSL. The default value is false. + * + * @return the allowHostNameCNMismatch value + */ + public Object allowHostNameCNMismatch() { + return this.allowHostNameCNMismatch; + } + + /** + * Set specifies whether to require a CA-issued SSL certificate name to match the host name of the server when connecting over SSL. The default value is false. + * + * @param allowHostNameCNMismatch the allowHostNameCNMismatch value to set + * @return the SparkLinkedService object itself. + */ + public SparkLinkedService withAllowHostNameCNMismatch(Object allowHostNameCNMismatch) { + this.allowHostNameCNMismatch = allowHostNameCNMismatch; + return this; + } + + /** + * Get specifies whether to allow self-signed certificates from the server. The default value is false. + * + * @return the allowSelfSignedServerCert value + */ + public Object allowSelfSignedServerCert() { + return this.allowSelfSignedServerCert; + } + + /** + * Set specifies whether to allow self-signed certificates from the server. The default value is false. + * + * @param allowSelfSignedServerCert the allowSelfSignedServerCert value to set + * @return the SparkLinkedService object itself. + */ + public SparkLinkedService withAllowSelfSignedServerCert(Object allowSelfSignedServerCert) { + this.allowSelfSignedServerCert = allowSelfSignedServerCert; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the SparkLinkedService object itself. + */ + public SparkLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SparkObjectDataset.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SparkObjectDataset.java new file mode 100644 index 0000000000000..5737dd3bad5a2 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SparkObjectDataset.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DatasetInner; + +/** + * Spark Server dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("SparkObject") +@JsonFlatten +public class SparkObjectDataset extends DatasetInner { + /** + * This property will be retired. Please consider using schema + table + * properties instead. + */ + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; + + /** + * The table name of the Spark. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.table") + private Object table; + + /** + * The schema name of the Spark. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.schema") + private Object sparkObjectDatasetSchema; + + /** + * Get this property will be retired. Please consider using schema + table properties instead. + * + * @return the tableName value + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set this property will be retired. Please consider using schema + table properties instead. + * + * @param tableName the tableName value to set + * @return the SparkObjectDataset object itself. + */ + public SparkObjectDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; + } + + /** + * Get the table name of the Spark. Type: string (or Expression with resultType string). + * + * @return the table value + */ + public Object table() { + return this.table; + } + + /** + * Set the table name of the Spark. Type: string (or Expression with resultType string). + * + * @param table the table value to set + * @return the SparkObjectDataset object itself. + */ + public SparkObjectDataset withTable(Object table) { + this.table = table; + return this; + } + + /** + * Get the schema name of the Spark. Type: string (or Expression with resultType string). + * + * @return the sparkObjectDatasetSchema value + */ + public Object sparkObjectDatasetSchema() { + return this.sparkObjectDatasetSchema; + } + + /** + * Set the schema name of the Spark. Type: string (or Expression with resultType string). + * + * @param sparkObjectDatasetSchema the sparkObjectDatasetSchema value to set + * @return the SparkObjectDataset object itself. + */ + public SparkObjectDataset withSparkObjectDatasetSchema(Object sparkObjectDatasetSchema) { + this.sparkObjectDatasetSchema = sparkObjectDatasetSchema; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SparkServerType.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SparkServerType.java new file mode 100644 index 0000000000000..847b1b131ba58 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SparkSource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SparkSource.java new file mode 100644 index 0000000000000..d7bc356deda2f --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 a query to retrieve data from source. Type: string (or Expression with resultType string). + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set a query to retrieve data from source. Type: string (or Expression with resultType string). + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SparkThriftTransportProtocol.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SparkThriftTransportProtocol.java new file mode 100644 index 0000000000000..212ae3c02627a --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SqlDWSink.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SqlDWSink.java new file mode 100644 index 0000000000000..92947e2832694 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 sQL pre-copy script. Type: string (or Expression with resultType string). + * + * @return the preCopyScript value + */ + public Object preCopyScript() { + return this.preCopyScript; + } + + /** + * Set sQL pre-copy script. Type: string (or Expression with resultType string). + * + * @param preCopyScript the preCopyScript value to set + * @return the SqlDWSink object itself. + */ + public SqlDWSink withPreCopyScript(Object preCopyScript) { + this.preCopyScript = preCopyScript; + return this; + } + + /** + * Get indicates to use PolyBase to copy data into SQL Data Warehouse when applicable. Type: boolean (or Expression with resultType boolean). + * + * @return the allowPolyBase value + */ + public Object allowPolyBase() { + return this.allowPolyBase; + } + + /** + * Set indicates to use PolyBase to copy data into SQL Data Warehouse when applicable. Type: boolean (or Expression with resultType boolean). + * + * @param allowPolyBase the allowPolyBase value to set + * @return the SqlDWSink object itself. + */ + public SqlDWSink withAllowPolyBase(Object allowPolyBase) { + this.allowPolyBase = allowPolyBase; + return this; + } + + /** + * Get specifies PolyBase-related settings when allowPolyBase is true. + * + * @return the polyBaseSettings value + */ + public PolybaseSettings polyBaseSettings() { + return this.polyBaseSettings; + } + + /** + * Set specifies PolyBase-related settings when allowPolyBase is true. + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SqlDWSource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SqlDWSource.java new file mode 100644 index 0000000000000..5819ea607a9f2 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 sQL Data Warehouse reader query. Type: string (or Expression with resultType string). + * + * @return the sqlReaderQuery value + */ + public Object sqlReaderQuery() { + return this.sqlReaderQuery; + } + + /** + * Set sQL Data Warehouse reader query. Type: string (or Expression with resultType string). + * + * @param sqlReaderQuery the sqlReaderQuery value to set + * @return the SqlDWSource object itself. + */ + public SqlDWSource withSqlReaderQuery(Object sqlReaderQuery) { + this.sqlReaderQuery = sqlReaderQuery; + return this; + } + + /** + * Get 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). + * + * @return the sqlReaderStoredProcedureName value + */ + public Object sqlReaderStoredProcedureName() { + return this.sqlReaderStoredProcedureName; + } + + /** + * Set 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). + * + * @param sqlReaderStoredProcedureName the sqlReaderStoredProcedureName value to set + * @return the SqlDWSource object itself. + */ + public SqlDWSource withSqlReaderStoredProcedureName(Object sqlReaderStoredProcedureName) { + this.sqlReaderStoredProcedureName = sqlReaderStoredProcedureName; + return this; + } + + /** + * Get value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". Type: object (or Expression with resultType object), itemType: StoredProcedureParameter. + * + * @return the storedProcedureParameters value + */ + public Object storedProcedureParameters() { + return this.storedProcedureParameters; + } + + /** + * Set value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". Type: object (or Expression with resultType object), itemType: StoredProcedureParameter. + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SqlMISink.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SqlMISink.java new file mode 100644 index 0000000000000..d086f30fe9cf5 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SqlMISink.java @@ -0,0 +1,156 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Azure SQL Managed Instance sink. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("SqlMISink") +public class SqlMISink extends CopySink { + /** + * SQL writer stored procedure name. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "sqlWriterStoredProcedureName") + private Object sqlWriterStoredProcedureName; + + /** + * SQL writer table type. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "sqlWriterTableType") + private Object sqlWriterTableType; + + /** + * SQL pre-copy script. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "preCopyScript") + private Object preCopyScript; + + /** + * SQL stored procedure parameters. + */ + @JsonProperty(value = "storedProcedureParameters") + private Map storedProcedureParameters; + + /** + * The stored procedure parameter name of the table type. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "storedProcedureTableTypeParameterName") + private Object storedProcedureTableTypeParameterName; + + /** + * Get sQL writer stored procedure name. Type: string (or Expression with resultType string). + * + * @return the sqlWriterStoredProcedureName value + */ + public Object sqlWriterStoredProcedureName() { + return this.sqlWriterStoredProcedureName; + } + + /** + * Set sQL writer stored procedure name. Type: string (or Expression with resultType string). + * + * @param sqlWriterStoredProcedureName the sqlWriterStoredProcedureName value to set + * @return the SqlMISink object itself. + */ + public SqlMISink withSqlWriterStoredProcedureName(Object sqlWriterStoredProcedureName) { + this.sqlWriterStoredProcedureName = sqlWriterStoredProcedureName; + return this; + } + + /** + * Get sQL writer table type. Type: string (or Expression with resultType string). + * + * @return the sqlWriterTableType value + */ + public Object sqlWriterTableType() { + return this.sqlWriterTableType; + } + + /** + * Set sQL writer table type. Type: string (or Expression with resultType string). + * + * @param sqlWriterTableType the sqlWriterTableType value to set + * @return the SqlMISink object itself. + */ + public SqlMISink withSqlWriterTableType(Object sqlWriterTableType) { + this.sqlWriterTableType = sqlWriterTableType; + return this; + } + + /** + * Get sQL pre-copy script. Type: string (or Expression with resultType string). + * + * @return the preCopyScript value + */ + public Object preCopyScript() { + return this.preCopyScript; + } + + /** + * Set sQL pre-copy script. Type: string (or Expression with resultType string). + * + * @param preCopyScript the preCopyScript value to set + * @return the SqlMISink object itself. + */ + public SqlMISink withPreCopyScript(Object preCopyScript) { + this.preCopyScript = preCopyScript; + return this; + } + + /** + * Get sQL stored procedure parameters. + * + * @return the storedProcedureParameters value + */ + public Map storedProcedureParameters() { + return this.storedProcedureParameters; + } + + /** + * Set sQL stored procedure parameters. + * + * @param storedProcedureParameters the storedProcedureParameters value to set + * @return the SqlMISink object itself. + */ + public SqlMISink withStoredProcedureParameters(Map storedProcedureParameters) { + this.storedProcedureParameters = storedProcedureParameters; + return this; + } + + /** + * Get the stored procedure parameter name of the table type. Type: string (or Expression with resultType string). + * + * @return the storedProcedureTableTypeParameterName value + */ + public Object storedProcedureTableTypeParameterName() { + return this.storedProcedureTableTypeParameterName; + } + + /** + * Set the stored procedure parameter name of the table type. Type: string (or Expression with resultType string). + * + * @param storedProcedureTableTypeParameterName the storedProcedureTableTypeParameterName value to set + * @return the SqlMISink object itself. + */ + public SqlMISink withStoredProcedureTableTypeParameterName(Object storedProcedureTableTypeParameterName) { + this.storedProcedureTableTypeParameterName = storedProcedureTableTypeParameterName; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SqlMISource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SqlMISource.java new file mode 100644 index 0000000000000..44c3e8e5fb1fc --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SqlMISource.java @@ -0,0 +1,129 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Azure SQL Managed Instance source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("SqlMISource") +public class SqlMISource extends CopySource { + /** + * SQL reader query. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "sqlReaderQuery") + private Object sqlReaderQuery; + + /** + * Name of the stored procedure for a Azure SQL Managed Instance source. + * This cannot be used at the same time as SqlReaderQuery. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "sqlReaderStoredProcedureName") + private Object sqlReaderStoredProcedureName; + + /** + * Value and type setting for stored procedure parameters. Example: + * "{Parameter1: {value: "1", type: "int"}}". + */ + @JsonProperty(value = "storedProcedureParameters") + private Map storedProcedureParameters; + + /** + * Which additional types to produce. + */ + @JsonProperty(value = "produceAdditionalTypes") + private Object produceAdditionalTypes; + + /** + * Get sQL reader query. Type: string (or Expression with resultType string). + * + * @return the sqlReaderQuery value + */ + public Object sqlReaderQuery() { + return this.sqlReaderQuery; + } + + /** + * Set sQL reader query. Type: string (or Expression with resultType string). + * + * @param sqlReaderQuery the sqlReaderQuery value to set + * @return the SqlMISource object itself. + */ + public SqlMISource withSqlReaderQuery(Object sqlReaderQuery) { + this.sqlReaderQuery = sqlReaderQuery; + return this; + } + + /** + * Get name of the stored procedure for a Azure SQL Managed Instance source. This cannot be used at the same time as SqlReaderQuery. Type: string (or Expression with resultType string). + * + * @return the sqlReaderStoredProcedureName value + */ + public Object sqlReaderStoredProcedureName() { + return this.sqlReaderStoredProcedureName; + } + + /** + * Set name of the stored procedure for a Azure SQL Managed Instance source. This cannot be used at the same time as SqlReaderQuery. Type: string (or Expression with resultType string). + * + * @param sqlReaderStoredProcedureName the sqlReaderStoredProcedureName value to set + * @return the SqlMISource object itself. + */ + public SqlMISource withSqlReaderStoredProcedureName(Object sqlReaderStoredProcedureName) { + this.sqlReaderStoredProcedureName = sqlReaderStoredProcedureName; + return this; + } + + /** + * Get value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". + * + * @return the storedProcedureParameters value + */ + public Map storedProcedureParameters() { + return this.storedProcedureParameters; + } + + /** + * Set value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". + * + * @param storedProcedureParameters the storedProcedureParameters value to set + * @return the SqlMISource object itself. + */ + public SqlMISource withStoredProcedureParameters(Map storedProcedureParameters) { + this.storedProcedureParameters = storedProcedureParameters; + return this; + } + + /** + * Get which additional types to produce. + * + * @return the produceAdditionalTypes value + */ + public Object produceAdditionalTypes() { + return this.produceAdditionalTypes; + } + + /** + * Set which additional types to produce. + * + * @param produceAdditionalTypes the produceAdditionalTypes value to set + * @return the SqlMISource object itself. + */ + public SqlMISource withProduceAdditionalTypes(Object produceAdditionalTypes) { + this.produceAdditionalTypes = produceAdditionalTypes; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SqlServerLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SqlServerLinkedService.java new file mode 100644 index 0000000000000..6cac75ebc27c6 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SqlServerLinkedService.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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. Type: string, SecureString or + * AzureKeyVaultSecretReference. + */ + @JsonProperty(value = "typeProperties.connectionString", required = true) + private Object 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 connection string. Type: string, SecureString or AzureKeyVaultSecretReference. + * + * @return the connectionString value + */ + public Object connectionString() { + return this.connectionString; + } + + /** + * Set the connection string. Type: string, SecureString or AzureKeyVaultSecretReference. + * + * @param connectionString the connectionString value to set + * @return the SqlServerLinkedService object itself. + */ + public SqlServerLinkedService withConnectionString(Object connectionString) { + this.connectionString = connectionString; + return this; + } + + /** + * Get the on-premises Windows authentication user name. Type: string (or Expression with resultType string). + * + * @return the userName value + */ + public Object userName() { + return this.userName; + } + + /** + * Set the on-premises Windows authentication user name. Type: string (or Expression with resultType string). + * + * @param userName the userName value to set + * @return the SqlServerLinkedService object itself. + */ + public SqlServerLinkedService withUserName(Object userName) { + this.userName = userName; + return this; + } + + /** + * Get the on-premises Windows authentication password. + * + * @return the password value + */ + public SecretBase password() { + return this.password; + } + + /** + * Set the on-premises Windows authentication password. + * + * @param password the password value to set + * @return the SqlServerLinkedService object itself. + */ + public SqlServerLinkedService withPassword(SecretBase password) { + this.password = password; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the SqlServerLinkedService object itself. + */ + public SqlServerLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SqlServerSink.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SqlServerSink.java new file mode 100644 index 0000000000000..927a61f91b3aa --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SqlServerSink.java @@ -0,0 +1,156 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity SQL server sink. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("SqlServerSink") +public class SqlServerSink extends CopySink { + /** + * SQL writer stored procedure name. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "sqlWriterStoredProcedureName") + private Object sqlWriterStoredProcedureName; + + /** + * SQL writer table type. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "sqlWriterTableType") + private Object sqlWriterTableType; + + /** + * SQL pre-copy script. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "preCopyScript") + private Object preCopyScript; + + /** + * SQL stored procedure parameters. + */ + @JsonProperty(value = "storedProcedureParameters") + private Map storedProcedureParameters; + + /** + * The stored procedure parameter name of the table type. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "storedProcedureTableTypeParameterName") + private Object storedProcedureTableTypeParameterName; + + /** + * Get sQL writer stored procedure name. Type: string (or Expression with resultType string). + * + * @return the sqlWriterStoredProcedureName value + */ + public Object sqlWriterStoredProcedureName() { + return this.sqlWriterStoredProcedureName; + } + + /** + * Set sQL writer stored procedure name. Type: string (or Expression with resultType string). + * + * @param sqlWriterStoredProcedureName the sqlWriterStoredProcedureName value to set + * @return the SqlServerSink object itself. + */ + public SqlServerSink withSqlWriterStoredProcedureName(Object sqlWriterStoredProcedureName) { + this.sqlWriterStoredProcedureName = sqlWriterStoredProcedureName; + return this; + } + + /** + * Get sQL writer table type. Type: string (or Expression with resultType string). + * + * @return the sqlWriterTableType value + */ + public Object sqlWriterTableType() { + return this.sqlWriterTableType; + } + + /** + * Set sQL writer table type. Type: string (or Expression with resultType string). + * + * @param sqlWriterTableType the sqlWriterTableType value to set + * @return the SqlServerSink object itself. + */ + public SqlServerSink withSqlWriterTableType(Object sqlWriterTableType) { + this.sqlWriterTableType = sqlWriterTableType; + return this; + } + + /** + * Get sQL pre-copy script. Type: string (or Expression with resultType string). + * + * @return the preCopyScript value + */ + public Object preCopyScript() { + return this.preCopyScript; + } + + /** + * Set sQL pre-copy script. Type: string (or Expression with resultType string). + * + * @param preCopyScript the preCopyScript value to set + * @return the SqlServerSink object itself. + */ + public SqlServerSink withPreCopyScript(Object preCopyScript) { + this.preCopyScript = preCopyScript; + return this; + } + + /** + * Get sQL stored procedure parameters. + * + * @return the storedProcedureParameters value + */ + public Map storedProcedureParameters() { + return this.storedProcedureParameters; + } + + /** + * Set sQL stored procedure parameters. + * + * @param storedProcedureParameters the storedProcedureParameters value to set + * @return the SqlServerSink object itself. + */ + public SqlServerSink withStoredProcedureParameters(Map storedProcedureParameters) { + this.storedProcedureParameters = storedProcedureParameters; + return this; + } + + /** + * Get the stored procedure parameter name of the table type. Type: string (or Expression with resultType string). + * + * @return the storedProcedureTableTypeParameterName value + */ + public Object storedProcedureTableTypeParameterName() { + return this.storedProcedureTableTypeParameterName; + } + + /** + * Set the stored procedure parameter name of the table type. Type: string (or Expression with resultType string). + * + * @param storedProcedureTableTypeParameterName the storedProcedureTableTypeParameterName value to set + * @return the SqlServerSink object itself. + */ + public SqlServerSink withStoredProcedureTableTypeParameterName(Object storedProcedureTableTypeParameterName) { + this.storedProcedureTableTypeParameterName = storedProcedureTableTypeParameterName; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SqlServerSource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SqlServerSource.java new file mode 100644 index 0000000000000..1a64c3f6945d4 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SqlServerSource.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.v2018_06_01; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity SQL server source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("SqlServerSource") +public class SqlServerSource 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; + + /** + * Which additional types to produce. + */ + @JsonProperty(value = "produceAdditionalTypes") + private Object produceAdditionalTypes; + + /** + * Get sQL reader query. Type: string (or Expression with resultType string). + * + * @return the sqlReaderQuery value + */ + public Object sqlReaderQuery() { + return this.sqlReaderQuery; + } + + /** + * Set sQL reader query. Type: string (or Expression with resultType string). + * + * @param sqlReaderQuery the sqlReaderQuery value to set + * @return the SqlServerSource object itself. + */ + public SqlServerSource withSqlReaderQuery(Object sqlReaderQuery) { + this.sqlReaderQuery = sqlReaderQuery; + return this; + } + + /** + * Get 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). + * + * @return the sqlReaderStoredProcedureName value + */ + public Object sqlReaderStoredProcedureName() { + return this.sqlReaderStoredProcedureName; + } + + /** + * Set 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). + * + * @param sqlReaderStoredProcedureName the sqlReaderStoredProcedureName value to set + * @return the SqlServerSource object itself. + */ + public SqlServerSource withSqlReaderStoredProcedureName(Object sqlReaderStoredProcedureName) { + this.sqlReaderStoredProcedureName = sqlReaderStoredProcedureName; + return this; + } + + /** + * Get value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". + * + * @return the storedProcedureParameters value + */ + public Map storedProcedureParameters() { + return this.storedProcedureParameters; + } + + /** + * Set value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". + * + * @param storedProcedureParameters the storedProcedureParameters value to set + * @return the SqlServerSource object itself. + */ + public SqlServerSource withStoredProcedureParameters(Map storedProcedureParameters) { + this.storedProcedureParameters = storedProcedureParameters; + return this; + } + + /** + * Get which additional types to produce. + * + * @return the produceAdditionalTypes value + */ + public Object produceAdditionalTypes() { + return this.produceAdditionalTypes; + } + + /** + * Set which additional types to produce. + * + * @param produceAdditionalTypes the produceAdditionalTypes value to set + * @return the SqlServerSource object itself. + */ + public SqlServerSource withProduceAdditionalTypes(Object produceAdditionalTypes) { + this.produceAdditionalTypes = produceAdditionalTypes; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SqlServerStoredProcedureActivity.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SqlServerStoredProcedureActivity.java new file mode 100644 index 0000000000000..036142a9d21b5 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +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 stored procedure name. Type: string (or Expression with resultType string). + * + * @return the storedProcedureName value + */ + public Object storedProcedureName() { + return this.storedProcedureName; + } + + /** + * Set stored procedure name. Type: string (or Expression with resultType string). + * + * @param storedProcedureName the storedProcedureName value to set + * @return the SqlServerStoredProcedureActivity object itself. + */ + public SqlServerStoredProcedureActivity withStoredProcedureName(Object storedProcedureName) { + this.storedProcedureName = storedProcedureName; + return this; + } + + /** + * Get value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". + * + * @return the storedProcedureParameters value + */ + public Map storedProcedureParameters() { + return this.storedProcedureParameters; + } + + /** + * Set value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". + * + * @param storedProcedureParameters the storedProcedureParameters value to set + * @return the SqlServerStoredProcedureActivity object itself. + */ + public SqlServerStoredProcedureActivity withStoredProcedureParameters(Map storedProcedureParameters) { + this.storedProcedureParameters = storedProcedureParameters; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SqlServerTableDataset.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SqlServerTableDataset.java new file mode 100644 index 0000000000000..44b982a7d5424 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SqlServerTableDataset.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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 { + /** + * This property will be retired. Please consider using schema + table + * properties instead. + */ + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; + + /** + * The schema name of the SQL Server dataset. Type: string (or Expression + * with resultType string). + */ + @JsonProperty(value = "typeProperties.schema") + private Object sqlServerTableDatasetSchema; + + /** + * The table name of the SQL Server dataset. Type: string (or Expression + * with resultType string). + */ + @JsonProperty(value = "typeProperties.table") + private Object table; + + /** + * Get this property will be retired. Please consider using schema + table properties instead. + * + * @return the tableName value + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set this property will be retired. Please consider using schema + table properties instead. + * + * @param tableName the tableName value to set + * @return the SqlServerTableDataset object itself. + */ + public SqlServerTableDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; + } + + /** + * Get the schema name of the SQL Server dataset. Type: string (or Expression with resultType string). + * + * @return the sqlServerTableDatasetSchema value + */ + public Object sqlServerTableDatasetSchema() { + return this.sqlServerTableDatasetSchema; + } + + /** + * Set the schema name of the SQL Server dataset. Type: string (or Expression with resultType string). + * + * @param sqlServerTableDatasetSchema the sqlServerTableDatasetSchema value to set + * @return the SqlServerTableDataset object itself. + */ + public SqlServerTableDataset withSqlServerTableDatasetSchema(Object sqlServerTableDatasetSchema) { + this.sqlServerTableDatasetSchema = sqlServerTableDatasetSchema; + return this; + } + + /** + * Get the table name of the SQL Server dataset. Type: string (or Expression with resultType string). + * + * @return the table value + */ + public Object table() { + return this.table; + } + + /** + * Set the table name of the SQL Server dataset. Type: string (or Expression with resultType string). + * + * @param table the table value to set + * @return the SqlServerTableDataset object itself. + */ + public SqlServerTableDataset withTable(Object table) { + this.table = table; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SqlSink.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SqlSink.java new file mode 100644 index 0000000000000..673b9cb19a78f --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SqlSink.java @@ -0,0 +1,156 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity 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; + + /** + * The stored procedure parameter name of the table type. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "storedProcedureTableTypeParameterName") + private Object storedProcedureTableTypeParameterName; + + /** + * Get sQL writer stored procedure name. Type: string (or Expression with resultType string). + * + * @return the sqlWriterStoredProcedureName value + */ + public Object sqlWriterStoredProcedureName() { + return this.sqlWriterStoredProcedureName; + } + + /** + * Set sQL writer stored procedure name. Type: string (or Expression with resultType string). + * + * @param sqlWriterStoredProcedureName the sqlWriterStoredProcedureName value to set + * @return the SqlSink object itself. + */ + public SqlSink withSqlWriterStoredProcedureName(Object sqlWriterStoredProcedureName) { + this.sqlWriterStoredProcedureName = sqlWriterStoredProcedureName; + return this; + } + + /** + * Get sQL writer table type. Type: string (or Expression with resultType string). + * + * @return the sqlWriterTableType value + */ + public Object sqlWriterTableType() { + return this.sqlWriterTableType; + } + + /** + * Set sQL writer table type. Type: string (or Expression with resultType string). + * + * @param sqlWriterTableType the sqlWriterTableType value to set + * @return the SqlSink object itself. + */ + public SqlSink withSqlWriterTableType(Object sqlWriterTableType) { + this.sqlWriterTableType = sqlWriterTableType; + return this; + } + + /** + * Get sQL pre-copy script. Type: string (or Expression with resultType string). + * + * @return the preCopyScript value + */ + public Object preCopyScript() { + return this.preCopyScript; + } + + /** + * Set sQL pre-copy script. Type: string (or Expression with resultType string). + * + * @param preCopyScript the preCopyScript value to set + * @return the SqlSink object itself. + */ + public SqlSink withPreCopyScript(Object preCopyScript) { + this.preCopyScript = preCopyScript; + return this; + } + + /** + * Get sQL stored procedure parameters. + * + * @return the storedProcedureParameters value + */ + public Map storedProcedureParameters() { + return this.storedProcedureParameters; + } + + /** + * Set sQL stored procedure parameters. + * + * @param storedProcedureParameters the storedProcedureParameters value to set + * @return the SqlSink object itself. + */ + public SqlSink withStoredProcedureParameters(Map storedProcedureParameters) { + this.storedProcedureParameters = storedProcedureParameters; + return this; + } + + /** + * Get the stored procedure parameter name of the table type. Type: string (or Expression with resultType string). + * + * @return the storedProcedureTableTypeParameterName value + */ + public Object storedProcedureTableTypeParameterName() { + return this.storedProcedureTableTypeParameterName; + } + + /** + * Set the stored procedure parameter name of the table type. Type: string (or Expression with resultType string). + * + * @param storedProcedureTableTypeParameterName the storedProcedureTableTypeParameterName value to set + * @return the SqlSink object itself. + */ + public SqlSink withStoredProcedureTableTypeParameterName(Object storedProcedureTableTypeParameterName) { + this.storedProcedureTableTypeParameterName = storedProcedureTableTypeParameterName; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SqlSource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SqlSource.java new file mode 100644 index 0000000000000..d53a3adb87f05 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity 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 sQL reader query. Type: string (or Expression with resultType string). + * + * @return the sqlReaderQuery value + */ + public Object sqlReaderQuery() { + return this.sqlReaderQuery; + } + + /** + * Set sQL reader query. Type: string (or Expression with resultType string). + * + * @param sqlReaderQuery the sqlReaderQuery value to set + * @return the SqlSource object itself. + */ + public SqlSource withSqlReaderQuery(Object sqlReaderQuery) { + this.sqlReaderQuery = sqlReaderQuery; + return this; + } + + /** + * Get 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). + * + * @return the sqlReaderStoredProcedureName value + */ + public Object sqlReaderStoredProcedureName() { + return this.sqlReaderStoredProcedureName; + } + + /** + * Set 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). + * + * @param sqlReaderStoredProcedureName the sqlReaderStoredProcedureName value to set + * @return the SqlSource object itself. + */ + public SqlSource withSqlReaderStoredProcedureName(Object sqlReaderStoredProcedureName) { + this.sqlReaderStoredProcedureName = sqlReaderStoredProcedureName; + return this; + } + + /** + * Get value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". + * + * @return the storedProcedureParameters value + */ + public Map storedProcedureParameters() { + return this.storedProcedureParameters; + } + + /** + * Set value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". + * + * @param storedProcedureParameters the storedProcedureParameters value to set + * @return the SqlSource object itself. + */ + public SqlSource withStoredProcedureParameters(Map storedProcedureParameters) { + this.storedProcedureParameters = storedProcedureParameters; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SquareLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SquareLinkedService.java new file mode 100644 index 0000000000000..950af8a5e7938 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.LinkedServiceInner; + +/** + * Square Service 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 URL of the Square instance. (i.e. mystore.mysquare.com). + * + * @return the host value + */ + public Object host() { + return this.host; + } + + /** + * Set the URL of the Square instance. (i.e. mystore.mysquare.com). + * + * @param host the host value to set + * @return the SquareLinkedService object itself. + */ + public SquareLinkedService withHost(Object host) { + this.host = host; + return this; + } + + /** + * Get the client ID associated with your Square application. + * + * @return the clientId value + */ + public Object clientId() { + return this.clientId; + } + + /** + * Set the client ID associated with your Square application. + * + * @param clientId the clientId value to set + * @return the SquareLinkedService object itself. + */ + public SquareLinkedService withClientId(Object clientId) { + this.clientId = clientId; + return this; + } + + /** + * Get the client secret associated with your Square application. + * + * @return the clientSecret value + */ + public SecretBase clientSecret() { + return this.clientSecret; + } + + /** + * Set the client secret associated with your Square application. + * + * @param clientSecret the clientSecret value to set + * @return the SquareLinkedService object itself. + */ + public SquareLinkedService withClientSecret(SecretBase clientSecret) { + this.clientSecret = clientSecret; + return this; + } + + /** + * Get the redirect URL assigned in the Square application dashboard. (i.e. http://localhost:2500). + * + * @return the redirectUri value + */ + public Object redirectUri() { + return this.redirectUri; + } + + /** + * Set the redirect URL assigned in the Square application dashboard. (i.e. http://localhost:2500). + * + * @param redirectUri the redirectUri value to set + * @return the SquareLinkedService object itself. + */ + public SquareLinkedService withRedirectUri(Object redirectUri) { + this.redirectUri = redirectUri; + return this; + } + + /** + * Get specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. + * + * @return the useEncryptedEndpoints value + */ + public Object useEncryptedEndpoints() { + return this.useEncryptedEndpoints; + } + + /** + * Set specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. + * + * @param useEncryptedEndpoints the useEncryptedEndpoints value to set + * @return the SquareLinkedService object itself. + */ + public SquareLinkedService withUseEncryptedEndpoints(Object useEncryptedEndpoints) { + this.useEncryptedEndpoints = useEncryptedEndpoints; + return this; + } + + /** + * Get specifies whether to require the host name in the server's certificate to match the host name of the server when connecting over SSL. The default value is true. + * + * @return the useHostVerification value + */ + public Object useHostVerification() { + return this.useHostVerification; + } + + /** + * Set specifies whether to require the host name in the server's certificate to match the host name of the server when connecting over SSL. The default value is true. + * + * @param useHostVerification the useHostVerification value to set + * @return the SquareLinkedService object itself. + */ + public SquareLinkedService withUseHostVerification(Object useHostVerification) { + this.useHostVerification = useHostVerification; + return this; + } + + /** + * Get specifies whether to verify the identity of the server when connecting over SSL. The default value is true. + * + * @return the usePeerVerification value + */ + public Object usePeerVerification() { + return this.usePeerVerification; + } + + /** + * Set specifies whether to verify the identity of the server when connecting over SSL. The default value is true. + * + * @param usePeerVerification the usePeerVerification value to set + * @return the SquareLinkedService object itself. + */ + public SquareLinkedService withUsePeerVerification(Object usePeerVerification) { + this.usePeerVerification = usePeerVerification; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the SquareLinkedService object itself. + */ + public SquareLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SquareObjectDataset.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SquareObjectDataset.java new file mode 100644 index 0000000000000..e5e5f56f1232a --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SquareObjectDataset.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DatasetInner; + +/** + * Square Service dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("SquareObject") +@JsonFlatten +public class SquareObjectDataset extends DatasetInner { + /** + * The table name. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; + + /** + * Get the table name. Type: string (or Expression with resultType string). + * + * @return the tableName value + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set the table name. Type: string (or Expression with resultType string). + * + * @param tableName the tableName value to set + * @return the SquareObjectDataset object itself. + */ + public SquareObjectDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SquareSource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SquareSource.java new file mode 100644 index 0000000000000..7b9c4e01da407 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Square Service 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 a query to retrieve data from source. Type: string (or Expression with resultType string). + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set a query to retrieve data from source. Type: string (or Expression with resultType string). + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SsisEnvironment.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SsisEnvironment.java new file mode 100644 index 0000000000000..7a70e035b0f1a --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SsisEnvironment.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.v2018_06_01; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * Ssis environment. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("Environment") +public class SsisEnvironment extends SsisObjectMetadata { + /** + * Folder id which contains environment. + */ + @JsonProperty(value = "folderId") + private Long folderId; + + /** + * Variable in environment. + */ + @JsonProperty(value = "variables") + private List variables; + + /** + * Get folder id which contains environment. + * + * @return the folderId value + */ + public Long folderId() { + return this.folderId; + } + + /** + * Set folder id which contains environment. + * + * @param folderId the folderId value to set + * @return the SsisEnvironment object itself. + */ + public SsisEnvironment withFolderId(Long folderId) { + this.folderId = folderId; + return this; + } + + /** + * Get variable in environment. + * + * @return the variables value + */ + public List variables() { + return this.variables; + } + + /** + * Set variable in environment. + * + * @param variables the variables value to set + * @return the SsisEnvironment object itself. + */ + public SsisEnvironment withVariables(List variables) { + this.variables = variables; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SsisEnvironmentReference.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SsisEnvironmentReference.java new file mode 100644 index 0000000000000..1751ea5461b35 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SsisEnvironmentReference.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Ssis environment reference. + */ +public class SsisEnvironmentReference { + /** + * Environment reference id. + */ + @JsonProperty(value = "id") + private Long id; + + /** + * Environment folder name. + */ + @JsonProperty(value = "environmentFolderName") + private String environmentFolderName; + + /** + * Environment name. + */ + @JsonProperty(value = "environmentName") + private String environmentName; + + /** + * Reference type. + */ + @JsonProperty(value = "referenceType") + private String referenceType; + + /** + * Get environment reference id. + * + * @return the id value + */ + public Long id() { + return this.id; + } + + /** + * Set environment reference id. + * + * @param id the id value to set + * @return the SsisEnvironmentReference object itself. + */ + public SsisEnvironmentReference withId(Long id) { + this.id = id; + return this; + } + + /** + * Get environment folder name. + * + * @return the environmentFolderName value + */ + public String environmentFolderName() { + return this.environmentFolderName; + } + + /** + * Set environment folder name. + * + * @param environmentFolderName the environmentFolderName value to set + * @return the SsisEnvironmentReference object itself. + */ + public SsisEnvironmentReference withEnvironmentFolderName(String environmentFolderName) { + this.environmentFolderName = environmentFolderName; + return this; + } + + /** + * Get environment name. + * + * @return the environmentName value + */ + public String environmentName() { + return this.environmentName; + } + + /** + * Set environment name. + * + * @param environmentName the environmentName value to set + * @return the SsisEnvironmentReference object itself. + */ + public SsisEnvironmentReference withEnvironmentName(String environmentName) { + this.environmentName = environmentName; + return this; + } + + /** + * Get reference type. + * + * @return the referenceType value + */ + public String referenceType() { + return this.referenceType; + } + + /** + * Set reference type. + * + * @param referenceType the referenceType value to set + * @return the SsisEnvironmentReference object itself. + */ + public SsisEnvironmentReference withReferenceType(String referenceType) { + this.referenceType = referenceType; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SsisFolder.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SsisFolder.java new file mode 100644 index 0000000000000..c31e8ed081eb3 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SsisFolder.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * Ssis folder. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("Folder") +public class SsisFolder extends SsisObjectMetadata { +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SsisObjectMetadata.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SsisObjectMetadata.java new file mode 100644 index 0000000000000..65967350fc75b --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SsisObjectMetadata.java @@ -0,0 +1,106 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonSubTypes; + +/** + * SSIS object metadata. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("SsisObjectMetadata") +@JsonSubTypes({ + @JsonSubTypes.Type(name = "Environment", value = SsisEnvironment.class), + @JsonSubTypes.Type(name = "Package", value = SsisPackage.class), + @JsonSubTypes.Type(name = "Project", value = SsisProject.class), + @JsonSubTypes.Type(name = "Folder", value = SsisFolder.class) +}) +public class SsisObjectMetadata { + /** + * Metadata id. + */ + @JsonProperty(value = "id") + private Long id; + + /** + * Metadata name. + */ + @JsonProperty(value = "name") + private String name; + + /** + * Metadata description. + */ + @JsonProperty(value = "description") + private String description; + + /** + * Get metadata id. + * + * @return the id value + */ + public Long id() { + return this.id; + } + + /** + * Set metadata id. + * + * @param id the id value to set + * @return the SsisObjectMetadata object itself. + */ + public SsisObjectMetadata withId(Long id) { + this.id = id; + return this; + } + + /** + * Get metadata name. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Set metadata name. + * + * @param name the name value to set + * @return the SsisObjectMetadata object itself. + */ + public SsisObjectMetadata withName(String name) { + this.name = name; + return this; + } + + /** + * Get metadata description. + * + * @return the description value + */ + public String description() { + return this.description; + } + + /** + * Set metadata description. + * + * @param description the description value to set + * @return the SsisObjectMetadata object itself. + */ + public SsisObjectMetadata withDescription(String description) { + this.description = description; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SsisObjectMetadataListResponse.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SsisObjectMetadataListResponse.java new file mode 100644 index 0000000000000..54a1233bf6b8b --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SsisObjectMetadataListResponse.java @@ -0,0 +1,31 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DataFactoryManager; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.SsisObjectMetadataListResponseInner; +import java.util.List; + +/** + * Type representing SsisObjectMetadataListResponse. + */ +public interface SsisObjectMetadataListResponse extends HasInner, HasManager { + /** + * @return the nextLink value. + */ + String nextLink(); + + /** + * @return the value value. + */ + List value(); + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SsisObjectMetadataStatusResponse.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SsisObjectMetadataStatusResponse.java new file mode 100644 index 0000000000000..e62e61e098075 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SsisObjectMetadataStatusResponse.java @@ -0,0 +1,40 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DataFactoryManager; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.SsisObjectMetadataStatusResponseInner; + +/** + * Type representing SsisObjectMetadataStatusResponse. + */ +public interface SsisObjectMetadataStatusResponse extends HasInner, HasManager { + /** + * @return the error value. + */ + String error(); + + /** + * @return the name value. + */ + String name(); + + /** + * @return the properties value. + */ + String properties(); + + /** + * @return the status value. + */ + String status(); + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SsisObjectMetadataType.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SsisObjectMetadataType.java new file mode 100644 index 0000000000000..ad18db864998e --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SsisObjectMetadataType.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.v2018_06_01; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for SsisObjectMetadataType. + */ +public final class SsisObjectMetadataType extends ExpandableStringEnum { + /** Static value Folder for SsisObjectMetadataType. */ + public static final SsisObjectMetadataType FOLDER = fromString("Folder"); + + /** Static value Project for SsisObjectMetadataType. */ + public static final SsisObjectMetadataType PROJECT = fromString("Project"); + + /** Static value Package for SsisObjectMetadataType. */ + public static final SsisObjectMetadataType PACKAGE = fromString("Package"); + + /** Static value Environment for SsisObjectMetadataType. */ + public static final SsisObjectMetadataType ENVIRONMENT = fromString("Environment"); + + /** + * Creates or finds a SsisObjectMetadataType from its string representation. + * @param name a name to look for + * @return the corresponding SsisObjectMetadataType + */ + @JsonCreator + public static SsisObjectMetadataType fromString(String name) { + return fromString(name, SsisObjectMetadataType.class); + } + + /** + * @return known SsisObjectMetadataType values + */ + public static Collection values() { + return values(SsisObjectMetadataType.class); + } +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SsisPackage.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SsisPackage.java new file mode 100644 index 0000000000000..181ea19cd3675 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SsisPackage.java @@ -0,0 +1,126 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * Ssis Package. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("Package") +public class SsisPackage extends SsisObjectMetadata { + /** + * Folder id which contains package. + */ + @JsonProperty(value = "folderId") + private Long folderId; + + /** + * Project version which contains package. + */ + @JsonProperty(value = "projectVersion") + private Long projectVersion; + + /** + * Project id which contains package. + */ + @JsonProperty(value = "projectId") + private Long projectId; + + /** + * Parameters in package. + */ + @JsonProperty(value = "parameters") + private List parameters; + + /** + * Get folder id which contains package. + * + * @return the folderId value + */ + public Long folderId() { + return this.folderId; + } + + /** + * Set folder id which contains package. + * + * @param folderId the folderId value to set + * @return the SsisPackage object itself. + */ + public SsisPackage withFolderId(Long folderId) { + this.folderId = folderId; + return this; + } + + /** + * Get project version which contains package. + * + * @return the projectVersion value + */ + public Long projectVersion() { + return this.projectVersion; + } + + /** + * Set project version which contains package. + * + * @param projectVersion the projectVersion value to set + * @return the SsisPackage object itself. + */ + public SsisPackage withProjectVersion(Long projectVersion) { + this.projectVersion = projectVersion; + return this; + } + + /** + * Get project id which contains package. + * + * @return the projectId value + */ + public Long projectId() { + return this.projectId; + } + + /** + * Set project id which contains package. + * + * @param projectId the projectId value to set + * @return the SsisPackage object itself. + */ + public SsisPackage withProjectId(Long projectId) { + this.projectId = projectId; + return this; + } + + /** + * Get parameters in package. + * + * @return the parameters value + */ + public List parameters() { + return this.parameters; + } + + /** + * Set parameters in package. + * + * @param parameters the parameters value to set + * @return the SsisPackage object itself. + */ + public SsisPackage withParameters(List parameters) { + this.parameters = parameters; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SsisPackageLocationType.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SsisPackageLocationType.java new file mode 100644 index 0000000000000..15e044fb8f0d7 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SsisPackageLocationType.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.v2018_06_01; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for SsisPackageLocationType. + */ +public final class SsisPackageLocationType extends ExpandableStringEnum { + /** Static value SSISDB for SsisPackageLocationType. */ + public static final SsisPackageLocationType SSISDB = fromString("SSISDB"); + + /** Static value File for SsisPackageLocationType. */ + public static final SsisPackageLocationType FILE = fromString("File"); + + /** + * Creates or finds a SsisPackageLocationType from its string representation. + * @param name a name to look for + * @return the corresponding SsisPackageLocationType + */ + @JsonCreator + public static SsisPackageLocationType fromString(String name) { + return fromString(name, SsisPackageLocationType.class); + } + + /** + * @return known SsisPackageLocationType values + */ + public static Collection values() { + return values(SsisPackageLocationType.class); + } +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SsisParameter.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SsisParameter.java new file mode 100644 index 0000000000000..b95c8f44f87ff --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SsisParameter.java @@ -0,0 +1,329 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Ssis parameter. + */ +public class SsisParameter { + /** + * Parameter id. + */ + @JsonProperty(value = "id") + private Long id; + + /** + * Parameter name. + */ + @JsonProperty(value = "name") + private String name; + + /** + * Parameter description. + */ + @JsonProperty(value = "description") + private String description; + + /** + * Parameter type. + */ + @JsonProperty(value = "dataType") + private String dataType; + + /** + * Whether parameter is required. + */ + @JsonProperty(value = "required") + private Boolean required; + + /** + * Whether parameter is sensitive. + */ + @JsonProperty(value = "sensitive") + private Boolean sensitive; + + /** + * Design default value of parameter. + */ + @JsonProperty(value = "designDefaultValue") + private String designDefaultValue; + + /** + * Default value of parameter. + */ + @JsonProperty(value = "defaultValue") + private String defaultValue; + + /** + * Default sensitive value of parameter. + */ + @JsonProperty(value = "sensitiveDefaultValue") + private String sensitiveDefaultValue; + + /** + * Parameter value type. + */ + @JsonProperty(value = "valueType") + private String valueType; + + /** + * Parameter value set. + */ + @JsonProperty(value = "valueSet") + private Boolean valueSet; + + /** + * Parameter reference variable. + */ + @JsonProperty(value = "variable") + private String variable; + + /** + * Get parameter id. + * + * @return the id value + */ + public Long id() { + return this.id; + } + + /** + * Set parameter id. + * + * @param id the id value to set + * @return the SsisParameter object itself. + */ + public SsisParameter withId(Long id) { + this.id = id; + return this; + } + + /** + * Get parameter name. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Set parameter name. + * + * @param name the name value to set + * @return the SsisParameter object itself. + */ + public SsisParameter withName(String name) { + this.name = name; + return this; + } + + /** + * Get parameter description. + * + * @return the description value + */ + public String description() { + return this.description; + } + + /** + * Set parameter description. + * + * @param description the description value to set + * @return the SsisParameter object itself. + */ + public SsisParameter withDescription(String description) { + this.description = description; + return this; + } + + /** + * Get parameter type. + * + * @return the dataType value + */ + public String dataType() { + return this.dataType; + } + + /** + * Set parameter type. + * + * @param dataType the dataType value to set + * @return the SsisParameter object itself. + */ + public SsisParameter withDataType(String dataType) { + this.dataType = dataType; + return this; + } + + /** + * Get whether parameter is required. + * + * @return the required value + */ + public Boolean required() { + return this.required; + } + + /** + * Set whether parameter is required. + * + * @param required the required value to set + * @return the SsisParameter object itself. + */ + public SsisParameter withRequired(Boolean required) { + this.required = required; + return this; + } + + /** + * Get whether parameter is sensitive. + * + * @return the sensitive value + */ + public Boolean sensitive() { + return this.sensitive; + } + + /** + * Set whether parameter is sensitive. + * + * @param sensitive the sensitive value to set + * @return the SsisParameter object itself. + */ + public SsisParameter withSensitive(Boolean sensitive) { + this.sensitive = sensitive; + return this; + } + + /** + * Get design default value of parameter. + * + * @return the designDefaultValue value + */ + public String designDefaultValue() { + return this.designDefaultValue; + } + + /** + * Set design default value of parameter. + * + * @param designDefaultValue the designDefaultValue value to set + * @return the SsisParameter object itself. + */ + public SsisParameter withDesignDefaultValue(String designDefaultValue) { + this.designDefaultValue = designDefaultValue; + return this; + } + + /** + * Get default value of parameter. + * + * @return the defaultValue value + */ + public String defaultValue() { + return this.defaultValue; + } + + /** + * Set default value of parameter. + * + * @param defaultValue the defaultValue value to set + * @return the SsisParameter object itself. + */ + public SsisParameter withDefaultValue(String defaultValue) { + this.defaultValue = defaultValue; + return this; + } + + /** + * Get default sensitive value of parameter. + * + * @return the sensitiveDefaultValue value + */ + public String sensitiveDefaultValue() { + return this.sensitiveDefaultValue; + } + + /** + * Set default sensitive value of parameter. + * + * @param sensitiveDefaultValue the sensitiveDefaultValue value to set + * @return the SsisParameter object itself. + */ + public SsisParameter withSensitiveDefaultValue(String sensitiveDefaultValue) { + this.sensitiveDefaultValue = sensitiveDefaultValue; + return this; + } + + /** + * Get parameter value type. + * + * @return the valueType value + */ + public String valueType() { + return this.valueType; + } + + /** + * Set parameter value type. + * + * @param valueType the valueType value to set + * @return the SsisParameter object itself. + */ + public SsisParameter withValueType(String valueType) { + this.valueType = valueType; + return this; + } + + /** + * Get parameter value set. + * + * @return the valueSet value + */ + public Boolean valueSet() { + return this.valueSet; + } + + /** + * Set parameter value set. + * + * @param valueSet the valueSet value to set + * @return the SsisParameter object itself. + */ + public SsisParameter withValueSet(Boolean valueSet) { + this.valueSet = valueSet; + return this; + } + + /** + * Get parameter reference variable. + * + * @return the variable value + */ + public String variable() { + return this.variable; + } + + /** + * Set parameter reference variable. + * + * @param variable the variable value to set + * @return the SsisParameter object itself. + */ + public SsisParameter withVariable(String variable) { + this.variable = variable; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SsisProject.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SsisProject.java new file mode 100644 index 0000000000000..4a9acaa3b8a11 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SsisProject.java @@ -0,0 +1,126 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * Ssis project. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("Project") +public class SsisProject extends SsisObjectMetadata { + /** + * Folder id which contains project. + */ + @JsonProperty(value = "folderId") + private Long folderId; + + /** + * Project version. + */ + @JsonProperty(value = "version") + private Long version; + + /** + * Environment reference in project. + */ + @JsonProperty(value = "environmentRefs") + private List environmentRefs; + + /** + * Parameters in project. + */ + @JsonProperty(value = "parameters") + private List parameters; + + /** + * Get folder id which contains project. + * + * @return the folderId value + */ + public Long folderId() { + return this.folderId; + } + + /** + * Set folder id which contains project. + * + * @param folderId the folderId value to set + * @return the SsisProject object itself. + */ + public SsisProject withFolderId(Long folderId) { + this.folderId = folderId; + return this; + } + + /** + * Get project version. + * + * @return the version value + */ + public Long version() { + return this.version; + } + + /** + * Set project version. + * + * @param version the version value to set + * @return the SsisProject object itself. + */ + public SsisProject withVersion(Long version) { + this.version = version; + return this; + } + + /** + * Get environment reference in project. + * + * @return the environmentRefs value + */ + public List environmentRefs() { + return this.environmentRefs; + } + + /** + * Set environment reference in project. + * + * @param environmentRefs the environmentRefs value to set + * @return the SsisProject object itself. + */ + public SsisProject withEnvironmentRefs(List environmentRefs) { + this.environmentRefs = environmentRefs; + return this; + } + + /** + * Get parameters in project. + * + * @return the parameters value + */ + public List parameters() { + return this.parameters; + } + + /** + * Set parameters in project. + * + * @param parameters the parameters value to set + * @return the SsisProject object itself. + */ + public SsisProject withParameters(List parameters) { + this.parameters = parameters; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SsisVariable.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SsisVariable.java new file mode 100644 index 0000000000000..11c0710b85354 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SsisVariable.java @@ -0,0 +1,199 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Ssis variable. + */ +public class SsisVariable { + /** + * Variable id. + */ + @JsonProperty(value = "id") + private Long id; + + /** + * Variable name. + */ + @JsonProperty(value = "name") + private String name; + + /** + * Variable description. + */ + @JsonProperty(value = "description") + private String description; + + /** + * Variable type. + */ + @JsonProperty(value = "dataType") + private String dataType; + + /** + * Whether variable is sensitive. + */ + @JsonProperty(value = "sensitive") + private Boolean sensitive; + + /** + * Variable value. + */ + @JsonProperty(value = "value") + private String value; + + /** + * Variable sensitive value. + */ + @JsonProperty(value = "sensitiveValue") + private String sensitiveValue; + + /** + * Get variable id. + * + * @return the id value + */ + public Long id() { + return this.id; + } + + /** + * Set variable id. + * + * @param id the id value to set + * @return the SsisVariable object itself. + */ + public SsisVariable withId(Long id) { + this.id = id; + return this; + } + + /** + * Get variable name. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Set variable name. + * + * @param name the name value to set + * @return the SsisVariable object itself. + */ + public SsisVariable withName(String name) { + this.name = name; + return this; + } + + /** + * Get variable description. + * + * @return the description value + */ + public String description() { + return this.description; + } + + /** + * Set variable description. + * + * @param description the description value to set + * @return the SsisVariable object itself. + */ + public SsisVariable withDescription(String description) { + this.description = description; + return this; + } + + /** + * Get variable type. + * + * @return the dataType value + */ + public String dataType() { + return this.dataType; + } + + /** + * Set variable type. + * + * @param dataType the dataType value to set + * @return the SsisVariable object itself. + */ + public SsisVariable withDataType(String dataType) { + this.dataType = dataType; + return this; + } + + /** + * Get whether variable is sensitive. + * + * @return the sensitive value + */ + public Boolean sensitive() { + return this.sensitive; + } + + /** + * Set whether variable is sensitive. + * + * @param sensitive the sensitive value to set + * @return the SsisVariable object itself. + */ + public SsisVariable withSensitive(Boolean sensitive) { + this.sensitive = sensitive; + return this; + } + + /** + * Get variable value. + * + * @return the value value + */ + public String value() { + return this.value; + } + + /** + * Set variable value. + * + * @param value the value value to set + * @return the SsisVariable object itself. + */ + public SsisVariable withValue(String value) { + this.value = value; + return this; + } + + /** + * Get variable sensitive value. + * + * @return the sensitiveValue value + */ + public String sensitiveValue() { + return this.sensitiveValue; + } + + /** + * Set variable sensitive value. + * + * @param sensitiveValue the sensitiveValue value to set + * @return the SsisVariable object itself. + */ + public SsisVariable withSensitiveValue(String sensitiveValue) { + this.sensitiveValue = sensitiveValue; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/StagingSettings.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/StagingSettings.java new file mode 100644 index 0000000000000..3119d4b8429ba --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 unmatched properties from the message are deserialized this collection. + * + * @return the additionalProperties value + */ + public Map additionalProperties() { + return this.additionalProperties; + } + + /** + * Set unmatched properties from the message are deserialized this collection. + * + * @param additionalProperties the additionalProperties value to set + * @return the StagingSettings object itself. + */ + public StagingSettings withAdditionalProperties(Map additionalProperties) { + this.additionalProperties = additionalProperties; + return this; + } + + /** + * Get staging linked service reference. + * + * @return the linkedServiceName value + */ + public LinkedServiceReference linkedServiceName() { + return this.linkedServiceName; + } + + /** + * Set staging linked service reference. + * + * @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 to storage for storing the interim data. Type: string (or Expression with resultType string). + * + * @return the path value + */ + public Object path() { + return this.path; + } + + /** + * Set the path to storage for storing the interim data. Type: string (or Expression with resultType string). + * + * @param path the path value to set + * @return the StagingSettings object itself. + */ + public StagingSettings withPath(Object path) { + this.path = path; + return this; + } + + /** + * Get specifies whether to use compression when copying data via an interim staging. Default value is false. Type: boolean (or Expression with resultType boolean). + * + * @return the enableCompression value + */ + public Object enableCompression() { + return this.enableCompression; + } + + /** + * Set specifies whether to use compression when copying data via an interim staging. Default value is false. Type: boolean (or Expression with resultType boolean). + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/StoreReadSettings.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/StoreReadSettings.java new file mode 100644 index 0000000000000..29e7a6483e19a --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/StoreReadSettings.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.v2018_06_01; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Connector read setting. + */ +public class StoreReadSettings { + /** + * Unmatched properties from the message are deserialized this collection. + */ + @JsonProperty(value = "") + private Map additionalProperties; + + /** + * The read setting type. + */ + @JsonProperty(value = "type", required = true) + private String type; + + /** + * The maximum concurrent connection count for the source data store. Type: + * integer (or Expression with resultType integer). + */ + @JsonProperty(value = "maxConcurrentConnections") + private Object maxConcurrentConnections; + + /** + * Get unmatched properties from the message are deserialized this collection. + * + * @return the additionalProperties value + */ + public Map additionalProperties() { + return this.additionalProperties; + } + + /** + * Set unmatched properties from the message are deserialized this collection. + * + * @param additionalProperties the additionalProperties value to set + * @return the StoreReadSettings object itself. + */ + public StoreReadSettings withAdditionalProperties(Map additionalProperties) { + this.additionalProperties = additionalProperties; + return this; + } + + /** + * Get the read setting type. + * + * @return the type value + */ + public String type() { + return this.type; + } + + /** + * Set the read setting type. + * + * @param type the type value to set + * @return the StoreReadSettings object itself. + */ + public StoreReadSettings withType(String type) { + this.type = type; + return this; + } + + /** + * Get the maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + * + * @return the maxConcurrentConnections value + */ + public Object maxConcurrentConnections() { + return this.maxConcurrentConnections; + } + + /** + * Set the maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + * + * @param maxConcurrentConnections the maxConcurrentConnections value to set + * @return the StoreReadSettings object itself. + */ + public StoreReadSettings withMaxConcurrentConnections(Object maxConcurrentConnections) { + this.maxConcurrentConnections = maxConcurrentConnections; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/StoreWriteSettings.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/StoreWriteSettings.java new file mode 100644 index 0000000000000..94eaab247c8d2 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/StoreWriteSettings.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.v2018_06_01; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Connector write settings. + */ +public class StoreWriteSettings { + /** + * Unmatched properties from the message are deserialized this collection. + */ + @JsonProperty(value = "") + private Map additionalProperties; + + /** + * The write setting type. + */ + @JsonProperty(value = "type", required = true) + private String type; + + /** + * The maximum concurrent connection count for the source data store. Type: + * integer (or Expression with resultType integer). + */ + @JsonProperty(value = "maxConcurrentConnections") + private Object maxConcurrentConnections; + + /** + * The type of copy behavior for copy sink. + */ + @JsonProperty(value = "copyBehavior") + private Object copyBehavior; + + /** + * Get unmatched properties from the message are deserialized this collection. + * + * @return the additionalProperties value + */ + public Map additionalProperties() { + return this.additionalProperties; + } + + /** + * Set unmatched properties from the message are deserialized this collection. + * + * @param additionalProperties the additionalProperties value to set + * @return the StoreWriteSettings object itself. + */ + public StoreWriteSettings withAdditionalProperties(Map additionalProperties) { + this.additionalProperties = additionalProperties; + return this; + } + + /** + * Get the write setting type. + * + * @return the type value + */ + public String type() { + return this.type; + } + + /** + * Set the write setting type. + * + * @param type the type value to set + * @return the StoreWriteSettings object itself. + */ + public StoreWriteSettings withType(String type) { + this.type = type; + return this; + } + + /** + * Get the maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + * + * @return the maxConcurrentConnections value + */ + public Object maxConcurrentConnections() { + return this.maxConcurrentConnections; + } + + /** + * Set the maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + * + * @param maxConcurrentConnections the maxConcurrentConnections value to set + * @return the StoreWriteSettings object itself. + */ + public StoreWriteSettings withMaxConcurrentConnections(Object maxConcurrentConnections) { + this.maxConcurrentConnections = maxConcurrentConnections; + return this; + } + + /** + * Get the type of copy behavior for copy sink. + * + * @return the copyBehavior value + */ + public Object copyBehavior() { + return this.copyBehavior; + } + + /** + * Set the type of copy behavior for copy sink. + * + * @param copyBehavior the copyBehavior value to set + * @return the StoreWriteSettings object itself. + */ + public StoreWriteSettings withCopyBehavior(Object copyBehavior) { + this.copyBehavior = copyBehavior; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/StoredProcedureParameter.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/StoredProcedureParameter.java new file mode 100644 index 0000000000000..9ac86de12ed5c --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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") + private Object value; + + /** + * Stored procedure parameter type. Possible values include: 'String', + * 'Int', 'Int64', 'Decimal', 'Guid', 'Boolean', 'Date'. + */ + @JsonProperty(value = "type") + private StoredProcedureParameterType type; + + /** + * Get stored procedure parameter value. Type: string (or Expression with resultType string). + * + * @return the value value + */ + public Object value() { + return this.value; + } + + /** + * Set stored procedure parameter value. Type: string (or Expression with resultType string). + * + * @param value the value value to set + * @return the StoredProcedureParameter object itself. + */ + public StoredProcedureParameter withValue(Object value) { + this.value = value; + return this; + } + + /** + * Get stored procedure parameter type. Possible values include: 'String', 'Int', 'Int64', 'Decimal', 'Guid', 'Boolean', 'Date'. + * + * @return the type value + */ + public StoredProcedureParameterType type() { + return this.type; + } + + /** + * Set stored procedure parameter type. Possible values include: 'String', 'Int', 'Int64', 'Decimal', 'Guid', 'Boolean', 'Date'. + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/StoredProcedureParameterType.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/StoredProcedureParameterType.java new file mode 100644 index 0000000000000..ce87706b16930 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/StoredProcedureParameterType.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.v2018_06_01; + +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 Int64 for StoredProcedureParameterType. */ + public static final StoredProcedureParameterType INT64 = fromString("Int64"); + + /** 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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SybaseAuthenticationType.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SybaseAuthenticationType.java new file mode 100644 index 0000000000000..57ed363174e78 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SybaseLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SybaseLinkedService.java new file mode 100644 index 0000000000000..62445a13df215 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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 server name for connection. Type: string (or Expression with resultType string). + * + * @return the server value + */ + public Object server() { + return this.server; + } + + /** + * Set server name for connection. Type: string (or Expression with resultType string). + * + * @param server the server value to set + * @return the SybaseLinkedService object itself. + */ + public SybaseLinkedService withServer(Object server) { + this.server = server; + return this; + } + + /** + * Get database name for connection. Type: string (or Expression with resultType string). + * + * @return the database value + */ + public Object database() { + return this.database; + } + + /** + * Set database name for connection. Type: string (or Expression with resultType string). + * + * @param database the database value to set + * @return the SybaseLinkedService object itself. + */ + public SybaseLinkedService withDatabase(Object database) { + this.database = database; + return this; + } + + /** + * Get schema name for connection. Type: string (or Expression with resultType string). + * + * @return the schema value + */ + public Object schema() { + return this.schema; + } + + /** + * Set schema name for connection. Type: string (or Expression with resultType string). + * + * @param schema the schema value to set + * @return the SybaseLinkedService object itself. + */ + public SybaseLinkedService withSchema(Object schema) { + this.schema = schema; + return this; + } + + /** + * Get authenticationType to be used for connection. Possible values include: 'Basic', 'Windows'. + * + * @return the authenticationType value + */ + public SybaseAuthenticationType authenticationType() { + return this.authenticationType; + } + + /** + * Set authenticationType to be used for connection. Possible values include: 'Basic', 'Windows'. + * + * @param authenticationType the authenticationType value to set + * @return the SybaseLinkedService object itself. + */ + public SybaseLinkedService withAuthenticationType(SybaseAuthenticationType authenticationType) { + this.authenticationType = authenticationType; + return this; + } + + /** + * Get username for authentication. Type: string (or Expression with resultType string). + * + * @return the username value + */ + public Object username() { + return this.username; + } + + /** + * Set username for authentication. Type: string (or Expression with resultType string). + * + * @param username the username value to set + * @return the SybaseLinkedService object itself. + */ + public SybaseLinkedService withUsername(Object username) { + this.username = username; + return this; + } + + /** + * Get password for authentication. + * + * @return the password value + */ + public SecretBase password() { + return this.password; + } + + /** + * Set password for authentication. + * + * @param password the password value to set + * @return the SybaseLinkedService object itself. + */ + public SybaseLinkedService withPassword(SecretBase password) { + this.password = password; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the SybaseLinkedService object itself. + */ + public SybaseLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SybaseSource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SybaseSource.java new file mode 100644 index 0000000000000..8114cae78a5b6 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/SybaseSource.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity source for Sybase databases. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("SybaseSource") +public class SybaseSource extends CopySource { + /** + * Database query. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "query") + private Object query; + + /** + * Get database query. Type: string (or Expression with resultType string). + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set database query. Type: string (or Expression with resultType string). + * + * @param query the query value to set + * @return the SybaseSource object itself. + */ + public SybaseSource withQuery(Object query) { + this.query = query; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/TeradataAuthenticationType.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/TeradataAuthenticationType.java new file mode 100644 index 0000000000000..095588dde0c3f --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/TeradataLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/TeradataLinkedService.java new file mode 100644 index 0000000000000..aeb14f8ddbb51 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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 { + /** + * Teradata ODBC connection string. Type: string, SecureString or + * AzureKeyVaultSecretReference. + */ + @JsonProperty(value = "typeProperties.connectionString") + private Object connectionString; + + /** + * Server name for connection. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.server") + private Object server; + + /** + * 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 teradata ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. + * + * @return the connectionString value + */ + public Object connectionString() { + return this.connectionString; + } + + /** + * Set teradata ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. + * + * @param connectionString the connectionString value to set + * @return the TeradataLinkedService object itself. + */ + public TeradataLinkedService withConnectionString(Object connectionString) { + this.connectionString = connectionString; + return this; + } + + /** + * Get server name for connection. Type: string (or Expression with resultType string). + * + * @return the server value + */ + public Object server() { + return this.server; + } + + /** + * Set server name for connection. Type: string (or Expression with resultType string). + * + * @param server the server value to set + * @return the TeradataLinkedService object itself. + */ + public TeradataLinkedService withServer(Object server) { + this.server = server; + return this; + } + + /** + * Get authenticationType to be used for connection. Possible values include: 'Basic', 'Windows'. + * + * @return the authenticationType value + */ + public TeradataAuthenticationType authenticationType() { + return this.authenticationType; + } + + /** + * Set authenticationType to be used for connection. Possible values include: 'Basic', 'Windows'. + * + * @param authenticationType the authenticationType value to set + * @return the TeradataLinkedService object itself. + */ + public TeradataLinkedService withAuthenticationType(TeradataAuthenticationType authenticationType) { + this.authenticationType = authenticationType; + return this; + } + + /** + * Get username for authentication. Type: string (or Expression with resultType string). + * + * @return the username value + */ + public Object username() { + return this.username; + } + + /** + * Set username for authentication. Type: string (or Expression with resultType string). + * + * @param username the username value to set + * @return the TeradataLinkedService object itself. + */ + public TeradataLinkedService withUsername(Object username) { + this.username = username; + return this; + } + + /** + * Get password for authentication. + * + * @return the password value + */ + public SecretBase password() { + return this.password; + } + + /** + * Set password for authentication. + * + * @param password the password value to set + * @return the TeradataLinkedService object itself. + */ + public TeradataLinkedService withPassword(SecretBase password) { + this.password = password; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the TeradataLinkedService object itself. + */ + public TeradataLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/TeradataPartitionOption.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/TeradataPartitionOption.java new file mode 100644 index 0000000000000..ce449a31343f7 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/TeradataPartitionOption.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.v2018_06_01; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for TeradataPartitionOption. + */ +public final class TeradataPartitionOption extends ExpandableStringEnum { + /** Static value None for TeradataPartitionOption. */ + public static final TeradataPartitionOption NONE = fromString("None"); + + /** Static value Hash for TeradataPartitionOption. */ + public static final TeradataPartitionOption HASH = fromString("Hash"); + + /** Static value DynamicRange for TeradataPartitionOption. */ + public static final TeradataPartitionOption DYNAMIC_RANGE = fromString("DynamicRange"); + + /** + * Creates or finds a TeradataPartitionOption from its string representation. + * @param name a name to look for + * @return the corresponding TeradataPartitionOption + */ + @JsonCreator + public static TeradataPartitionOption fromString(String name) { + return fromString(name, TeradataPartitionOption.class); + } + + /** + * @return known TeradataPartitionOption values + */ + public static Collection values() { + return values(TeradataPartitionOption.class); + } +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/TeradataPartitionSettings.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/TeradataPartitionSettings.java new file mode 100644 index 0000000000000..41d919360bc0b --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/TeradataPartitionSettings.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The settings that will be leveraged for teradata source partitioning. + */ +public class TeradataPartitionSettings { + /** + * The name of the column that will be used for proceeding range or hash + * partitioning. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "partitionColumnName") + private Object partitionColumnName; + + /** + * The maximum value of column specified in partitionColumnName that will + * be used for proceeding range partitioning. Type: string (or Expression + * with resultType string). + */ + @JsonProperty(value = "partitionUpperBound") + private Object partitionUpperBound; + + /** + * The minimum value of column specified in partitionColumnName that will + * be used for proceeding range partitioning. Type: string (or Expression + * with resultType string). + */ + @JsonProperty(value = "partitionLowerBound") + private Object partitionLowerBound; + + /** + * Get the name of the column that will be used for proceeding range or hash partitioning. Type: string (or Expression with resultType string). + * + * @return the partitionColumnName value + */ + public Object partitionColumnName() { + return this.partitionColumnName; + } + + /** + * Set the name of the column that will be used for proceeding range or hash partitioning. Type: string (or Expression with resultType string). + * + * @param partitionColumnName the partitionColumnName value to set + * @return the TeradataPartitionSettings object itself. + */ + public TeradataPartitionSettings withPartitionColumnName(Object partitionColumnName) { + this.partitionColumnName = partitionColumnName; + return this; + } + + /** + * Get the maximum value of column specified in partitionColumnName that will be used for proceeding range partitioning. Type: string (or Expression with resultType string). + * + * @return the partitionUpperBound value + */ + public Object partitionUpperBound() { + return this.partitionUpperBound; + } + + /** + * Set the maximum value of column specified in partitionColumnName that will be used for proceeding range partitioning. Type: string (or Expression with resultType string). + * + * @param partitionUpperBound the partitionUpperBound value to set + * @return the TeradataPartitionSettings object itself. + */ + public TeradataPartitionSettings withPartitionUpperBound(Object partitionUpperBound) { + this.partitionUpperBound = partitionUpperBound; + return this; + } + + /** + * Get the minimum value of column specified in partitionColumnName that will be used for proceeding range partitioning. Type: string (or Expression with resultType string). + * + * @return the partitionLowerBound value + */ + public Object partitionLowerBound() { + return this.partitionLowerBound; + } + + /** + * Set the minimum value of column specified in partitionColumnName that will be used for proceeding range partitioning. Type: string (or Expression with resultType string). + * + * @param partitionLowerBound the partitionLowerBound value to set + * @return the TeradataPartitionSettings object itself. + */ + public TeradataPartitionSettings withPartitionLowerBound(Object partitionLowerBound) { + this.partitionLowerBound = partitionLowerBound; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/TeradataSource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/TeradataSource.java new file mode 100644 index 0000000000000..5069ff1cded72 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/TeradataSource.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Teradata source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("TeradataSource") +public class TeradataSource extends CopySource { + /** + * Teradata query. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "query") + private Object query; + + /** + * The partition mechanism that will be used for teradata read in parallel. + * Possible values include: 'None', 'Hash', 'DynamicRange'. + */ + @JsonProperty(value = "partitionOption") + private TeradataPartitionOption partitionOption; + + /** + * The settings that will be leveraged for teradata source partitioning. + */ + @JsonProperty(value = "partitionSettings") + private TeradataPartitionSettings partitionSettings; + + /** + * Get teradata query. Type: string (or Expression with resultType string). + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set teradata query. Type: string (or Expression with resultType string). + * + * @param query the query value to set + * @return the TeradataSource object itself. + */ + public TeradataSource withQuery(Object query) { + this.query = query; + return this; + } + + /** + * Get the partition mechanism that will be used for teradata read in parallel. Possible values include: 'None', 'Hash', 'DynamicRange'. + * + * @return the partitionOption value + */ + public TeradataPartitionOption partitionOption() { + return this.partitionOption; + } + + /** + * Set the partition mechanism that will be used for teradata read in parallel. Possible values include: 'None', 'Hash', 'DynamicRange'. + * + * @param partitionOption the partitionOption value to set + * @return the TeradataSource object itself. + */ + public TeradataSource withPartitionOption(TeradataPartitionOption partitionOption) { + this.partitionOption = partitionOption; + return this; + } + + /** + * Get the settings that will be leveraged for teradata source partitioning. + * + * @return the partitionSettings value + */ + public TeradataPartitionSettings partitionSettings() { + return this.partitionSettings; + } + + /** + * Set the settings that will be leveraged for teradata source partitioning. + * + * @param partitionSettings the partitionSettings value to set + * @return the TeradataSource object itself. + */ + public TeradataSource withPartitionSettings(TeradataPartitionSettings partitionSettings) { + this.partitionSettings = partitionSettings; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/TeradataTableDataset.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/TeradataTableDataset.java new file mode 100644 index 0000000000000..6fd0316ac5e54 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/TeradataTableDataset.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DatasetInner; + +/** + * The Teradata database dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("TeradataTable") +@JsonFlatten +public class TeradataTableDataset extends DatasetInner { + /** + * The database name of Teradata. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.database") + private Object database; + + /** + * The table name of Teradata. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.table") + private Object table; + + /** + * Get the database name of Teradata. Type: string (or Expression with resultType string). + * + * @return the database value + */ + public Object database() { + return this.database; + } + + /** + * Set the database name of Teradata. Type: string (or Expression with resultType string). + * + * @param database the database value to set + * @return the TeradataTableDataset object itself. + */ + public TeradataTableDataset withDatabase(Object database) { + this.database = database; + return this; + } + + /** + * Get the table name of Teradata. Type: string (or Expression with resultType string). + * + * @return the table value + */ + public Object table() { + return this.table; + } + + /** + * Set the table name of Teradata. Type: string (or Expression with resultType string). + * + * @param table the table value to set + * @return the TeradataTableDataset object itself. + */ + public TeradataTableDataset withTable(Object table) { + this.table = table; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/TextFormat.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/TextFormat.java new file mode 100644 index 0000000000000..63bc1c9ada9df --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 column delimiter. Type: string (or Expression with resultType string). + * + * @return the columnDelimiter value + */ + public Object columnDelimiter() { + return this.columnDelimiter; + } + + /** + * Set the column delimiter. Type: string (or Expression with resultType string). + * + * @param columnDelimiter the columnDelimiter value to set + * @return the TextFormat object itself. + */ + public TextFormat withColumnDelimiter(Object columnDelimiter) { + this.columnDelimiter = columnDelimiter; + return this; + } + + /** + * Get the row delimiter. Type: string (or Expression with resultType string). + * + * @return the rowDelimiter value + */ + public Object rowDelimiter() { + return this.rowDelimiter; + } + + /** + * Set the row delimiter. Type: string (or Expression with resultType string). + * + * @param rowDelimiter the rowDelimiter value to set + * @return the TextFormat object itself. + */ + public TextFormat withRowDelimiter(Object rowDelimiter) { + this.rowDelimiter = rowDelimiter; + return this; + } + + /** + * Get the escape character. Type: string (or Expression with resultType string). + * + * @return the escapeChar value + */ + public Object escapeChar() { + return this.escapeChar; + } + + /** + * Set the escape character. Type: string (or Expression with resultType string). + * + * @param escapeChar the escapeChar value to set + * @return the TextFormat object itself. + */ + public TextFormat withEscapeChar(Object escapeChar) { + this.escapeChar = escapeChar; + return this; + } + + /** + * Get the quote character. Type: string (or Expression with resultType string). + * + * @return the quoteChar value + */ + public Object quoteChar() { + return this.quoteChar; + } + + /** + * Set the quote character. Type: string (or Expression with resultType string). + * + * @param quoteChar the quoteChar value to set + * @return the TextFormat object itself. + */ + public TextFormat withQuoteChar(Object quoteChar) { + this.quoteChar = quoteChar; + return this; + } + + /** + * Get the null value string. Type: string (or Expression with resultType string). + * + * @return the nullValue value + */ + public Object nullValue() { + return this.nullValue; + } + + /** + * Set the null value string. Type: string (or Expression with resultType string). + * + * @param nullValue the nullValue value to set + * @return the TextFormat object itself. + */ + public TextFormat withNullValue(Object nullValue) { + this.nullValue = nullValue; + return this; + } + + /** + * Get the code page name of the preferred encoding. If miss, the default value is ΓÇ£utf-8ΓÇ¥, unless BOM denotes another Unicode encoding. Refer to the ΓÇ£NameΓÇ¥ column of the table in the following link to set supported values: https://msdn.microsoft.com/library/system.text.encoding.aspx. Type: string (or Expression with resultType string). + * + * @return the encodingName value + */ + public Object encodingName() { + return this.encodingName; + } + + /** + * Set the code page name of the preferred encoding. If miss, the default value is ΓÇ£utf-8ΓÇ¥, unless BOM denotes another Unicode encoding. Refer to the ΓÇ£NameΓÇ¥ column of the table in the following link to set supported values: https://msdn.microsoft.com/library/system.text.encoding.aspx. Type: string (or Expression with resultType string). + * + * @param encodingName the encodingName value to set + * @return the TextFormat object itself. + */ + public TextFormat withEncodingName(Object encodingName) { + this.encodingName = encodingName; + return this; + } + + /** + * Get treat empty column values in the text file as null. The default value is true. Type: boolean (or Expression with resultType boolean). + * + * @return the treatEmptyAsNull value + */ + public Object treatEmptyAsNull() { + return this.treatEmptyAsNull; + } + + /** + * Set treat empty column values in the text file as null. The default value is true. Type: boolean (or Expression with resultType boolean). + * + * @param treatEmptyAsNull the treatEmptyAsNull value to set + * @return the TextFormat object itself. + */ + public TextFormat withTreatEmptyAsNull(Object treatEmptyAsNull) { + this.treatEmptyAsNull = treatEmptyAsNull; + return this; + } + + /** + * Get the number of lines/rows to be skipped when parsing text files. The default value is 0. Type: integer (or Expression with resultType integer). + * + * @return the skipLineCount value + */ + public Object skipLineCount() { + return this.skipLineCount; + } + + /** + * Set the number of lines/rows to be skipped when parsing text files. The default value is 0. Type: integer (or Expression with resultType integer). + * + * @param skipLineCount the skipLineCount value to set + * @return the TextFormat object itself. + */ + public TextFormat withSkipLineCount(Object skipLineCount) { + this.skipLineCount = skipLineCount; + return this; + } + + /** + * Get when used as input, treat the first row of data as headers. When used as output,write the headers into the output as the first row of data. The default value is false. Type: boolean (or Expression with resultType boolean). + * + * @return the firstRowAsHeader value + */ + public Object firstRowAsHeader() { + return this.firstRowAsHeader; + } + + /** + * Set when used as input, treat the first row of data as headers. When used as output,write the headers into the output as the first row of data. The default value is false. Type: boolean (or Expression with resultType boolean). + * + * @param firstRowAsHeader the firstRowAsHeader value to set + * @return the TextFormat object itself. + */ + public TextFormat withFirstRowAsHeader(Object firstRowAsHeader) { + this.firstRowAsHeader = firstRowAsHeader; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/TriggerDependencyReference.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/TriggerDependencyReference.java new file mode 100644 index 0000000000000..24fabab96c580 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/TriggerDependencyReference.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonSubTypes; + +/** + * Trigger referenced dependency. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("TriggerDependencyReference") +@JsonSubTypes({ + @JsonSubTypes.Type(name = "TumblingWindowTriggerDependencyReference", value = TumblingWindowTriggerDependencyReference.class) +}) +public class TriggerDependencyReference extends DependencyReference { + /** + * Referenced trigger. + */ + @JsonProperty(value = "referenceTrigger", required = true) + private TriggerReference referenceTrigger; + + /** + * Get referenced trigger. + * + * @return the referenceTrigger value + */ + public TriggerReference referenceTrigger() { + return this.referenceTrigger; + } + + /** + * Set referenced trigger. + * + * @param referenceTrigger the referenceTrigger value to set + * @return the TriggerDependencyReference object itself. + */ + public TriggerDependencyReference withReferenceTrigger(TriggerReference referenceTrigger) { + this.referenceTrigger = referenceTrigger; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/TriggerFactoryTriggerResource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/TriggerFactoryTriggerResource.java new file mode 100644 index 0000000000000..f2ccec985ad68 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/TriggerFactoryTriggerResource.java @@ -0,0 +1,135 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.TriggerResourceInner; +import com.microsoft.azure.arm.model.Indexable; +import com.microsoft.azure.arm.model.Updatable; +import com.microsoft.azure.arm.model.Appliable; +import com.microsoft.azure.arm.model.Creatable; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DataFactoryManager; +import org.joda.time.DateTime; + +/** + * Type representing TriggerFactoryTriggerResource. + */ +public interface TriggerFactoryTriggerResource extends HasInner, Indexable, Updatable, HasManager { + /** + * @return the etag value. + */ + String etag(); + + /** + * @return the id value. + */ + String id(); + + /** + * @return the name value. + */ + String name(); + + /** + * @return the properties value. + */ + TriggerInner properties(); + + /** + * @return the type value. + */ + String type(); + + /** + * The entirety of the TriggerFactoryTriggerResource definition. + */ + interface Definition extends DefinitionStages.Blank, DefinitionStages.WithTrigger, DefinitionStages.WithEndTime, DefinitionStages.WithMaxConcurrency, DefinitionStages.WithStartTime, DefinitionStages.WithCreate { + } + + /** + * Grouping of TriggerFactoryTriggerResource definition stages. + */ + interface DefinitionStages { + /** + * The first stage of a TriggerFactoryTriggerResource definition. + */ + interface Blank extends WithTrigger { + } + + /** + * The stage of the triggerfactorytriggerresource definition allowing to specify Trigger. + */ + interface WithTrigger { + /** + * Specifies resourceGroupName, factoryName, triggerName. + * @param resourceGroupName The resource group name + * @param factoryName The factory name + * @param triggerName The trigger name + * @return the next definition stage + */ + WithEndTime withExistingTrigger(String resourceGroupName, String factoryName, String triggerName); + } + + /** + * The stage of the triggerfactorytriggerresource definition allowing to specify EndTime. + */ + interface WithEndTime { + /** + * Specifies endTime. + * @param endTime The end time for the time period for which restatement is initiated. Only UTC time is currently supported + * @return the next definition stage + */ + WithMaxConcurrency withEndTime(DateTime endTime); + } + + /** + * The stage of the triggerfactorytriggerresource definition allowing to specify MaxConcurrency. + */ + interface WithMaxConcurrency { + /** + * Specifies maxConcurrency. + * @param maxConcurrency The max number of parallel time windows (ready for execution) for which a rerun is triggered + * @return the next definition stage + */ + WithStartTime withMaxConcurrency(int maxConcurrency); + } + + /** + * The stage of the triggerfactorytriggerresource definition allowing to specify StartTime. + */ + interface WithStartTime { + /** + * Specifies startTime. + * @param startTime The start time for the time period for which restatement is initiated. Only UTC time is currently supported + * @return the next definition stage + */ + WithCreate withStartTime(DateTime startTime); + } + + /** + * The stage of the definition which contains all the minimum required inputs for + * the resource to be created (via {@link WithCreate#create()}), but also allows + * for any other optional settings to be specified. + */ + interface WithCreate extends Creatable { + } + } + /** + * The template for a TriggerFactoryTriggerResource update operation, containing all the settings that can be modified. + */ + interface Update extends Appliable { + } + + /** + * Grouping of TriggerFactoryTriggerResource update stages. + */ + interface UpdateStages { + } +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/TriggerPipelineReference.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/TriggerPipelineReference.java new file mode 100644 index 0000000000000..6f6e507af887f --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 pipeline reference. + * + * @return the pipelineReference value + */ + public PipelineReference pipelineReference() { + return this.pipelineReference; + } + + /** + * Set pipeline reference. + * + * @param pipelineReference the pipelineReference value to set + * @return the TriggerPipelineReference object itself. + */ + public TriggerPipelineReference withPipelineReference(PipelineReference pipelineReference) { + this.pipelineReference = pipelineReference; + return this; + } + + /** + * Get pipeline parameters. + * + * @return the parameters value + */ + public Map parameters() { + return this.parameters; + } + + /** + * Set pipeline parameters. + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/TriggerReference.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/TriggerReference.java new file mode 100644 index 0000000000000..03287bd4b9c8c --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/TriggerReference.java @@ -0,0 +1,77 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Trigger reference type. + */ +public class TriggerReference { + /** + * Trigger reference type. + */ + @JsonProperty(value = "type", required = true) + private String type; + + /** + * Reference trigger name. + */ + @JsonProperty(value = "referenceName", required = true) + private String referenceName; + + /** + * Creates an instance of TriggerReference class. + * @param referenceName reference trigger name. + */ + public TriggerReference() { + type = "TriggerReference"; + } + + /** + * Get trigger reference type. + * + * @return the type value + */ + public String type() { + return this.type; + } + + /** + * Set trigger reference type. + * + * @param type the type value to set + * @return the TriggerReference object itself. + */ + public TriggerReference withType(String type) { + this.type = type; + return this; + } + + /** + * Get reference trigger name. + * + * @return the referenceName value + */ + public String referenceName() { + return this.referenceName; + } + + /** + * Set reference trigger name. + * + * @param referenceName the referenceName value to set + * @return the TriggerReference object itself. + */ + public TriggerReference withReferenceName(String referenceName) { + this.referenceName = referenceName; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/TriggerRunStatus.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/TriggerRunStatus.java new file mode 100644 index 0000000000000..187931bf74b22 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/TriggerRuns.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/TriggerRuns.java new file mode 100644 index 0000000000000..495f1ccde4d13 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/TriggerRuns.java @@ -0,0 +1,30 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +import rx.Observable; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.TriggerRunsInner; +import com.microsoft.azure.arm.model.HasInner; + +/** + * Type representing TriggerRuns. + */ +public interface TriggerRuns extends HasInner { + /** + * Query trigger runs. + * + * @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 for the request + */ + Observable queryByFactoryAsync(String resourceGroupName, String factoryName, RunFilterParameters filterParameters); + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/TriggerRunsQueryResponse.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/TriggerRunsQueryResponse.java new file mode 100644 index 0000000000000..93da10ff3b8f8 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/TriggerRunsQueryResponse.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.v2018_06_01; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DataFactoryManager; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.TriggerRunsQueryResponseInner; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.TriggerRunInner; +import java.util.List; + +/** + * Type representing TriggerRunsQueryResponse. + */ +public interface TriggerRunsQueryResponse extends HasInner, HasManager { + /** + * @return the continuationToken value. + */ + String continuationToken(); + + /** + * @return the value value. + */ + List value(); + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/TriggerRuntimeState.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/TriggerRuntimeState.java new file mode 100644 index 0000000000000..3768f90870e22 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/Triggers.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/Triggers.java new file mode 100644 index 0000000000000..00c0ed05ffbb9 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/Triggers.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.v2018_06_01; + +import com.microsoft.azure.arm.collection.SupportsCreating; +import rx.Completable; +import rx.Observable; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.TriggersInner; +import com.microsoft.azure.arm.model.HasInner; + +/** + * Type representing Triggers. + */ +public interface Triggers extends SupportsCreating, HasInner { + /** + * 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 + */ + Completable startAsync(String resourceGroupName, String factoryName, String triggerName); + + /** + * 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 + */ + Completable stopAsync(String resourceGroupName, String factoryName, String triggerName); + + /** + * 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 for the request + */ + Observable getAsync(String resourceGroupName, String factoryName, String triggerName); + + /** + * Lists triggers. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable listByFactoryAsync(final String resourceGroupName, final String factoryName); + + /** + * 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 observable for the request + */ + Completable deleteAsync(String resourceGroupName, String factoryName, String triggerName); + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/TumblingWindowFrequency.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/TumblingWindowFrequency.java new file mode 100644 index 0000000000000..481f62c353a45 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/TumblingWindowTrigger.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/TumblingWindowTrigger.java new file mode 100644 index 0000000000000..3d344385e35de --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/TumblingWindowTrigger.java @@ -0,0 +1,273 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +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; +import com.microsoft.azure.management.datafactory.v2018_06_01.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; + + /** + * Triggers that this trigger depends on. Only tumbling window triggers are + * supported. + */ + @JsonProperty(value = "typeProperties.dependsOn") + private List dependsOn; + + /** + * Get pipeline for which runs are created when an event is fired for trigger window that is ready. + * + * @return the pipeline value + */ + public TriggerPipelineReference pipeline() { + return this.pipeline; + } + + /** + * Set pipeline for which runs are created when an event is fired for trigger window that is ready. + * + * @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 of the time windows. Possible values include: 'Minute', 'Hour'. + * + * @return the frequency value + */ + public TumblingWindowFrequency frequency() { + return this.frequency; + } + + /** + * Set the frequency of the time windows. Possible values include: 'Minute', 'Hour'. + * + * @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 of the time windows. The minimum interval allowed is 15 Minutes. + * + * @return the interval value + */ + public int interval() { + return this.interval; + } + + /** + * Set the interval of the time windows. The minimum interval allowed is 15 Minutes. + * + * @param interval the interval value to set + * @return the TumblingWindowTrigger object itself. + */ + public TumblingWindowTrigger withInterval(int interval) { + this.interval = interval; + return this; + } + + /** + * Get the start time for the time period for the trigger during which events are fired for windows that are ready. Only UTC time is currently supported. + * + * @return the startTime value + */ + public DateTime startTime() { + return this.startTime; + } + + /** + * Set the start time for the time period for the trigger during which events are fired for windows that are ready. Only UTC time is currently supported. + * + * @param startTime the startTime value to set + * @return the TumblingWindowTrigger object itself. + */ + public TumblingWindowTrigger withStartTime(DateTime startTime) { + this.startTime = startTime; + return this; + } + + /** + * Get the end time for the time period for the trigger during which events are fired for windows that are ready. Only UTC time is currently supported. + * + * @return the endTime value + */ + public DateTime endTime() { + return this.endTime; + } + + /** + * Set the end time for the time period for the trigger during which events are fired for windows that are ready. Only UTC time is currently supported. + * + * @param endTime the endTime value to set + * @return the TumblingWindowTrigger object itself. + */ + public TumblingWindowTrigger withEndTime(DateTime endTime) { + this.endTime = endTime; + return this; + } + + /** + * Get specifies how long the trigger waits past due time before triggering new run. It doesn't alter window start and end time. The default is 0. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + * + * @return the delay value + */ + public Object delay() { + return this.delay; + } + + /** + * Set specifies how long the trigger waits past due time before triggering new run. It doesn't alter window start and end time. The default is 0. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + * + * @param delay the delay value to set + * @return the TumblingWindowTrigger object itself. + */ + public TumblingWindowTrigger withDelay(Object delay) { + this.delay = delay; + return this; + } + + /** + * Get the max number of parallel time windows (ready for execution) for which a new run is triggered. + * + * @return the maxConcurrency value + */ + public int maxConcurrency() { + return this.maxConcurrency; + } + + /** + * Set the max number of parallel time windows (ready for execution) for which a new run is triggered. + * + * @param maxConcurrency the maxConcurrency value to set + * @return the TumblingWindowTrigger object itself. + */ + public TumblingWindowTrigger withMaxConcurrency(int maxConcurrency) { + this.maxConcurrency = maxConcurrency; + return this; + } + + /** + * Get retry policy that will be applied for failed pipeline runs. + * + * @return the retryPolicy value + */ + public RetryPolicy retryPolicy() { + return this.retryPolicy; + } + + /** + * Set retry policy that will be applied for failed pipeline runs. + * + * @param retryPolicy the retryPolicy value to set + * @return the TumblingWindowTrigger object itself. + */ + public TumblingWindowTrigger withRetryPolicy(RetryPolicy retryPolicy) { + this.retryPolicy = retryPolicy; + return this; + } + + /** + * Get triggers that this trigger depends on. Only tumbling window triggers are supported. + * + * @return the dependsOn value + */ + public List dependsOn() { + return this.dependsOn; + } + + /** + * Set triggers that this trigger depends on. Only tumbling window triggers are supported. + * + * @param dependsOn the dependsOn value to set + * @return the TumblingWindowTrigger object itself. + */ + public TumblingWindowTrigger withDependsOn(List dependsOn) { + this.dependsOn = dependsOn; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/TumblingWindowTriggerDependencyReference.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/TumblingWindowTriggerDependencyReference.java new file mode 100644 index 0000000000000..26ba039348287 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/TumblingWindowTriggerDependencyReference.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * Referenced tumbling window trigger dependency. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("TumblingWindowTriggerDependencyReference") +public class TumblingWindowTriggerDependencyReference extends TriggerDependencyReference { + /** + * Timespan applied to the start time of a tumbling window when evaluating + * dependency. + */ + @JsonProperty(value = "offset") + private String offset; + + /** + * The size of the window when evaluating the dependency. If undefined the + * frequency of the tumbling window will be used. + */ + @JsonProperty(value = "size") + private String size; + + /** + * Get timespan applied to the start time of a tumbling window when evaluating dependency. + * + * @return the offset value + */ + public String offset() { + return this.offset; + } + + /** + * Set timespan applied to the start time of a tumbling window when evaluating dependency. + * + * @param offset the offset value to set + * @return the TumblingWindowTriggerDependencyReference object itself. + */ + public TumblingWindowTriggerDependencyReference withOffset(String offset) { + this.offset = offset; + return this; + } + + /** + * Get the size of the window when evaluating the dependency. If undefined the frequency of the tumbling window will be used. + * + * @return the size value + */ + public String size() { + return this.size; + } + + /** + * Set the size of the window when evaluating the dependency. If undefined the frequency of the tumbling window will be used. + * + * @param size the size value to set + * @return the TumblingWindowTriggerDependencyReference object itself. + */ + public TumblingWindowTriggerDependencyReference withSize(String size) { + this.size = size; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/UntilActivity.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/UntilActivity.java new file mode 100644 index 0000000000000..23a34b390a8d2 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 an expression that would evaluate to Boolean. The loop will continue until this expression evaluates to true. + * + * @return the expression value + */ + public Expression expression() { + return this.expression; + } + + /** + * Set an expression that would evaluate to Boolean. The loop will continue until this expression evaluates to true. + * + * @param expression the expression value to set + * @return the UntilActivity object itself. + */ + public UntilActivity withExpression(Expression expression) { + this.expression = expression; + return this; + } + + /** + * Get specifies the timeout for the activity to run. If there is no value specified, it takes the value of TimeSpan.FromDays(7) which is 1 week as default. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + * + * @return the timeout value + */ + public Object timeout() { + return this.timeout; + } + + /** + * Set specifies the timeout for the activity to run. If there is no value specified, it takes the value of TimeSpan.FromDays(7) which is 1 week as default. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + * + * @param timeout the timeout value to set + * @return the UntilActivity object itself. + */ + public UntilActivity withTimeout(Object timeout) { + this.timeout = timeout; + return this; + } + + /** + * Get list of activities to execute. + * + * @return the activities value + */ + public List activities() { + return this.activities; + } + + /** + * Set list of activities to execute. + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/UpdateIntegrationRuntimeNodeRequest.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/UpdateIntegrationRuntimeNodeRequest.java new file mode 100644 index 0000000000000..2363fbcfda37d --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 number of concurrent jobs permitted to run on the integration runtime node. Values between 1 and maxConcurrentJobs(inclusive) are allowed. + * + * @return the concurrentJobsLimit value + */ + public Integer concurrentJobsLimit() { + return this.concurrentJobsLimit; + } + + /** + * Set the number of concurrent jobs permitted to run on the integration runtime node. Values between 1 and maxConcurrentJobs(inclusive) are allowed. + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/UpdateIntegrationRuntimeRequest.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/UpdateIntegrationRuntimeRequest.java new file mode 100644 index 0000000000000..d82c0ea17cb3b --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/UpdateIntegrationRuntimeRequest.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Update integration runtime request. + */ +public class UpdateIntegrationRuntimeRequest { + /** + * 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 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'. + * + * @return the autoUpdate value + */ + public IntegrationRuntimeAutoUpdate autoUpdate() { + return this.autoUpdate; + } + + /** + * Set 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'. + * + * @param autoUpdate the autoUpdate value to set + * @return the UpdateIntegrationRuntimeRequest object itself. + */ + public UpdateIntegrationRuntimeRequest withAutoUpdate(IntegrationRuntimeAutoUpdate autoUpdate) { + this.autoUpdate = autoUpdate; + return this; + } + + /** + * Get the time offset (in hours) in the day, e.g., PT03H is 3 hours. The integration runtime auto update will happen on that time. + * + * @return the updateDelayOffset value + */ + public String updateDelayOffset() { + return this.updateDelayOffset; + } + + /** + * Set the time offset (in hours) in the day, e.g., PT03H is 3 hours. The integration runtime auto update will happen on that time. + * + * @param updateDelayOffset the updateDelayOffset value to set + * @return the UpdateIntegrationRuntimeRequest object itself. + */ + public UpdateIntegrationRuntimeRequest withUpdateDelayOffset(String updateDelayOffset) { + this.updateDelayOffset = updateDelayOffset; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/UserAccessPolicy.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/UserAccessPolicy.java new file mode 100644 index 0000000000000..76473a81628f3 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/UserAccessPolicy.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Get Data Plane read only token request definition. + */ +public class UserAccessPolicy { + /** + * The string with permissions for Data Plane access. Currently only 'r' is + * supported which grants read only access. + */ + @JsonProperty(value = "permissions") + private String permissions; + + /** + * The resource path to get access relative to factory. Currently only + * empty string is supported which corresponds to the factory resource. + */ + @JsonProperty(value = "accessResourcePath") + private String accessResourcePath; + + /** + * The name of the profile. Currently only the default is supported. The + * default value is DefaultProfile. + */ + @JsonProperty(value = "profileName") + private String profileName; + + /** + * Start time for the token. If not specified the current time will be + * used. + */ + @JsonProperty(value = "startTime") + private String startTime; + + /** + * Expiration time for the token. Maximum duration for the token is eight + * hours and by default the token will expire in eight hours. + */ + @JsonProperty(value = "expireTime") + private String expireTime; + + /** + * Get the string with permissions for Data Plane access. Currently only 'r' is supported which grants read only access. + * + * @return the permissions value + */ + public String permissions() { + return this.permissions; + } + + /** + * Set the string with permissions for Data Plane access. Currently only 'r' is supported which grants read only access. + * + * @param permissions the permissions value to set + * @return the UserAccessPolicy object itself. + */ + public UserAccessPolicy withPermissions(String permissions) { + this.permissions = permissions; + return this; + } + + /** + * Get the resource path to get access relative to factory. Currently only empty string is supported which corresponds to the factory resource. + * + * @return the accessResourcePath value + */ + public String accessResourcePath() { + return this.accessResourcePath; + } + + /** + * Set the resource path to get access relative to factory. Currently only empty string is supported which corresponds to the factory resource. + * + * @param accessResourcePath the accessResourcePath value to set + * @return the UserAccessPolicy object itself. + */ + public UserAccessPolicy withAccessResourcePath(String accessResourcePath) { + this.accessResourcePath = accessResourcePath; + return this; + } + + /** + * Get the name of the profile. Currently only the default is supported. The default value is DefaultProfile. + * + * @return the profileName value + */ + public String profileName() { + return this.profileName; + } + + /** + * Set the name of the profile. Currently only the default is supported. The default value is DefaultProfile. + * + * @param profileName the profileName value to set + * @return the UserAccessPolicy object itself. + */ + public UserAccessPolicy withProfileName(String profileName) { + this.profileName = profileName; + return this; + } + + /** + * Get start time for the token. If not specified the current time will be used. + * + * @return the startTime value + */ + public String startTime() { + return this.startTime; + } + + /** + * Set start time for the token. If not specified the current time will be used. + * + * @param startTime the startTime value to set + * @return the UserAccessPolicy object itself. + */ + public UserAccessPolicy withStartTime(String startTime) { + this.startTime = startTime; + return this; + } + + /** + * Get expiration time for the token. Maximum duration for the token is eight hours and by default the token will expire in eight hours. + * + * @return the expireTime value + */ + public String expireTime() { + return this.expireTime; + } + + /** + * Set expiration time for the token. Maximum duration for the token is eight hours and by default the token will expire in eight hours. + * + * @param expireTime the expireTime value to set + * @return the UserAccessPolicy object itself. + */ + public UserAccessPolicy withExpireTime(String expireTime) { + this.expireTime = expireTime; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/UserProperty.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/UserProperty.java new file mode 100644 index 0000000000000..077a7c361946a --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/UserProperty.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * User property. + */ +public class UserProperty { + /** + * User property name. + */ + @JsonProperty(value = "name", required = true) + private String name; + + /** + * User property value. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "value", required = true) + private Object value; + + /** + * Get user property name. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Set user property name. + * + * @param name the name value to set + * @return the UserProperty object itself. + */ + public UserProperty withName(String name) { + this.name = name; + return this; + } + + /** + * Get user property value. Type: string (or Expression with resultType string). + * + * @return the value value + */ + public Object value() { + return this.value; + } + + /** + * Set user property value. Type: string (or Expression with resultType string). + * + * @param value the value value to set + * @return the UserProperty object itself. + */ + public UserProperty withValue(Object value) { + this.value = value; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ValidationActivity.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ValidationActivity.java new file mode 100644 index 0000000000000..22c77ee7557ec --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ValidationActivity.java @@ -0,0 +1,162 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; + +/** + * This activity verifies that an external resource exists. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("Validation") +@JsonFlatten +public class ValidationActivity extends ControlActivity { + /** + * Specifies the timeout for the activity to run. If there is no value + * specified, it takes the value of TimeSpan.FromDays(7) which is 1 week as + * default. Type: string (or Expression with resultType string), pattern: + * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + */ + @JsonProperty(value = "typeProperties.timeout") + private Object timeout; + + /** + * A delay in seconds between validation attempts. If no value is + * specified, 10 seconds will be used as the default. Type: integer (or + * Expression with resultType integer). + */ + @JsonProperty(value = "typeProperties.sleep") + private Object sleep; + + /** + * Can be used if dataset points to a file. The file must be greater than + * or equal in size to the value specified. Type: integer (or Expression + * with resultType integer). + */ + @JsonProperty(value = "typeProperties.minimumSize") + private Object minimumSize; + + /** + * Can be used if dataset points to a folder. If set to true, the folder + * must have at least one file. If set to false, the folder must be empty. + * Type: boolean (or Expression with resultType boolean). + */ + @JsonProperty(value = "typeProperties.childItems") + private Object childItems; + + /** + * Validation activity dataset reference. + */ + @JsonProperty(value = "typeProperties.dataset", required = true) + private DatasetReference dataset; + + /** + * Get specifies the timeout for the activity to run. If there is no value specified, it takes the value of TimeSpan.FromDays(7) which is 1 week as default. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + * + * @return the timeout value + */ + public Object timeout() { + return this.timeout; + } + + /** + * Set specifies the timeout for the activity to run. If there is no value specified, it takes the value of TimeSpan.FromDays(7) which is 1 week as default. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + * + * @param timeout the timeout value to set + * @return the ValidationActivity object itself. + */ + public ValidationActivity withTimeout(Object timeout) { + this.timeout = timeout; + return this; + } + + /** + * Get a delay in seconds between validation attempts. If no value is specified, 10 seconds will be used as the default. Type: integer (or Expression with resultType integer). + * + * @return the sleep value + */ + public Object sleep() { + return this.sleep; + } + + /** + * Set a delay in seconds between validation attempts. If no value is specified, 10 seconds will be used as the default. Type: integer (or Expression with resultType integer). + * + * @param sleep the sleep value to set + * @return the ValidationActivity object itself. + */ + public ValidationActivity withSleep(Object sleep) { + this.sleep = sleep; + return this; + } + + /** + * Get can be used if dataset points to a file. The file must be greater than or equal in size to the value specified. Type: integer (or Expression with resultType integer). + * + * @return the minimumSize value + */ + public Object minimumSize() { + return this.minimumSize; + } + + /** + * Set can be used if dataset points to a file. The file must be greater than or equal in size to the value specified. Type: integer (or Expression with resultType integer). + * + * @param minimumSize the minimumSize value to set + * @return the ValidationActivity object itself. + */ + public ValidationActivity withMinimumSize(Object minimumSize) { + this.minimumSize = minimumSize; + return this; + } + + /** + * Get can be used if dataset points to a folder. If set to true, the folder must have at least one file. If set to false, the folder must be empty. Type: boolean (or Expression with resultType boolean). + * + * @return the childItems value + */ + public Object childItems() { + return this.childItems; + } + + /** + * Set can be used if dataset points to a folder. If set to true, the folder must have at least one file. If set to false, the folder must be empty. Type: boolean (or Expression with resultType boolean). + * + * @param childItems the childItems value to set + * @return the ValidationActivity object itself. + */ + public ValidationActivity withChildItems(Object childItems) { + this.childItems = childItems; + return this; + } + + /** + * Get validation activity dataset reference. + * + * @return the dataset value + */ + public DatasetReference dataset() { + return this.dataset; + } + + /** + * Set validation activity dataset reference. + * + * @param dataset the dataset value to set + * @return the ValidationActivity object itself. + */ + public ValidationActivity withDataset(DatasetReference dataset) { + this.dataset = dataset; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/VariableSpecification.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/VariableSpecification.java new file mode 100644 index 0000000000000..97528e843db1d --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/VariableSpecification.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Definition of a single variable for a Pipeline. + */ +public class VariableSpecification { + /** + * Variable type. Possible values include: 'String', 'Bool', 'Array'. + */ + @JsonProperty(value = "type", required = true) + private VariableType type; + + /** + * Default value of variable. + */ + @JsonProperty(value = "defaultValue") + private Object defaultValue; + + /** + * Get variable type. Possible values include: 'String', 'Bool', 'Array'. + * + * @return the type value + */ + public VariableType type() { + return this.type; + } + + /** + * Set variable type. Possible values include: 'String', 'Bool', 'Array'. + * + * @param type the type value to set + * @return the VariableSpecification object itself. + */ + public VariableSpecification withType(VariableType type) { + this.type = type; + return this; + } + + /** + * Get default value of variable. + * + * @return the defaultValue value + */ + public Object defaultValue() { + return this.defaultValue; + } + + /** + * Set default value of variable. + * + * @param defaultValue the defaultValue value to set + * @return the VariableSpecification object itself. + */ + public VariableSpecification withDefaultValue(Object defaultValue) { + this.defaultValue = defaultValue; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/VariableType.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/VariableType.java new file mode 100644 index 0000000000000..8a5bb9a6c1261 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/VariableType.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.v2018_06_01; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for VariableType. + */ +public final class VariableType extends ExpandableStringEnum { + /** Static value String for VariableType. */ + public static final VariableType STRING = fromString("String"); + + /** Static value Bool for VariableType. */ + public static final VariableType BOOL = fromString("Bool"); + + /** Static value Array for VariableType. */ + public static final VariableType ARRAY = fromString("Array"); + + /** + * Creates or finds a VariableType from its string representation. + * @param name a name to look for + * @return the corresponding VariableType + */ + @JsonCreator + public static VariableType fromString(String name) { + return fromString(name, VariableType.class); + } + + /** + * @return known VariableType values + */ + public static Collection values() { + return values(VariableType.class); + } +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/VerticaLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/VerticaLinkedService.java new file mode 100644 index 0000000000000..364d86b1fe53f --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/VerticaLinkedService.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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. Type: string, SecureString or + * AzureKeyVaultSecretReference. + */ + @JsonProperty(value = "typeProperties.connectionString") + private Object connectionString; + + /** + * The Azure key vault secret reference of password in connection string. + */ + @JsonProperty(value = "typeProperties.pwd") + private AzureKeyVaultSecretReference pwd; + + /** + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; + + /** + * Get an ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. + * + * @return the connectionString value + */ + public Object connectionString() { + return this.connectionString; + } + + /** + * Set an ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. + * + * @param connectionString the connectionString value to set + * @return the VerticaLinkedService object itself. + */ + public VerticaLinkedService withConnectionString(Object connectionString) { + this.connectionString = connectionString; + return this; + } + + /** + * Get the Azure key vault secret reference of password in connection string. + * + * @return the pwd value + */ + public AzureKeyVaultSecretReference pwd() { + return this.pwd; + } + + /** + * Set the Azure key vault secret reference of password in connection string. + * + * @param pwd the pwd value to set + * @return the VerticaLinkedService object itself. + */ + public VerticaLinkedService withPwd(AzureKeyVaultSecretReference pwd) { + this.pwd = pwd; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the VerticaLinkedService object itself. + */ + public VerticaLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/VerticaSource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/VerticaSource.java new file mode 100644 index 0000000000000..3f9ba6e467735 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 a query to retrieve data from source. Type: string (or Expression with resultType string). + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set a query to retrieve data from source. Type: string (or Expression with resultType string). + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/VerticaTableDataset.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/VerticaTableDataset.java new file mode 100644 index 0000000000000..7d423e6734d41 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/VerticaTableDataset.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DatasetInner; + +/** + * Vertica dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("VerticaTable") +@JsonFlatten +public class VerticaTableDataset extends DatasetInner { + /** + * This property will be retired. Please consider using schema + table + * properties instead. + */ + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; + + /** + * The table name of the Vertica. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.table") + private Object table; + + /** + * The schema name of the Vertica. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.schema") + private Object verticaTableDatasetSchema; + + /** + * Get this property will be retired. Please consider using schema + table properties instead. + * + * @return the tableName value + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set this property will be retired. Please consider using schema + table properties instead. + * + * @param tableName the tableName value to set + * @return the VerticaTableDataset object itself. + */ + public VerticaTableDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; + } + + /** + * Get the table name of the Vertica. Type: string (or Expression with resultType string). + * + * @return the table value + */ + public Object table() { + return this.table; + } + + /** + * Set the table name of the Vertica. Type: string (or Expression with resultType string). + * + * @param table the table value to set + * @return the VerticaTableDataset object itself. + */ + public VerticaTableDataset withTable(Object table) { + this.table = table; + return this; + } + + /** + * Get the schema name of the Vertica. Type: string (or Expression with resultType string). + * + * @return the verticaTableDatasetSchema value + */ + public Object verticaTableDatasetSchema() { + return this.verticaTableDatasetSchema; + } + + /** + * Set the schema name of the Vertica. Type: string (or Expression with resultType string). + * + * @param verticaTableDatasetSchema the verticaTableDatasetSchema value to set + * @return the VerticaTableDataset object itself. + */ + public VerticaTableDataset withVerticaTableDatasetSchema(Object verticaTableDatasetSchema) { + this.verticaTableDatasetSchema = verticaTableDatasetSchema; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/WaitActivity.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/WaitActivity.java new file mode 100644 index 0000000000000..627e84368c77d --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; + +/** + * 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 duration in seconds. + * + * @return the waitTimeInSeconds value + */ + public int waitTimeInSeconds() { + return this.waitTimeInSeconds; + } + + /** + * Set duration in seconds. + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/WebActivity.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/WebActivity.java new file mode 100644 index 0000000000000..79093800b9fe8 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 rest API method for target endpoint. Possible values include: 'GET', 'POST', 'PUT', 'DELETE'. + * + * @return the method value + */ + public WebActivityMethod method() { + return this.method; + } + + /** + * Set rest API method for target endpoint. Possible values include: 'GET', 'POST', 'PUT', 'DELETE'. + * + * @param method the method value to set + * @return the WebActivity object itself. + */ + public WebActivity withMethod(WebActivityMethod method) { + this.method = method; + return this; + } + + /** + * Get web activity target endpoint and path. Type: string (or Expression with resultType string). + * + * @return the url value + */ + public Object url() { + return this.url; + } + + /** + * Set web activity target endpoint and path. Type: string (or Expression with resultType string). + * + * @param url the url value to set + * @return the WebActivity object itself. + */ + public WebActivity withUrl(Object url) { + this.url = url; + return this; + } + + /** + * Get represents the headers that will be sent to the request. For example, to set the language and type on a request: "headers" : { "Accept-Language": "en-us", "Content-Type": "application/json" }. Type: string (or Expression with resultType string). + * + * @return the headers value + */ + public Object headers() { + return this.headers; + } + + /** + * Set represents the headers that will be sent to the request. For example, to set the language and type on a request: "headers" : { "Accept-Language": "en-us", "Content-Type": "application/json" }. Type: string (or Expression with resultType string). + * + * @param headers the headers value to set + * @return the WebActivity object itself. + */ + public WebActivity withHeaders(Object headers) { + this.headers = headers; + return this; + } + + /** + * Get represents the payload that will be sent to the endpoint. Required for POST/PUT method, not allowed for GET method Type: string (or Expression with resultType string). + * + * @return the body value + */ + public Object body() { + return this.body; + } + + /** + * Set represents the payload that will be sent to the endpoint. Required for POST/PUT method, not allowed for GET method Type: string (or Expression with resultType string). + * + * @param body the body value to set + * @return the WebActivity object itself. + */ + public WebActivity withBody(Object body) { + this.body = body; + return this; + } + + /** + * Get authentication method used for calling the endpoint. + * + * @return the authentication value + */ + public WebActivityAuthentication authentication() { + return this.authentication; + } + + /** + * Set authentication method used for calling the endpoint. + * + * @param authentication the authentication value to set + * @return the WebActivity object itself. + */ + public WebActivity withAuthentication(WebActivityAuthentication authentication) { + this.authentication = authentication; + return this; + } + + /** + * Get list of datasets passed to web endpoint. + * + * @return the datasets value + */ + public List datasets() { + return this.datasets; + } + + /** + * Set list of datasets passed to web endpoint. + * + * @param datasets the datasets value to set + * @return the WebActivity object itself. + */ + public WebActivity withDatasets(List datasets) { + this.datasets = datasets; + return this; + } + + /** + * Get list of linked services passed to web endpoint. + * + * @return the linkedServices value + */ + public List linkedServices() { + return this.linkedServices; + } + + /** + * Set list of linked services passed to web endpoint. + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/WebActivityAuthentication.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/WebActivityAuthentication.java new file mode 100644 index 0000000000000..f058274620f91 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 web activity authentication (Basic/ClientCertificate/MSI). + * + * @return the type value + */ + public String type() { + return this.type; + } + + /** + * Set web activity authentication (Basic/ClientCertificate/MSI). + * + * @param type the type value to set + * @return the WebActivityAuthentication object itself. + */ + public WebActivityAuthentication withType(String type) { + this.type = type; + return this; + } + + /** + * Get base64-encoded contents of a PFX file. + * + * @return the pfx value + */ + public SecureString pfx() { + return this.pfx; + } + + /** + * Set base64-encoded contents of a PFX file. + * + * @param pfx the pfx value to set + * @return the WebActivityAuthentication object itself. + */ + public WebActivityAuthentication withPfx(SecureString pfx) { + this.pfx = pfx; + return this; + } + + /** + * Get web activity authentication user name for basic authentication. + * + * @return the username value + */ + public String username() { + return this.username; + } + + /** + * Set web activity authentication user name for basic authentication. + * + * @param username the username value to set + * @return the WebActivityAuthentication object itself. + */ + public WebActivityAuthentication withUsername(String username) { + this.username = username; + return this; + } + + /** + * Get password for the PFX file or basic authentication. + * + * @return the password value + */ + public SecureString password() { + return this.password; + } + + /** + * Set password for the PFX file or basic authentication. + * + * @param password the password value to set + * @return the WebActivityAuthentication object itself. + */ + public WebActivityAuthentication withPassword(SecureString password) { + this.password = password; + return this; + } + + /** + * Get resource for which Azure Auth token will be requested when using MSI Authentication. + * + * @return the resource value + */ + public String resource() { + return this.resource; + } + + /** + * Set resource for which Azure Auth token will be requested when using MSI Authentication. + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/WebActivityMethod.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/WebActivityMethod.java new file mode 100644 index 0000000000000..5ea03631e80e5 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/WebAnonymousAuthentication.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/WebAnonymousAuthentication.java new file mode 100644 index 0000000000000..6a7e0996dddd1 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/WebBasicAuthentication.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/WebBasicAuthentication.java new file mode 100644 index 0000000000000..0abe15b9ad16b --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 user name for Basic authentication. Type: string (or Expression with resultType string). + * + * @return the username value + */ + public Object username() { + return this.username; + } + + /** + * Set user name for Basic authentication. Type: string (or Expression with resultType string). + * + * @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 for Basic authentication. + * + * @return the password value + */ + public SecretBase password() { + return this.password; + } + + /** + * Set the password for Basic authentication. + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/WebClientCertificateAuthentication.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/WebClientCertificateAuthentication.java new file mode 100644 index 0000000000000..e82b2b86d164a --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 base64-encoded contents of a PFX file. + * + * @return the pfx value + */ + public SecretBase pfx() { + return this.pfx; + } + + /** + * Set base64-encoded contents of a PFX file. + * + * @param pfx the pfx value to set + * @return the WebClientCertificateAuthentication object itself. + */ + public WebClientCertificateAuthentication withPfx(SecretBase pfx) { + this.pfx = pfx; + return this; + } + + /** + * Get password for the PFX file. + * + * @return the password value + */ + public SecretBase password() { + return this.password; + } + + /** + * Set password for the PFX file. + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/WebHookActivity.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/WebHookActivity.java new file mode 100644 index 0000000000000..6a0c66cfa914f --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/WebHookActivity.java @@ -0,0 +1,195 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; + +/** + * WebHook activity. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("WebHook") +@JsonFlatten +public class WebHookActivity extends ControlActivity { + /** + * Rest API method for target endpoint. + */ + @JsonProperty(value = "typeProperties.method", required = true) + private String method; + + /** + * WebHook activity target endpoint and path. Type: string (or Expression + * with resultType string). + */ + @JsonProperty(value = "typeProperties.url", required = true) + private Object url; + + /** + * The timeout within which the webhook should be called back. If there is + * no value specified, it defaults to 10 minutes. Type: string. Pattern: + * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + */ + @JsonProperty(value = "typeProperties.timeout") + private String timeout; + + /** + * Represents the headers that will be sent to the request. For example, to + * set the language and type on a request: "headers" : { "Accept-Language": + * "en-us", "Content-Type": "application/json" }. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "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; + + /** + * Creates an instance of WebHookActivity class. + * @param url webHook activity target endpoint and path. Type: string (or Expression with resultType string). + */ + public WebHookActivity() { + method = "POST"; + } + + /** + * Get rest API method for target endpoint. + * + * @return the method value + */ + public String method() { + return this.method; + } + + /** + * Set rest API method for target endpoint. + * + * @param method the method value to set + * @return the WebHookActivity object itself. + */ + public WebHookActivity withMethod(String method) { + this.method = method; + return this; + } + + /** + * Get webHook activity target endpoint and path. Type: string (or Expression with resultType string). + * + * @return the url value + */ + public Object url() { + return this.url; + } + + /** + * Set webHook activity target endpoint and path. Type: string (or Expression with resultType string). + * + * @param url the url value to set + * @return the WebHookActivity object itself. + */ + public WebHookActivity withUrl(Object url) { + this.url = url; + return this; + } + + /** + * Get the timeout within which the webhook should be called back. If there is no value specified, it defaults to 10 minutes. Type: string. Pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + * + * @return the timeout value + */ + public String timeout() { + return this.timeout; + } + + /** + * Set the timeout within which the webhook should be called back. If there is no value specified, it defaults to 10 minutes. Type: string. Pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + * + * @param timeout the timeout value to set + * @return the WebHookActivity object itself. + */ + public WebHookActivity withTimeout(String timeout) { + this.timeout = timeout; + return this; + } + + /** + * Get represents the headers that will be sent to the request. For example, to set the language and type on a request: "headers" : { "Accept-Language": "en-us", "Content-Type": "application/json" }. Type: string (or Expression with resultType string). + * + * @return the headers value + */ + public Object headers() { + return this.headers; + } + + /** + * Set represents the headers that will be sent to the request. For example, to set the language and type on a request: "headers" : { "Accept-Language": "en-us", "Content-Type": "application/json" }. Type: string (or Expression with resultType string). + * + * @param headers the headers value to set + * @return the WebHookActivity object itself. + */ + public WebHookActivity withHeaders(Object headers) { + this.headers = headers; + return this; + } + + /** + * Get represents the payload that will be sent to the endpoint. Required for POST/PUT method, not allowed for GET method Type: string (or Expression with resultType string). + * + * @return the body value + */ + public Object body() { + return this.body; + } + + /** + * Set represents the payload that will be sent to the endpoint. Required for POST/PUT method, not allowed for GET method Type: string (or Expression with resultType string). + * + * @param body the body value to set + * @return the WebHookActivity object itself. + */ + public WebHookActivity withBody(Object body) { + this.body = body; + return this; + } + + /** + * Get authentication method used for calling the endpoint. + * + * @return the authentication value + */ + public WebActivityAuthentication authentication() { + return this.authentication; + } + + /** + * Set authentication method used for calling the endpoint. + * + * @param authentication the authentication value to set + * @return the WebHookActivity object itself. + */ + public WebHookActivity withAuthentication(WebActivityAuthentication authentication) { + this.authentication = authentication; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/WebHookActivityMethod.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/WebHookActivityMethod.java new file mode 100644 index 0000000000000..93d700d4477f6 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/WebHookActivityMethod.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.v2018_06_01; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for WebHookActivityMethod. + */ +public final class WebHookActivityMethod extends ExpandableStringEnum { + /** Static value POST for WebHookActivityMethod. */ + public static final WebHookActivityMethod POST = fromString("POST"); + + /** + * Creates or finds a WebHookActivityMethod from its string representation. + * @param name a name to look for + * @return the corresponding WebHookActivityMethod + */ + @JsonCreator + public static WebHookActivityMethod fromString(String name) { + return fromString(name, WebHookActivityMethod.class); + } + + /** + * @return known WebHookActivityMethod values + */ + public static Collection values() { + return values(WebHookActivityMethod.class); + } +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/WebLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/WebLinkedService.java new file mode 100644 index 0000000000000..84093880eed85 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.azure.management.datafactory.v2018_06_01.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 web linked service properties. + * + * @return the typeProperties value + */ + public WebLinkedServiceTypeProperties typeProperties() { + return this.typeProperties; + } + + /** + * Set web linked service properties. + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/WebLinkedServiceTypeProperties.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/WebLinkedServiceTypeProperties.java new file mode 100644 index 0000000000000..5d0e15943f8ae --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 of the web service endpoint, e.g. http://www.microsoft.com . Type: string (or Expression with resultType string). + * + * @return the url value + */ + public Object url() { + return this.url; + } + + /** + * Set the URL of the web service endpoint, e.g. http://www.microsoft.com . Type: string (or Expression with resultType string). + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/WebSource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/WebSource.java new file mode 100644 index 0000000000000..2721e739e72c2 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/WebTableDataset.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/WebTableDataset.java new file mode 100644 index 0000000000000..dcfa31c13b900 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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 zero-based index of the table in the web page. Type: integer (or Expression with resultType integer), minimum: 0. + * + * @return the index value + */ + public Object index() { + return this.index; + } + + /** + * Set the zero-based index of the table in the web page. Type: integer (or Expression with resultType integer), minimum: 0. + * + * @param index the index value to set + * @return the WebTableDataset object itself. + */ + public WebTableDataset withIndex(Object index) { + this.index = index; + return this; + } + + /** + * Get the relative URL to the web page from the linked service URL. Type: string (or Expression with resultType string). + * + * @return the path value + */ + public Object path() { + return this.path; + } + + /** + * Set the relative URL to the web page from the linked service URL. Type: string (or Expression with resultType string). + * + * @param path the path value to set + * @return the WebTableDataset object itself. + */ + public WebTableDataset withPath(Object path) { + this.path = path; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/XeroLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/XeroLinkedService.java new file mode 100644 index 0000000000000..5a422ba5d3322 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/XeroLinkedService.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.LinkedServiceInner; + +/** + * Xero Service 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 endpoint of the Xero server. (i.e. api.xero.com). + * + * @return the host value + */ + public Object host() { + return this.host; + } + + /** + * Set the endpoint of the Xero server. (i.e. api.xero.com). + * + * @param host the host value to set + * @return the XeroLinkedService object itself. + */ + public XeroLinkedService withHost(Object host) { + this.host = host; + return this; + } + + /** + * Get the consumer key associated with the Xero application. + * + * @return the consumerKey value + */ + public SecretBase consumerKey() { + return this.consumerKey; + } + + /** + * Set the consumer key associated with the Xero application. + * + * @param consumerKey the consumerKey value to set + * @return the XeroLinkedService object itself. + */ + public XeroLinkedService withConsumerKey(SecretBase consumerKey) { + this.consumerKey = consumerKey; + return this; + } + + /** + * Get the private key from the .pem file that was generated for your Xero private application. You must include all the text from the .pem file, including the Unix line endings( + ). + * + * @return the privateKey value + */ + public SecretBase privateKey() { + return this.privateKey; + } + + /** + * Set the private key from the .pem file that was generated for your Xero private application. You must include all the text from the .pem file, including the Unix line endings( + ). + * + * @param privateKey the privateKey value to set + * @return the XeroLinkedService object itself. + */ + public XeroLinkedService withPrivateKey(SecretBase privateKey) { + this.privateKey = privateKey; + return this; + } + + /** + * Get specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. + * + * @return the useEncryptedEndpoints value + */ + public Object useEncryptedEndpoints() { + return this.useEncryptedEndpoints; + } + + /** + * Set specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. + * + * @param useEncryptedEndpoints the useEncryptedEndpoints value to set + * @return the XeroLinkedService object itself. + */ + public XeroLinkedService withUseEncryptedEndpoints(Object useEncryptedEndpoints) { + this.useEncryptedEndpoints = useEncryptedEndpoints; + return this; + } + + /** + * Get specifies whether to require the host name in the server's certificate to match the host name of the server when connecting over SSL. The default value is true. + * + * @return the useHostVerification value + */ + public Object useHostVerification() { + return this.useHostVerification; + } + + /** + * Set specifies whether to require the host name in the server's certificate to match the host name of the server when connecting over SSL. The default value is true. + * + * @param useHostVerification the useHostVerification value to set + * @return the XeroLinkedService object itself. + */ + public XeroLinkedService withUseHostVerification(Object useHostVerification) { + this.useHostVerification = useHostVerification; + return this; + } + + /** + * Get specifies whether to verify the identity of the server when connecting over SSL. The default value is true. + * + * @return the usePeerVerification value + */ + public Object usePeerVerification() { + return this.usePeerVerification; + } + + /** + * Set specifies whether to verify the identity of the server when connecting over SSL. The default value is true. + * + * @param usePeerVerification the usePeerVerification value to set + * @return the XeroLinkedService object itself. + */ + public XeroLinkedService withUsePeerVerification(Object usePeerVerification) { + this.usePeerVerification = usePeerVerification; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the XeroLinkedService object itself. + */ + public XeroLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/XeroObjectDataset.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/XeroObjectDataset.java new file mode 100644 index 0000000000000..091360b2161ee --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/XeroObjectDataset.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DatasetInner; + +/** + * Xero Service dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("XeroObject") +@JsonFlatten +public class XeroObjectDataset extends DatasetInner { + /** + * The table name. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; + + /** + * Get the table name. Type: string (or Expression with resultType string). + * + * @return the tableName value + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set the table name. Type: string (or Expression with resultType string). + * + * @param tableName the tableName value to set + * @return the XeroObjectDataset object itself. + */ + public XeroObjectDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/XeroSource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/XeroSource.java new file mode 100644 index 0000000000000..e56cb5a1b0708 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Xero Service 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 a query to retrieve data from source. Type: string (or Expression with resultType string). + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set a query to retrieve data from source. Type: string (or Expression with resultType string). + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ZohoLinkedService.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ZohoLinkedService.java new file mode 100644 index 0000000000000..3456ca52e3d87 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.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 of the Zoho server. (i.e. crm.zoho.com/crm/private). + * + * @return the endpoint value + */ + public Object endpoint() { + return this.endpoint; + } + + /** + * Set the endpoint of the Zoho server. (i.e. crm.zoho.com/crm/private). + * + * @param endpoint the endpoint value to set + * @return the ZohoLinkedService object itself. + */ + public ZohoLinkedService withEndpoint(Object endpoint) { + this.endpoint = endpoint; + return this; + } + + /** + * Get the access token for Zoho authentication. + * + * @return the accessToken value + */ + public SecretBase accessToken() { + return this.accessToken; + } + + /** + * Set the access token for Zoho authentication. + * + * @param accessToken the accessToken value to set + * @return the ZohoLinkedService object itself. + */ + public ZohoLinkedService withAccessToken(SecretBase accessToken) { + this.accessToken = accessToken; + return this; + } + + /** + * Get specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. + * + * @return the useEncryptedEndpoints value + */ + public Object useEncryptedEndpoints() { + return this.useEncryptedEndpoints; + } + + /** + * Set specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. + * + * @param useEncryptedEndpoints the useEncryptedEndpoints value to set + * @return the ZohoLinkedService object itself. + */ + public ZohoLinkedService withUseEncryptedEndpoints(Object useEncryptedEndpoints) { + this.useEncryptedEndpoints = useEncryptedEndpoints; + return this; + } + + /** + * Get specifies whether to require the host name in the server's certificate to match the host name of the server when connecting over SSL. The default value is true. + * + * @return the useHostVerification value + */ + public Object useHostVerification() { + return this.useHostVerification; + } + + /** + * Set specifies whether to require the host name in the server's certificate to match the host name of the server when connecting over SSL. The default value is true. + * + * @param useHostVerification the useHostVerification value to set + * @return the ZohoLinkedService object itself. + */ + public ZohoLinkedService withUseHostVerification(Object useHostVerification) { + this.useHostVerification = useHostVerification; + return this; + } + + /** + * Get specifies whether to verify the identity of the server when connecting over SSL. The default value is true. + * + * @return the usePeerVerification value + */ + public Object usePeerVerification() { + return this.usePeerVerification; + } + + /** + * Set specifies whether to verify the identity of the server when connecting over SSL. The default value is true. + * + * @param usePeerVerification the usePeerVerification value to set + * @return the ZohoLinkedService object itself. + */ + public ZohoLinkedService withUsePeerVerification(Object usePeerVerification) { + this.usePeerVerification = usePeerVerification; + return this; + } + + /** + * Get the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set + * @return the ZohoLinkedService object itself. + */ + public ZohoLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ZohoObjectDataset.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ZohoObjectDataset.java new file mode 100644 index 0000000000000..1dbf15699ef03 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ZohoObjectDataset.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.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DatasetInner; + +/** + * Zoho server dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("ZohoObject") +@JsonFlatten +public class ZohoObjectDataset extends DatasetInner { + /** + * The table name. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; + + /** + * Get the table name. Type: string (or Expression with resultType string). + * + * @return the tableName value + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set the table name. Type: string (or Expression with resultType string). + * + * @param tableName the tableName value to set + * @return the ZohoObjectDataset object itself. + */ + public ZohoObjectDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ZohoSource.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/ZohoSource.java new file mode 100644 index 0000000000000..edb31c6cd6b3c --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01; + +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 a query to retrieve data from source. Type: string (or Expression with resultType string). + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set a query to retrieve data from source. Type: string (or Expression with resultType string). + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/AccessPolicyResponseImpl.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/AccessPolicyResponseImpl.java new file mode 100644 index 0000000000000..78bd09c00a677 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/AccessPolicyResponseImpl.java @@ -0,0 +1,42 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01.implementation; + +import com.microsoft.azure.management.datafactory.v2018_06_01.AccessPolicyResponse; +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import com.microsoft.azure.management.datafactory.v2018_06_01.UserAccessPolicy; + +class AccessPolicyResponseImpl extends WrapperImpl implements AccessPolicyResponse { + private final DataFactoryManager manager; + AccessPolicyResponseImpl(AccessPolicyResponseInner inner, DataFactoryManager manager) { + super(inner); + this.manager = manager; + } + + @Override + public DataFactoryManager manager() { + return this.manager; + } + + @Override + public String accessToken() { + return this.inner().accessToken(); + } + + @Override + public String dataPlaneUrl() { + return this.inner().dataPlaneUrl(); + } + + @Override + public UserAccessPolicy policy() { + return this.inner().policy(); + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/AccessPolicyResponseInner.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/AccessPolicyResponseInner.java new file mode 100644 index 0000000000000..9d45bfd8498d2 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/AccessPolicyResponseInner.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.v2018_06_01.implementation; + +import com.microsoft.azure.management.datafactory.v2018_06_01.UserAccessPolicy; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Get Data Plane read only token response definition. + */ +public class AccessPolicyResponseInner { + /** + * The user access policy. + */ + @JsonProperty(value = "policy") + private UserAccessPolicy policy; + + /** + * Data Plane read only access token. + */ + @JsonProperty(value = "accessToken") + private String accessToken; + + /** + * Data Plane service base URL. + */ + @JsonProperty(value = "dataPlaneUrl") + private String dataPlaneUrl; + + /** + * Get the user access policy. + * + * @return the policy value + */ + public UserAccessPolicy policy() { + return this.policy; + } + + /** + * Set the user access policy. + * + * @param policy the policy value to set + * @return the AccessPolicyResponseInner object itself. + */ + public AccessPolicyResponseInner withPolicy(UserAccessPolicy policy) { + this.policy = policy; + return this; + } + + /** + * Get data Plane read only access token. + * + * @return the accessToken value + */ + public String accessToken() { + return this.accessToken; + } + + /** + * Set data Plane read only access token. + * + * @param accessToken the accessToken value to set + * @return the AccessPolicyResponseInner object itself. + */ + public AccessPolicyResponseInner withAccessToken(String accessToken) { + this.accessToken = accessToken; + return this; + } + + /** + * Get data Plane service base URL. + * + * @return the dataPlaneUrl value + */ + public String dataPlaneUrl() { + return this.dataPlaneUrl; + } + + /** + * Set data Plane service base URL. + * + * @param dataPlaneUrl the dataPlaneUrl value to set + * @return the AccessPolicyResponseInner object itself. + */ + public AccessPolicyResponseInner withDataPlaneUrl(String dataPlaneUrl) { + this.dataPlaneUrl = dataPlaneUrl; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/ActivityRunInner.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/ActivityRunInner.java new file mode 100644 index 0000000000000..b5cf779a9a0e3 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01.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 unmatched properties from the message are deserialized this collection. + * + * @return the additionalProperties value + */ + public Map additionalProperties() { + return this.additionalProperties; + } + + /** + * Set unmatched properties from the message are deserialized this collection. + * + * @param additionalProperties the additionalProperties value to set + * @return the ActivityRunInner object itself. + */ + public ActivityRunInner withAdditionalProperties(Map additionalProperties) { + this.additionalProperties = additionalProperties; + return this; + } + + /** + * Get the name of the pipeline. + * + * @return the pipelineName value + */ + public String pipelineName() { + return this.pipelineName; + } + + /** + * Get the id of the pipeline run. + * + * @return the pipelineRunId value + */ + public String pipelineRunId() { + return this.pipelineRunId; + } + + /** + * Get the name of the activity. + * + * @return the activityName value + */ + public String activityName() { + return this.activityName; + } + + /** + * Get the type of the activity. + * + * @return the activityType value + */ + public String activityType() { + return this.activityType; + } + + /** + * Get the id of the activity run. + * + * @return the activityRunId value + */ + public String activityRunId() { + return this.activityRunId; + } + + /** + * Get the name of the compute linked service. + * + * @return the linkedServiceName value + */ + public String linkedServiceName() { + return this.linkedServiceName; + } + + /** + * Get the status of the activity run. + * + * @return the status value + */ + public String status() { + return this.status; + } + + /** + * Get the start time of the activity run in 'ISO 8601' format. + * + * @return the activityRunStart value + */ + public DateTime activityRunStart() { + return this.activityRunStart; + } + + /** + * Get the end time of the activity run in 'ISO 8601' format. + * + * @return the activityRunEnd value + */ + public DateTime activityRunEnd() { + return this.activityRunEnd; + } + + /** + * Get the duration of the activity run. + * + * @return the durationInMs value + */ + public Integer durationInMs() { + return this.durationInMs; + } + + /** + * Get the input for the activity. + * + * @return the input value + */ + public Object input() { + return this.input; + } + + /** + * Get the output for the activity. + * + * @return the output value + */ + public Object output() { + return this.output; + } + + /** + * Get the error if any from the activity run. + * + * @return the error value + */ + public Object error() { + return this.error; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/ActivityRunsImpl.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/ActivityRunsImpl.java new file mode 100644 index 0000000000000..a3a9dc4847669 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/ActivityRunsImpl.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. + * abc + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01.implementation; + +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import com.microsoft.azure.management.datafactory.v2018_06_01.ActivityRuns; +import rx.functions.Func1; +import rx.Observable; +import com.microsoft.azure.management.datafactory.v2018_06_01.ActivityRunsQueryResponse; +import com.microsoft.azure.management.datafactory.v2018_06_01.RunFilterParameters; + +class ActivityRunsImpl extends WrapperImpl implements ActivityRuns { + private final DataFactoryManager manager; + + ActivityRunsImpl(DataFactoryManager manager) { + super(manager.inner().activityRuns()); + this.manager = manager; + } + + public DataFactoryManager manager() { + return this.manager; + } + + @Override + public Observable queryByPipelineRunAsync(String resourceGroupName, String factoryName, String runId, RunFilterParameters filterParameters) { + ActivityRunsInner client = this.inner(); + return client.queryByPipelineRunAsync(resourceGroupName, factoryName, runId, filterParameters) + .map(new Func1() { + @Override + public ActivityRunsQueryResponse call(ActivityRunsQueryResponseInner inner) { + return new ActivityRunsQueryResponseImpl(inner, manager()); + } + }); + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/ActivityRunsInner.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/ActivityRunsInner.java new file mode 100644 index 0000000000000..d65f88bc17602 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/ActivityRunsInner.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.v2018_06_01.implementation; + +import retrofit2.Retrofit; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.CloudException; +import com.microsoft.azure.management.datafactory.v2018_06_01.RunFilterParameters; +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.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 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.v2018_06_01.ActivityRuns queryByPipelineRun" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/pipelineruns/{runId}/queryActivityruns") + Observable> queryByPipelineRun(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("factoryName") String factoryName, @Path("runId") String runId, @Query("api-version") String apiVersion, @Body RunFilterParameters filterParameters, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + } + + /** + * Query 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 filterParameters Parameters to filter the activity runs. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ActivityRunsQueryResponseInner object if successful. + */ + public ActivityRunsQueryResponseInner queryByPipelineRun(String resourceGroupName, String factoryName, String runId, RunFilterParameters filterParameters) { + return queryByPipelineRunWithServiceResponseAsync(resourceGroupName, factoryName, runId, filterParameters).toBlocking().single().body(); + } + + /** + * Query 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 filterParameters Parameters to filter the activity 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 queryByPipelineRunAsync(String resourceGroupName, String factoryName, String runId, RunFilterParameters filterParameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(queryByPipelineRunWithServiceResponseAsync(resourceGroupName, factoryName, runId, filterParameters), serviceCallback); + } + + /** + * Query 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 filterParameters Parameters to filter the activity runs. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ActivityRunsQueryResponseInner object + */ + public Observable queryByPipelineRunAsync(String resourceGroupName, String factoryName, String runId, RunFilterParameters filterParameters) { + return queryByPipelineRunWithServiceResponseAsync(resourceGroupName, factoryName, runId, filterParameters).map(new Func1, ActivityRunsQueryResponseInner>() { + @Override + public ActivityRunsQueryResponseInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Query 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 filterParameters Parameters to filter the activity runs. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ActivityRunsQueryResponseInner object + */ + public Observable> queryByPipelineRunWithServiceResponseAsync(String resourceGroupName, String factoryName, String runId, RunFilterParameters 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 (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 (filterParameters == null) { + throw new IllegalArgumentException("Parameter filterParameters is required and cannot be null."); + } + Validator.validate(filterParameters); + return service.queryByPipelineRun(this.client.subscriptionId(), resourceGroupName, factoryName, runId, this.client.apiVersion(), filterParameters, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = queryByPipelineRunDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse queryByPipelineRunDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/ActivityRunsQueryResponseImpl.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/ActivityRunsQueryResponseImpl.java new file mode 100644 index 0000000000000..1bd2e98a04ed1 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/ActivityRunsQueryResponseImpl.java @@ -0,0 +1,37 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01.implementation; + +import com.microsoft.azure.management.datafactory.v2018_06_01.ActivityRunsQueryResponse; +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import java.util.List; + +class ActivityRunsQueryResponseImpl extends WrapperImpl implements ActivityRunsQueryResponse { + private final DataFactoryManager manager; + ActivityRunsQueryResponseImpl(ActivityRunsQueryResponseInner inner, DataFactoryManager manager) { + super(inner); + this.manager = manager; + } + + @Override + public DataFactoryManager manager() { + return this.manager; + } + + @Override + public String continuationToken() { + return this.inner().continuationToken(); + } + + @Override + public List value() { + return this.inner().value(); + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/ActivityRunsQueryResponseInner.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/ActivityRunsQueryResponseInner.java new file mode 100644 index 0000000000000..05dc4766c8fec --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/ActivityRunsQueryResponseInner.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.v2018_06_01.implementation; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * A list activity runs. + */ +public class ActivityRunsQueryResponseInner { + /** + * List of activity 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 list of activity runs. + * + * @return the value value + */ + public List value() { + return this.value; + } + + /** + * Set list of activity runs. + * + * @param value the value value to set + * @return the ActivityRunsQueryResponseInner object itself. + */ + public ActivityRunsQueryResponseInner withValue(List value) { + this.value = value; + return this; + } + + /** + * Get the continuation token for getting the next page of results, if any remaining results exist, null otherwise. + * + * @return the continuationToken value + */ + public String continuationToken() { + return this.continuationToken; + } + + /** + * Set the continuation token for getting the next page of results, if any remaining results exist, null otherwise. + * + * @param continuationToken the continuationToken value to set + * @return the ActivityRunsQueryResponseInner object itself. + */ + public ActivityRunsQueryResponseInner withContinuationToken(String continuationToken) { + this.continuationToken = continuationToken; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/CreateRunResponseImpl.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/CreateRunResponseImpl.java new file mode 100644 index 0000000000000..bda0599db43b9 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/CreateRunResponseImpl.java @@ -0,0 +1,31 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01.implementation; + +import com.microsoft.azure.management.datafactory.v2018_06_01.CreateRunResponse; +import com.microsoft.azure.arm.model.implementation.WrapperImpl; + +class CreateRunResponseImpl extends WrapperImpl implements CreateRunResponse { + private final DataFactoryManager manager; + CreateRunResponseImpl(CreateRunResponseInner inner, DataFactoryManager manager) { + super(inner); + this.manager = manager; + } + + @Override + public DataFactoryManager manager() { + return this.manager; + } + + @Override + public String runId() { + return this.inner().runId(); + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/CreateRunResponseInner.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/CreateRunResponseInner.java new file mode 100644 index 0000000000000..c2f6e0f64d499 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01.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 identifier of a run. + * + * @return the runId value + */ + public String runId() { + return this.runId; + } + + /** + * Set identifier of a run. + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/DataFactoryManagementClientImpl.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/DataFactoryManagementClientImpl.java new file mode 100644 index 0000000000000..2d8f762b9a0df --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/DataFactoryManagementClientImpl.java @@ -0,0 +1,378 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01.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; + } + + /** The preferred language for the response. */ + private String acceptLanguage; + + /** + * Gets The preferred language for the response. + * + * @return the acceptLanguage value. + */ + public String acceptLanguage() { + return this.acceptLanguage; + } + + /** + * 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; + } + + /** The retry timeout in seconds for Long Running Operations. Default value is 30. */ + private int longRunningOperationRetryTimeout; + + /** + * Gets The retry timeout in seconds for Long Running Operations. Default value is 30. + * + * @return the longRunningOperationRetryTimeout value. + */ + public int longRunningOperationRetryTimeout() { + return this.longRunningOperationRetryTimeout; + } + + /** + * 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; + } + + /** Whether a unique x-ms-client-request-id should be generated. 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 Whether a unique x-ms-client-request-id should be generated. 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 Whether a unique x-ms-client-request-id should be generated. 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 ExposureControlsInner object to access its operations. + */ + private ExposureControlsInner exposureControls; + + /** + * Gets the ExposureControlsInner object to access its operations. + * @return the ExposureControlsInner object. + */ + public ExposureControlsInner exposureControls() { + return this.exposureControls; + } + + /** + * 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 IntegrationRuntimeObjectMetadatasInner object to access its operations. + */ + private IntegrationRuntimeObjectMetadatasInner integrationRuntimeObjectMetadatas; + + /** + * Gets the IntegrationRuntimeObjectMetadatasInner object to access its operations. + * @return the IntegrationRuntimeObjectMetadatasInner object. + */ + public IntegrationRuntimeObjectMetadatasInner integrationRuntimeObjectMetadatas() { + return this.integrationRuntimeObjectMetadatas; + } + + /** + * 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; + } + + /** + * The RerunTriggersInner object to access its operations. + */ + private RerunTriggersInner rerunTriggers; + + /** + * Gets the RerunTriggersInner object to access its operations. + * @return the RerunTriggersInner object. + */ + public RerunTriggersInner rerunTriggers() { + return this.rerunTriggers; + } + + /** + * The TriggerRunsInner object to access its operations. + */ + private TriggerRunsInner triggerRuns; + + /** + * Gets the TriggerRunsInner object to access its operations. + * @return the TriggerRunsInner object. + */ + public TriggerRunsInner triggerRuns() { + return this.triggerRuns; + } + + /** + * 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 = "2018-06-01"; + 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.exposureControls = new ExposureControlsInner(restClient().retrofit(), this); + this.integrationRuntimes = new IntegrationRuntimesInner(restClient().retrofit(), this); + this.integrationRuntimeObjectMetadatas = new IntegrationRuntimeObjectMetadatasInner(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.rerunTriggers = new RerunTriggersInner(restClient().retrofit(), this); + this.triggerRuns = new TriggerRunsInner(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, auto-generated)", super.userAgent(), "DataFactoryManagementClient", "2018-06-01"); + } +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/DataFactoryManager.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/DataFactoryManager.java new file mode 100644 index 0000000000000..ac05e913b22dc --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/DataFactoryManager.java @@ -0,0 +1,255 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01.implementation; + +import com.microsoft.azure.AzureEnvironment; +import com.microsoft.azure.AzureResponseBuilder; +import com.microsoft.azure.credentials.AzureTokenCredentials; +import com.microsoft.azure.management.apigeneration.Beta; +import com.microsoft.azure.management.apigeneration.Beta.SinceVersion; +import com.microsoft.azure.arm.resources.AzureConfigurable; +import com.microsoft.azure.serializer.AzureJacksonAdapter; +import com.microsoft.rest.RestClient; +import com.microsoft.azure.management.datafactory.v2018_06_01.Operations; +import com.microsoft.azure.management.datafactory.v2018_06_01.Factories; +import com.microsoft.azure.management.datafactory.v2018_06_01.ExposureControls; +import com.microsoft.azure.management.datafactory.v2018_06_01.IntegrationRuntimes; +import com.microsoft.azure.management.datafactory.v2018_06_01.IntegrationRuntimeObjectMetadatas; +import com.microsoft.azure.management.datafactory.v2018_06_01.IntegrationRuntimeNodes; +import com.microsoft.azure.management.datafactory.v2018_06_01.LinkedServices; +import com.microsoft.azure.management.datafactory.v2018_06_01.Datasets; +import com.microsoft.azure.management.datafactory.v2018_06_01.Pipelines; +import com.microsoft.azure.management.datafactory.v2018_06_01.PipelineRuns; +import com.microsoft.azure.management.datafactory.v2018_06_01.ActivityRuns; +import com.microsoft.azure.management.datafactory.v2018_06_01.Triggers; +import com.microsoft.azure.management.datafactory.v2018_06_01.RerunTriggers; +import com.microsoft.azure.management.datafactory.v2018_06_01.TriggerRuns; +import com.microsoft.azure.arm.resources.implementation.AzureConfigurableCoreImpl; +import com.microsoft.azure.arm.resources.implementation.ManagerCore; + +/** + * Entry point to Azure DataFactory resource management. + */ +public final class DataFactoryManager extends ManagerCore { + private Operations operations; + private Factories factories; + private ExposureControls exposureControls; + private IntegrationRuntimes integrationRuntimes; + private IntegrationRuntimeObjectMetadatas integrationRuntimeObjectMetadatas; + private IntegrationRuntimeNodes integrationRuntimeNodes; + private LinkedServices linkedServices; + private Datasets datasets; + private Pipelines pipelines; + private PipelineRuns pipelineRuns; + private ActivityRuns activityRuns; + private Triggers triggers; + private RerunTriggers rerunTriggers; + private TriggerRuns triggerRuns; + /** + * Get a Configurable instance that can be used to create DataFactoryManager with optional configuration. + * + * @return the instance allowing configurations + */ + public static Configurable configure() { + return new DataFactoryManager.ConfigurableImpl(); + } + /** + * Creates an instance of DataFactoryManager that exposes DataFactory resource management API entry points. + * + * @param credentials the credentials to use + * @param subscriptionId the subscription UUID + * @return the DataFactoryManager + */ + public static DataFactoryManager authenticate(AzureTokenCredentials credentials, String subscriptionId) { + return new DataFactoryManager(new RestClient.Builder() + .withBaseUrl(credentials.environment(), AzureEnvironment.Endpoint.RESOURCE_MANAGER) + .withCredentials(credentials) + .withSerializerAdapter(new AzureJacksonAdapter()) + .withResponseBuilderFactory(new AzureResponseBuilder.Factory()) + .build(), subscriptionId); + } + /** + * Creates an instance of DataFactoryManager that exposes DataFactory resource management API entry points. + * + * @param restClient the RestClient to be used for API calls. + * @param subscriptionId the subscription UUID + * @return the DataFactoryManager + */ + public static DataFactoryManager authenticate(RestClient restClient, String subscriptionId) { + return new DataFactoryManager(restClient, subscriptionId); + } + /** + * The interface allowing configurations to be set. + */ + public interface Configurable extends AzureConfigurable { + /** + * Creates an instance of DataFactoryManager that exposes DataFactory management API entry points. + * + * @param credentials the credentials to use + * @param subscriptionId the subscription UUID + * @return the interface exposing DataFactory management API entry points that work across subscriptions + */ + DataFactoryManager authenticate(AzureTokenCredentials credentials, String subscriptionId); + } + + /** + * @return Entry point to manage Operations. + */ + public Operations operations() { + if (this.operations == null) { + this.operations = new OperationsImpl(this); + } + return this.operations; + } + + /** + * @return Entry point to manage Factories. + */ + public Factories factories() { + if (this.factories == null) { + this.factories = new FactoriesImpl(this); + } + return this.factories; + } + + /** + * @return Entry point to manage ExposureControls. + */ + public ExposureControls exposureControls() { + if (this.exposureControls == null) { + this.exposureControls = new ExposureControlsImpl(this); + } + return this.exposureControls; + } + + /** + * @return Entry point to manage IntegrationRuntimes. + */ + public IntegrationRuntimes integrationRuntimes() { + if (this.integrationRuntimes == null) { + this.integrationRuntimes = new IntegrationRuntimesImpl(this); + } + return this.integrationRuntimes; + } + + /** + * @return Entry point to manage IntegrationRuntimeObjectMetadatas. + */ + public IntegrationRuntimeObjectMetadatas integrationRuntimeObjectMetadatas() { + if (this.integrationRuntimeObjectMetadatas == null) { + this.integrationRuntimeObjectMetadatas = new IntegrationRuntimeObjectMetadatasImpl(this); + } + return this.integrationRuntimeObjectMetadatas; + } + + /** + * @return Entry point to manage IntegrationRuntimeNodes. + */ + public IntegrationRuntimeNodes integrationRuntimeNodes() { + if (this.integrationRuntimeNodes == null) { + this.integrationRuntimeNodes = new IntegrationRuntimeNodesImpl(this); + } + return this.integrationRuntimeNodes; + } + + /** + * @return Entry point to manage LinkedServices. + */ + public LinkedServices linkedServices() { + if (this.linkedServices == null) { + this.linkedServices = new LinkedServicesImpl(this); + } + return this.linkedServices; + } + + /** + * @return Entry point to manage Datasets. + */ + public Datasets datasets() { + if (this.datasets == null) { + this.datasets = new DatasetsImpl(this); + } + return this.datasets; + } + + /** + * @return Entry point to manage Pipelines. + */ + public Pipelines pipelines() { + if (this.pipelines == null) { + this.pipelines = new PipelinesImpl(this); + } + return this.pipelines; + } + + /** + * @return Entry point to manage PipelineRuns. + */ + public PipelineRuns pipelineRuns() { + if (this.pipelineRuns == null) { + this.pipelineRuns = new PipelineRunsImpl(this); + } + return this.pipelineRuns; + } + + /** + * @return Entry point to manage ActivityRuns. + */ + public ActivityRuns activityRuns() { + if (this.activityRuns == null) { + this.activityRuns = new ActivityRunsImpl(this); + } + return this.activityRuns; + } + + /** + * @return Entry point to manage Triggers. + */ + public Triggers triggers() { + if (this.triggers == null) { + this.triggers = new TriggersImpl(this); + } + return this.triggers; + } + + /** + * @return Entry point to manage RerunTriggers. + */ + public RerunTriggers rerunTriggers() { + if (this.rerunTriggers == null) { + this.rerunTriggers = new RerunTriggersImpl(this); + } + return this.rerunTriggers; + } + + /** + * @return Entry point to manage TriggerRuns. + */ + public TriggerRuns triggerRuns() { + if (this.triggerRuns == null) { + this.triggerRuns = new TriggerRunsImpl(this); + } + return this.triggerRuns; + } + + /** + * The implementation for Configurable interface. + */ + private static final class ConfigurableImpl extends AzureConfigurableCoreImpl implements Configurable { + public DataFactoryManager authenticate(AzureTokenCredentials credentials, String subscriptionId) { + return DataFactoryManager.authenticate(buildRestClient(credentials), subscriptionId); + } + } + private DataFactoryManager(RestClient restClient, String subscriptionId) { + super( + restClient, + subscriptionId, + new DataFactoryManagementClientImpl(restClient).withSubscriptionId(subscriptionId)); + } +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/DatasetInner.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/DatasetInner.java new file mode 100644 index 0000000000000..47aacbd8d6083 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/DatasetInner.java @@ -0,0 +1,320 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01.implementation; + +import java.util.Map; +import com.microsoft.azure.management.datafactory.v2018_06_01.LinkedServiceReference; +import com.microsoft.azure.management.datafactory.v2018_06_01.ParameterSpecification; +import java.util.List; +import com.microsoft.azure.management.datafactory.v2018_06_01.DatasetFolder; +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 = "GoogleAdWordsObject", value = GoogleAdWordsObjectDataset.class), + @JsonSubTypes.Type(name = "AzureDataExplorerTable", value = AzureDataExplorerTableDataset.class), + @JsonSubTypes.Type(name = "OracleServiceCloudObject", value = OracleServiceCloudObjectDataset.class), + @JsonSubTypes.Type(name = "DynamicsAXResource", value = DynamicsAXResourceDataset.class), + @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 = "SapTableResource", value = SapTableResourceDataset.class), + @JsonSubTypes.Type(name = "RestResource", value = RestResourceDataset.class), + @JsonSubTypes.Type(name = "SqlServerTable", value = SqlServerTableDataset.class), + @JsonSubTypes.Type(name = "SapOpenHubTable", value = SapOpenHubTableDataset.class), + @JsonSubTypes.Type(name = "SapHanaTable", value = SapHanaTableDataset.class), + @JsonSubTypes.Type(name = "SapEccResource", value = SapEccResourceDataset.class), + @JsonSubTypes.Type(name = "SapCloudForCustomerResource", value = SapCloudForCustomerResourceDataset.class), + @JsonSubTypes.Type(name = "SalesforceServiceCloudObject", value = SalesforceServiceCloudObjectDataset.class), + @JsonSubTypes.Type(name = "SalesforceObject", value = SalesforceObjectDataset.class), + @JsonSubTypes.Type(name = "MicrosoftAccessTable", value = MicrosoftAccessTableDataset.class), + @JsonSubTypes.Type(name = "PostgreSqlTable", value = PostgreSqlTableDataset.class), + @JsonSubTypes.Type(name = "MySqlTable", value = MySqlTableDataset.class), + @JsonSubTypes.Type(name = "OdbcTable", value = OdbcTableDataset.class), + @JsonSubTypes.Type(name = "InformixTable", value = InformixTableDataset.class), + @JsonSubTypes.Type(name = "RelationalTable", value = RelationalTableDataset.class), + @JsonSubTypes.Type(name = "AzureMySqlTable", value = AzureMySqlTableDataset.class), + @JsonSubTypes.Type(name = "TeradataTable", value = TeradataTableDataset.class), + @JsonSubTypes.Type(name = "OracleTable", value = OracleTableDataset.class), + @JsonSubTypes.Type(name = "ODataResource", value = ODataResourceDataset.class), + @JsonSubTypes.Type(name = "CosmosDbMongoDbApiCollection", value = CosmosDbMongoDbApiCollectionDataset.class), + @JsonSubTypes.Type(name = "MongoDbV2Collection", value = MongoDbV2CollectionDataset.class), + @JsonSubTypes.Type(name = "MongoDbCollection", value = MongoDbCollectionDataset.class), + @JsonSubTypes.Type(name = "FileShare", value = FileShareDataset.class), + @JsonSubTypes.Type(name = "Office365Table", value = Office365Dataset.class), + @JsonSubTypes.Type(name = "AzureBlobFSFile", value = AzureBlobFSDataset.class), + @JsonSubTypes.Type(name = "AzureDataLakeStoreFile", value = AzureDataLakeStoreDataset.class), + @JsonSubTypes.Type(name = "CommonDataServiceForAppsEntity", value = CommonDataServiceForAppsEntityDataset.class), + @JsonSubTypes.Type(name = "DynamicsCrmEntity", value = DynamicsCrmEntityDataset.class), + @JsonSubTypes.Type(name = "DynamicsEntity", value = DynamicsEntityDataset.class), + @JsonSubTypes.Type(name = "DocumentDbCollection", value = DocumentDbCollectionDataset.class), + @JsonSubTypes.Type(name = "CustomDataset", value = CustomDataset.class), + @JsonSubTypes.Type(name = "CassandraTable", value = CassandraTableDataset.class), + @JsonSubTypes.Type(name = "AzureSqlDWTable", value = AzureSqlDWTableDataset.class), + @JsonSubTypes.Type(name = "AzureSqlMITable", value = AzureSqlMITableDataset.class), + @JsonSubTypes.Type(name = "AzureSqlTable", value = AzureSqlTableDataset.class), + @JsonSubTypes.Type(name = "AzureTable", value = AzureTableDataset.class), + @JsonSubTypes.Type(name = "AzureBlob", value = AzureBlobDataset.class), + @JsonSubTypes.Type(name = "Binary", value = BinaryDataset.class), + @JsonSubTypes.Type(name = "DelimitedText", value = DelimitedTextDataset.class), + @JsonSubTypes.Type(name = "Parquet", value = ParquetDataset.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; + + /** + * Columns that define the physical type schema of the dataset. Type: array + * (or Expression with resultType array), itemType: + * DatasetSchemaDataElement. + */ + @JsonProperty(value = "schema") + private Object schema; + + /** + * 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; + + /** + * The folder that this Dataset is in. If not specified, Dataset will + * appear at the root level. + */ + @JsonProperty(value = "folder") + private DatasetFolder folder; + + /** + * Get unmatched properties from the message are deserialized this collection. + * + * @return the additionalProperties value + */ + public Map additionalProperties() { + return this.additionalProperties; + } + + /** + * Set unmatched properties from the message are deserialized this collection. + * + * @param additionalProperties the additionalProperties value to set + * @return the DatasetInner object itself. + */ + public DatasetInner withAdditionalProperties(Map additionalProperties) { + this.additionalProperties = additionalProperties; + return this; + } + + /** + * Get dataset description. + * + * @return the description value + */ + public String description() { + return this.description; + } + + /** + * Set dataset description. + * + * @param description the description value to set + * @return the DatasetInner object itself. + */ + public DatasetInner withDescription(String description) { + this.description = description; + return this; + } + + /** + * Get columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + * + * @return the structure value + */ + public Object structure() { + return this.structure; + } + + /** + * Set columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + * + * @param structure the structure value to set + * @return the DatasetInner object itself. + */ + public DatasetInner withStructure(Object structure) { + this.structure = structure; + return this; + } + + /** + * Get columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + * + * @return the schema value + */ + public Object schema() { + return this.schema; + } + + /** + * Set columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + * + * @param schema the schema value to set + * @return the DatasetInner object itself. + */ + public DatasetInner withSchema(Object schema) { + this.schema = schema; + return this; + } + + /** + * Get linked service reference. + * + * @return the linkedServiceName value + */ + public LinkedServiceReference linkedServiceName() { + return this.linkedServiceName; + } + + /** + * Set linked service reference. + * + * @param linkedServiceName the linkedServiceName value to set + * @return the DatasetInner object itself. + */ + public DatasetInner withLinkedServiceName(LinkedServiceReference linkedServiceName) { + this.linkedServiceName = linkedServiceName; + return this; + } + + /** + * Get parameters for dataset. + * + * @return the parameters value + */ + public Map parameters() { + return this.parameters; + } + + /** + * Set parameters for dataset. + * + * @param parameters the parameters value to set + * @return the DatasetInner object itself. + */ + public DatasetInner withParameters(Map parameters) { + this.parameters = parameters; + return this; + } + + /** + * Get list of tags that can be used for describing the Dataset. + * + * @return the annotations value + */ + public List annotations() { + return this.annotations; + } + + /** + * Set list of tags that can be used for describing the Dataset. + * + * @param annotations the annotations value to set + * @return the DatasetInner object itself. + */ + public DatasetInner withAnnotations(List annotations) { + this.annotations = annotations; + return this; + } + + /** + * Get the folder that this Dataset is in. If not specified, Dataset will appear at the root level. + * + * @return the folder value + */ + public DatasetFolder folder() { + return this.folder; + } + + /** + * Set the folder that this Dataset is in. If not specified, Dataset will appear at the root level. + * + * @param folder the folder value to set + * @return the DatasetInner object itself. + */ + public DatasetInner withFolder(DatasetFolder folder) { + this.folder = folder; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/DatasetResourceImpl.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/DatasetResourceImpl.java new file mode 100644 index 0000000000000..69c2e730d8986 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/DatasetResourceImpl.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.v2018_06_01.implementation; + +import com.microsoft.azure.management.datafactory.v2018_06_01.DatasetResource; +import com.microsoft.azure.arm.model.implementation.CreatableUpdatableImpl; +import rx.Observable; +import java.util.Map; +import com.microsoft.azure.management.datafactory.v2018_06_01.LinkedServiceReference; +import com.microsoft.azure.management.datafactory.v2018_06_01.ParameterSpecification; +import java.util.List; +import com.microsoft.azure.management.datafactory.v2018_06_01.DatasetFolder; +import com.microsoft.azure.management.datafactory.v2018_06_01.; +import rx.functions.Func1; + +class DatasetResourceImpl extends CreatableUpdatableImpl implements DatasetResource, DatasetResource.Definition, DatasetResource.Update { + private final DataFactoryManager manager; + private String resourceGroupName; + private String factoryName; + private String datasetName; + private String cifMatch; + private DatasetInner cproperties; + private String uifMatch; + private DatasetInner uproperties; + + DatasetResourceImpl(String name, DataFactoryManager manager) { + super(name, new DatasetResourceInner()); + this.manager = manager; + // Set resource name + this.datasetName = name; + // + this.cproperties = new DatasetInner(); + this.uproperties = new DatasetInner(); + } + + DatasetResourceImpl(DatasetResourceInner inner, DataFactoryManager manager) { + super(inner.name(), inner); + this.manager = manager; + // Set resource name + this.datasetName = inner.name(); + // set resource ancestor and positional variables + this.resourceGroupName = IdParsingUtils.getValueFromIdByName(inner.id(), "resourceGroups"); + this.factoryName = IdParsingUtils.getValueFromIdByName(inner.id(), "factories"); + this.datasetName = IdParsingUtils.getValueFromIdByName(inner.id(), "datasets"); + // + this.cproperties = new DatasetInner(); + this.uproperties = new DatasetInner(); + } + + @Override + public DataFactoryManager manager() { + return this.manager; + } + + @Override + public Observable createResourceAsync() { + DatasetsInner client = this.manager().inner().datasets(); + return client.createOrUpdateAsync(this.resourceGroupName, this.factoryName, this.datasetName, this.cproperties, this.cifMatch) + .map(new Func1() { + @Override + public DatasetResourceInner call(DatasetResourceInner resource) { + resetCreateUpdateParameters(); + return resource; + } + }) + .map(innerToFluentMap(this)); + } + + @Override + public Observable updateResourceAsync() { + DatasetsInner client = this.manager().inner().datasets(); + return client.createOrUpdateAsync(this.resourceGroupName, this.factoryName, this.datasetName, this.uproperties, this.uifMatch) + .map(new Func1() { + @Override + public DatasetResourceInner call(DatasetResourceInner resource) { + resetCreateUpdateParameters(); + return resource; + } + }) + .map(innerToFluentMap(this)); + } + + @Override + protected Observable getInnerAsync() { + DatasetsInner client = this.manager().inner().datasets(); + return client.getAsync(this.resourceGroupName, this.factoryName, this.datasetName); + } + + @Override + public boolean isInCreateMode() { + return this.inner().id() == null; + } + + private void resetCreateUpdateParameters() { + this.cproperties = new DatasetInner(); + this.uproperties = new DatasetInner(); + } + + @Override + public String etag() { + return this.inner().etag(); + } + + @Override + public String id() { + return this.inner().id(); + } + + @Override + public String name() { + return this.inner().name(); + } + + @Override + public DatasetInner properties() { + return this.inner().properties(); + } + + @Override + public String type() { + return this.inner().type(); + } + + @Override + public DatasetResourceImpl withExistingFactory(String resourceGroupName, String factoryName) { + this.resourceGroupName = resourceGroupName; + this.factoryName = factoryName; + return this; + } + + @Override + public DatasetResourceImpl withIfMatch(String ifMatch) { + if (isInCreateMode()) { + this.cifMatch = ifMatch; + } else { + this.uifMatch = ifMatch; + } + return this; + } + + @Override + public DatasetResourceImpl withProperties(DatasetInner properties) { + if (isInCreateMode()) { + this.cproperties = properties; + } else { + this.uproperties = properties; + } + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/DatasetResourceInner.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/DatasetResourceInner.java new file mode 100644 index 0000000000000..a9d92b3a93855 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/DatasetResourceInner.java @@ -0,0 +1,89 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01.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; + + /** + * The resource name. + */ + @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY) + private String name; + + /** + * The resource type. + */ + @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY) + private String type; + + /** + * Etag identifies change in the resource. + */ + @JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY) + private String etag; + + /** + * Get dataset properties. + * + * @return the properties value + */ + public DatasetInner properties() { + return this.properties; + } + + /** + * Set dataset properties. + * + * @param properties the properties value to set + * @return the DatasetResourceInner object itself. + */ + public DatasetResourceInner withProperties(DatasetInner properties) { + this.properties = properties; + return this; + } + + /** + * Get the resource name. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Get the resource type. + * + * @return the type value + */ + public String type() { + return this.type; + } + + /** + * Get etag identifies change in the resource. + * + * @return the etag value + */ + public String etag() { + return this.etag; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/DatasetsImpl.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/DatasetsImpl.java new file mode 100644 index 0000000000000..c223594c54350 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/DatasetsImpl.java @@ -0,0 +1,81 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01.implementation; + +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import com.microsoft.azure.management.datafactory.v2018_06_01.Datasets; +import rx.Completable; +import rx.Observable; +import rx.functions.Func1; +import com.microsoft.azure.Page; +import com.microsoft.azure.management.datafactory.v2018_06_01.DatasetResource; + +class DatasetsImpl extends WrapperImpl implements Datasets { + private final DataFactoryManager manager; + + DatasetsImpl(DataFactoryManager manager) { + super(manager.inner().datasets()); + this.manager = manager; + } + + public DataFactoryManager manager() { + return this.manager; + } + + @Override + public DatasetResourceImpl define(String name) { + return wrapModel(name); + } + + private DatasetResourceImpl wrapModel(DatasetResourceInner inner) { + return new DatasetResourceImpl(inner, manager()); + } + + private DatasetResourceImpl wrapModel(String name) { + return new DatasetResourceImpl(name, this.manager()); + } + + @Override + public Observable listByFactoryAsync(final String resourceGroupName, final String factoryName) { + DatasetsInner client = this.inner(); + return client.listByFactoryAsync(resourceGroupName, factoryName) + .flatMapIterable(new Func1, Iterable>() { + @Override + public Iterable call(Page page) { + return page.items(); + } + }) + .map(new Func1() { + @Override + public DatasetResource call(DatasetResourceInner inner) { + return wrapModel(inner); + } + }); + } + + @Override + public Observable getAsync(String resourceGroupName, String factoryName, String datasetName) { + DatasetsInner client = this.inner(); + return client.getAsync(resourceGroupName, factoryName, datasetName) + .map(new Func1() { + @Override + public DatasetResource call(DatasetResourceInner inner) { + return wrapModel(inner); + } + }); + } + + @Override + public Completable deleteAsync(String resourceGroupName, String factoryName, String datasetName) { + DatasetsInner client = this.inner(); + return client.deleteAsync(resourceGroupName, factoryName, datasetName).toCompletable(); + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/DatasetsInner.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/DatasetsInner.java new file mode 100644 index 0000000000000..978be7b358f73 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/DatasetsInner.java @@ -0,0 +1,802 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01.implementation; + +import retrofit2.Retrofit; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.AzureServiceFuture; +import com.microsoft.azure.CloudException; +import com.microsoft.azure.ListOperationCallback; +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.v2018_06_01.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.v2018_06_01.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.v2018_06_01.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("If-None-Match") String ifNoneMatch, @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.v2018_06_01.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.v2018_06_01.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 CloudException 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 CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(CloudException.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 CloudException 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 CloudException 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 CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.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 CloudException 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."); + } + final String ifNoneMatch = null; + return service.get(this.client.subscriptionId(), resourceGroupName, factoryName, datasetName, this.client.apiVersion(), ifNoneMatch, 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); + } + } + }); + } + + /** + * Gets a dataset. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param datasetName The dataset name. + * @param ifNoneMatch ETag of the dataset entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was provided, then no content will be returned. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException 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, String ifNoneMatch) { + return getWithServiceResponseAsync(resourceGroupName, factoryName, datasetName, ifNoneMatch).toBlocking().single().body(); + } + + /** + * Gets a dataset. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param datasetName The dataset name. + * @param ifNoneMatch ETag of the dataset entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was provided, then no content will be returned. + * @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, String ifNoneMatch, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getWithServiceResponseAsync(resourceGroupName, factoryName, datasetName, ifNoneMatch), serviceCallback); + } + + /** + * Gets a dataset. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param datasetName The dataset name. + * @param ifNoneMatch ETag of the dataset entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was provided, then no content will be returned. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the DatasetResourceInner object + */ + public Observable getAsync(String resourceGroupName, String factoryName, String datasetName, String ifNoneMatch) { + return getWithServiceResponseAsync(resourceGroupName, factoryName, datasetName, ifNoneMatch).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. + * @param ifNoneMatch ETag of the dataset entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was provided, then no content will be returned. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the DatasetResourceInner object + */ + public Observable> getWithServiceResponseAsync(String resourceGroupName, String factoryName, String datasetName, String ifNoneMatch) { + 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(), ifNoneMatch, 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 CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(304, new TypeToken() { }.getType()) + .registerError(CloudException.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 CloudException 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 CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(204, new TypeToken() { }.getType()) + .registerError(CloudException.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 CloudException 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 CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/ExposureControlResponseImpl.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/ExposureControlResponseImpl.java new file mode 100644 index 0000000000000..639ff65b76b22 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/ExposureControlResponseImpl.java @@ -0,0 +1,36 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01.implementation; + +import com.microsoft.azure.management.datafactory.v2018_06_01.ExposureControlResponse; +import com.microsoft.azure.arm.model.implementation.WrapperImpl; + +class ExposureControlResponseImpl extends WrapperImpl implements ExposureControlResponse { + private final DataFactoryManager manager; + ExposureControlResponseImpl(ExposureControlResponseInner inner, DataFactoryManager manager) { + super(inner); + this.manager = manager; + } + + @Override + public DataFactoryManager manager() { + return this.manager; + } + + @Override + public String featureName() { + return this.inner().featureName(); + } + + @Override + public String value() { + return this.inner().value(); + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/ExposureControlResponseInner.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/ExposureControlResponseInner.java new file mode 100644 index 0000000000000..d5f51a0c4f205 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/ExposureControlResponseInner.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.v2018_06_01.implementation; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The exposure control response. + */ +public class ExposureControlResponseInner { + /** + * The feature name. + */ + @JsonProperty(value = "featureName", access = JsonProperty.Access.WRITE_ONLY) + private String featureName; + + /** + * The feature value. + */ + @JsonProperty(value = "value", access = JsonProperty.Access.WRITE_ONLY) + private String value; + + /** + * Get the feature name. + * + * @return the featureName value + */ + public String featureName() { + return this.featureName; + } + + /** + * Get the feature value. + * + * @return the value value + */ + public String value() { + return this.value; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/ExposureControlsImpl.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/ExposureControlsImpl.java new file mode 100644 index 0000000000000..f961241a30fd9 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/ExposureControlsImpl.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. + * abc + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01.implementation; + +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import com.microsoft.azure.management.datafactory.v2018_06_01.ExposureControls; +import rx.functions.Func1; +import rx.Observable; +import com.microsoft.azure.management.datafactory.v2018_06_01.ExposureControlResponse; +import com.microsoft.azure.management.datafactory.v2018_06_01.ExposureControlRequest; + +class ExposureControlsImpl extends WrapperImpl implements ExposureControls { + private final DataFactoryManager manager; + + ExposureControlsImpl(DataFactoryManager manager) { + super(manager.inner().exposureControls()); + this.manager = manager; + } + + public DataFactoryManager manager() { + return this.manager; + } + + @Override + public Observable getFeatureValueAsync(String locationId, ExposureControlRequest exposureControlRequest) { + ExposureControlsInner client = this.inner(); + return client.getFeatureValueAsync(locationId, exposureControlRequest) + .map(new Func1() { + @Override + public ExposureControlResponse call(ExposureControlResponseInner inner) { + return new ExposureControlResponseImpl(inner, manager()); + } + }); + } + + @Override + public Observable getFeatureValueByFactoryAsync(String resourceGroupName, String factoryName, ExposureControlRequest exposureControlRequest) { + ExposureControlsInner client = this.inner(); + return client.getFeatureValueByFactoryAsync(resourceGroupName, factoryName, exposureControlRequest) + .map(new Func1() { + @Override + public ExposureControlResponse call(ExposureControlResponseInner inner) { + return new ExposureControlResponseImpl(inner, manager()); + } + }); + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/ExposureControlsInner.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/ExposureControlsInner.java new file mode 100644 index 0000000000000..1480ebb6a0067 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/ExposureControlsInner.java @@ -0,0 +1,248 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01.implementation; + +import retrofit2.Retrofit; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.CloudException; +import com.microsoft.azure.management.datafactory.v2018_06_01.ExposureControlRequest; +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.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 ExposureControls. + */ +public class ExposureControlsInner { + /** The Retrofit service to perform REST calls. */ + private ExposureControlsService service; + /** The service client containing this operation class. */ + private DataFactoryManagementClientImpl client; + + /** + * Initializes an instance of ExposureControlsInner. + * + * @param retrofit the Retrofit instance built from a Retrofit Builder. + * @param client the instance of the service client containing this operation class. + */ + public ExposureControlsInner(Retrofit retrofit, DataFactoryManagementClientImpl client) { + this.service = retrofit.create(ExposureControlsService.class); + this.client = client; + } + + /** + * The interface defining all the services for ExposureControls to be + * used by Retrofit to perform actually REST calls. + */ + interface ExposureControlsService { + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.datafactory.v2018_06_01.ExposureControls getFeatureValue" }) + @POST("subscriptions/{subscriptionId}/providers/Microsoft.DataFactory/locations/{locationId}/getFeatureValue") + Observable> getFeatureValue(@Path("subscriptionId") String subscriptionId, @Path("locationId") String locationId, @Query("api-version") String apiVersion, @Body ExposureControlRequest exposureControlRequest, @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.v2018_06_01.ExposureControls getFeatureValueByFactory" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/getFeatureValue") + Observable> getFeatureValueByFactory(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("factoryName") String factoryName, @Query("api-version") String apiVersion, @Body ExposureControlRequest exposureControlRequest, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + } + + /** + * Get exposure control feature for specific location. + * + * @param locationId The location identifier. + * @param exposureControlRequest The exposure control request. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ExposureControlResponseInner object if successful. + */ + public ExposureControlResponseInner getFeatureValue(String locationId, ExposureControlRequest exposureControlRequest) { + return getFeatureValueWithServiceResponseAsync(locationId, exposureControlRequest).toBlocking().single().body(); + } + + /** + * Get exposure control feature for specific location. + * + * @param locationId The location identifier. + * @param exposureControlRequest The exposure control request. + * @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 getFeatureValueAsync(String locationId, ExposureControlRequest exposureControlRequest, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getFeatureValueWithServiceResponseAsync(locationId, exposureControlRequest), serviceCallback); + } + + /** + * Get exposure control feature for specific location. + * + * @param locationId The location identifier. + * @param exposureControlRequest The exposure control request. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ExposureControlResponseInner object + */ + public Observable getFeatureValueAsync(String locationId, ExposureControlRequest exposureControlRequest) { + return getFeatureValueWithServiceResponseAsync(locationId, exposureControlRequest).map(new Func1, ExposureControlResponseInner>() { + @Override + public ExposureControlResponseInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Get exposure control feature for specific location. + * + * @param locationId The location identifier. + * @param exposureControlRequest The exposure control request. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ExposureControlResponseInner object + */ + public Observable> getFeatureValueWithServiceResponseAsync(String locationId, ExposureControlRequest exposureControlRequest) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (locationId == null) { + throw new IllegalArgumentException("Parameter locationId 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 (exposureControlRequest == null) { + throw new IllegalArgumentException("Parameter exposureControlRequest is required and cannot be null."); + } + Validator.validate(exposureControlRequest); + return service.getFeatureValue(this.client.subscriptionId(), locationId, this.client.apiVersion(), exposureControlRequest, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getFeatureValueDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getFeatureValueDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Get exposure control feature for specific factory. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param exposureControlRequest The exposure control request. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ExposureControlResponseInner object if successful. + */ + public ExposureControlResponseInner getFeatureValueByFactory(String resourceGroupName, String factoryName, ExposureControlRequest exposureControlRequest) { + return getFeatureValueByFactoryWithServiceResponseAsync(resourceGroupName, factoryName, exposureControlRequest).toBlocking().single().body(); + } + + /** + * Get exposure control feature for specific factory. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param exposureControlRequest The exposure control request. + * @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 getFeatureValueByFactoryAsync(String resourceGroupName, String factoryName, ExposureControlRequest exposureControlRequest, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getFeatureValueByFactoryWithServiceResponseAsync(resourceGroupName, factoryName, exposureControlRequest), serviceCallback); + } + + /** + * Get exposure control feature for specific factory. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param exposureControlRequest The exposure control request. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ExposureControlResponseInner object + */ + public Observable getFeatureValueByFactoryAsync(String resourceGroupName, String factoryName, ExposureControlRequest exposureControlRequest) { + return getFeatureValueByFactoryWithServiceResponseAsync(resourceGroupName, factoryName, exposureControlRequest).map(new Func1, ExposureControlResponseInner>() { + @Override + public ExposureControlResponseInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Get exposure control feature for specific factory. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param exposureControlRequest The exposure control request. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ExposureControlResponseInner object + */ + public Observable> getFeatureValueByFactoryWithServiceResponseAsync(String resourceGroupName, String factoryName, ExposureControlRequest exposureControlRequest) { + 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 (exposureControlRequest == null) { + throw new IllegalArgumentException("Parameter exposureControlRequest is required and cannot be null."); + } + Validator.validate(exposureControlRequest); + return service.getFeatureValueByFactory(this.client.subscriptionId(), resourceGroupName, factoryName, this.client.apiVersion(), exposureControlRequest, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getFeatureValueByFactoryDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getFeatureValueByFactoryDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/FactoriesImpl.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/FactoriesImpl.java new file mode 100644 index 0000000000000..349ac18ea31a3 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/FactoriesImpl.java @@ -0,0 +1,179 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * def + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01.implementation; + +import com.microsoft.azure.arm.resources.collection.implementation.GroupableResourcesCoreImpl; +import com.microsoft.azure.management.datafactory.v2018_06_01.Factories; +import com.microsoft.azure.management.datafactory.v2018_06_01.Factory; +import rx.Observable; +import rx.Completable; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collection; +import com.microsoft.azure.arm.resources.ResourceUtilsCore; +import com.microsoft.azure.arm.utils.RXMapper; +import rx.functions.Func1; +import com.microsoft.azure.PagedList; +import com.microsoft.azure.Page; +import com.microsoft.azure.management.datafactory.v2018_06_01.GitHubAccessTokenResponse; +import com.microsoft.azure.management.datafactory.v2018_06_01.AccessPolicyResponse; +import com.microsoft.azure.management.datafactory.v2018_06_01.GitHubAccessTokenRequest; +import com.microsoft.azure.management.datafactory.v2018_06_01.UserAccessPolicy; +import com.microsoft.azure.management.datafactory.v2018_06_01.FactoryRepoUpdate; + +class FactoriesImpl extends GroupableResourcesCoreImpl implements Factories { + protected FactoriesImpl(DataFactoryManager manager) { + super(manager.inner().factories(), manager); + } + + @Override + protected Observable getInnerAsync(String resourceGroupName, String name) { + FactoriesInner client = this.inner(); + return client.getByResourceGroupAsync(resourceGroupName, name); + } + + @Override + protected Completable deleteInnerAsync(String resourceGroupName, String name) { + FactoriesInner client = this.inner(); + return client.deleteAsync(resourceGroupName, name).toCompletable(); + } + + @Override + public Observable deleteByIdsAsync(Collection ids) { + if (ids == null || ids.isEmpty()) { + return Observable.empty(); + } + Collection> observables = new ArrayList<>(); + for (String id : ids) { + final String resourceGroupName = ResourceUtilsCore.groupFromResourceId(id); + final String name = ResourceUtilsCore.nameFromResourceId(id); + Observable o = RXMapper.map(this.inner().deleteAsync(resourceGroupName, name), id); + observables.add(o); + } + return Observable.mergeDelayError(observables); + } + + @Override + public Observable deleteByIdsAsync(String...ids) { + return this.deleteByIdsAsync(new ArrayList(Arrays.asList(ids))); + } + + @Override + public void deleteByIds(Collection ids) { + if (ids != null && !ids.isEmpty()) { + this.deleteByIdsAsync(ids).toBlocking().last(); + } + } + + @Override + public void deleteByIds(String...ids) { + this.deleteByIds(new ArrayList(Arrays.asList(ids))); + } + + @Override + public PagedList listByResourceGroup(String resourceGroupName) { + FactoriesInner client = this.inner(); + return this.wrapList(client.listByResourceGroup(resourceGroupName)); + } + + @Override + public Observable listByResourceGroupAsync(String resourceGroupName) { + FactoriesInner client = this.inner(); + return client.listByResourceGroupAsync(resourceGroupName) + .flatMapIterable(new Func1, Iterable>() { + @Override + public Iterable call(Page page) { + return page.items(); + } + }) + .map(new Func1() { + @Override + public Factory call(FactoryInner inner) { + return wrapModel(inner); + } + }); + } + + @Override + public PagedList list() { + FactoriesInner client = this.inner(); + return this.wrapList(client.list()); + } + + @Override + public Observable listAsync() { + FactoriesInner client = this.inner(); + return client.listAsync() + .flatMapIterable(new Func1, Iterable>() { + @Override + public Iterable call(Page page) { + return page.items(); + } + }) + .map(new Func1() { + @Override + public Factory call(FactoryInner inner) { + return wrapModel(inner); + } + }); + } + + @Override + public FactoryImpl define(String name) { + return wrapModel(name); + } + + @Override + public Observable getGitHubAccessTokenAsync(String resourceGroupName, String factoryName, GitHubAccessTokenRequest gitHubAccessTokenRequest) { + FactoriesInner client = this.inner(); + return client.getGitHubAccessTokenAsync(resourceGroupName, factoryName, gitHubAccessTokenRequest) + .map(new Func1() { + @Override + public GitHubAccessTokenResponse call(GitHubAccessTokenResponseInner inner) { + return new GitHubAccessTokenResponseImpl(inner, manager()); + } + }); + } + + @Override + public Observable getDataPlaneAccessAsync(String resourceGroupName, String factoryName, UserAccessPolicy policy) { + FactoriesInner client = this.inner(); + return client.getDataPlaneAccessAsync(resourceGroupName, factoryName, policy) + .map(new Func1() { + @Override + public AccessPolicyResponse call(AccessPolicyResponseInner inner) { + return new AccessPolicyResponseImpl(inner, manager()); + } + }); + } + + @Override + protected FactoryImpl wrapModel(FactoryInner inner) { + return new FactoryImpl(inner.name(), inner, manager()); + } + + @Override + protected FactoryImpl wrapModel(String name) { + return new FactoryImpl(name, new FactoryInner(), this.manager()); + } + + @Override + public Observable configureFactoryRepoAsync(String locationId, FactoryRepoUpdate factoryRepoUpdate) { + FactoriesInner client = this.inner(); + return client.configureFactoryRepoAsync(locationId, factoryRepoUpdate) + .map(new Func1() { + @Override + public Factory call(FactoryInner inner) { + return new FactoryImpl(inner.name(), inner, manager()); + } + }); + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/FactoriesInner.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/FactoriesInner.java new file mode 100644 index 0000000000000..e24e9914e0278 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/FactoriesInner.java @@ -0,0 +1,1375 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01.implementation; + +import com.microsoft.azure.arm.collection.InnerSupportsGet; +import com.microsoft.azure.arm.collection.InnerSupportsDelete; +import com.microsoft.azure.arm.collection.InnerSupportsListing; +import retrofit2.Retrofit; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.AzureServiceFuture; +import com.microsoft.azure.CloudException; +import com.microsoft.azure.ListOperationCallback; +import com.microsoft.azure.management.datafactory.v2018_06_01.FactoryRepoUpdate; +import com.microsoft.azure.management.datafactory.v2018_06_01.FactoryUpdateParameters; +import com.microsoft.azure.management.datafactory.v2018_06_01.GitHubAccessTokenRequest; +import com.microsoft.azure.management.datafactory.v2018_06_01.UserAccessPolicy; +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.v2018_06_01.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.v2018_06_01.Factories configureFactoryRepo" }) + @POST("subscriptions/{subscriptionId}/providers/Microsoft.DataFactory/locations/{locationId}/configureFactoryRepo") + Observable> configureFactoryRepo(@Path("subscriptionId") String subscriptionId, @Path("locationId") String locationId, @Query("api-version") String apiVersion, @Body FactoryRepoUpdate factoryRepoUpdate, @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.v2018_06_01.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.v2018_06_01.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("If-Match") String ifMatch, @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.v2018_06_01.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 FactoryUpdateParameters 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.v2018_06_01.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("If-None-Match") String ifNoneMatch, @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.v2018_06_01.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.v2018_06_01.Factories getGitHubAccessToken" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/getGitHubAccessToken") + Observable> getGitHubAccessToken(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("factoryName") String factoryName, @Query("api-version") String apiVersion, @Body GitHubAccessTokenRequest gitHubAccessTokenRequest, @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.v2018_06_01.Factories getDataPlaneAccess" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/getDataPlaneAccess") + Observable> getDataPlaneAccess(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("factoryName") String factoryName, @Query("api-version") String apiVersion, @Body UserAccessPolicy policy, @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.v2018_06_01.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.v2018_06_01.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 CloudException 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 CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Updates a factory's repo information. + * + * @param locationId The location identifier. + * @param factoryRepoUpdate Update factory repo request definition. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException 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 configureFactoryRepo(String locationId, FactoryRepoUpdate factoryRepoUpdate) { + return configureFactoryRepoWithServiceResponseAsync(locationId, factoryRepoUpdate).toBlocking().single().body(); + } + + /** + * Updates a factory's repo information. + * + * @param locationId The location identifier. + * @param factoryRepoUpdate Update factory repo request 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 configureFactoryRepoAsync(String locationId, FactoryRepoUpdate factoryRepoUpdate, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(configureFactoryRepoWithServiceResponseAsync(locationId, factoryRepoUpdate), serviceCallback); + } + + /** + * Updates a factory's repo information. + * + * @param locationId The location identifier. + * @param factoryRepoUpdate Update factory repo request definition. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the FactoryInner object + */ + public Observable configureFactoryRepoAsync(String locationId, FactoryRepoUpdate factoryRepoUpdate) { + return configureFactoryRepoWithServiceResponseAsync(locationId, factoryRepoUpdate).map(new Func1, FactoryInner>() { + @Override + public FactoryInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Updates a factory's repo information. + * + * @param locationId The location identifier. + * @param factoryRepoUpdate Update factory repo request definition. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the FactoryInner object + */ + public Observable> configureFactoryRepoWithServiceResponseAsync(String locationId, FactoryRepoUpdate factoryRepoUpdate) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (locationId == null) { + throw new IllegalArgumentException("Parameter locationId 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 (factoryRepoUpdate == null) { + throw new IllegalArgumentException("Parameter factoryRepoUpdate is required and cannot be null."); + } + Validator.validate(factoryRepoUpdate); + return service.configureFactoryRepo(this.client.subscriptionId(), locationId, this.client.apiVersion(), factoryRepoUpdate, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = configureFactoryRepoDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse configureFactoryRepoDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Lists factories. + * + * @param resourceGroupName The resource group name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException 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 CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(CloudException.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 CloudException 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); + final String ifMatch = null; + return service.createOrUpdate(this.client.subscriptionId(), resourceGroupName, factoryName, this.client.apiVersion(), factory, ifMatch, 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 factory. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param factory Factory resource definition. + * @param ifMatch ETag of the factory 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 CloudException 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, String ifMatch) { + return createOrUpdateWithServiceResponseAsync(resourceGroupName, factoryName, factory, ifMatch).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 ifMatch ETag of the factory 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, FactoryInner factory, String ifMatch, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createOrUpdateWithServiceResponseAsync(resourceGroupName, factoryName, factory, ifMatch), serviceCallback); + } + + /** + * Creates or updates a factory. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param factory Factory resource definition. + * @param ifMatch ETag of the factory 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 FactoryInner object + */ + public Observable createOrUpdateAsync(String resourceGroupName, String factoryName, FactoryInner factory, String ifMatch) { + return createOrUpdateWithServiceResponseAsync(resourceGroupName, factoryName, factory, ifMatch).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. + * @param ifMatch ETag of the factory 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 FactoryInner object + */ + public Observable> createOrUpdateWithServiceResponseAsync(String resourceGroupName, String factoryName, FactoryInner factory, 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 (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, ifMatch, 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 CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.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 CloudException 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, FactoryUpdateParameters 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, FactoryUpdateParameters 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, FactoryUpdateParameters 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, FactoryUpdateParameters 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 CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.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 CloudException 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."); + } + final String ifNoneMatch = null; + return service.getByResourceGroup(this.client.subscriptionId(), resourceGroupName, factoryName, this.client.apiVersion(), ifNoneMatch, 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); + } + } + }); + } + + /** + * Gets a factory. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param ifNoneMatch ETag of the factory entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was provided, then no content will be returned. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException 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, String ifNoneMatch) { + return getByResourceGroupWithServiceResponseAsync(resourceGroupName, factoryName, ifNoneMatch).toBlocking().single().body(); + } + + /** + * Gets a factory. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param ifNoneMatch ETag of the factory entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was provided, then no content will be returned. + * @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, String ifNoneMatch, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getByResourceGroupWithServiceResponseAsync(resourceGroupName, factoryName, ifNoneMatch), serviceCallback); + } + + /** + * Gets a factory. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param ifNoneMatch ETag of the factory entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was provided, then no content will be returned. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the FactoryInner object + */ + public Observable getByResourceGroupAsync(String resourceGroupName, String factoryName, String ifNoneMatch) { + return getByResourceGroupWithServiceResponseAsync(resourceGroupName, factoryName, ifNoneMatch).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. + * @param ifNoneMatch ETag of the factory entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was provided, then no content will be returned. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the FactoryInner object + */ + public Observable> getByResourceGroupWithServiceResponseAsync(String resourceGroupName, String factoryName, String ifNoneMatch) { + 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(), ifNoneMatch, 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 CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(304, new TypeToken() { }.getType()) + .registerError(CloudException.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 CloudException 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 CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(204, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Get GitHub Access Token. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param gitHubAccessTokenRequest Get GitHub access token request definition. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the GitHubAccessTokenResponseInner object if successful. + */ + public GitHubAccessTokenResponseInner getGitHubAccessToken(String resourceGroupName, String factoryName, GitHubAccessTokenRequest gitHubAccessTokenRequest) { + return getGitHubAccessTokenWithServiceResponseAsync(resourceGroupName, factoryName, gitHubAccessTokenRequest).toBlocking().single().body(); + } + + /** + * Get GitHub Access Token. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param gitHubAccessTokenRequest Get GitHub access token request 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 getGitHubAccessTokenAsync(String resourceGroupName, String factoryName, GitHubAccessTokenRequest gitHubAccessTokenRequest, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getGitHubAccessTokenWithServiceResponseAsync(resourceGroupName, factoryName, gitHubAccessTokenRequest), serviceCallback); + } + + /** + * Get GitHub Access Token. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param gitHubAccessTokenRequest Get GitHub access token request definition. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the GitHubAccessTokenResponseInner object + */ + public Observable getGitHubAccessTokenAsync(String resourceGroupName, String factoryName, GitHubAccessTokenRequest gitHubAccessTokenRequest) { + return getGitHubAccessTokenWithServiceResponseAsync(resourceGroupName, factoryName, gitHubAccessTokenRequest).map(new Func1, GitHubAccessTokenResponseInner>() { + @Override + public GitHubAccessTokenResponseInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Get GitHub Access Token. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param gitHubAccessTokenRequest Get GitHub access token request definition. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the GitHubAccessTokenResponseInner object + */ + public Observable> getGitHubAccessTokenWithServiceResponseAsync(String resourceGroupName, String factoryName, GitHubAccessTokenRequest gitHubAccessTokenRequest) { + 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 (gitHubAccessTokenRequest == null) { + throw new IllegalArgumentException("Parameter gitHubAccessTokenRequest is required and cannot be null."); + } + Validator.validate(gitHubAccessTokenRequest); + return service.getGitHubAccessToken(this.client.subscriptionId(), resourceGroupName, factoryName, this.client.apiVersion(), gitHubAccessTokenRequest, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getGitHubAccessTokenDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getGitHubAccessTokenDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Get Data Plane access. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param policy Data Plane user access policy definition. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the AccessPolicyResponseInner object if successful. + */ + public AccessPolicyResponseInner getDataPlaneAccess(String resourceGroupName, String factoryName, UserAccessPolicy policy) { + return getDataPlaneAccessWithServiceResponseAsync(resourceGroupName, factoryName, policy).toBlocking().single().body(); + } + + /** + * Get Data Plane access. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param policy Data Plane user access policy 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 getDataPlaneAccessAsync(String resourceGroupName, String factoryName, UserAccessPolicy policy, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getDataPlaneAccessWithServiceResponseAsync(resourceGroupName, factoryName, policy), serviceCallback); + } + + /** + * Get Data Plane access. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param policy Data Plane user access policy definition. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the AccessPolicyResponseInner object + */ + public Observable getDataPlaneAccessAsync(String resourceGroupName, String factoryName, UserAccessPolicy policy) { + return getDataPlaneAccessWithServiceResponseAsync(resourceGroupName, factoryName, policy).map(new Func1, AccessPolicyResponseInner>() { + @Override + public AccessPolicyResponseInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Get Data Plane access. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param policy Data Plane user access policy definition. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the AccessPolicyResponseInner object + */ + public Observable> getDataPlaneAccessWithServiceResponseAsync(String resourceGroupName, String factoryName, UserAccessPolicy policy) { + 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 (policy == null) { + throw new IllegalArgumentException("Parameter policy is required and cannot be null."); + } + Validator.validate(policy); + return service.getDataPlaneAccess(this.client.subscriptionId(), resourceGroupName, factoryName, this.client.apiVersion(), policy, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getDataPlaneAccessDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getDataPlaneAccessDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.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 CloudException 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 CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(CloudException.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 CloudException 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 CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/FactoryImpl.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/FactoryImpl.java new file mode 100644 index 0000000000000..f389774359d90 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/FactoryImpl.java @@ -0,0 +1,135 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01.implementation; + +import com.microsoft.azure.arm.resources.models.implementation.GroupableResourceCoreImpl; +import com.microsoft.azure.management.datafactory.v2018_06_01.Factory; +import rx.Observable; +import com.microsoft.azure.management.datafactory.v2018_06_01.FactoryUpdateParameters; +import java.util.Map; +import com.microsoft.azure.management.datafactory.v2018_06_01.FactoryIdentity; +import org.joda.time.DateTime; +import com.microsoft.azure.management.datafactory.v2018_06_01.FactoryRepoConfiguration; +import rx.functions.Func1; + +class FactoryImpl extends GroupableResourceCoreImpl implements Factory, Factory.Definition, Factory.Update { + private String cifMatch; + private FactoryUpdateParameters updateParameter; + FactoryImpl(String name, FactoryInner inner, DataFactoryManager manager) { + super(name, inner, manager); + this.updateParameter = new FactoryUpdateParameters(); + } + + @Override + public Observable createResourceAsync() { + FactoriesInner client = this.manager().inner().factories(); + return client.createOrUpdateAsync(this.resourceGroupName(), this.name(), this.inner(), this.cifMatch) + .map(new Func1() { + @Override + public FactoryInner call(FactoryInner resource) { + resetCreateUpdateParameters(); + return resource; + } + }) + .map(innerToFluentMap(this)); + } + + @Override + public Observable updateResourceAsync() { + FactoriesInner client = this.manager().inner().factories(); + return client.updateAsync(this.resourceGroupName(), this.name(), this.updateParameter) + .map(new Func1() { + @Override + public FactoryInner call(FactoryInner resource) { + resetCreateUpdateParameters(); + return resource; + } + }) + .map(innerToFluentMap(this)); + } + + @Override + protected Observable getInnerAsync() { + FactoriesInner client = this.manager().inner().factories(); + return client.getByResourceGroupAsync(this.resourceGroupName(), this.name()); + } + + @Override + public boolean isInCreateMode() { + return this.inner().id() == null; + } + + private void resetCreateUpdateParameters() { + this.updateParameter = new FactoryUpdateParameters(); + } + + @Override + public Map additionalProperties() { + return this.inner().additionalProperties(); + } + + @Override + public DateTime createTime() { + return this.inner().createTime(); + } + + @Override + public String eTag() { + return this.inner().eTag(); + } + + @Override + public FactoryIdentity identity() { + return this.inner().identity(); + } + + @Override + public String provisioningState() { + return this.inner().provisioningState(); + } + + @Override + public FactoryRepoConfiguration repoConfiguration() { + return this.inner().repoConfiguration(); + } + + @Override + public String version() { + return this.inner().version(); + } + + @Override + public FactoryImpl withIfMatch(String ifMatch) { + this.cifMatch = ifMatch; + return this; + } + + @Override + public FactoryImpl withAdditionalProperties(Map additionalProperties) { + this.inner().withAdditionalProperties(additionalProperties); + return this; + } + + @Override + public FactoryImpl withRepoConfiguration(FactoryRepoConfiguration repoConfiguration) { + this.inner().withRepoConfiguration(repoConfiguration); + return this; + } + + @Override + public FactoryImpl withIdentity(FactoryIdentity identity) { + if (isInCreateMode()) { + this.inner().withIdentity(identity); + } else { + this.updateParameter.withIdentity(identity); + } + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/FactoryInner.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/FactoryInner.java new file mode 100644 index 0000000000000..a82b27d65f644 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/FactoryInner.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.v2018_06_01.implementation; + +import java.util.Map; +import com.microsoft.azure.management.datafactory.v2018_06_01.FactoryIdentity; +import org.joda.time.DateTime; +import com.microsoft.azure.management.datafactory.v2018_06_01.FactoryRepoConfiguration; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.rest.SkipParentValidation; +import com.microsoft.azure.Resource; + +/** + * Factory resource type. + */ +@JsonFlatten +@SkipParentValidation +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; + + /** + * Git repo information of the factory. + */ + @JsonProperty(value = "properties.repoConfiguration") + private FactoryRepoConfiguration repoConfiguration; + + /** + * Etag identifies change in the resource. + */ + @JsonProperty(value = "eTag", access = JsonProperty.Access.WRITE_ONLY) + private String eTag; + + /** + * Get unmatched properties from the message are deserialized this collection. + * + * @return the additionalProperties value + */ + public Map additionalProperties() { + return this.additionalProperties; + } + + /** + * Set unmatched properties from the message are deserialized this collection. + * + * @param additionalProperties the additionalProperties value to set + * @return the FactoryInner object itself. + */ + public FactoryInner withAdditionalProperties(Map additionalProperties) { + this.additionalProperties = additionalProperties; + return this; + } + + /** + * Get managed service identity of the factory. + * + * @return the identity value + */ + public FactoryIdentity identity() { + return this.identity; + } + + /** + * Set managed service identity of the factory. + * + * @param identity the identity value to set + * @return the FactoryInner object itself. + */ + public FactoryInner withIdentity(FactoryIdentity identity) { + this.identity = identity; + return this; + } + + /** + * Get factory provisioning state, example Succeeded. + * + * @return the provisioningState value + */ + public String provisioningState() { + return this.provisioningState; + } + + /** + * Get time the factory was created in ISO8601 format. + * + * @return the createTime value + */ + public DateTime createTime() { + return this.createTime; + } + + /** + * Get version of the factory. + * + * @return the version value + */ + public String version() { + return this.version; + } + + /** + * Get git repo information of the factory. + * + * @return the repoConfiguration value + */ + public FactoryRepoConfiguration repoConfiguration() { + return this.repoConfiguration; + } + + /** + * Set git repo information of the factory. + * + * @param repoConfiguration the repoConfiguration value to set + * @return the FactoryInner object itself. + */ + public FactoryInner withRepoConfiguration(FactoryRepoConfiguration repoConfiguration) { + this.repoConfiguration = repoConfiguration; + return this; + } + + /** + * Get etag identifies change in the resource. + * + * @return the eTag value + */ + public String eTag() { + return this.eTag; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/FactoryTriggerResourceImpl.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/FactoryTriggerResourceImpl.java new file mode 100644 index 0000000000000..51fc4e097f5c6 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/FactoryTriggerResourceImpl.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.v2018_06_01.implementation; + +import com.microsoft.azure.management.datafactory.v2018_06_01.FactoryTriggerResource; +import com.microsoft.azure.arm.model.implementation.CreatableUpdatableImpl; +import rx.Observable; +import java.util.Map; +import com.microsoft.azure.management.datafactory.v2018_06_01.TriggerRuntimeState; +import java.util.List; +import com.microsoft.azure.management.datafactory.v2018_06_01.; +import rx.functions.Func1; + +class FactoryTriggerResourceImpl extends CreatableUpdatableImpl implements FactoryTriggerResource, FactoryTriggerResource.Definition, FactoryTriggerResource.Update { + private final DataFactoryManager manager; + private String resourceGroupName; + private String factoryName; + private String triggerName; + private String cifMatch; + private TriggerInner cproperties; + private String uifMatch; + private TriggerInner uproperties; + + FactoryTriggerResourceImpl(String name, DataFactoryManager manager) { + super(name, new TriggerResourceInner()); + this.manager = manager; + // Set resource name + this.triggerName = name; + // + this.cproperties = new TriggerInner(); + this.uproperties = new TriggerInner(); + } + + FactoryTriggerResourceImpl(TriggerResourceInner inner, DataFactoryManager manager) { + super(inner.name(), inner); + this.manager = manager; + // Set resource name + this.triggerName = inner.name(); + // set resource ancestor and positional variables + this.resourceGroupName = IdParsingUtils.getValueFromIdByName(inner.id(), "resourceGroups"); + this.factoryName = IdParsingUtils.getValueFromIdByName(inner.id(), "factories"); + this.triggerName = IdParsingUtils.getValueFromIdByName(inner.id(), "triggers"); + // + this.cproperties = new TriggerInner(); + this.uproperties = new TriggerInner(); + } + + @Override + public DataFactoryManager manager() { + return this.manager; + } + + @Override + public Observable createResourceAsync() { + TriggersInner client = this.manager().inner().triggers(); + return client.createOrUpdateAsync(this.resourceGroupName, this.factoryName, this.triggerName, this.cproperties, this.cifMatch) + .map(new Func1() { + @Override + public TriggerResourceInner call(TriggerResourceInner resource) { + resetCreateUpdateParameters(); + return resource; + } + }) + .map(innerToFluentMap(this)); + } + + @Override + public Observable updateResourceAsync() { + TriggersInner client = this.manager().inner().triggers(); + return client.createOrUpdateAsync(this.resourceGroupName, this.factoryName, this.triggerName, this.uproperties, this.uifMatch) + .map(new Func1() { + @Override + public TriggerResourceInner call(TriggerResourceInner resource) { + resetCreateUpdateParameters(); + return resource; + } + }) + .map(innerToFluentMap(this)); + } + + @Override + protected Observable getInnerAsync() { + TriggersInner client = this.manager().inner().triggers(); + return client.getAsync(this.resourceGroupName, this.factoryName, this.triggerName); + } + + @Override + public boolean isInCreateMode() { + return this.inner().id() == null; + } + + private void resetCreateUpdateParameters() { + this.cproperties = new TriggerInner(); + this.uproperties = new TriggerInner(); + } + + @Override + public String etag() { + return this.inner().etag(); + } + + @Override + public String id() { + return this.inner().id(); + } + + @Override + public String name() { + return this.inner().name(); + } + + @Override + public TriggerInner properties() { + return this.inner().properties(); + } + + @Override + public String type() { + return this.inner().type(); + } + + @Override + public FactoryTriggerResourceImpl withExistingFactory(String resourceGroupName, String factoryName) { + this.resourceGroupName = resourceGroupName; + this.factoryName = factoryName; + return this; + } + + @Override + public FactoryTriggerResourceImpl withIfMatch(String ifMatch) { + if (isInCreateMode()) { + this.cifMatch = ifMatch; + } else { + this.uifMatch = ifMatch; + } + return this; + } + + @Override + public FactoryTriggerResourceImpl withProperties(TriggerInner properties) { + if (isInCreateMode()) { + this.cproperties = properties; + } else { + this.uproperties = properties; + } + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/GitHubAccessTokenResponseImpl.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/GitHubAccessTokenResponseImpl.java new file mode 100644 index 0000000000000..119b840ea99c9 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/GitHubAccessTokenResponseImpl.java @@ -0,0 +1,31 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01.implementation; + +import com.microsoft.azure.management.datafactory.v2018_06_01.GitHubAccessTokenResponse; +import com.microsoft.azure.arm.model.implementation.WrapperImpl; + +class GitHubAccessTokenResponseImpl extends WrapperImpl implements GitHubAccessTokenResponse { + private final DataFactoryManager manager; + GitHubAccessTokenResponseImpl(GitHubAccessTokenResponseInner inner, DataFactoryManager manager) { + super(inner); + this.manager = manager; + } + + @Override + public DataFactoryManager manager() { + return this.manager; + } + + @Override + public String gitHubAccessToken() { + return this.inner().gitHubAccessToken(); + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/GitHubAccessTokenResponseInner.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/GitHubAccessTokenResponseInner.java new file mode 100644 index 0000000000000..80b67dc9a0adf --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/GitHubAccessTokenResponseInner.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.v2018_06_01.implementation; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Get GitHub access token response definition. + */ +public class GitHubAccessTokenResponseInner { + /** + * GitHub access token. + */ + @JsonProperty(value = "gitHubAccessToken") + private String gitHubAccessToken; + + /** + * Get gitHub access token. + * + * @return the gitHubAccessToken value + */ + public String gitHubAccessToken() { + return this.gitHubAccessToken; + } + + /** + * Set gitHub access token. + * + * @param gitHubAccessToken the gitHubAccessToken value to set + * @return the GitHubAccessTokenResponseInner object itself. + */ + public GitHubAccessTokenResponseInner withGitHubAccessToken(String gitHubAccessToken) { + this.gitHubAccessToken = gitHubAccessToken; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/IdParsingUtils.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/IdParsingUtils.java new file mode 100644 index 0000000000000..154d1ad24f944 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/IdParsingUtils.java @@ -0,0 +1,57 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01.implementation; +import java.util.Arrays; +import java.util.Iterator; + +class IdParsingUtils { + public static String getValueFromIdByName(String id, String name) { + if (id == null) { + return null; + } + Iterable iterable = Arrays.asList(id.split("/")); + Iterator itr = iterable.iterator(); + while (itr.hasNext()) { + String part = itr.next(); + if (part != null && part.trim() != "") { + if (part.equalsIgnoreCase(name)) { + if (itr.hasNext()) { + return itr.next(); + } else { + return null; + } + } + } + } + return null; + } + + public static String getValueFromIdByPosition(String id, int pos) { + if (id == null) { + return null; + } + Iterable iterable = Arrays.asList(id.split("/")); + Iterator itr = iterable.iterator(); + int index = 0; + while (itr.hasNext()) { + String part = itr.next(); + if (part != null && part.trim() != "") { + if (index == pos) { + if (itr.hasNext()) { + return itr.next(); + } else { + return null; + } + } + } + index++; + } + return null; + } +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/IntegrationRuntimeAuthKeysImpl.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/IntegrationRuntimeAuthKeysImpl.java new file mode 100644 index 0000000000000..339cdcb3dfffb --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/IntegrationRuntimeAuthKeysImpl.java @@ -0,0 +1,36 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01.implementation; + +import com.microsoft.azure.management.datafactory.v2018_06_01.IntegrationRuntimeAuthKeys; +import com.microsoft.azure.arm.model.implementation.WrapperImpl; + +class IntegrationRuntimeAuthKeysImpl extends WrapperImpl implements IntegrationRuntimeAuthKeys { + private final DataFactoryManager manager; + IntegrationRuntimeAuthKeysImpl(IntegrationRuntimeAuthKeysInner inner, DataFactoryManager manager) { + super(inner); + this.manager = manager; + } + + @Override + public DataFactoryManager manager() { + return this.manager; + } + + @Override + public String authKey1() { + return this.inner().authKey1(); + } + + @Override + public String authKey2() { + return this.inner().authKey2(); + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/IntegrationRuntimeAuthKeysInner.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/IntegrationRuntimeAuthKeysInner.java new file mode 100644 index 0000000000000..bbfab700ac4f0 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01.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 primary integration runtime authentication key. + * + * @return the authKey1 value + */ + public String authKey1() { + return this.authKey1; + } + + /** + * Set the primary integration runtime authentication key. + * + * @param authKey1 the authKey1 value to set + * @return the IntegrationRuntimeAuthKeysInner object itself. + */ + public IntegrationRuntimeAuthKeysInner withAuthKey1(String authKey1) { + this.authKey1 = authKey1; + return this; + } + + /** + * Get the secondary integration runtime authentication key. + * + * @return the authKey2 value + */ + public String authKey2() { + return this.authKey2; + } + + /** + * Set the secondary integration runtime authentication key. + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/IntegrationRuntimeConnectionInfoImpl.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/IntegrationRuntimeConnectionInfoImpl.java new file mode 100644 index 0000000000000..ef24faff07dd8 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/IntegrationRuntimeConnectionInfoImpl.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.v2018_06_01.implementation; + +import com.microsoft.azure.management.datafactory.v2018_06_01.IntegrationRuntimeConnectionInfo; +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import java.util.Map; + +class IntegrationRuntimeConnectionInfoImpl extends WrapperImpl implements IntegrationRuntimeConnectionInfo { + private final DataFactoryManager manager; + IntegrationRuntimeConnectionInfoImpl(IntegrationRuntimeConnectionInfoInner inner, DataFactoryManager manager) { + super(inner); + this.manager = manager; + } + + @Override + public DataFactoryManager manager() { + return this.manager; + } + + @Override + public Map additionalProperties() { + return this.inner().additionalProperties(); + } + + @Override + public String hostServiceUri() { + return this.inner().hostServiceUri(); + } + + @Override + public String identityCertThumbprint() { + return this.inner().identityCertThumbprint(); + } + + @Override + public Boolean isIdentityCertExprired() { + return this.inner().isIdentityCertExprired(); + } + + @Override + public String publicKey() { + return this.inner().publicKey(); + } + + @Override + public String serviceToken() { + return this.inner().serviceToken(); + } + + @Override + public String version() { + return this.inner().version(); + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/IntegrationRuntimeConnectionInfoInner.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/IntegrationRuntimeConnectionInfoInner.java new file mode 100644 index 0000000000000..cf30c5c1969a0 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01.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 unmatched properties from the message are deserialized this collection. + * + * @return the additionalProperties value + */ + public Map additionalProperties() { + return this.additionalProperties; + } + + /** + * Set unmatched properties from the message are deserialized this collection. + * + * @param additionalProperties the additionalProperties value to set + * @return the IntegrationRuntimeConnectionInfoInner object itself. + */ + public IntegrationRuntimeConnectionInfoInner withAdditionalProperties(Map additionalProperties) { + this.additionalProperties = additionalProperties; + return this; + } + + /** + * Get the token generated in service. Callers use this token to authenticate to integration runtime. + * + * @return the serviceToken value + */ + public String serviceToken() { + return this.serviceToken; + } + + /** + * Get the integration runtime SSL certificate thumbprint. Click-Once application uses it to do server validation. + * + * @return the identityCertThumbprint value + */ + public String identityCertThumbprint() { + return this.identityCertThumbprint; + } + + /** + * Get the on-premises integration runtime host URL. + * + * @return the hostServiceUri value + */ + public String hostServiceUri() { + return this.hostServiceUri; + } + + /** + * Get the integration runtime version. + * + * @return the version value + */ + public String version() { + return this.version; + } + + /** + * Get the public key for encrypting a credential when transferring the credential to the integration runtime. + * + * @return the publicKey value + */ + public String publicKey() { + return this.publicKey; + } + + /** + * Get whether the identity certificate is expired. + * + * @return the isIdentityCertExprired value + */ + public Boolean isIdentityCertExprired() { + return this.isIdentityCertExprired; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/IntegrationRuntimeInner.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/IntegrationRuntimeInner.java new file mode 100644 index 0000000000000..bb41c444dd940 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01.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 unmatched properties from the message are deserialized this collection. + * + * @return the additionalProperties value + */ + public Map additionalProperties() { + return this.additionalProperties; + } + + /** + * Set unmatched properties from the message are deserialized this collection. + * + * @param additionalProperties the additionalProperties value to set + * @return the IntegrationRuntimeInner object itself. + */ + public IntegrationRuntimeInner withAdditionalProperties(Map additionalProperties) { + this.additionalProperties = additionalProperties; + return this; + } + + /** + * Get integration runtime description. + * + * @return the description value + */ + public String description() { + return this.description; + } + + /** + * Set integration runtime description. + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/IntegrationRuntimeMonitoringDataImpl.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/IntegrationRuntimeMonitoringDataImpl.java new file mode 100644 index 0000000000000..3059ac01c1ae3 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/IntegrationRuntimeMonitoringDataImpl.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.v2018_06_01.implementation; + +import com.microsoft.azure.management.datafactory.v2018_06_01.IntegrationRuntimeMonitoringData; +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import java.util.List; +import com.microsoft.azure.management.datafactory.v2018_06_01.IntegrationRuntimeNodeMonitoringData; + +class IntegrationRuntimeMonitoringDataImpl extends WrapperImpl implements IntegrationRuntimeMonitoringData { + private final DataFactoryManager manager; + IntegrationRuntimeMonitoringDataImpl(IntegrationRuntimeMonitoringDataInner inner, DataFactoryManager manager) { + super(inner); + this.manager = manager; + } + + @Override + public DataFactoryManager manager() { + return this.manager; + } + + @Override + public String name() { + return this.inner().name(); + } + + @Override + public List nodes() { + return this.inner().nodes(); + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/IntegrationRuntimeMonitoringDataInner.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/IntegrationRuntimeMonitoringDataInner.java new file mode 100644 index 0000000000000..a15b542a4dc11 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01.implementation; + +import java.util.List; +import com.microsoft.azure.management.datafactory.v2018_06_01.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 integration runtime name. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Set integration runtime name. + * + * @param name the name value to set + * @return the IntegrationRuntimeMonitoringDataInner object itself. + */ + public IntegrationRuntimeMonitoringDataInner withName(String name) { + this.name = name; + return this; + } + + /** + * Get integration runtime node monitoring data. + * + * @return the nodes value + */ + public List nodes() { + return this.nodes; + } + + /** + * Set integration runtime node monitoring data. + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/IntegrationRuntimeNodeIpAddressImpl.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/IntegrationRuntimeNodeIpAddressImpl.java new file mode 100644 index 0000000000000..014245ae47d84 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/IntegrationRuntimeNodeIpAddressImpl.java @@ -0,0 +1,31 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01.implementation; + +import com.microsoft.azure.management.datafactory.v2018_06_01.IntegrationRuntimeNodeIpAddress; +import com.microsoft.azure.arm.model.implementation.WrapperImpl; + +class IntegrationRuntimeNodeIpAddressImpl extends WrapperImpl implements IntegrationRuntimeNodeIpAddress { + private final DataFactoryManager manager; + IntegrationRuntimeNodeIpAddressImpl(IntegrationRuntimeNodeIpAddressInner inner, DataFactoryManager manager) { + super(inner); + this.manager = manager; + } + + @Override + public DataFactoryManager manager() { + return this.manager; + } + + @Override + public String ipAddress() { + return this.inner().ipAddress(); + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/IntegrationRuntimeNodeIpAddressInner.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/IntegrationRuntimeNodeIpAddressInner.java new file mode 100644 index 0000000000000..5024a9682f630 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01.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 IP address of self-hosted integration runtime node. + * + * @return the ipAddress value + */ + public String ipAddress() { + return this.ipAddress; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/IntegrationRuntimeNodesImpl.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/IntegrationRuntimeNodesImpl.java new file mode 100644 index 0000000000000..75f8701033ee9 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/IntegrationRuntimeNodesImpl.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.v2018_06_01.implementation; + +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import com.microsoft.azure.management.datafactory.v2018_06_01.IntegrationRuntimeNodes; +import rx.Completable; +import rx.Observable; +import rx.functions.Func1; +import com.microsoft.azure.management.datafactory.v2018_06_01.SelfHostedIntegrationRuntimeNode; +import com.microsoft.azure.management.datafactory.v2018_06_01.IntegrationRuntimeNodeIpAddress; + +class IntegrationRuntimeNodesImpl extends WrapperImpl implements IntegrationRuntimeNodes { + private final DataFactoryManager manager; + + IntegrationRuntimeNodesImpl(DataFactoryManager manager) { + super(manager.inner().integrationRuntimeNodes()); + this.manager = manager; + } + + public DataFactoryManager manager() { + return this.manager; + } + + private SelfHostedIntegrationRuntimeNodeImpl wrapModel(SelfHostedIntegrationRuntimeNodeInner inner) { + return new SelfHostedIntegrationRuntimeNodeImpl(inner, manager()); + } + + @Override + public Observable updateAsync(String resourceGroupName, String factoryName, String integrationRuntimeName, String nodeName) { + IntegrationRuntimeNodesInner client = this.inner(); + return client.updateAsync(resourceGroupName, factoryName, integrationRuntimeName, nodeName) + .map(new Func1() { + @Override + public SelfHostedIntegrationRuntimeNode call(SelfHostedIntegrationRuntimeNodeInner inner) { + return new SelfHostedIntegrationRuntimeNodeImpl(inner, manager()); + } + }); + } + + @Override + public Observable getIpAddressAsync(String resourceGroupName, String factoryName, String integrationRuntimeName, String nodeName) { + IntegrationRuntimeNodesInner client = this.inner(); + return client.getIpAddressAsync(resourceGroupName, factoryName, integrationRuntimeName, nodeName) + .map(new Func1() { + @Override + public IntegrationRuntimeNodeIpAddress call(IntegrationRuntimeNodeIpAddressInner inner) { + return new IntegrationRuntimeNodeIpAddressImpl(inner, manager()); + } + }); + } + + @Override + public Observable getAsync(String resourceGroupName, String factoryName, String integrationRuntimeName, String nodeName) { + IntegrationRuntimeNodesInner client = this.inner(); + return client.getAsync(resourceGroupName, factoryName, integrationRuntimeName, nodeName) + .map(new Func1() { + @Override + public SelfHostedIntegrationRuntimeNode call(SelfHostedIntegrationRuntimeNodeInner inner) { + return wrapModel(inner); + } + }); + } + + @Override + public Completable deleteAsync(String resourceGroupName, String factoryName, String integrationRuntimeName, String nodeName) { + IntegrationRuntimeNodesInner client = this.inner(); + return client.deleteAsync(resourceGroupName, factoryName, integrationRuntimeName, nodeName).toCompletable(); + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/IntegrationRuntimeNodesInner.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/IntegrationRuntimeNodesInner.java new file mode 100644 index 0000000000000..21219a00f1872 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/IntegrationRuntimeNodesInner.java @@ -0,0 +1,579 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01.implementation; + +import retrofit2.Retrofit; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.CloudException; +import com.microsoft.azure.management.datafactory.v2018_06_01.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.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.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.v2018_06_01.IntegrationRuntimeNodes get" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}") + Observable> get(@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.v2018_06_01.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.v2018_06_01.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.v2018_06_01.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); + + } + + /** + * Gets 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 CloudException 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 get(String resourceGroupName, String factoryName, String integrationRuntimeName, String nodeName) { + return getWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, nodeName).toBlocking().single().body(); + } + + /** + * Gets 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 getAsync(String resourceGroupName, String factoryName, String integrationRuntimeName, String nodeName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, nodeName), serviceCallback); + } + + /** + * Gets 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 getAsync(String resourceGroupName, String factoryName, String integrationRuntimeName, String nodeName) { + return getWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, nodeName).map(new Func1, SelfHostedIntegrationRuntimeNodeInner>() { + @Override + public SelfHostedIntegrationRuntimeNodeInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Gets 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> getWithServiceResponseAsync(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.get(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 = getDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * 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 CloudException 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 CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(204, new TypeToken() { }.getType()) + .registerError(CloudException.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 CloudException 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 CloudException 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 CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.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 CloudException 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 CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/IntegrationRuntimeObjectMetadatasImpl.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/IntegrationRuntimeObjectMetadatasImpl.java new file mode 100644 index 0000000000000..6b78b1a61205f --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/IntegrationRuntimeObjectMetadatasImpl.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. + * abc + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01.implementation; + +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import com.microsoft.azure.management.datafactory.v2018_06_01.IntegrationRuntimeObjectMetadatas; +import rx.functions.Func1; +import rx.Observable; +import com.microsoft.azure.management.datafactory.v2018_06_01.SsisObjectMetadataStatusResponse; +import com.microsoft.azure.management.datafactory.v2018_06_01.SsisObjectMetadataListResponse; + +class IntegrationRuntimeObjectMetadatasImpl extends WrapperImpl implements IntegrationRuntimeObjectMetadatas { + private final DataFactoryManager manager; + + IntegrationRuntimeObjectMetadatasImpl(DataFactoryManager manager) { + super(manager.inner().integrationRuntimeObjectMetadatas()); + this.manager = manager; + } + + public DataFactoryManager manager() { + return this.manager; + } + + @Override + public Observable refreshAsync(String resourceGroupName, String factoryName, String integrationRuntimeName) { + IntegrationRuntimeObjectMetadatasInner client = this.inner(); + return client.refreshAsync(resourceGroupName, factoryName, integrationRuntimeName) + .map(new Func1() { + @Override + public SsisObjectMetadataStatusResponse call(SsisObjectMetadataStatusResponseInner inner) { + return new SsisObjectMetadataStatusResponseImpl(inner, manager()); + } + }); + } + + @Override + public Observable getAsync(String resourceGroupName, String factoryName, String integrationRuntimeName) { + IntegrationRuntimeObjectMetadatasInner client = this.inner(); + return client.getAsync(resourceGroupName, factoryName, integrationRuntimeName) + .map(new Func1() { + @Override + public SsisObjectMetadataListResponse call(SsisObjectMetadataListResponseInner inner) { + return new SsisObjectMetadataListResponseImpl(inner, manager()); + } + }); + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/IntegrationRuntimeObjectMetadatasInner.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/IntegrationRuntimeObjectMetadatasInner.java new file mode 100644 index 0000000000000..e59bb0a64819f --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/IntegrationRuntimeObjectMetadatasInner.java @@ -0,0 +1,431 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01.implementation; + +import retrofit2.Retrofit; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.CloudException; +import com.microsoft.azure.management.datafactory.v2018_06_01.GetSsisObjectMetadataRequest; +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.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 IntegrationRuntimeObjectMetadatas. + */ +public class IntegrationRuntimeObjectMetadatasInner { + /** The Retrofit service to perform REST calls. */ + private IntegrationRuntimeObjectMetadatasService service; + /** The service client containing this operation class. */ + private DataFactoryManagementClientImpl client; + + /** + * Initializes an instance of IntegrationRuntimeObjectMetadatasInner. + * + * @param retrofit the Retrofit instance built from a Retrofit Builder. + * @param client the instance of the service client containing this operation class. + */ + public IntegrationRuntimeObjectMetadatasInner(Retrofit retrofit, DataFactoryManagementClientImpl client) { + this.service = retrofit.create(IntegrationRuntimeObjectMetadatasService.class); + this.client = client; + } + + /** + * The interface defining all the services for IntegrationRuntimeObjectMetadatas to be + * used by Retrofit to perform actually REST calls. + */ + interface IntegrationRuntimeObjectMetadatasService { + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.datafactory.v2018_06_01.IntegrationRuntimeObjectMetadatas refresh" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/refreshObjectMetadata") + Observable> refresh(@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.v2018_06_01.IntegrationRuntimeObjectMetadatas beginRefresh" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/refreshObjectMetadata") + Observable> beginRefresh(@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.v2018_06_01.IntegrationRuntimeObjectMetadatas get" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/getObjectMetadata") + 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, @Body GetSsisObjectMetadataRequest getMetadataRequest, @Header("User-Agent") String userAgent); + + } + + /** + * Refresh a SSIS integration runtime object metadata. + * + * @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 CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the SsisObjectMetadataStatusResponseInner object if successful. + */ + public SsisObjectMetadataStatusResponseInner refresh(String resourceGroupName, String factoryName, String integrationRuntimeName) { + return refreshWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName).toBlocking().last().body(); + } + + /** + * Refresh a SSIS integration runtime object metadata. + * + * @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 refreshAsync(String resourceGroupName, String factoryName, String integrationRuntimeName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(refreshWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName), serviceCallback); + } + + /** + * Refresh a SSIS integration runtime object metadata. + * + * @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 refreshAsync(String resourceGroupName, String factoryName, String integrationRuntimeName) { + return refreshWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName).map(new Func1, SsisObjectMetadataStatusResponseInner>() { + @Override + public SsisObjectMetadataStatusResponseInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Refresh a SSIS integration runtime object metadata. + * + * @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> refreshWithServiceResponseAsync(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.refresh(this.client.subscriptionId(), resourceGroupName, factoryName, integrationRuntimeName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); + } + + /** + * Refresh a SSIS integration runtime object metadata. + * + * @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 CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the SsisObjectMetadataStatusResponseInner object if successful. + */ + public SsisObjectMetadataStatusResponseInner beginRefresh(String resourceGroupName, String factoryName, String integrationRuntimeName) { + return beginRefreshWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName).toBlocking().single().body(); + } + + /** + * Refresh a SSIS integration runtime object metadata. + * + * @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 beginRefreshAsync(String resourceGroupName, String factoryName, String integrationRuntimeName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginRefreshWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName), serviceCallback); + } + + /** + * Refresh a SSIS integration runtime object metadata. + * + * @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 SsisObjectMetadataStatusResponseInner object + */ + public Observable beginRefreshAsync(String resourceGroupName, String factoryName, String integrationRuntimeName) { + return beginRefreshWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName).map(new Func1, SsisObjectMetadataStatusResponseInner>() { + @Override + public SsisObjectMetadataStatusResponseInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Refresh a SSIS integration runtime object metadata. + * + * @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 SsisObjectMetadataStatusResponseInner object + */ + public Observable> beginRefreshWithServiceResponseAsync(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.beginRefresh(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 = beginRefreshDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse beginRefreshDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(202, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Get a SSIS integration runtime object metadata by specified path. The return is pageable metadata list. + * + * @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 CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the SsisObjectMetadataListResponseInner object if successful. + */ + public SsisObjectMetadataListResponseInner get(String resourceGroupName, String factoryName, String integrationRuntimeName) { + return getWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName).toBlocking().single().body(); + } + + /** + * Get a SSIS integration runtime object metadata by specified path. The return is pageable metadata list. + * + * @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); + } + + /** + * Get a SSIS integration runtime object metadata by specified path. The return is pageable metadata list. + * + * @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 SsisObjectMetadataListResponseInner object + */ + public Observable getAsync(String resourceGroupName, String factoryName, String integrationRuntimeName) { + return getWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName).map(new Func1, SsisObjectMetadataListResponseInner>() { + @Override + public SsisObjectMetadataListResponseInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Get a SSIS integration runtime object metadata by specified path. The return is pageable metadata list. + * + * @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 SsisObjectMetadataListResponseInner 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."); + } + final String metadataPath = null; + GetSsisObjectMetadataRequest getMetadataRequest = new GetSsisObjectMetadataRequest(); + getMetadataRequest.withMetadataPath(null); + return service.get(this.client.subscriptionId(), resourceGroupName, factoryName, integrationRuntimeName, this.client.apiVersion(), this.client.acceptLanguage(), getMetadataRequest, 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); + } + } + }); + } + + /** + * Get a SSIS integration runtime object metadata by specified path. The return is pageable metadata list. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param metadataPath Metadata path. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the SsisObjectMetadataListResponseInner object if successful. + */ + public SsisObjectMetadataListResponseInner get(String resourceGroupName, String factoryName, String integrationRuntimeName, String metadataPath) { + return getWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, metadataPath).toBlocking().single().body(); + } + + /** + * Get a SSIS integration runtime object metadata by specified path. The return is pageable metadata list. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param metadataPath Metadata path. + * @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, String metadataPath, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, metadataPath), serviceCallback); + } + + /** + * Get a SSIS integration runtime object metadata by specified path. The return is pageable metadata list. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param metadataPath Metadata path. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the SsisObjectMetadataListResponseInner object + */ + public Observable getAsync(String resourceGroupName, String factoryName, String integrationRuntimeName, String metadataPath) { + return getWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, metadataPath).map(new Func1, SsisObjectMetadataListResponseInner>() { + @Override + public SsisObjectMetadataListResponseInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Get a SSIS integration runtime object metadata by specified path. The return is pageable metadata list. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param metadataPath Metadata path. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the SsisObjectMetadataListResponseInner object + */ + public Observable> getWithServiceResponseAsync(String resourceGroupName, String factoryName, String integrationRuntimeName, String metadataPath) { + 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."); + } + GetSsisObjectMetadataRequest getMetadataRequest = null; + if (metadataPath != null) { + getMetadataRequest = new GetSsisObjectMetadataRequest(); + getMetadataRequest.withMetadataPath(metadataPath); + } + return service.get(this.client.subscriptionId(), resourceGroupName, factoryName, integrationRuntimeName, this.client.apiVersion(), this.client.acceptLanguage(), getMetadataRequest, 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 CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/IntegrationRuntimeResourceImpl.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/IntegrationRuntimeResourceImpl.java new file mode 100644 index 0000000000000..dcede4434d91b --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/IntegrationRuntimeResourceImpl.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.v2018_06_01.implementation; + +import com.microsoft.azure.management.datafactory.v2018_06_01.IntegrationRuntimeResource; +import com.microsoft.azure.arm.model.implementation.CreatableUpdatableImpl; +import rx.Observable; +import com.microsoft.azure.management.datafactory.v2018_06_01.UpdateIntegrationRuntimeRequest; +import java.util.Map; +import com.microsoft.azure.management.datafactory.v2018_06_01.; +import com.microsoft.azure.management.datafactory.v2018_06_01.IntegrationRuntimeAutoUpdate; +import rx.functions.Func1; + +class IntegrationRuntimeResourceImpl extends CreatableUpdatableImpl implements IntegrationRuntimeResource, IntegrationRuntimeResource.Definition, IntegrationRuntimeResource.Update { + private final DataFactoryManager manager; + private String resourceGroupName; + private String factoryName; + private String integrationRuntimeName; + private String cifMatch; + private IntegrationRuntimeInner cproperties; + private UpdateIntegrationRuntimeRequest updateParameter; + + IntegrationRuntimeResourceImpl(String name, DataFactoryManager manager) { + super(name, new IntegrationRuntimeResourceInner()); + this.manager = manager; + // Set resource name + this.integrationRuntimeName = name; + // + this.cproperties = new IntegrationRuntimeInner(); + this.updateParameter = new UpdateIntegrationRuntimeRequest(); + } + + IntegrationRuntimeResourceImpl(IntegrationRuntimeResourceInner inner, DataFactoryManager manager) { + super(inner.name(), inner); + this.manager = manager; + // Set resource name + this.integrationRuntimeName = inner.name(); + // set resource ancestor and positional variables + this.resourceGroupName = IdParsingUtils.getValueFromIdByName(inner.id(), "resourceGroups"); + this.factoryName = IdParsingUtils.getValueFromIdByName(inner.id(), "factories"); + this.integrationRuntimeName = IdParsingUtils.getValueFromIdByName(inner.id(), "integrationRuntimes"); + // + this.cproperties = new IntegrationRuntimeInner(); + this.updateParameter = new UpdateIntegrationRuntimeRequest(); + } + + @Override + public DataFactoryManager manager() { + return this.manager; + } + + @Override + public Observable createResourceAsync() { + IntegrationRuntimesInner client = this.manager().inner().integrationRuntimes(); + return client.createOrUpdateAsync(this.resourceGroupName, this.factoryName, this.integrationRuntimeName, this.cproperties, this.cifMatch) + .map(new Func1() { + @Override + public IntegrationRuntimeResourceInner call(IntegrationRuntimeResourceInner resource) { + resetCreateUpdateParameters(); + return resource; + } + }) + .map(innerToFluentMap(this)); + } + + @Override + public Observable updateResourceAsync() { + IntegrationRuntimesInner client = this.manager().inner().integrationRuntimes(); + return client.updateAsync(this.resourceGroupName, this.factoryName, this.integrationRuntimeName, this.updateParameter) + .map(new Func1() { + @Override + public IntegrationRuntimeResourceInner call(IntegrationRuntimeResourceInner resource) { + resetCreateUpdateParameters(); + return resource; + } + }) + .map(innerToFluentMap(this)); + } + + @Override + protected Observable getInnerAsync() { + IntegrationRuntimesInner client = this.manager().inner().integrationRuntimes(); + return client.getAsync(this.resourceGroupName, this.factoryName, this.integrationRuntimeName); + } + + @Override + public boolean isInCreateMode() { + return this.inner().id() == null; + } + + private void resetCreateUpdateParameters() { + this.cproperties = new IntegrationRuntimeInner(); + this.updateParameter = new UpdateIntegrationRuntimeRequest(); + } + + @Override + public String etag() { + return this.inner().etag(); + } + + @Override + public String id() { + return this.inner().id(); + } + + @Override + public String name() { + return this.inner().name(); + } + + @Override + public IntegrationRuntimeInner properties() { + return this.inner().properties(); + } + + @Override + public String type() { + return this.inner().type(); + } + + @Override + public IntegrationRuntimeResourceImpl withExistingFactory(String resourceGroupName, String factoryName) { + this.resourceGroupName = resourceGroupName; + this.factoryName = factoryName; + return this; + } + + @Override + public IntegrationRuntimeResourceImpl withIfMatch(String ifMatch) { + this.cifMatch = ifMatch; + return this; + } + + @Override + public IntegrationRuntimeResourceImpl withProperties(IntegrationRuntimeInner properties) { + this.cproperties = properties; + return this; + } + + @Override + public IntegrationRuntimeResourceImpl withAutoUpdate(IntegrationRuntimeAutoUpdate autoUpdate) { + this.updateParameter.withAutoUpdate(autoUpdate); + return this; + } + + @Override + public IntegrationRuntimeResourceImpl withUpdateDelayOffset(String updateDelayOffset) { + this.updateParameter.withUpdateDelayOffset(updateDelayOffset); + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/IntegrationRuntimeResourceInner.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/IntegrationRuntimeResourceInner.java new file mode 100644 index 0000000000000..7c20d198b6753 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/IntegrationRuntimeResourceInner.java @@ -0,0 +1,89 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01.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; + + /** + * The resource name. + */ + @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY) + private String name; + + /** + * The resource type. + */ + @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY) + private String type; + + /** + * Etag identifies change in the resource. + */ + @JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY) + private String etag; + + /** + * Get integration runtime properties. + * + * @return the properties value + */ + public IntegrationRuntimeInner properties() { + return this.properties; + } + + /** + * Set integration runtime properties. + * + * @param properties the properties value to set + * @return the IntegrationRuntimeResourceInner object itself. + */ + public IntegrationRuntimeResourceInner withProperties(IntegrationRuntimeInner properties) { + this.properties = properties; + return this; + } + + /** + * Get the resource name. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Get the resource type. + * + * @return the type value + */ + public String type() { + return this.type; + } + + /** + * Get etag identifies change in the resource. + * + * @return the etag value + */ + public String etag() { + return this.etag; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/IntegrationRuntimeStatusResponseImpl.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/IntegrationRuntimeStatusResponseImpl.java new file mode 100644 index 0000000000000..ea413c267cbfd --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/IntegrationRuntimeStatusResponseImpl.java @@ -0,0 +1,37 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01.implementation; + +import com.microsoft.azure.management.datafactory.v2018_06_01.IntegrationRuntimeStatusResponse; +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import com.microsoft.azure.management.datafactory.v2018_06_01.IntegrationRuntimeStatus; + +class IntegrationRuntimeStatusResponseImpl extends WrapperImpl implements IntegrationRuntimeStatusResponse { + private final DataFactoryManager manager; + IntegrationRuntimeStatusResponseImpl(IntegrationRuntimeStatusResponseInner inner, DataFactoryManager manager) { + super(inner); + this.manager = manager; + } + + @Override + public DataFactoryManager manager() { + return this.manager; + } + + @Override + public String name() { + return this.inner().name(); + } + + @Override + public IntegrationRuntimeStatus properties() { + return this.inner().properties(); + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/IntegrationRuntimeStatusResponseInner.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/IntegrationRuntimeStatusResponseInner.java new file mode 100644 index 0000000000000..3ada7405d6a0d --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01.implementation; + +import com.microsoft.azure.management.datafactory.v2018_06_01.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 integration runtime name. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Get integration runtime properties. + * + * @return the properties value + */ + public IntegrationRuntimeStatus properties() { + return this.properties; + } + + /** + * Set integration runtime properties. + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/IntegrationRuntimesImpl.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/IntegrationRuntimesImpl.java new file mode 100644 index 0000000000000..96e166d599d24 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/IntegrationRuntimesImpl.java @@ -0,0 +1,194 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01.implementation; + +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import com.microsoft.azure.management.datafactory.v2018_06_01.IntegrationRuntimes; +import rx.Completable; +import rx.Observable; +import rx.functions.Func1; +import com.microsoft.azure.Page; +import com.microsoft.azure.management.datafactory.v2018_06_01.IntegrationRuntimeStatusResponse; +import com.microsoft.azure.management.datafactory.v2018_06_01.IntegrationRuntimeConnectionInfo; +import com.microsoft.azure.management.datafactory.v2018_06_01.IntegrationRuntimeAuthKeys; +import com.microsoft.azure.management.datafactory.v2018_06_01.IntegrationRuntimeMonitoringData; +import com.microsoft.azure.management.datafactory.v2018_06_01.CreateLinkedIntegrationRuntimeRequest; +import com.microsoft.azure.management.datafactory.v2018_06_01.IntegrationRuntimeResource; + +class IntegrationRuntimesImpl extends WrapperImpl implements IntegrationRuntimes { + private final DataFactoryManager manager; + + IntegrationRuntimesImpl(DataFactoryManager manager) { + super(manager.inner().integrationRuntimes()); + this.manager = manager; + } + + public DataFactoryManager manager() { + return this.manager; + } + + @Override + public IntegrationRuntimeResourceImpl define(String name) { + return wrapModel(name); + } + + private IntegrationRuntimeResourceImpl wrapModel(IntegrationRuntimeResourceInner inner) { + return new IntegrationRuntimeResourceImpl(inner, manager()); + } + + private IntegrationRuntimeResourceImpl wrapModel(String name) { + return new IntegrationRuntimeResourceImpl(name, this.manager()); + } + + @Override + public Observable getStatusAsync(String resourceGroupName, String factoryName, String integrationRuntimeName) { + IntegrationRuntimesInner client = this.inner(); + return client.getStatusAsync(resourceGroupName, factoryName, integrationRuntimeName) + .map(new Func1() { + @Override + public IntegrationRuntimeStatusResponse call(IntegrationRuntimeStatusResponseInner inner) { + return new IntegrationRuntimeStatusResponseImpl(inner, manager()); + } + }); + } + + @Override + public Observable getConnectionInfoAsync(String resourceGroupName, String factoryName, String integrationRuntimeName) { + IntegrationRuntimesInner client = this.inner(); + return client.getConnectionInfoAsync(resourceGroupName, factoryName, integrationRuntimeName) + .map(new Func1() { + @Override + public IntegrationRuntimeConnectionInfo call(IntegrationRuntimeConnectionInfoInner inner) { + return new IntegrationRuntimeConnectionInfoImpl(inner, manager()); + } + }); + } + + @Override + public Observable regenerateAuthKeyAsync(String resourceGroupName, String factoryName, String integrationRuntimeName) { + IntegrationRuntimesInner client = this.inner(); + return client.regenerateAuthKeyAsync(resourceGroupName, factoryName, integrationRuntimeName) + .map(new Func1() { + @Override + public IntegrationRuntimeAuthKeys call(IntegrationRuntimeAuthKeysInner inner) { + return new IntegrationRuntimeAuthKeysImpl(inner, manager()); + } + }); + } + + @Override + public Observable listAuthKeysAsync(String resourceGroupName, String factoryName, String integrationRuntimeName) { + IntegrationRuntimesInner client = this.inner(); + return client.listAuthKeysAsync(resourceGroupName, factoryName, integrationRuntimeName) + .map(new Func1() { + @Override + public IntegrationRuntimeAuthKeys call(IntegrationRuntimeAuthKeysInner inner) { + return new IntegrationRuntimeAuthKeysImpl(inner, manager()); + } + }); + } + + @Override + public Observable startAsync(String resourceGroupName, String factoryName, String integrationRuntimeName) { + IntegrationRuntimesInner client = this.inner(); + return client.startAsync(resourceGroupName, factoryName, integrationRuntimeName) + .map(new Func1() { + @Override + public IntegrationRuntimeStatusResponse call(IntegrationRuntimeStatusResponseInner inner) { + return new IntegrationRuntimeStatusResponseImpl(inner, manager()); + } + }); + } + + @Override + public Completable stopAsync(String resourceGroupName, String factoryName, String integrationRuntimeName) { + IntegrationRuntimesInner client = this.inner(); + return client.stopAsync(resourceGroupName, factoryName, integrationRuntimeName).toCompletable(); + } + + @Override + public Completable syncCredentialsAsync(String resourceGroupName, String factoryName, String integrationRuntimeName) { + IntegrationRuntimesInner client = this.inner(); + return client.syncCredentialsAsync(resourceGroupName, factoryName, integrationRuntimeName).toCompletable(); + } + + @Override + public Observable getMonitoringDataAsync(String resourceGroupName, String factoryName, String integrationRuntimeName) { + IntegrationRuntimesInner client = this.inner(); + return client.getMonitoringDataAsync(resourceGroupName, factoryName, integrationRuntimeName) + .map(new Func1() { + @Override + public IntegrationRuntimeMonitoringData call(IntegrationRuntimeMonitoringDataInner inner) { + return new IntegrationRuntimeMonitoringDataImpl(inner, manager()); + } + }); + } + + @Override + public Completable upgradeAsync(String resourceGroupName, String factoryName, String integrationRuntimeName) { + IntegrationRuntimesInner client = this.inner(); + return client.upgradeAsync(resourceGroupName, factoryName, integrationRuntimeName).toCompletable(); + } + + @Override + public Completable removeLinksAsync(String resourceGroupName, String factoryName, String integrationRuntimeName, String linkedFactoryName) { + IntegrationRuntimesInner client = this.inner(); + return client.removeLinksAsync(resourceGroupName, factoryName, integrationRuntimeName, linkedFactoryName).toCompletable(); + } + + @Override + public Observable createLinkedIntegrationRuntimeAsync(String resourceGroupName, String factoryName, String integrationRuntimeName, CreateLinkedIntegrationRuntimeRequest createLinkedIntegrationRuntimeRequest) { + IntegrationRuntimesInner client = this.inner(); + return client.createLinkedIntegrationRuntimeAsync(resourceGroupName, factoryName, integrationRuntimeName, createLinkedIntegrationRuntimeRequest) + .map(new Func1() { + @Override + public IntegrationRuntimeStatusResponse call(IntegrationRuntimeStatusResponseInner inner) { + return new IntegrationRuntimeStatusResponseImpl(inner, manager()); + } + }); + } + + @Override + public Observable listByFactoryAsync(final String resourceGroupName, final String factoryName) { + IntegrationRuntimesInner client = this.inner(); + return client.listByFactoryAsync(resourceGroupName, factoryName) + .flatMapIterable(new Func1, Iterable>() { + @Override + public Iterable call(Page page) { + return page.items(); + } + }) + .map(new Func1() { + @Override + public IntegrationRuntimeResource call(IntegrationRuntimeResourceInner inner) { + return wrapModel(inner); + } + }); + } + + @Override + public Observable getAsync(String resourceGroupName, String factoryName, String integrationRuntimeName) { + IntegrationRuntimesInner client = this.inner(); + return client.getAsync(resourceGroupName, factoryName, integrationRuntimeName) + .map(new Func1() { + @Override + public IntegrationRuntimeResource call(IntegrationRuntimeResourceInner inner) { + return wrapModel(inner); + } + }); + } + + @Override + public Completable deleteAsync(String resourceGroupName, String factoryName, String integrationRuntimeName) { + IntegrationRuntimesInner client = this.inner(); + return client.deleteAsync(resourceGroupName, factoryName, integrationRuntimeName).toCompletable(); + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/IntegrationRuntimesInner.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/IntegrationRuntimesInner.java new file mode 100644 index 0000000000000..c98447c41eb00 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/IntegrationRuntimesInner.java @@ -0,0 +1,2250 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01.implementation; + +import retrofit2.Retrofit; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.AzureServiceFuture; +import com.microsoft.azure.CloudException; +import com.microsoft.azure.ListOperationCallback; +import com.microsoft.azure.management.datafactory.v2018_06_01.CreateLinkedIntegrationRuntimeRequest; +import com.microsoft.azure.management.datafactory.v2018_06_01.IntegrationRuntimeAuthKeyName; +import com.microsoft.azure.management.datafactory.v2018_06_01.IntegrationRuntimeRegenerateKeyParameters; +import com.microsoft.azure.management.datafactory.v2018_06_01.LinkedIntegrationRuntimeRequest; +import com.microsoft.azure.management.datafactory.v2018_06_01.UpdateIntegrationRuntimeRequest; +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.v2018_06_01.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.v2018_06_01.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.v2018_06_01.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("If-None-Match") String ifNoneMatch, @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.v2018_06_01.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 UpdateIntegrationRuntimeRequest 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.v2018_06_01.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.v2018_06_01.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.v2018_06_01.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.v2018_06_01.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.v2018_06_01.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.v2018_06_01.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.v2018_06_01.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.v2018_06_01.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.v2018_06_01.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.v2018_06_01.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.v2018_06_01.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.v2018_06_01.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.v2018_06_01.IntegrationRuntimes removeLinks" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/removeLinks") + Observable> removeLinks(@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 LinkedIntegrationRuntimeRequest linkedIntegrationRuntimeRequest, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.datafactory.v2018_06_01.IntegrationRuntimes createLinkedIntegrationRuntime" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/linkedIntegrationRuntime") + Observable> createLinkedIntegrationRuntime(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("factoryName") String factoryName, @Path("integrationRuntimeName") String integrationRuntimeName, @Query("api-version") String apiVersion, @Body CreateLinkedIntegrationRuntimeRequest createLinkedIntegrationRuntimeRequest, @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.v2018_06_01.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 CloudException 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 CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(CloudException.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 CloudException 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 CloudException 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 CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.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 CloudException 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."); + } + final String ifNoneMatch = null; + return service.get(this.client.subscriptionId(), resourceGroupName, factoryName, integrationRuntimeName, this.client.apiVersion(), ifNoneMatch, 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); + } + } + }); + } + + /** + * Gets an integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param ifNoneMatch ETag of the integration runtime entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was provided, then no content will be returned. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException 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, String ifNoneMatch) { + return getWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, ifNoneMatch).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 ifNoneMatch ETag of the integration runtime entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was provided, then no content will be returned. + * @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, String ifNoneMatch, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, ifNoneMatch), serviceCallback); + } + + /** + * Gets an integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param ifNoneMatch ETag of the integration runtime entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was provided, then no content will be returned. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the IntegrationRuntimeResourceInner object + */ + public Observable getAsync(String resourceGroupName, String factoryName, String integrationRuntimeName, String ifNoneMatch) { + return getWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, ifNoneMatch).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. + * @param ifNoneMatch ETag of the integration runtime entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was provided, then no content will be returned. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the IntegrationRuntimeResourceInner object + */ + public Observable> getWithServiceResponseAsync(String resourceGroupName, String factoryName, String integrationRuntimeName, String ifNoneMatch) { + 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(), ifNoneMatch, 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 CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(304, new TypeToken() { }.getType()) + .registerError(CloudException.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 CloudException 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 update(String resourceGroupName, String factoryName, String integrationRuntimeName, UpdateIntegrationRuntimeRequest 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, UpdateIntegrationRuntimeRequest 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 IntegrationRuntimeResourceInner object + */ + public Observable updateAsync(String resourceGroupName, String factoryName, String integrationRuntimeName, UpdateIntegrationRuntimeRequest updateIntegrationRuntimeRequest) { + return updateWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, updateIntegrationRuntimeRequest).map(new Func1, IntegrationRuntimeResourceInner>() { + @Override + public IntegrationRuntimeResourceInner 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 IntegrationRuntimeResourceInner object + */ + public Observable> updateWithServiceResponseAsync(String resourceGroupName, String factoryName, String integrationRuntimeName, UpdateIntegrationRuntimeRequest 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 CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.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 CloudException 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 CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(204, new TypeToken() { }.getType()) + .registerError(CloudException.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 CloudException 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 CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.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 CloudException 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 CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.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 CloudException 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 CloudException 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 CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.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 CloudException 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 CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.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 CloudException 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 CloudException 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 CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(202, new TypeToken() { }.getType()) + .registerError(CloudException.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 CloudException 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 CloudException 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 CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(202, new TypeToken() { }.getType()) + .registerError(CloudException.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 CloudException 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 CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.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 CloudException 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 CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Upgrade self-hosted integration runtime to latest version if availability. + * + * @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 CloudException 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 availability. + * + * @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 availability. + * + * @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 availability. + * + * @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 CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Remove all linked integration runtimes under specific data factory in a self-hosted integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param linkedFactoryName The data factory name for linked integration runtime. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void removeLinks(String resourceGroupName, String factoryName, String integrationRuntimeName, String linkedFactoryName) { + removeLinksWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, linkedFactoryName).toBlocking().single().body(); + } + + /** + * Remove all linked integration runtimes under specific data factory in a self-hosted integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param linkedFactoryName The data factory name for linked 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 removeLinksAsync(String resourceGroupName, String factoryName, String integrationRuntimeName, String linkedFactoryName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(removeLinksWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, linkedFactoryName), serviceCallback); + } + + /** + * Remove all linked integration runtimes under specific data factory in a self-hosted integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param linkedFactoryName The data factory name for linked integration runtime. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable removeLinksAsync(String resourceGroupName, String factoryName, String integrationRuntimeName, String linkedFactoryName) { + return removeLinksWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, linkedFactoryName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Remove all linked integration runtimes under specific data factory in a self-hosted integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param linkedFactoryName The data factory name for linked integration runtime. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> removeLinksWithServiceResponseAsync(String resourceGroupName, String factoryName, String integrationRuntimeName, String linkedFactoryName) { + 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 (linkedFactoryName == null) { + throw new IllegalArgumentException("Parameter linkedFactoryName is required and cannot be null."); + } + LinkedIntegrationRuntimeRequest linkedIntegrationRuntimeRequest = new LinkedIntegrationRuntimeRequest(); + linkedIntegrationRuntimeRequest.withLinkedFactoryName(linkedFactoryName); + return service.removeLinks(this.client.subscriptionId(), resourceGroupName, factoryName, integrationRuntimeName, this.client.apiVersion(), this.client.acceptLanguage(), linkedIntegrationRuntimeRequest, this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = removeLinksDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse removeLinksDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Create a linked integration runtime entry in a shared integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param createLinkedIntegrationRuntimeRequest The linked integration runtime properties. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException 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 createLinkedIntegrationRuntime(String resourceGroupName, String factoryName, String integrationRuntimeName, CreateLinkedIntegrationRuntimeRequest createLinkedIntegrationRuntimeRequest) { + return createLinkedIntegrationRuntimeWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, createLinkedIntegrationRuntimeRequest).toBlocking().single().body(); + } + + /** + * Create a linked integration runtime entry in a shared integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param createLinkedIntegrationRuntimeRequest The linked 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 createLinkedIntegrationRuntimeAsync(String resourceGroupName, String factoryName, String integrationRuntimeName, CreateLinkedIntegrationRuntimeRequest createLinkedIntegrationRuntimeRequest, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createLinkedIntegrationRuntimeWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, createLinkedIntegrationRuntimeRequest), serviceCallback); + } + + /** + * Create a linked integration runtime entry in a shared integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param createLinkedIntegrationRuntimeRequest The linked integration runtime properties. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the IntegrationRuntimeStatusResponseInner object + */ + public Observable createLinkedIntegrationRuntimeAsync(String resourceGroupName, String factoryName, String integrationRuntimeName, CreateLinkedIntegrationRuntimeRequest createLinkedIntegrationRuntimeRequest) { + return createLinkedIntegrationRuntimeWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, createLinkedIntegrationRuntimeRequest).map(new Func1, IntegrationRuntimeStatusResponseInner>() { + @Override + public IntegrationRuntimeStatusResponseInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Create a linked integration runtime entry in a shared integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param createLinkedIntegrationRuntimeRequest The linked integration runtime properties. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the IntegrationRuntimeStatusResponseInner object + */ + public Observable> createLinkedIntegrationRuntimeWithServiceResponseAsync(String resourceGroupName, String factoryName, String integrationRuntimeName, CreateLinkedIntegrationRuntimeRequest createLinkedIntegrationRuntimeRequest) { + 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 (createLinkedIntegrationRuntimeRequest == null) { + throw new IllegalArgumentException("Parameter createLinkedIntegrationRuntimeRequest is required and cannot be null."); + } + Validator.validate(createLinkedIntegrationRuntimeRequest); + return service.createLinkedIntegrationRuntime(this.client.subscriptionId(), resourceGroupName, factoryName, integrationRuntimeName, this.client.apiVersion(), createLinkedIntegrationRuntimeRequest, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = createLinkedIntegrationRuntimeDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse createLinkedIntegrationRuntimeDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.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 CloudException 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 CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/LinkedServiceInner.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/LinkedServiceInner.java new file mode 100644 index 0000000000000..6471c87b1194f --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/LinkedServiceInner.java @@ -0,0 +1,250 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01.implementation; + +import java.util.Map; +import com.microsoft.azure.management.datafactory.v2018_06_01.IntegrationRuntimeReference; +import com.microsoft.azure.management.datafactory.v2018_06_01.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 = "AzureFunction", value = AzureFunctionLinkedService.class), + @JsonSubTypes.Type(name = "AzureDataExplorer", value = AzureDataExplorerLinkedService.class), + @JsonSubTypes.Type(name = "SapTable", value = SapTableLinkedService.class), + @JsonSubTypes.Type(name = "GoogleAdWords", value = GoogleAdWordsLinkedService.class), + @JsonSubTypes.Type(name = "OracleServiceCloud", value = OracleServiceCloudLinkedService.class), + @JsonSubTypes.Type(name = "DynamicsAX", value = DynamicsAXLinkedService.class), + @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 = "RestService", value = RestServiceLinkedService.class), + @JsonSubTypes.Type(name = "SapOpenHub", value = SapOpenHubLinkedService.class), + @JsonSubTypes.Type(name = "SapEcc", value = SapEccLinkedService.class), + @JsonSubTypes.Type(name = "SapCloudForCustomer", value = SapCloudForCustomerLinkedService.class), + @JsonSubTypes.Type(name = "SalesforceServiceCloud", value = SalesforceServiceCloudLinkedService.class), + @JsonSubTypes.Type(name = "Salesforce", value = SalesforceLinkedService.class), + @JsonSubTypes.Type(name = "Office365", value = Office365LinkedService.class), + @JsonSubTypes.Type(name = "AzureBlobFS", value = AzureBlobFSLinkedService.class), + @JsonSubTypes.Type(name = "AzureDataLakeStore", value = AzureDataLakeStoreLinkedService.class), + @JsonSubTypes.Type(name = "CosmosDbMongoDbApi", value = CosmosDbMongoDbApiLinkedService.class), + @JsonSubTypes.Type(name = "MongoDbV2", value = MongoDbV2LinkedService.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 = "MicrosoftAccess", value = MicrosoftAccessLinkedService.class), + @JsonSubTypes.Type(name = "Informix", value = InformixLinkedService.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 = "CommonDataServiceForApps", value = CommonDataServiceForAppsLinkedService.class), + @JsonSubTypes.Type(name = "DynamicsCrm", value = DynamicsCrmLinkedService.class), + @JsonSubTypes.Type(name = "Dynamics", value = DynamicsLinkedService.class), + @JsonSubTypes.Type(name = "CosmosDb", value = CosmosDbLinkedService.class), + @JsonSubTypes.Type(name = "AzureKeyVault", value = AzureKeyVaultLinkedService.class), + @JsonSubTypes.Type(name = "AzureBatch", value = AzureBatchLinkedService.class), + @JsonSubTypes.Type(name = "AzureSqlMI", value = AzureSqlMILinkedService.class), + @JsonSubTypes.Type(name = "AzureSqlDatabase", value = AzureSqlDatabaseLinkedService.class), + @JsonSubTypes.Type(name = "SqlServer", value = SqlServerLinkedService.class), + @JsonSubTypes.Type(name = "AzureSqlDW", value = AzureSqlDWLinkedService.class), + @JsonSubTypes.Type(name = "AzureTableStorage", value = AzureTableStorageLinkedService.class), + @JsonSubTypes.Type(name = "AzureBlobStorage", value = AzureBlobStorageLinkedService.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 linked service. + */ + @JsonProperty(value = "annotations") + private List annotations; + + /** + * Get unmatched properties from the message are deserialized this collection. + * + * @return the additionalProperties value + */ + public Map additionalProperties() { + return this.additionalProperties; + } + + /** + * Set unmatched properties from the message are deserialized this collection. + * + * @param additionalProperties the additionalProperties value to set + * @return the LinkedServiceInner object itself. + */ + public LinkedServiceInner withAdditionalProperties(Map additionalProperties) { + this.additionalProperties = additionalProperties; + return this; + } + + /** + * Get the integration runtime reference. + * + * @return the connectVia value + */ + public IntegrationRuntimeReference connectVia() { + return this.connectVia; + } + + /** + * Set the integration runtime reference. + * + * @param connectVia the connectVia value to set + * @return the LinkedServiceInner object itself. + */ + public LinkedServiceInner withConnectVia(IntegrationRuntimeReference connectVia) { + this.connectVia = connectVia; + return this; + } + + /** + * Get linked service description. + * + * @return the description value + */ + public String description() { + return this.description; + } + + /** + * Set linked service description. + * + * @param description the description value to set + * @return the LinkedServiceInner object itself. + */ + public LinkedServiceInner withDescription(String description) { + this.description = description; + return this; + } + + /** + * Get parameters for linked service. + * + * @return the parameters value + */ + public Map parameters() { + return this.parameters; + } + + /** + * Set parameters for linked service. + * + * @param parameters the parameters value to set + * @return the LinkedServiceInner object itself. + */ + public LinkedServiceInner withParameters(Map parameters) { + this.parameters = parameters; + return this; + } + + /** + * Get list of tags that can be used for describing the linked service. + * + * @return the annotations value + */ + public List annotations() { + return this.annotations; + } + + /** + * Set list of tags that can be used for describing the linked service. + * + * @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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/LinkedServiceResourceImpl.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/LinkedServiceResourceImpl.java new file mode 100644 index 0000000000000..793df989a83a7 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/LinkedServiceResourceImpl.java @@ -0,0 +1,156 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01.implementation; + +import com.microsoft.azure.management.datafactory.v2018_06_01.LinkedServiceResource; +import com.microsoft.azure.arm.model.implementation.CreatableUpdatableImpl; +import rx.Observable; +import java.util.Map; +import com.microsoft.azure.management.datafactory.v2018_06_01.IntegrationRuntimeReference; +import com.microsoft.azure.management.datafactory.v2018_06_01.ParameterSpecification; +import java.util.List; +import com.microsoft.azure.management.datafactory.v2018_06_01.; +import rx.functions.Func1; + +class LinkedServiceResourceImpl extends CreatableUpdatableImpl implements LinkedServiceResource, LinkedServiceResource.Definition, LinkedServiceResource.Update { + private final DataFactoryManager manager; + private String resourceGroupName; + private String factoryName; + private String linkedServiceName; + private String cifMatch; + private LinkedServiceInner cproperties; + private String uifMatch; + private LinkedServiceInner uproperties; + + LinkedServiceResourceImpl(String name, DataFactoryManager manager) { + super(name, new LinkedServiceResourceInner()); + this.manager = manager; + // Set resource name + this.linkedServiceName = name; + // + this.cproperties = new LinkedServiceInner(); + this.uproperties = new LinkedServiceInner(); + } + + LinkedServiceResourceImpl(LinkedServiceResourceInner inner, DataFactoryManager manager) { + super(inner.name(), inner); + this.manager = manager; + // Set resource name + this.linkedServiceName = inner.name(); + // set resource ancestor and positional variables + this.resourceGroupName = IdParsingUtils.getValueFromIdByName(inner.id(), "resourceGroups"); + this.factoryName = IdParsingUtils.getValueFromIdByName(inner.id(), "factories"); + this.linkedServiceName = IdParsingUtils.getValueFromIdByName(inner.id(), "linkedservices"); + // + this.cproperties = new LinkedServiceInner(); + this.uproperties = new LinkedServiceInner(); + } + + @Override + public DataFactoryManager manager() { + return this.manager; + } + + @Override + public Observable createResourceAsync() { + LinkedServicesInner client = this.manager().inner().linkedServices(); + return client.createOrUpdateAsync(this.resourceGroupName, this.factoryName, this.linkedServiceName, this.cproperties, this.cifMatch) + .map(new Func1() { + @Override + public LinkedServiceResourceInner call(LinkedServiceResourceInner resource) { + resetCreateUpdateParameters(); + return resource; + } + }) + .map(innerToFluentMap(this)); + } + + @Override + public Observable updateResourceAsync() { + LinkedServicesInner client = this.manager().inner().linkedServices(); + return client.createOrUpdateAsync(this.resourceGroupName, this.factoryName, this.linkedServiceName, this.uproperties, this.uifMatch) + .map(new Func1() { + @Override + public LinkedServiceResourceInner call(LinkedServiceResourceInner resource) { + resetCreateUpdateParameters(); + return resource; + } + }) + .map(innerToFluentMap(this)); + } + + @Override + protected Observable getInnerAsync() { + LinkedServicesInner client = this.manager().inner().linkedServices(); + return client.getAsync(this.resourceGroupName, this.factoryName, this.linkedServiceName); + } + + @Override + public boolean isInCreateMode() { + return this.inner().id() == null; + } + + private void resetCreateUpdateParameters() { + this.cproperties = new LinkedServiceInner(); + this.uproperties = new LinkedServiceInner(); + } + + @Override + public String etag() { + return this.inner().etag(); + } + + @Override + public String id() { + return this.inner().id(); + } + + @Override + public String name() { + return this.inner().name(); + } + + @Override + public LinkedServiceInner properties() { + return this.inner().properties(); + } + + @Override + public String type() { + return this.inner().type(); + } + + @Override + public LinkedServiceResourceImpl withExistingFactory(String resourceGroupName, String factoryName) { + this.resourceGroupName = resourceGroupName; + this.factoryName = factoryName; + return this; + } + + @Override + public LinkedServiceResourceImpl withIfMatch(String ifMatch) { + if (isInCreateMode()) { + this.cifMatch = ifMatch; + } else { + this.uifMatch = ifMatch; + } + return this; + } + + @Override + public LinkedServiceResourceImpl withProperties(LinkedServiceInner properties) { + if (isInCreateMode()) { + this.cproperties = properties; + } else { + this.uproperties = properties; + } + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/LinkedServiceResourceInner.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/LinkedServiceResourceInner.java new file mode 100644 index 0000000000000..9a16a431b5dac --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/LinkedServiceResourceInner.java @@ -0,0 +1,89 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01.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; + + /** + * The resource name. + */ + @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY) + private String name; + + /** + * The resource type. + */ + @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY) + private String type; + + /** + * Etag identifies change in the resource. + */ + @JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY) + private String etag; + + /** + * Get properties of linked service. + * + * @return the properties value + */ + public LinkedServiceInner properties() { + return this.properties; + } + + /** + * Set properties of linked service. + * + * @param properties the properties value to set + * @return the LinkedServiceResourceInner object itself. + */ + public LinkedServiceResourceInner withProperties(LinkedServiceInner properties) { + this.properties = properties; + return this; + } + + /** + * Get the resource name. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Get the resource type. + * + * @return the type value + */ + public String type() { + return this.type; + } + + /** + * Get etag identifies change in the resource. + * + * @return the etag value + */ + public String etag() { + return this.etag; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/LinkedServicesImpl.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/LinkedServicesImpl.java new file mode 100644 index 0000000000000..5fb4971623442 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/LinkedServicesImpl.java @@ -0,0 +1,81 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01.implementation; + +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import com.microsoft.azure.management.datafactory.v2018_06_01.LinkedServices; +import rx.Completable; +import rx.Observable; +import rx.functions.Func1; +import com.microsoft.azure.Page; +import com.microsoft.azure.management.datafactory.v2018_06_01.LinkedServiceResource; + +class LinkedServicesImpl extends WrapperImpl implements LinkedServices { + private final DataFactoryManager manager; + + LinkedServicesImpl(DataFactoryManager manager) { + super(manager.inner().linkedServices()); + this.manager = manager; + } + + public DataFactoryManager manager() { + return this.manager; + } + + @Override + public LinkedServiceResourceImpl define(String name) { + return wrapModel(name); + } + + private LinkedServiceResourceImpl wrapModel(LinkedServiceResourceInner inner) { + return new LinkedServiceResourceImpl(inner, manager()); + } + + private LinkedServiceResourceImpl wrapModel(String name) { + return new LinkedServiceResourceImpl(name, this.manager()); + } + + @Override + public Observable listByFactoryAsync(final String resourceGroupName, final String factoryName) { + LinkedServicesInner client = this.inner(); + return client.listByFactoryAsync(resourceGroupName, factoryName) + .flatMapIterable(new Func1, Iterable>() { + @Override + public Iterable call(Page page) { + return page.items(); + } + }) + .map(new Func1() { + @Override + public LinkedServiceResource call(LinkedServiceResourceInner inner) { + return wrapModel(inner); + } + }); + } + + @Override + public Observable getAsync(String resourceGroupName, String factoryName, String linkedServiceName) { + LinkedServicesInner client = this.inner(); + return client.getAsync(resourceGroupName, factoryName, linkedServiceName) + .map(new Func1() { + @Override + public LinkedServiceResource call(LinkedServiceResourceInner inner) { + return wrapModel(inner); + } + }); + } + + @Override + public Completable deleteAsync(String resourceGroupName, String factoryName, String linkedServiceName) { + LinkedServicesInner client = this.inner(); + return client.deleteAsync(resourceGroupName, factoryName, linkedServiceName).toCompletable(); + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/LinkedServicesInner.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/LinkedServicesInner.java new file mode 100644 index 0000000000000..5e47e6fe3a68b --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/LinkedServicesInner.java @@ -0,0 +1,802 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01.implementation; + +import retrofit2.Retrofit; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.AzureServiceFuture; +import com.microsoft.azure.CloudException; +import com.microsoft.azure.ListOperationCallback; +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.v2018_06_01.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.v2018_06_01.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.v2018_06_01.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("If-None-Match") String ifNoneMatch, @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.v2018_06_01.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.v2018_06_01.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 CloudException 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 CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(CloudException.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 CloudException 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 CloudException 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 CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.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 CloudException 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."); + } + final String ifNoneMatch = null; + return service.get(this.client.subscriptionId(), resourceGroupName, factoryName, linkedServiceName, this.client.apiVersion(), ifNoneMatch, 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); + } + } + }); + } + + /** + * Gets a linked service. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param linkedServiceName The linked service name. + * @param ifNoneMatch ETag of the linked service entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was provided, then no content will be returned. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException 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, String ifNoneMatch) { + return getWithServiceResponseAsync(resourceGroupName, factoryName, linkedServiceName, ifNoneMatch).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 ifNoneMatch ETag of the linked service entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was provided, then no content will be returned. + * @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, String ifNoneMatch, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getWithServiceResponseAsync(resourceGroupName, factoryName, linkedServiceName, ifNoneMatch), serviceCallback); + } + + /** + * Gets a linked service. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param linkedServiceName The linked service name. + * @param ifNoneMatch ETag of the linked service entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was provided, then no content will be returned. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the LinkedServiceResourceInner object + */ + public Observable getAsync(String resourceGroupName, String factoryName, String linkedServiceName, String ifNoneMatch) { + return getWithServiceResponseAsync(resourceGroupName, factoryName, linkedServiceName, ifNoneMatch).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. + * @param ifNoneMatch ETag of the linked service entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was provided, then no content will be returned. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the LinkedServiceResourceInner object + */ + public Observable> getWithServiceResponseAsync(String resourceGroupName, String factoryName, String linkedServiceName, String ifNoneMatch) { + 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(), ifNoneMatch, 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 CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(304, new TypeToken() { }.getType()) + .registerError(CloudException.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 CloudException 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 CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(204, new TypeToken() { }.getType()) + .registerError(CloudException.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 CloudException 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 CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/OperationImpl.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/OperationImpl.java new file mode 100644 index 0000000000000..0a0f6995d06ae --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/OperationImpl.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.v2018_06_01.implementation; + +import com.microsoft.azure.management.datafactory.v2018_06_01.Operation; +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import com.microsoft.azure.management.datafactory.v2018_06_01.OperationDisplay; +import com.microsoft.azure.management.datafactory.v2018_06_01.OperationServiceSpecification; + +class OperationImpl extends WrapperImpl implements Operation { + private final DataFactoryManager manager; + OperationImpl(OperationInner inner, DataFactoryManager manager) { + super(inner); + this.manager = manager; + } + + @Override + public DataFactoryManager manager() { + return this.manager; + } + + @Override + public OperationDisplay display() { + return this.inner().display(); + } + + @Override + public String name() { + return this.inner().name(); + } + + @Override + public String origin() { + return this.inner().origin(); + } + + @Override + public OperationServiceSpecification serviceSpecification() { + return this.inner().serviceSpecification(); + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/OperationInner.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/OperationInner.java new file mode 100644 index 0000000000000..3010d804da9ae --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/OperationInner.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.v2018_06_01.implementation; + +import com.microsoft.azure.management.datafactory.v2018_06_01.OperationDisplay; +import com.microsoft.azure.management.datafactory.v2018_06_01.OperationServiceSpecification; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; + +/** + * Azure Data Factory API operation definition. + */ +@JsonFlatten +public class OperationInner { + /** + * 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 operation name: {provider}/{resource}/{operation}. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Set operation name: {provider}/{resource}/{operation}. + * + * @param name the name value to set + * @return the OperationInner object itself. + */ + public OperationInner withName(String name) { + this.name = name; + return this; + } + + /** + * Get the intended executor of the operation. + * + * @return the origin value + */ + public String origin() { + return this.origin; + } + + /** + * Set the intended executor of the operation. + * + * @param origin the origin value to set + * @return the OperationInner object itself. + */ + public OperationInner withOrigin(String origin) { + this.origin = origin; + return this; + } + + /** + * Get metadata associated with the operation. + * + * @return the display value + */ + public OperationDisplay display() { + return this.display; + } + + /** + * Set metadata associated with the operation. + * + * @param display the display value to set + * @return the OperationInner object itself. + */ + public OperationInner withDisplay(OperationDisplay display) { + this.display = display; + return this; + } + + /** + * Get details about a service operation. + * + * @return the serviceSpecification value + */ + public OperationServiceSpecification serviceSpecification() { + return this.serviceSpecification; + } + + /** + * Set details about a service operation. + * + * @param serviceSpecification the serviceSpecification value to set + * @return the OperationInner object itself. + */ + public OperationInner withServiceSpecification(OperationServiceSpecification serviceSpecification) { + this.serviceSpecification = serviceSpecification; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/OperationsImpl.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/OperationsImpl.java new file mode 100644 index 0000000000000..39de58bbd2545 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/OperationsImpl.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. + * abc + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01.implementation; + +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import com.microsoft.azure.management.datafactory.v2018_06_01.Operations; +import rx.functions.Func1; +import rx.Observable; +import com.microsoft.azure.Page; +import com.microsoft.azure.management.datafactory.v2018_06_01.Operation; + +class OperationsImpl extends WrapperImpl implements Operations { + private final DataFactoryManager manager; + + OperationsImpl(DataFactoryManager manager) { + super(manager.inner().operations()); + this.manager = manager; + } + + public DataFactoryManager manager() { + return this.manager; + } + + @Override + public Observable listAsync() { + OperationsInner client = this.inner(); + return client.listAsync() + .flatMapIterable(new Func1, Iterable>() { + @Override + public Iterable call(Page page) { + return page.items(); + } + }) + .map(new Func1() { + @Override + public Operation call(OperationInner inner) { + return new OperationImpl(inner, manager()); + } + }); + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/OperationsInner.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/OperationsInner.java new file mode 100644 index 0000000000000..77d932e0bc658 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/OperationsInner.java @@ -0,0 +1,283 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01.implementation; + +import retrofit2.Retrofit; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.AzureServiceFuture; +import com.microsoft.azure.CloudException; +import com.microsoft.azure.ListOperationCallback; +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 retrofit2.http.GET; +import retrofit2.http.Header; +import retrofit2.http.Headers; +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 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.v2018_06_01.Operations list" }) + @GET("providers/Microsoft.DataFactory/operations") + Observable> list(@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.v2018_06_01.Operations listNext" }) + @GET + Observable> listNext(@Url String nextUrl, @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 CloudException 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<OperationInner> 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 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 ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listSinglePageAsync(), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists the available Azure Data Factory API operations. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<OperationInner> object + */ + public Observable> listAsync() { + return listWithServiceResponseAsync() + .map(new Func1>, Page>() { + @Override + public Page 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 PagedList<OperationInner> 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 the available Azure Data Factory API operations. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<OperationInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listSinglePageAsync() { + 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> 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 CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Lists the available Azure Data Factory API operations. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException 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<OperationInner> 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 the available Azure Data Factory API operations. + * + * @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 the available Azure Data Factory API operations. + * + * @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<OperationInner> object + */ + public Observable> listNextAsync(final String nextPageLink) { + return listNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists the available Azure Data Factory API operations. + * + * @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<OperationInner> 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 the available Azure Data Factory API operations. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<OperationInner> 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 CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/PageImpl.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/PageImpl.java new file mode 100644 index 0000000000000..33aeb16d16420 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01.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/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/PipelineResourceImpl.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/PipelineResourceImpl.java new file mode 100644 index 0000000000000..c8309f04ed467 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/PipelineResourceImpl.java @@ -0,0 +1,205 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01.implementation; + +import com.microsoft.azure.management.datafactory.v2018_06_01.PipelineResource; +import com.microsoft.azure.arm.model.implementation.CreatableUpdatableImpl; +import rx.Observable; +import java.util.Map; +import java.util.List; +import com.microsoft.azure.management.datafactory.v2018_06_01.Activity; +import com.microsoft.azure.management.datafactory.v2018_06_01.ParameterSpecification; +import com.microsoft.azure.management.datafactory.v2018_06_01.VariableSpecification; +import com.microsoft.azure.management.datafactory.v2018_06_01.PipelineFolder; + +class PipelineResourceImpl extends CreatableUpdatableImpl implements PipelineResource, PipelineResource.Definition, PipelineResource.Update { + private final DataFactoryManager manager; + private String resourceGroupName; + private String factoryName; + private String pipelineName; + private String cifMatch; + private String uifMatch; + + PipelineResourceImpl(String name, DataFactoryManager manager) { + super(name, new PipelineResourceInner()); + this.manager = manager; + // Set resource name + this.pipelineName = name; + // + } + + PipelineResourceImpl(PipelineResourceInner inner, DataFactoryManager manager) { + super(inner.name(), inner); + this.manager = manager; + // Set resource name + this.pipelineName = inner.name(); + // set resource ancestor and positional variables + this.resourceGroupName = IdParsingUtils.getValueFromIdByName(inner.id(), "resourceGroups"); + this.factoryName = IdParsingUtils.getValueFromIdByName(inner.id(), "factories"); + this.pipelineName = IdParsingUtils.getValueFromIdByName(inner.id(), "pipelines"); + // + } + + @Override + public DataFactoryManager manager() { + return this.manager; + } + + @Override + public Observable createResourceAsync() { + PipelinesInner client = this.manager().inner().pipelines(); + return client.createOrUpdateAsync(this.resourceGroupName, this.factoryName, this.pipelineName, this.inner(), this.cifMatch) + .map(innerToFluentMap(this)); + } + + @Override + public Observable updateResourceAsync() { + PipelinesInner client = this.manager().inner().pipelines(); + return client.createOrUpdateAsync(this.resourceGroupName, this.factoryName, this.pipelineName, this.inner(), this.uifMatch) + .map(innerToFluentMap(this)); + } + + @Override + protected Observable getInnerAsync() { + PipelinesInner client = this.manager().inner().pipelines(); + return client.getAsync(this.resourceGroupName, this.factoryName, this.pipelineName); + } + + @Override + public boolean isInCreateMode() { + return this.inner().id() == null; + } + + + @Override + public List activities() { + return this.inner().activities(); + } + + @Override + public Map additionalProperties() { + return this.inner().additionalProperties(); + } + + @Override + public List annotations() { + return this.inner().annotations(); + } + + @Override + public Integer concurrency() { + return this.inner().concurrency(); + } + + @Override + public String description() { + return this.inner().description(); + } + + @Override + public String etag() { + return this.inner().etag(); + } + + @Override + public PipelineFolder folder() { + return this.inner().folder(); + } + + @Override + public String id() { + return this.inner().id(); + } + + @Override + public String name() { + return this.inner().name(); + } + + @Override + public Map parameters() { + return this.inner().parameters(); + } + + @Override + public String type() { + return this.inner().type(); + } + + @Override + public Map variables() { + return this.inner().variables(); + } + + @Override + public PipelineResourceImpl withExistingFactory(String resourceGroupName, String factoryName) { + this.resourceGroupName = resourceGroupName; + this.factoryName = factoryName; + return this; + } + + @Override + public PipelineResourceImpl withIfMatch(String ifMatch) { + if (isInCreateMode()) { + this.cifMatch = ifMatch; + } else { + this.uifMatch = ifMatch; + } + return this; + } + + @Override + public PipelineResourceImpl withActivities(List activities) { + this.inner().withActivities(activities); + return this; + } + + @Override + public PipelineResourceImpl withAdditionalProperties(Map additionalProperties) { + this.inner().withAdditionalProperties(additionalProperties); + return this; + } + + @Override + public PipelineResourceImpl withAnnotations(List annotations) { + this.inner().withAnnotations(annotations); + return this; + } + + @Override + public PipelineResourceImpl withConcurrency(Integer concurrency) { + this.inner().withConcurrency(concurrency); + return this; + } + + @Override + public PipelineResourceImpl withDescription(String description) { + this.inner().withDescription(description); + return this; + } + + @Override + public PipelineResourceImpl withFolder(PipelineFolder folder) { + this.inner().withFolder(folder); + return this; + } + + @Override + public PipelineResourceImpl withParameters(Map parameters) { + this.inner().withParameters(parameters); + return this; + } + + @Override + public PipelineResourceImpl withVariables(Map variables) { + this.inner().withVariables(variables); + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/PipelineResourceInner.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/PipelineResourceInner.java new file mode 100644 index 0000000000000..aa5301bc5c928 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/PipelineResourceInner.java @@ -0,0 +1,280 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01.implementation; + +import java.util.Map; +import java.util.List; +import com.microsoft.azure.management.datafactory.v2018_06_01.Activity; +import com.microsoft.azure.management.datafactory.v2018_06_01.ParameterSpecification; +import com.microsoft.azure.management.datafactory.v2018_06_01.VariableSpecification; +import com.microsoft.azure.management.datafactory.v2018_06_01.PipelineFolder; +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; + + /** + * List of variables for pipeline. + */ + @JsonProperty(value = "properties.variables") + private Map variables; + + /** + * 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; + + /** + * The folder that this Pipeline is in. If not specified, Pipeline will + * appear at the root level. + */ + @JsonProperty(value = "properties.folder") + private PipelineFolder folder; + + /** + * The resource name. + */ + @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY) + private String name; + + /** + * The resource type. + */ + @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY) + private String type; + + /** + * Etag identifies change in the resource. + */ + @JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY) + private String etag; + + /** + * Get unmatched properties from the message are deserialized this collection. + * + * @return the additionalProperties value + */ + public Map additionalProperties() { + return this.additionalProperties; + } + + /** + * Set unmatched properties from the message are deserialized this collection. + * + * @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 of the pipeline. + * + * @return the description value + */ + public String description() { + return this.description; + } + + /** + * Set the description of the pipeline. + * + * @param description the description value to set + * @return the PipelineResourceInner object itself. + */ + public PipelineResourceInner withDescription(String description) { + this.description = description; + return this; + } + + /** + * Get list of activities in pipeline. + * + * @return the activities value + */ + public List activities() { + return this.activities; + } + + /** + * Set list of activities in pipeline. + * + * @param activities the activities value to set + * @return the PipelineResourceInner object itself. + */ + public PipelineResourceInner withActivities(List activities) { + this.activities = activities; + return this; + } + + /** + * Get list of parameters for pipeline. + * + * @return the parameters value + */ + public Map parameters() { + return this.parameters; + } + + /** + * Set list of parameters for pipeline. + * + * @param parameters the parameters value to set + * @return the PipelineResourceInner object itself. + */ + public PipelineResourceInner withParameters(Map parameters) { + this.parameters = parameters; + return this; + } + + /** + * Get list of variables for pipeline. + * + * @return the variables value + */ + public Map variables() { + return this.variables; + } + + /** + * Set list of variables for pipeline. + * + * @param variables the variables value to set + * @return the PipelineResourceInner object itself. + */ + public PipelineResourceInner withVariables(Map variables) { + this.variables = variables; + return this; + } + + /** + * Get the max number of concurrent runs for the pipeline. + * + * @return the concurrency value + */ + public Integer concurrency() { + return this.concurrency; + } + + /** + * Set the max number of concurrent runs for the pipeline. + * + * @param concurrency the concurrency value to set + * @return the PipelineResourceInner object itself. + */ + public PipelineResourceInner withConcurrency(Integer concurrency) { + this.concurrency = concurrency; + return this; + } + + /** + * Get list of tags that can be used for describing the Pipeline. + * + * @return the annotations value + */ + public List annotations() { + return this.annotations; + } + + /** + * Set list of tags that can be used for describing the Pipeline. + * + * @param annotations the annotations value to set + * @return the PipelineResourceInner object itself. + */ + public PipelineResourceInner withAnnotations(List annotations) { + this.annotations = annotations; + return this; + } + + /** + * Get the folder that this Pipeline is in. If not specified, Pipeline will appear at the root level. + * + * @return the folder value + */ + public PipelineFolder folder() { + return this.folder; + } + + /** + * Set the folder that this Pipeline is in. If not specified, Pipeline will appear at the root level. + * + * @param folder the folder value to set + * @return the PipelineResourceInner object itself. + */ + public PipelineResourceInner withFolder(PipelineFolder folder) { + this.folder = folder; + return this; + } + + /** + * Get the resource name. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Get the resource type. + * + * @return the type value + */ + public String type() { + return this.type; + } + + /** + * Get etag identifies change in the resource. + * + * @return the etag value + */ + public String etag() { + return this.etag; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/PipelineRunImpl.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/PipelineRunImpl.java new file mode 100644 index 0000000000000..46c9fba191e5e --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/PipelineRunImpl.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.v2018_06_01.implementation; + +import com.microsoft.azure.management.datafactory.v2018_06_01.PipelineRun; +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import rx.Observable; +import java.util.Map; +import com.microsoft.azure.management.datafactory.v2018_06_01.PipelineRunInvokedBy; +import org.joda.time.DateTime; + +class PipelineRunImpl extends WrapperImpl implements PipelineRun { + private final DataFactoryManager manager; + private String resourceGroupName; + private String factoryName; + private String runId; + + PipelineRunImpl(PipelineRunInner inner, DataFactoryManager manager) { + super(inner); + this.manager = manager; + } + + @Override + public DataFactoryManager manager() { + return this.manager; + } + + + + @Override + public Map additionalProperties() { + return this.inner().additionalProperties(); + } + + @Override + public Integer durationInMs() { + return this.inner().durationInMs(); + } + + @Override + public PipelineRunInvokedBy invokedBy() { + return this.inner().invokedBy(); + } + + @Override + public Boolean isLatest() { + return this.inner().isLatest(); + } + + @Override + public DateTime lastUpdated() { + return this.inner().lastUpdated(); + } + + @Override + public String message() { + return this.inner().message(); + } + + @Override + public Map parameters() { + return this.inner().parameters(); + } + + @Override + public String pipelineName() { + return this.inner().pipelineName(); + } + + @Override + public DateTime runEnd() { + return this.inner().runEnd(); + } + + @Override + public String runGroupId() { + return this.inner().runGroupId(); + } + + @Override + public String runId() { + return this.inner().runId(); + } + + @Override + public DateTime runStart() { + return this.inner().runStart(); + } + + @Override + public String status() { + return this.inner().status(); + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/PipelineRunInner.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/PipelineRunInner.java new file mode 100644 index 0000000000000..7890da61c082a --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/PipelineRunInner.java @@ -0,0 +1,227 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01.implementation; + +import java.util.Map; +import com.microsoft.azure.management.datafactory.v2018_06_01.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; + + /** + * Identifier that correlates all the recovery runs of a pipeline run. + */ + @JsonProperty(value = "runGroupId", access = JsonProperty.Access.WRITE_ONLY) + private String runGroupId; + + /** + * Indicates if the recovered pipeline run is the latest in its group. + */ + @JsonProperty(value = "isLatest", access = JsonProperty.Access.WRITE_ONLY) + private Boolean isLatest; + + /** + * 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 unmatched properties from the message are deserialized this collection. + * + * @return the additionalProperties value + */ + public Map additionalProperties() { + return this.additionalProperties; + } + + /** + * Set unmatched properties from the message are deserialized this collection. + * + * @param additionalProperties the additionalProperties value to set + * @return the PipelineRunInner object itself. + */ + public PipelineRunInner withAdditionalProperties(Map additionalProperties) { + this.additionalProperties = additionalProperties; + return this; + } + + /** + * Get identifier of a run. + * + * @return the runId value + */ + public String runId() { + return this.runId; + } + + /** + * Get identifier that correlates all the recovery runs of a pipeline run. + * + * @return the runGroupId value + */ + public String runGroupId() { + return this.runGroupId; + } + + /** + * Get indicates if the recovered pipeline run is the latest in its group. + * + * @return the isLatest value + */ + public Boolean isLatest() { + return this.isLatest; + } + + /** + * Get the pipeline name. + * + * @return the pipelineName value + */ + public String pipelineName() { + return this.pipelineName; + } + + /** + * Get the full or partial list of parameter name, value pair used in the pipeline run. + * + * @return the parameters value + */ + public Map parameters() { + return this.parameters; + } + + /** + * Get entity that started the pipeline run. + * + * @return the invokedBy value + */ + public PipelineRunInvokedBy invokedBy() { + return this.invokedBy; + } + + /** + * Get the last updated timestamp for the pipeline run event in ISO8601 format. + * + * @return the lastUpdated value + */ + public DateTime lastUpdated() { + return this.lastUpdated; + } + + /** + * Get the start time of a pipeline run in ISO8601 format. + * + * @return the runStart value + */ + public DateTime runStart() { + return this.runStart; + } + + /** + * Get the end time of a pipeline run in ISO8601 format. + * + * @return the runEnd value + */ + public DateTime runEnd() { + return this.runEnd; + } + + /** + * Get the duration of a pipeline run. + * + * @return the durationInMs value + */ + public Integer durationInMs() { + return this.durationInMs; + } + + /** + * Get the status of a pipeline run. + * + * @return the status value + */ + public String status() { + return this.status; + } + + /** + * Get the message from a pipeline run. + * + * @return the message value + */ + public String message() { + return this.message; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/PipelineRunsImpl.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/PipelineRunsImpl.java new file mode 100644 index 0000000000000..977bcfd22a6c1 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/PipelineRunsImpl.java @@ -0,0 +1,67 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01.implementation; + +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import com.microsoft.azure.management.datafactory.v2018_06_01.PipelineRuns; +import rx.Observable; +import rx.functions.Func1; +import rx.Completable; +import com.microsoft.azure.management.datafactory.v2018_06_01.PipelineRun; +import com.microsoft.azure.management.datafactory.v2018_06_01.PipelineRunsQueryResponse; +import com.microsoft.azure.management.datafactory.v2018_06_01.RunFilterParameters; + +class PipelineRunsImpl extends WrapperImpl implements PipelineRuns { + private final DataFactoryManager manager; + + PipelineRunsImpl(DataFactoryManager manager) { + super(manager.inner().pipelineRuns()); + this.manager = manager; + } + + public DataFactoryManager manager() { + return this.manager; + } + + private PipelineRunImpl wrapModel(PipelineRunInner inner) { + return new PipelineRunImpl(inner, manager()); + } + + @Override + public Completable cancelAsync(String resourceGroupName, String factoryName, String runId) { + PipelineRunsInner client = this.inner(); + return client.cancelAsync(resourceGroupName, factoryName, runId).toCompletable(); + } + + @Override + public Observable getAsync(String resourceGroupName, String factoryName, String runId) { + PipelineRunsInner client = this.inner(); + return client.getAsync(resourceGroupName, factoryName, runId) + .map(new Func1() { + @Override + public PipelineRun call(PipelineRunInner inner) { + return wrapModel(inner); + } + }); + } + + @Override + public Observable queryByFactoryAsync(String resourceGroupName, String factoryName, RunFilterParameters filterParameters) { + PipelineRunsInner client = this.inner(); + return client.queryByFactoryAsync(resourceGroupName, factoryName, filterParameters) + .map(new Func1() { + @Override + public PipelineRunsQueryResponse call(PipelineRunsQueryResponseInner inner) { + return new PipelineRunsQueryResponseImpl(inner, manager()); + } + }); + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/PipelineRunsInner.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/PipelineRunsInner.java new file mode 100644 index 0000000000000..6223e8f7b7dd6 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/PipelineRunsInner.java @@ -0,0 +1,441 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01.implementation; + +import retrofit2.Retrofit; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.CloudException; +import com.microsoft.azure.management.datafactory.v2018_06_01.RunFilterParameters; +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.v2018_06_01.PipelineRuns queryByFactory" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/queryPipelineRuns") + Observable> queryByFactory(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("factoryName") String factoryName, @Query("api-version") String apiVersion, @Body RunFilterParameters 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.v2018_06_01.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); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.datafactory.v2018_06_01.PipelineRuns cancel" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/pipelineruns/{runId}/cancel") + Observable> cancel(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("factoryName") String factoryName, @Path("runId") String runId, @Query("isRecursive") Boolean isRecursive, @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 CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PipelineRunsQueryResponseInner object if successful. + */ + public PipelineRunsQueryResponseInner queryByFactory(String resourceGroupName, String factoryName, RunFilterParameters 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, RunFilterParameters 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 PipelineRunsQueryResponseInner object + */ + public Observable queryByFactoryAsync(String resourceGroupName, String factoryName, RunFilterParameters filterParameters) { + return queryByFactoryWithServiceResponseAsync(resourceGroupName, factoryName, filterParameters).map(new Func1, PipelineRunsQueryResponseInner>() { + @Override + public PipelineRunsQueryResponseInner 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 PipelineRunsQueryResponseInner object + */ + public Observable> queryByFactoryWithServiceResponseAsync(String resourceGroupName, String factoryName, RunFilterParameters 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 CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.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 CloudException 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 CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.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 CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void cancel(String resourceGroupName, String factoryName, String runId) { + cancelWithServiceResponseAsync(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 cancelAsync(String resourceGroupName, String factoryName, String runId, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(cancelWithServiceResponseAsync(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 cancelAsync(String resourceGroupName, String factoryName, String runId) { + return cancelWithServiceResponseAsync(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> cancelWithServiceResponseAsync(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."); + } + final Boolean isRecursive = null; + return service.cancel(this.client.subscriptionId(), resourceGroupName, factoryName, runId, isRecursive, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = cancelDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + /** + * 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 isRecursive If true, cancel all the Child pipelines that are triggered by the current pipeline. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void cancel(String resourceGroupName, String factoryName, String runId, Boolean isRecursive) { + cancelWithServiceResponseAsync(resourceGroupName, factoryName, runId, isRecursive).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 isRecursive If true, cancel all the Child pipelines that are triggered by the current pipeline. + * @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 cancelAsync(String resourceGroupName, String factoryName, String runId, Boolean isRecursive, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(cancelWithServiceResponseAsync(resourceGroupName, factoryName, runId, isRecursive), 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. + * @param isRecursive If true, cancel all the Child pipelines that are triggered by the current pipeline. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable cancelAsync(String resourceGroupName, String factoryName, String runId, Boolean isRecursive) { + return cancelWithServiceResponseAsync(resourceGroupName, factoryName, runId, isRecursive).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. + * @param isRecursive If true, cancel all the Child pipelines that are triggered by the current pipeline. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> cancelWithServiceResponseAsync(String resourceGroupName, String factoryName, String runId, Boolean isRecursive) { + 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.cancel(this.client.subscriptionId(), resourceGroupName, factoryName, runId, isRecursive, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = cancelDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse cancelDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/PipelineRunsQueryResponseImpl.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/PipelineRunsQueryResponseImpl.java new file mode 100644 index 0000000000000..b99a9135b4cd1 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/PipelineRunsQueryResponseImpl.java @@ -0,0 +1,37 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01.implementation; + +import com.microsoft.azure.management.datafactory.v2018_06_01.PipelineRunsQueryResponse; +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import java.util.List; + +class PipelineRunsQueryResponseImpl extends WrapperImpl implements PipelineRunsQueryResponse { + private final DataFactoryManager manager; + PipelineRunsQueryResponseImpl(PipelineRunsQueryResponseInner inner, DataFactoryManager manager) { + super(inner); + this.manager = manager; + } + + @Override + public DataFactoryManager manager() { + return this.manager; + } + + @Override + public String continuationToken() { + return this.inner().continuationToken(); + } + + @Override + public List value() { + return this.inner().value(); + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/PipelineRunsQueryResponseInner.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/PipelineRunsQueryResponseInner.java new file mode 100644 index 0000000000000..77cbc8420142d --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/PipelineRunsQueryResponseInner.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.v2018_06_01.implementation; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * A list pipeline runs. + */ +public class PipelineRunsQueryResponseInner { + /** + * 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 list of pipeline runs. + * + * @return the value value + */ + public List value() { + return this.value; + } + + /** + * Set list of pipeline runs. + * + * @param value the value value to set + * @return the PipelineRunsQueryResponseInner object itself. + */ + public PipelineRunsQueryResponseInner withValue(List value) { + this.value = value; + return this; + } + + /** + * Get the continuation token for getting the next page of results, if any remaining results exist, null otherwise. + * + * @return the continuationToken value + */ + public String continuationToken() { + return this.continuationToken; + } + + /** + * Set the continuation token for getting the next page of results, if any remaining results exist, null otherwise. + * + * @param continuationToken the continuationToken value to set + * @return the PipelineRunsQueryResponseInner object itself. + */ + public PipelineRunsQueryResponseInner withContinuationToken(String continuationToken) { + this.continuationToken = continuationToken; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/PipelinesImpl.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/PipelinesImpl.java new file mode 100644 index 0000000000000..5196a10c6bf60 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/PipelinesImpl.java @@ -0,0 +1,94 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01.implementation; + +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import com.microsoft.azure.management.datafactory.v2018_06_01.Pipelines; +import rx.Completable; +import rx.Observable; +import rx.functions.Func1; +import com.microsoft.azure.Page; +import com.microsoft.azure.management.datafactory.v2018_06_01.CreateRunResponse; +import com.microsoft.azure.management.datafactory.v2018_06_01.PipelineResource; + +class PipelinesImpl extends WrapperImpl implements Pipelines { + private final DataFactoryManager manager; + + PipelinesImpl(DataFactoryManager manager) { + super(manager.inner().pipelines()); + this.manager = manager; + } + + public DataFactoryManager manager() { + return this.manager; + } + + @Override + public PipelineResourceImpl define(String name) { + return wrapModel(name); + } + + private PipelineResourceImpl wrapModel(PipelineResourceInner inner) { + return new PipelineResourceImpl(inner, manager()); + } + + private PipelineResourceImpl wrapModel(String name) { + return new PipelineResourceImpl(name, this.manager()); + } + + @Override + public Observable createRunAsync(String resourceGroupName, String factoryName, String pipelineName) { + PipelinesInner client = this.inner(); + return client.createRunAsync(resourceGroupName, factoryName, pipelineName) + .map(new Func1() { + @Override + public CreateRunResponse call(CreateRunResponseInner inner) { + return new CreateRunResponseImpl(inner, manager()); + } + }); + } + + @Override + public Observable listByFactoryAsync(final String resourceGroupName, final String factoryName) { + PipelinesInner client = this.inner(); + return client.listByFactoryAsync(resourceGroupName, factoryName) + .flatMapIterable(new Func1, Iterable>() { + @Override + public Iterable call(Page page) { + return page.items(); + } + }) + .map(new Func1() { + @Override + public PipelineResource call(PipelineResourceInner inner) { + return wrapModel(inner); + } + }); + } + + @Override + public Observable getAsync(String resourceGroupName, String factoryName, String pipelineName) { + PipelinesInner client = this.inner(); + return client.getAsync(resourceGroupName, factoryName, pipelineName) + .map(new Func1() { + @Override + public PipelineResource call(PipelineResourceInner inner) { + return wrapModel(inner); + } + }); + } + + @Override + public Completable deleteAsync(String resourceGroupName, String factoryName, String pipelineName) { + PipelinesInner client = this.inner(); + return client.deleteAsync(resourceGroupName, factoryName, pipelineName).toCompletable(); + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/PipelinesInner.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/PipelinesInner.java new file mode 100644 index 0000000000000..69fcca63edb80 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/PipelinesInner.java @@ -0,0 +1,1004 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01.implementation; + +import retrofit2.Retrofit; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.AzureServiceFuture; +import com.microsoft.azure.CloudException; +import com.microsoft.azure.ListOperationCallback; +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.v2018_06_01.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.v2018_06_01.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.v2018_06_01.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("If-None-Match") String ifNoneMatch, @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.v2018_06_01.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.v2018_06_01.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, @Query("referencePipelineRunId") String referencePipelineRunId, @Query("isRecovery") Boolean isRecovery, @Query("startActivityName") String startActivityName, @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.v2018_06_01.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 CloudException 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 CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(CloudException.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 CloudException 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 CloudException 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 CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.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 CloudException 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."); + } + final String ifNoneMatch = null; + return service.get(this.client.subscriptionId(), resourceGroupName, factoryName, pipelineName, this.client.apiVersion(), ifNoneMatch, 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); + } + } + }); + } + + /** + * Gets a pipeline. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param pipelineName The pipeline name. + * @param ifNoneMatch ETag of the pipeline entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was provided, then no content will be returned. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException 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, String ifNoneMatch) { + return getWithServiceResponseAsync(resourceGroupName, factoryName, pipelineName, ifNoneMatch).toBlocking().single().body(); + } + + /** + * Gets a pipeline. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param pipelineName The pipeline name. + * @param ifNoneMatch ETag of the pipeline entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was provided, then no content will be returned. + * @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, String ifNoneMatch, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getWithServiceResponseAsync(resourceGroupName, factoryName, pipelineName, ifNoneMatch), serviceCallback); + } + + /** + * Gets a pipeline. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param pipelineName The pipeline name. + * @param ifNoneMatch ETag of the pipeline entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was provided, then no content will be returned. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PipelineResourceInner object + */ + public Observable getAsync(String resourceGroupName, String factoryName, String pipelineName, String ifNoneMatch) { + return getWithServiceResponseAsync(resourceGroupName, factoryName, pipelineName, ifNoneMatch).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. + * @param ifNoneMatch ETag of the pipeline entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was provided, then no content will be returned. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PipelineResourceInner object + */ + public Observable> getWithServiceResponseAsync(String resourceGroupName, String factoryName, String pipelineName, String ifNoneMatch) { + 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(), ifNoneMatch, 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 CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(304, new TypeToken() { }.getType()) + .registerError(CloudException.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 CloudException 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 CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(204, new TypeToken() { }.getType()) + .registerError(CloudException.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 CloudException 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 String referencePipelineRunId = null; + final Boolean isRecovery = null; + final String startActivityName = null; + final Map parameters = null; + return service.createRun(this.client.subscriptionId(), resourceGroupName, factoryName, pipelineName, this.client.apiVersion(), referencePipelineRunId, isRecovery, startActivityName, 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 referencePipelineRunId The pipeline run identifier. If run ID is specified the parameters of the specified run will be used to create a new run. + * @param isRecovery Recovery mode flag. If recovery mode is set to true, the specified referenced pipeline run and the new run will be grouped under the same groupId. + * @param startActivityName In recovery mode, the rerun will start from this activity. If not specified, all activities will run. + * @param parameters Parameters of the pipeline run. These parameters will be used only if the runId is not specified. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException 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, String referencePipelineRunId, Boolean isRecovery, String startActivityName, Map parameters) { + return createRunWithServiceResponseAsync(resourceGroupName, factoryName, pipelineName, referencePipelineRunId, isRecovery, startActivityName, 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 referencePipelineRunId The pipeline run identifier. If run ID is specified the parameters of the specified run will be used to create a new run. + * @param isRecovery Recovery mode flag. If recovery mode is set to true, the specified referenced pipeline run and the new run will be grouped under the same groupId. + * @param startActivityName In recovery mode, the rerun will start from this activity. If not specified, all activities will run. + * @param parameters Parameters of the pipeline run. These parameters will be used only if the runId is not specified. + * @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, String referencePipelineRunId, Boolean isRecovery, String startActivityName, Map parameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createRunWithServiceResponseAsync(resourceGroupName, factoryName, pipelineName, referencePipelineRunId, isRecovery, startActivityName, 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 referencePipelineRunId The pipeline run identifier. If run ID is specified the parameters of the specified run will be used to create a new run. + * @param isRecovery Recovery mode flag. If recovery mode is set to true, the specified referenced pipeline run and the new run will be grouped under the same groupId. + * @param startActivityName In recovery mode, the rerun will start from this activity. If not specified, all activities will run. + * @param parameters Parameters of the pipeline run. These parameters will be used only if the runId is not specified. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the CreateRunResponseInner object + */ + public Observable createRunAsync(String resourceGroupName, String factoryName, String pipelineName, String referencePipelineRunId, Boolean isRecovery, String startActivityName, Map parameters) { + return createRunWithServiceResponseAsync(resourceGroupName, factoryName, pipelineName, referencePipelineRunId, isRecovery, startActivityName, 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 referencePipelineRunId The pipeline run identifier. If run ID is specified the parameters of the specified run will be used to create a new run. + * @param isRecovery Recovery mode flag. If recovery mode is set to true, the specified referenced pipeline run and the new run will be grouped under the same groupId. + * @param startActivityName In recovery mode, the rerun will start from this activity. If not specified, all activities will run. + * @param parameters Parameters of the pipeline run. These parameters will be used only if the runId is not specified. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the CreateRunResponseInner object + */ + public Observable> createRunWithServiceResponseAsync(String resourceGroupName, String factoryName, String pipelineName, String referencePipelineRunId, Boolean isRecovery, String startActivityName, 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(), referencePipelineRunId, isRecovery, startActivityName, 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 CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.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 CloudException 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 CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/RerunTriggerResourceInner.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/RerunTriggerResourceInner.java new file mode 100644 index 0000000000000..c890d7f1f2def --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/RerunTriggerResourceInner.java @@ -0,0 +1,90 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01.implementation; + +import com.microsoft.azure.management.datafactory.v2018_06_01.RerunTumblingWindowTrigger; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.azure.SubResource; + +/** + * RerunTrigger resource type. + */ +public class RerunTriggerResourceInner extends SubResource { + /** + * Properties of the rerun trigger. + */ + @JsonProperty(value = "properties", required = true) + private RerunTumblingWindowTrigger properties; + + /** + * The resource name. + */ + @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY) + private String name; + + /** + * The resource type. + */ + @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY) + private String type; + + /** + * Etag identifies change in the resource. + */ + @JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY) + private String etag; + + /** + * Get properties of the rerun trigger. + * + * @return the properties value + */ + public RerunTumblingWindowTrigger properties() { + return this.properties; + } + + /** + * Set properties of the rerun trigger. + * + * @param properties the properties value to set + * @return the RerunTriggerResourceInner object itself. + */ + public RerunTriggerResourceInner withProperties(RerunTumblingWindowTrigger properties) { + this.properties = properties; + return this; + } + + /** + * Get the resource name. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Get the resource type. + * + * @return the type value + */ + public String type() { + return this.type; + } + + /** + * Get etag identifies change in the resource. + * + * @return the etag value + */ + public String etag() { + return this.etag; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/RerunTriggersImpl.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/RerunTriggersImpl.java new file mode 100644 index 0000000000000..1364aa1672e37 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/RerunTriggersImpl.java @@ -0,0 +1,81 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01.implementation; + +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import com.microsoft.azure.management.datafactory.v2018_06_01.RerunTriggers; +import rx.Observable; +import rx.functions.Func1; +import com.microsoft.azure.Page; +import rx.Completable; +import com.microsoft.azure.management.datafactory.v2018_06_01.TriggerFactoryTriggerResource; + +class RerunTriggersImpl extends WrapperImpl implements RerunTriggers { + private final DataFactoryManager manager; + + RerunTriggersImpl(DataFactoryManager manager) { + super(manager.inner().rerunTriggers()); + this.manager = manager; + } + + public DataFactoryManager manager() { + return this.manager; + } + + @Override + public TriggerFactoryTriggerResourceImpl define(String name) { + return wrapModel(name); + } + + private TriggerFactoryTriggerResourceImpl wrapModel(TriggerResourceInner inner) { + return new TriggerFactoryTriggerResourceImpl(inner, manager()); + } + + private TriggerFactoryTriggerResourceImpl wrapModel(String name) { + return new TriggerFactoryTriggerResourceImpl(name, this.manager()); + } + + @Override + public Completable startAsync(String resourceGroupName, String factoryName, String triggerName, String rerunTriggerName) { + RerunTriggersInner client = this.inner(); + return client.startAsync(resourceGroupName, factoryName, triggerName, rerunTriggerName).toCompletable(); + } + + @Override + public Completable stopAsync(String resourceGroupName, String factoryName, String triggerName, String rerunTriggerName) { + RerunTriggersInner client = this.inner(); + return client.stopAsync(resourceGroupName, factoryName, triggerName, rerunTriggerName).toCompletable(); + } + + @Override + public Completable cancelAsync(String resourceGroupName, String factoryName, String triggerName, String rerunTriggerName) { + RerunTriggersInner client = this.inner(); + return client.cancelAsync(resourceGroupName, factoryName, triggerName, rerunTriggerName).toCompletable(); + } + + @Override + public Observable listByTriggerAsync(final String resourceGroupName, final String factoryName, final String triggerName) { + RerunTriggersInner client = this.inner(); + return client.listByTriggerAsync(resourceGroupName, factoryName, triggerName) + .flatMapIterable(new Func1, Iterable>() { + @Override + public Iterable call(Page page) { + return page.items(); + } + }) + .map(new Func1() { + @Override + public TriggerFactoryTriggerResource call(TriggerResourceInner inner) { + return wrapModel(inner); + } + }); + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/RerunTriggersInner.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/RerunTriggersInner.java new file mode 100644 index 0000000000000..549896c45b2e1 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/RerunTriggersInner.java @@ -0,0 +1,996 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01.implementation; + +import retrofit2.Retrofit; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.AzureServiceFuture; +import com.microsoft.azure.CloudException; +import com.microsoft.azure.ListOperationCallback; +import com.microsoft.azure.management.datafactory.v2018_06_01.RerunTumblingWindowTriggerActionParameters; +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.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 RerunTriggers. + */ +public class RerunTriggersInner { + /** The Retrofit service to perform REST calls. */ + private RerunTriggersService service; + /** The service client containing this operation class. */ + private DataFactoryManagementClientImpl client; + + /** + * Initializes an instance of RerunTriggersInner. + * + * @param retrofit the Retrofit instance built from a Retrofit Builder. + * @param client the instance of the service client containing this operation class. + */ + public RerunTriggersInner(Retrofit retrofit, DataFactoryManagementClientImpl client) { + this.service = retrofit.create(RerunTriggersService.class); + this.client = client; + } + + /** + * The interface defining all the services for RerunTriggers to be + * used by Retrofit to perform actually REST calls. + */ + interface RerunTriggersService { + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.datafactory.v2018_06_01.RerunTriggers create" }) + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/rerunTriggers/{rerunTriggerName}") + Observable> create(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("factoryName") String factoryName, @Path("triggerName") String triggerName, @Path("rerunTriggerName") String rerunTriggerName, @Query("api-version") String apiVersion, @Body RerunTumblingWindowTriggerActionParameters rerunTumblingWindowTriggerActionParameters, @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.v2018_06_01.RerunTriggers start" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/rerunTriggers/{rerunTriggerName}/start") + Observable> start(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("factoryName") String factoryName, @Path("triggerName") String triggerName, @Path("rerunTriggerName") String rerunTriggerName, @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.v2018_06_01.RerunTriggers beginStart" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/rerunTriggers/{rerunTriggerName}/start") + Observable> beginStart(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("factoryName") String factoryName, @Path("triggerName") String triggerName, @Path("rerunTriggerName") String rerunTriggerName, @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.v2018_06_01.RerunTriggers stop" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/rerunTriggers/{rerunTriggerName}/stop") + Observable> stop(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("factoryName") String factoryName, @Path("triggerName") String triggerName, @Path("rerunTriggerName") String rerunTriggerName, @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.v2018_06_01.RerunTriggers beginStop" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/rerunTriggers/{rerunTriggerName}/stop") + Observable> beginStop(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("factoryName") String factoryName, @Path("triggerName") String triggerName, @Path("rerunTriggerName") String rerunTriggerName, @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.v2018_06_01.RerunTriggers cancel" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/rerunTriggers/{rerunTriggerName}/cancel") + Observable> cancel(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("factoryName") String factoryName, @Path("triggerName") String triggerName, @Path("rerunTriggerName") String rerunTriggerName, @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.v2018_06_01.RerunTriggers beginCancel" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/rerunTriggers/{rerunTriggerName}/cancel") + Observable> beginCancel(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("factoryName") String factoryName, @Path("triggerName") String triggerName, @Path("rerunTriggerName") String rerunTriggerName, @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.v2018_06_01.RerunTriggers listByTrigger" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/rerunTriggers") + Observable> listByTrigger(@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.v2018_06_01.RerunTriggers listByTriggerNext" }) + @GET + Observable> listByTriggerNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + } + + /** + * Creates a rerun trigger. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param triggerName The trigger name. + * @param rerunTriggerName The rerun trigger name. + * @param rerunTumblingWindowTriggerActionParameters Rerun tumbling window trigger action parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException 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 create(String resourceGroupName, String factoryName, String triggerName, String rerunTriggerName, RerunTumblingWindowTriggerActionParameters rerunTumblingWindowTriggerActionParameters) { + return createWithServiceResponseAsync(resourceGroupName, factoryName, triggerName, rerunTriggerName, rerunTumblingWindowTriggerActionParameters).toBlocking().single().body(); + } + + /** + * Creates a rerun trigger. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param triggerName The trigger name. + * @param rerunTriggerName The rerun trigger name. + * @param rerunTumblingWindowTriggerActionParameters Rerun tumbling window trigger action parameters. + * @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 createAsync(String resourceGroupName, String factoryName, String triggerName, String rerunTriggerName, RerunTumblingWindowTriggerActionParameters rerunTumblingWindowTriggerActionParameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createWithServiceResponseAsync(resourceGroupName, factoryName, triggerName, rerunTriggerName, rerunTumblingWindowTriggerActionParameters), serviceCallback); + } + + /** + * Creates a rerun trigger. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param triggerName The trigger name. + * @param rerunTriggerName The rerun trigger name. + * @param rerunTumblingWindowTriggerActionParameters Rerun tumbling window trigger action parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the TriggerResourceInner object + */ + public Observable createAsync(String resourceGroupName, String factoryName, String triggerName, String rerunTriggerName, RerunTumblingWindowTriggerActionParameters rerunTumblingWindowTriggerActionParameters) { + return createWithServiceResponseAsync(resourceGroupName, factoryName, triggerName, rerunTriggerName, rerunTumblingWindowTriggerActionParameters).map(new Func1, TriggerResourceInner>() { + @Override + public TriggerResourceInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Creates a rerun trigger. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param triggerName The trigger name. + * @param rerunTriggerName The rerun trigger name. + * @param rerunTumblingWindowTriggerActionParameters Rerun tumbling window trigger action parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the TriggerResourceInner object + */ + public Observable> createWithServiceResponseAsync(String resourceGroupName, String factoryName, String triggerName, String rerunTriggerName, RerunTumblingWindowTriggerActionParameters rerunTumblingWindowTriggerActionParameters) { + 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 (rerunTriggerName == null) { + throw new IllegalArgumentException("Parameter rerunTriggerName 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 (rerunTumblingWindowTriggerActionParameters == null) { + throw new IllegalArgumentException("Parameter rerunTumblingWindowTriggerActionParameters is required and cannot be null."); + } + Validator.validate(rerunTumblingWindowTriggerActionParameters); + return service.create(this.client.subscriptionId(), resourceGroupName, factoryName, triggerName, rerunTriggerName, this.client.apiVersion(), rerunTumblingWindowTriggerActionParameters, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = createDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse createDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Starts a trigger. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param triggerName The trigger name. + * @param rerunTriggerName The rerun trigger name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException 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, String rerunTriggerName) { + startWithServiceResponseAsync(resourceGroupName, factoryName, triggerName, rerunTriggerName).toBlocking().last().body(); + } + + /** + * Starts a trigger. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param triggerName The trigger name. + * @param rerunTriggerName The rerun 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, String rerunTriggerName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(startWithServiceResponseAsync(resourceGroupName, factoryName, triggerName, rerunTriggerName), serviceCallback); + } + + /** + * Starts a trigger. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param triggerName The trigger name. + * @param rerunTriggerName The rerun 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, String rerunTriggerName) { + return startWithServiceResponseAsync(resourceGroupName, factoryName, triggerName, rerunTriggerName).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. + * @param rerunTriggerName The rerun 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, String rerunTriggerName) { + 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 (rerunTriggerName == null) { + throw new IllegalArgumentException("Parameter rerunTriggerName 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, rerunTriggerName, 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. + * @param rerunTriggerName The rerun trigger name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException 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, String rerunTriggerName) { + beginStartWithServiceResponseAsync(resourceGroupName, factoryName, triggerName, rerunTriggerName).toBlocking().single().body(); + } + + /** + * Starts a trigger. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param triggerName The trigger name. + * @param rerunTriggerName The rerun 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, String rerunTriggerName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginStartWithServiceResponseAsync(resourceGroupName, factoryName, triggerName, rerunTriggerName), serviceCallback); + } + + /** + * Starts a trigger. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param triggerName The trigger name. + * @param rerunTriggerName The rerun 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, String rerunTriggerName) { + return beginStartWithServiceResponseAsync(resourceGroupName, factoryName, triggerName, rerunTriggerName).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. + * @param rerunTriggerName The rerun 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, String rerunTriggerName) { + 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 (rerunTriggerName == null) { + throw new IllegalArgumentException("Parameter rerunTriggerName 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, rerunTriggerName, 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 CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Stops a trigger. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param triggerName The trigger name. + * @param rerunTriggerName The rerun trigger name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException 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, String rerunTriggerName) { + stopWithServiceResponseAsync(resourceGroupName, factoryName, triggerName, rerunTriggerName).toBlocking().last().body(); + } + + /** + * Stops a trigger. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param triggerName The trigger name. + * @param rerunTriggerName The rerun 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, String rerunTriggerName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(stopWithServiceResponseAsync(resourceGroupName, factoryName, triggerName, rerunTriggerName), serviceCallback); + } + + /** + * Stops a trigger. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param triggerName The trigger name. + * @param rerunTriggerName The rerun 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, String rerunTriggerName) { + return stopWithServiceResponseAsync(resourceGroupName, factoryName, triggerName, rerunTriggerName).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. + * @param rerunTriggerName The rerun 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, String rerunTriggerName) { + 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 (rerunTriggerName == null) { + throw new IllegalArgumentException("Parameter rerunTriggerName 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, rerunTriggerName, 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. + * @param rerunTriggerName The rerun trigger name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException 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, String rerunTriggerName) { + beginStopWithServiceResponseAsync(resourceGroupName, factoryName, triggerName, rerunTriggerName).toBlocking().single().body(); + } + + /** + * Stops a trigger. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param triggerName The trigger name. + * @param rerunTriggerName The rerun 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, String rerunTriggerName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginStopWithServiceResponseAsync(resourceGroupName, factoryName, triggerName, rerunTriggerName), serviceCallback); + } + + /** + * Stops a trigger. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param triggerName The trigger name. + * @param rerunTriggerName The rerun 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, String rerunTriggerName) { + return beginStopWithServiceResponseAsync(resourceGroupName, factoryName, triggerName, rerunTriggerName).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. + * @param rerunTriggerName The rerun 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, String rerunTriggerName) { + 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 (rerunTriggerName == null) { + throw new IllegalArgumentException("Parameter rerunTriggerName 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, rerunTriggerName, 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 CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Cancels a trigger. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param triggerName The trigger name. + * @param rerunTriggerName The rerun trigger name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void cancel(String resourceGroupName, String factoryName, String triggerName, String rerunTriggerName) { + cancelWithServiceResponseAsync(resourceGroupName, factoryName, triggerName, rerunTriggerName).toBlocking().last().body(); + } + + /** + * Cancels a trigger. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param triggerName The trigger name. + * @param rerunTriggerName The rerun 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 cancelAsync(String resourceGroupName, String factoryName, String triggerName, String rerunTriggerName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(cancelWithServiceResponseAsync(resourceGroupName, factoryName, triggerName, rerunTriggerName), serviceCallback); + } + + /** + * Cancels a trigger. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param triggerName The trigger name. + * @param rerunTriggerName The rerun trigger name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable cancelAsync(String resourceGroupName, String factoryName, String triggerName, String rerunTriggerName) { + return cancelWithServiceResponseAsync(resourceGroupName, factoryName, triggerName, rerunTriggerName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Cancels a trigger. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param triggerName The trigger name. + * @param rerunTriggerName The rerun trigger name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> cancelWithServiceResponseAsync(String resourceGroupName, String factoryName, String triggerName, String rerunTriggerName) { + 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 (rerunTriggerName == null) { + throw new IllegalArgumentException("Parameter rerunTriggerName 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.cancel(this.client.subscriptionId(), resourceGroupName, factoryName, triggerName, rerunTriggerName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); + } + + /** + * Cancels a trigger. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param triggerName The trigger name. + * @param rerunTriggerName The rerun trigger name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void beginCancel(String resourceGroupName, String factoryName, String triggerName, String rerunTriggerName) { + beginCancelWithServiceResponseAsync(resourceGroupName, factoryName, triggerName, rerunTriggerName).toBlocking().single().body(); + } + + /** + * Cancels a trigger. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param triggerName The trigger name. + * @param rerunTriggerName The rerun 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 beginCancelAsync(String resourceGroupName, String factoryName, String triggerName, String rerunTriggerName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginCancelWithServiceResponseAsync(resourceGroupName, factoryName, triggerName, rerunTriggerName), serviceCallback); + } + + /** + * Cancels a trigger. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param triggerName The trigger name. + * @param rerunTriggerName The rerun trigger name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable beginCancelAsync(String resourceGroupName, String factoryName, String triggerName, String rerunTriggerName) { + return beginCancelWithServiceResponseAsync(resourceGroupName, factoryName, triggerName, rerunTriggerName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Cancels a trigger. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param triggerName The trigger name. + * @param rerunTriggerName The rerun trigger name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> beginCancelWithServiceResponseAsync(String resourceGroupName, String factoryName, String triggerName, String rerunTriggerName) { + 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 (rerunTriggerName == null) { + throw new IllegalArgumentException("Parameter rerunTriggerName 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.beginCancel(this.client.subscriptionId(), resourceGroupName, factoryName, triggerName, rerunTriggerName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginCancelDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse beginCancelDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Lists rerun triggers by an original trigger name. + * + * @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 CloudException 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<RerunTriggerResourceInner> object if successful. + */ + public PagedList listByTrigger(final String resourceGroupName, final String factoryName, final String triggerName) { + ServiceResponse> response = listByTriggerSinglePageAsync(resourceGroupName, factoryName, triggerName).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listByTriggerNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists rerun triggers by an original trigger name. + * + * @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> listByTriggerAsync(final String resourceGroupName, final String factoryName, final String triggerName, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listByTriggerSinglePageAsync(resourceGroupName, factoryName, triggerName), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listByTriggerNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists rerun triggers by an original trigger name. + * + * @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 PagedList<RerunTriggerResourceInner> object + */ + public Observable> listByTriggerAsync(final String resourceGroupName, final String factoryName, final String triggerName) { + return listByTriggerWithServiceResponseAsync(resourceGroupName, factoryName, triggerName) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists rerun triggers by an original trigger name. + * + * @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 PagedList<RerunTriggerResourceInner> object + */ + public Observable>> listByTriggerWithServiceResponseAsync(final String resourceGroupName, final String factoryName, final String triggerName) { + return listByTriggerSinglePageAsync(resourceGroupName, factoryName, triggerName) + .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(listByTriggerNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists rerun triggers by an original trigger name. + * + ServiceResponse> * @param resourceGroupName The resource group name. + ServiceResponse> * @param factoryName The factory name. + ServiceResponse> * @param triggerName The trigger name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<RerunTriggerResourceInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listByTriggerSinglePageAsync(final String resourceGroupName, final String factoryName, final 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.listByTrigger(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> result = listByTriggerDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listByTriggerDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Lists rerun triggers by an original trigger name. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException 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<RerunTriggerResourceInner> object if successful. + */ + public PagedList listByTriggerNext(final String nextPageLink) { + ServiceResponse> response = listByTriggerNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listByTriggerNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists rerun triggers by an original trigger name. + * + * @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> listByTriggerNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listByTriggerNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listByTriggerNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists rerun triggers by an original trigger name. + * + * @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<RerunTriggerResourceInner> object + */ + public Observable> listByTriggerNextAsync(final String nextPageLink) { + return listByTriggerNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists rerun triggers by an original trigger name. + * + * @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<RerunTriggerResourceInner> object + */ + public Observable>> listByTriggerNextWithServiceResponseAsync(final String nextPageLink) { + return listByTriggerNextSinglePageAsync(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(listByTriggerNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists rerun triggers by an original trigger name. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<RerunTriggerResourceInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listByTriggerNextSinglePageAsync(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.listByTriggerNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listByTriggerNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listByTriggerNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/SelfHostedIntegrationRuntimeNodeImpl.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/SelfHostedIntegrationRuntimeNodeImpl.java new file mode 100644 index 0000000000000..8c418e6c01496 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/SelfHostedIntegrationRuntimeNodeImpl.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.v2018_06_01.implementation; + +import com.microsoft.azure.management.datafactory.v2018_06_01.SelfHostedIntegrationRuntimeNode; +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import rx.Observable; +import java.util.Map; +import org.joda.time.DateTime; +import com.microsoft.azure.management.datafactory.v2018_06_01.IntegrationRuntimeUpdateResult; +import com.microsoft.azure.management.datafactory.v2018_06_01.SelfHostedIntegrationRuntimeNodeStatus; + +class SelfHostedIntegrationRuntimeNodeImpl extends WrapperImpl implements SelfHostedIntegrationRuntimeNode { + private final DataFactoryManager manager; + private String resourceGroupName; + private String factoryName; + private String integrationRuntimeName; + private String nodeName; + + SelfHostedIntegrationRuntimeNodeImpl(SelfHostedIntegrationRuntimeNodeInner inner, DataFactoryManager manager) { + super(inner); + this.manager = manager; + } + + @Override + public DataFactoryManager manager() { + return this.manager; + } + + + + @Override + public Map capabilities() { + return this.inner().capabilities(); + } + + @Override + public Integer concurrentJobsLimit() { + return this.inner().concurrentJobsLimit(); + } + + @Override + public DateTime expiryTime() { + return this.inner().expiryTime(); + } + + @Override + public String hostServiceUri() { + return this.inner().hostServiceUri(); + } + + @Override + public Boolean isActiveDispatcher() { + return this.inner().isActiveDispatcher(); + } + + @Override + public DateTime lastConnectTime() { + return this.inner().lastConnectTime(); + } + + @Override + public DateTime lastEndUpdateTime() { + return this.inner().lastEndUpdateTime(); + } + + @Override + public DateTime lastStartTime() { + return this.inner().lastStartTime(); + } + + @Override + public DateTime lastStartUpdateTime() { + return this.inner().lastStartUpdateTime(); + } + + @Override + public DateTime lastStopTime() { + return this.inner().lastStopTime(); + } + + @Override + public IntegrationRuntimeUpdateResult lastUpdateResult() { + return this.inner().lastUpdateResult(); + } + + @Override + public String machineName() { + return this.inner().machineName(); + } + + @Override + public Integer maxConcurrentJobs() { + return this.inner().maxConcurrentJobs(); + } + + @Override + public String nodeName() { + return this.inner().nodeName(); + } + + @Override + public DateTime registerTime() { + return this.inner().registerTime(); + } + + @Override + public SelfHostedIntegrationRuntimeNodeStatus status() { + return this.inner().status(); + } + + @Override + public String version() { + return this.inner().version(); + } + + @Override + public String versionStatus() { + return this.inner().versionStatus(); + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/SelfHostedIntegrationRuntimeNodeInner.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/SelfHostedIntegrationRuntimeNodeInner.java new file mode 100644 index 0000000000000..d4b67972e2eea --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01.implementation; + +import com.microsoft.azure.management.datafactory.v2018_06_01.SelfHostedIntegrationRuntimeNodeStatus; +import java.util.Map; +import org.joda.time.DateTime; +import com.microsoft.azure.management.datafactory.v2018_06_01.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: 'None', '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 name of the integration runtime node. + * + * @return the nodeName value + */ + public String nodeName() { + return this.nodeName; + } + + /** + * Get machine name of the integration runtime node. + * + * @return the machineName value + */ + public String machineName() { + return this.machineName; + } + + /** + * Get uRI for the host machine of the integration runtime. + * + * @return the hostServiceUri value + */ + public String hostServiceUri() { + return this.hostServiceUri; + } + + /** + * Get status of the integration runtime node. Possible values include: 'NeedRegistration', 'Online', 'Limited', 'Offline', 'Upgrading', 'Initializing', 'InitializeFailed'. + * + * @return the status value + */ + public SelfHostedIntegrationRuntimeNodeStatus status() { + return this.status; + } + + /** + * Get the integration runtime capabilities dictionary. + * + * @return the capabilities value + */ + public Map capabilities() { + return this.capabilities; + } + + /** + * Get status of the integration runtime node version. + * + * @return the versionStatus value + */ + public String versionStatus() { + return this.versionStatus; + } + + /** + * Get version of the integration runtime node. + * + * @return the version value + */ + public String version() { + return this.version; + } + + /** + * Get the time at which the integration runtime node was registered in ISO8601 format. + * + * @return the registerTime value + */ + public DateTime registerTime() { + return this.registerTime; + } + + /** + * Get the most recent time at which the integration runtime was connected in ISO8601 format. + * + * @return the lastConnectTime value + */ + public DateTime lastConnectTime() { + return this.lastConnectTime; + } + + /** + * Get the time at which the integration runtime will expire in ISO8601 format. + * + * @return the expiryTime value + */ + public DateTime expiryTime() { + return this.expiryTime; + } + + /** + * Get the time the node last started up. + * + * @return the lastStartTime value + */ + public DateTime lastStartTime() { + return this.lastStartTime; + } + + /** + * Get the integration runtime node last stop time. + * + * @return the lastStopTime value + */ + public DateTime lastStopTime() { + return this.lastStopTime; + } + + /** + * Get the result of the last integration runtime node update. Possible values include: 'None', 'Succeed', 'Fail'. + * + * @return the lastUpdateResult value + */ + public IntegrationRuntimeUpdateResult lastUpdateResult() { + return this.lastUpdateResult; + } + + /** + * Get the last time for the integration runtime node update start. + * + * @return the lastStartUpdateTime value + */ + public DateTime lastStartUpdateTime() { + return this.lastStartUpdateTime; + } + + /** + * Get the last time for the integration runtime node update end. + * + * @return the lastEndUpdateTime value + */ + public DateTime lastEndUpdateTime() { + return this.lastEndUpdateTime; + } + + /** + * Get indicates whether this node is the active dispatcher for integration runtime requests. + * + * @return the isActiveDispatcher value + */ + public Boolean isActiveDispatcher() { + return this.isActiveDispatcher; + } + + /** + * Get maximum concurrent jobs on the integration runtime node. + * + * @return the concurrentJobsLimit value + */ + public Integer concurrentJobsLimit() { + return this.concurrentJobsLimit; + } + + /** + * Get the maximum concurrent jobs in this integration runtime. + * + * @return the maxConcurrentJobs value + */ + public Integer maxConcurrentJobs() { + return this.maxConcurrentJobs; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/SsisObjectMetadataListResponseImpl.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/SsisObjectMetadataListResponseImpl.java new file mode 100644 index 0000000000000..cebf74da9c95e --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/SsisObjectMetadataListResponseImpl.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.v2018_06_01.implementation; + +import com.microsoft.azure.management.datafactory.v2018_06_01.SsisObjectMetadataListResponse; +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import java.util.List; +import com.microsoft.azure.management.datafactory.v2018_06_01.SsisObjectMetadata; + +class SsisObjectMetadataListResponseImpl extends WrapperImpl implements SsisObjectMetadataListResponse { + private final DataFactoryManager manager; + SsisObjectMetadataListResponseImpl(SsisObjectMetadataListResponseInner inner, DataFactoryManager manager) { + super(inner); + this.manager = manager; + } + + @Override + public DataFactoryManager manager() { + return this.manager; + } + + @Override + public String nextLink() { + return this.inner().nextLink(); + } + + @Override + public List value() { + return this.inner().value(); + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/SsisObjectMetadataListResponseInner.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/SsisObjectMetadataListResponseInner.java new file mode 100644 index 0000000000000..684083c13a69c --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/SsisObjectMetadataListResponseInner.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.v2018_06_01.implementation; + +import java.util.List; +import com.microsoft.azure.management.datafactory.v2018_06_01.SsisObjectMetadata; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * A list of SSIS object metadata. + */ +public class SsisObjectMetadataListResponseInner { + /** + * List of SSIS object metadata. + */ + @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 list of SSIS object metadata. + * + * @return the value value + */ + public List value() { + return this.value; + } + + /** + * Set list of SSIS object metadata. + * + * @param value the value value to set + * @return the SsisObjectMetadataListResponseInner object itself. + */ + public SsisObjectMetadataListResponseInner withValue(List value) { + this.value = value; + return this; + } + + /** + * Get the link to the next page of results, if any remaining results exist. + * + * @return the nextLink value + */ + public String nextLink() { + return this.nextLink; + } + + /** + * Set the link to the next page of results, if any remaining results exist. + * + * @param nextLink the nextLink value to set + * @return the SsisObjectMetadataListResponseInner object itself. + */ + public SsisObjectMetadataListResponseInner withNextLink(String nextLink) { + this.nextLink = nextLink; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/SsisObjectMetadataStatusResponseImpl.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/SsisObjectMetadataStatusResponseImpl.java new file mode 100644 index 0000000000000..62c830927afbc --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/SsisObjectMetadataStatusResponseImpl.java @@ -0,0 +1,46 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01.implementation; + +import com.microsoft.azure.management.datafactory.v2018_06_01.SsisObjectMetadataStatusResponse; +import com.microsoft.azure.arm.model.implementation.WrapperImpl; + +class SsisObjectMetadataStatusResponseImpl extends WrapperImpl implements SsisObjectMetadataStatusResponse { + private final DataFactoryManager manager; + SsisObjectMetadataStatusResponseImpl(SsisObjectMetadataStatusResponseInner inner, DataFactoryManager manager) { + super(inner); + this.manager = manager; + } + + @Override + public DataFactoryManager manager() { + return this.manager; + } + + @Override + public String error() { + return this.inner().error(); + } + + @Override + public String name() { + return this.inner().name(); + } + + @Override + public String properties() { + return this.inner().properties(); + } + + @Override + public String status() { + return this.inner().status(); + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/SsisObjectMetadataStatusResponseInner.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/SsisObjectMetadataStatusResponseInner.java new file mode 100644 index 0000000000000..9b889dc90e8ee --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/SsisObjectMetadataStatusResponseInner.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.v2018_06_01.implementation; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The status of the operation. + */ +public class SsisObjectMetadataStatusResponseInner { + /** + * The status of the operation. + */ + @JsonProperty(value = "status") + private String status; + + /** + * The operation name. + */ + @JsonProperty(value = "name") + private String name; + + /** + * The operation properties. + */ + @JsonProperty(value = "properties") + private String properties; + + /** + * The operation error message. + */ + @JsonProperty(value = "error") + private String error; + + /** + * Get the status of the operation. + * + * @return the status value + */ + public String status() { + return this.status; + } + + /** + * Set the status of the operation. + * + * @param status the status value to set + * @return the SsisObjectMetadataStatusResponseInner object itself. + */ + public SsisObjectMetadataStatusResponseInner withStatus(String status) { + this.status = status; + return this; + } + + /** + * Get the operation name. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Set the operation name. + * + * @param name the name value to set + * @return the SsisObjectMetadataStatusResponseInner object itself. + */ + public SsisObjectMetadataStatusResponseInner withName(String name) { + this.name = name; + return this; + } + + /** + * Get the operation properties. + * + * @return the properties value + */ + public String properties() { + return this.properties; + } + + /** + * Set the operation properties. + * + * @param properties the properties value to set + * @return the SsisObjectMetadataStatusResponseInner object itself. + */ + public SsisObjectMetadataStatusResponseInner withProperties(String properties) { + this.properties = properties; + return this; + } + + /** + * Get the operation error message. + * + * @return the error value + */ + public String error() { + return this.error; + } + + /** + * Set the operation error message. + * + * @param error the error value to set + * @return the SsisObjectMetadataStatusResponseInner object itself. + */ + public SsisObjectMetadataStatusResponseInner withError(String error) { + this.error = error; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/TriggerFactoryTriggerResourceImpl.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/TriggerFactoryTriggerResourceImpl.java new file mode 100644 index 0000000000000..68d02c435e781 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/TriggerFactoryTriggerResourceImpl.java @@ -0,0 +1,149 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01.implementation; + +import com.microsoft.azure.management.datafactory.v2018_06_01.TriggerFactoryTriggerResource; +import com.microsoft.azure.arm.model.implementation.CreatableUpdatableImpl; +import rx.Observable; +import com.microsoft.azure.management.datafactory.v2018_06_01.RerunTumblingWindowTriggerActionParameters; +import org.joda.time.DateTime; +import com.microsoft.azure.management.datafactory.v2018_06_01.; +import rx.functions.Func1; + +class TriggerFactoryTriggerResourceImpl extends CreatableUpdatableImpl implements TriggerFactoryTriggerResource, TriggerFactoryTriggerResource.Definition, TriggerFactoryTriggerResource.Update { + private final DataFactoryManager manager; + private String resourceGroupName; + private String factoryName; + private String triggerName; + private String rerunTriggerName; + private RerunTumblingWindowTriggerActionParameters createOrUpdateParameter; + + TriggerFactoryTriggerResourceImpl(String name, DataFactoryManager manager) { + super(name, new TriggerResourceInner()); + this.manager = manager; + // Set resource name + this.rerunTriggerName = name; + // + this.createOrUpdateParameter = new RerunTumblingWindowTriggerActionParameters(); + } + + TriggerFactoryTriggerResourceImpl(TriggerResourceInner inner, DataFactoryManager manager) { + super(inner.name(), inner); + this.manager = manager; + // Set resource name + this.rerunTriggerName = inner.name(); + // set resource ancestor and positional variables + this.resourceGroupName = IdParsingUtils.getValueFromIdByName(inner.id(), "resourceGroups"); + this.factoryName = IdParsingUtils.getValueFromIdByName(inner.id(), "factories"); + this.triggerName = IdParsingUtils.getValueFromIdByName(inner.id(), "triggers"); + this.rerunTriggerName = IdParsingUtils.getValueFromIdByName(inner.id(), "rerunTriggers"); + // + this.createOrUpdateParameter = new RerunTumblingWindowTriggerActionParameters(); + } + + @Override + public DataFactoryManager manager() { + return this.manager; + } + + @Override + public Observable createResourceAsync() { + RerunTriggersInner client = this.manager().inner().rerunTriggers(); + return client.createAsync(this.resourceGroupName, this.factoryName, this.triggerName, this.rerunTriggerName, this.createOrUpdateParameter) + .map(new Func1() { + @Override + public TriggerResourceInner call(TriggerResourceInner resource) { + resetCreateUpdateParameters(); + return resource; + } + }) + .map(innerToFluentMap(this)); + } + + @Override + public Observable updateResourceAsync() { + RerunTriggersInner client = this.manager().inner().rerunTriggers(); + return client.createAsync(this.resourceGroupName, this.factoryName, this.triggerName, this.rerunTriggerName, this.createOrUpdateParameter) + .map(new Func1() { + @Override + public TriggerResourceInner call(TriggerResourceInner resource) { + resetCreateUpdateParameters(); + return resource; + } + }) + .map(innerToFluentMap(this)); + } + + @Override + protected Observable getInnerAsync() { + RerunTriggersInner client = this.manager().inner().rerunTriggers(); + return null; // NOP getInnerAsync implementation as get is not supported + } + + @Override + public boolean isInCreateMode() { + return this.inner().id() == null; + } + + private void resetCreateUpdateParameters() { + this.createOrUpdateParameter = new RerunTumblingWindowTriggerActionParameters(); + } + + @Override + public String etag() { + return this.inner().etag(); + } + + @Override + public String id() { + return this.inner().id(); + } + + @Override + public String name() { + return this.inner().name(); + } + + @Override + public TriggerInner properties() { + return this.inner().properties(); + } + + @Override + public String type() { + return this.inner().type(); + } + + @Override + public TriggerFactoryTriggerResourceImpl withExistingTrigger(String resourceGroupName, String factoryName, String triggerName) { + this.resourceGroupName = resourceGroupName; + this.factoryName = factoryName; + this.triggerName = triggerName; + return this; + } + + @Override + public TriggerFactoryTriggerResourceImpl withEndTime(DateTime endTime) { + this.createOrUpdateParameter.withEndTime(endTime); + return this; + } + + @Override + public TriggerFactoryTriggerResourceImpl withMaxConcurrency(int maxConcurrency) { + this.createOrUpdateParameter.withMaxConcurrency(maxConcurrency); + return this; + } + + @Override + public TriggerFactoryTriggerResourceImpl withStartTime(DateTime startTime) { + this.createOrUpdateParameter.withStartTime(startTime); + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/TriggerInner.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/TriggerInner.java new file mode 100644 index 0000000000000..eae3fb6c470f5 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/TriggerInner.java @@ -0,0 +1,126 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01.implementation; + +import java.util.Map; +import com.microsoft.azure.management.datafactory.v2018_06_01.TriggerRuntimeState; +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; + +/** + * 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 = "RerunTumblingWindowTrigger", value = RerunTumblingWindowTrigger.class), + @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; + + /** + * List of tags that can be used for describing the trigger. + */ + @JsonProperty(value = "annotations") + private List annotations; + + /** + * Get unmatched properties from the message are deserialized this collection. + * + * @return the additionalProperties value + */ + public Map additionalProperties() { + return this.additionalProperties; + } + + /** + * Set unmatched properties from the message are deserialized this collection. + * + * @param additionalProperties the additionalProperties value to set + * @return the TriggerInner object itself. + */ + public TriggerInner withAdditionalProperties(Map additionalProperties) { + this.additionalProperties = additionalProperties; + return this; + } + + /** + * Get trigger description. + * + * @return the description value + */ + public String description() { + return this.description; + } + + /** + * Set trigger description. + * + * @param description the description value to set + * @return the TriggerInner object itself. + */ + public TriggerInner withDescription(String description) { + this.description = description; + return this; + } + + /** + * Get indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. Possible values include: 'Started', 'Stopped', 'Disabled'. + * + * @return the runtimeState value + */ + public TriggerRuntimeState runtimeState() { + return this.runtimeState; + } + + /** + * Get list of tags that can be used for describing the trigger. + * + * @return the annotations value + */ + public List annotations() { + return this.annotations; + } + + /** + * Set list of tags that can be used for describing the trigger. + * + * @param annotations the annotations value to set + * @return the TriggerInner object itself. + */ + public TriggerInner withAnnotations(List annotations) { + this.annotations = annotations; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/TriggerResourceInner.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/TriggerResourceInner.java new file mode 100644 index 0000000000000..4559778e28e56 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/TriggerResourceInner.java @@ -0,0 +1,89 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01.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; + + /** + * The resource name. + */ + @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY) + private String name; + + /** + * The resource type. + */ + @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY) + private String type; + + /** + * Etag identifies change in the resource. + */ + @JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY) + private String etag; + + /** + * Get properties of the trigger. + * + * @return the properties value + */ + public TriggerInner properties() { + return this.properties; + } + + /** + * Set properties of the trigger. + * + * @param properties the properties value to set + * @return the TriggerResourceInner object itself. + */ + public TriggerResourceInner withProperties(TriggerInner properties) { + this.properties = properties; + return this; + } + + /** + * Get the resource name. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Get the resource type. + * + * @return the type value + */ + public String type() { + return this.type; + } + + /** + * Get etag identifies change in the resource. + * + * @return the etag value + */ + public String etag() { + return this.etag; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/TriggerRunInner.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/TriggerRunInner.java new file mode 100644 index 0000000000000..054fb1e2bd8b3 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01.implementation; + +import java.util.Map; +import org.joda.time.DateTime; +import com.microsoft.azure.management.datafactory.v2018_06_01.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 unmatched properties from the message are deserialized this collection. + * + * @return the additionalProperties value + */ + public Map additionalProperties() { + return this.additionalProperties; + } + + /** + * Set unmatched properties from the message are deserialized this collection. + * + * @param additionalProperties the additionalProperties value to set + * @return the TriggerRunInner object itself. + */ + public TriggerRunInner withAdditionalProperties(Map additionalProperties) { + this.additionalProperties = additionalProperties; + return this; + } + + /** + * Get trigger run id. + * + * @return the triggerRunId value + */ + public String triggerRunId() { + return this.triggerRunId; + } + + /** + * Get trigger name. + * + * @return the triggerName value + */ + public String triggerName() { + return this.triggerName; + } + + /** + * Get trigger type. + * + * @return the triggerType value + */ + public String triggerType() { + return this.triggerType; + } + + /** + * Get trigger run start time. + * + * @return the triggerRunTimestamp value + */ + public DateTime triggerRunTimestamp() { + return this.triggerRunTimestamp; + } + + /** + * Get trigger run status. Possible values include: 'Succeeded', 'Failed', 'Inprogress'. + * + * @return the status value + */ + public TriggerRunStatus status() { + return this.status; + } + + /** + * Get trigger error message. + * + * @return the message value + */ + public String message() { + return this.message; + } + + /** + * Get list of property name and value related to trigger run. Name, value pair depends on type of trigger. + * + * @return the properties value + */ + public Map properties() { + return this.properties; + } + + /** + * Get list of pipeline name and run Id triggered by the trigger run. + * + * @return the triggeredPipelines value + */ + public Map triggeredPipelines() { + return this.triggeredPipelines; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/TriggerRunsImpl.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/TriggerRunsImpl.java new file mode 100644 index 0000000000000..38b11bdfe1229 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/TriggerRunsImpl.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. + * abc + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01.implementation; + +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import com.microsoft.azure.management.datafactory.v2018_06_01.TriggerRuns; +import rx.functions.Func1; +import rx.Observable; +import com.microsoft.azure.management.datafactory.v2018_06_01.TriggerRunsQueryResponse; +import com.microsoft.azure.management.datafactory.v2018_06_01.RunFilterParameters; + +class TriggerRunsImpl extends WrapperImpl implements TriggerRuns { + private final DataFactoryManager manager; + + TriggerRunsImpl(DataFactoryManager manager) { + super(manager.inner().triggerRuns()); + this.manager = manager; + } + + public DataFactoryManager manager() { + return this.manager; + } + + @Override + public Observable queryByFactoryAsync(String resourceGroupName, String factoryName, RunFilterParameters filterParameters) { + TriggerRunsInner client = this.inner(); + return client.queryByFactoryAsync(resourceGroupName, factoryName, filterParameters) + .map(new Func1() { + @Override + public TriggerRunsQueryResponse call(TriggerRunsQueryResponseInner inner) { + return new TriggerRunsQueryResponseImpl(inner, manager()); + } + }); + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/TriggerRunsInner.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/TriggerRunsInner.java new file mode 100644 index 0000000000000..11bd850a82a51 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/TriggerRunsInner.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.v2018_06_01.implementation; + +import retrofit2.Retrofit; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.CloudException; +import com.microsoft.azure.management.datafactory.v2018_06_01.RunFilterParameters; +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.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 TriggerRuns. + */ +public class TriggerRunsInner { + /** The Retrofit service to perform REST calls. */ + private TriggerRunsService service; + /** The service client containing this operation class. */ + private DataFactoryManagementClientImpl client; + + /** + * Initializes an instance of TriggerRunsInner. + * + * @param retrofit the Retrofit instance built from a Retrofit Builder. + * @param client the instance of the service client containing this operation class. + */ + public TriggerRunsInner(Retrofit retrofit, DataFactoryManagementClientImpl client) { + this.service = retrofit.create(TriggerRunsService.class); + this.client = client; + } + + /** + * The interface defining all the services for TriggerRuns to be + * used by Retrofit to perform actually REST calls. + */ + interface TriggerRunsService { + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.datafactory.v2018_06_01.TriggerRuns queryByFactory" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/queryTriggerRuns") + Observable> queryByFactory(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("factoryName") String factoryName, @Query("api-version") String apiVersion, @Body RunFilterParameters filterParameters, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + } + + /** + * Query trigger runs. + * + * @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 CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the TriggerRunsQueryResponseInner object if successful. + */ + public TriggerRunsQueryResponseInner queryByFactory(String resourceGroupName, String factoryName, RunFilterParameters filterParameters) { + return queryByFactoryWithServiceResponseAsync(resourceGroupName, factoryName, filterParameters).toBlocking().single().body(); + } + + /** + * Query trigger runs. + * + * @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, RunFilterParameters filterParameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(queryByFactoryWithServiceResponseAsync(resourceGroupName, factoryName, filterParameters), serviceCallback); + } + + /** + * Query trigger runs. + * + * @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 TriggerRunsQueryResponseInner object + */ + public Observable queryByFactoryAsync(String resourceGroupName, String factoryName, RunFilterParameters filterParameters) { + return queryByFactoryWithServiceResponseAsync(resourceGroupName, factoryName, filterParameters).map(new Func1, TriggerRunsQueryResponseInner>() { + @Override + public TriggerRunsQueryResponseInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Query trigger runs. + * + * @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 TriggerRunsQueryResponseInner object + */ + public Observable> queryByFactoryWithServiceResponseAsync(String resourceGroupName, String factoryName, RunFilterParameters 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 CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/TriggerRunsQueryResponseImpl.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/TriggerRunsQueryResponseImpl.java new file mode 100644 index 0000000000000..fc699a796941e --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/TriggerRunsQueryResponseImpl.java @@ -0,0 +1,37 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01.implementation; + +import com.microsoft.azure.management.datafactory.v2018_06_01.TriggerRunsQueryResponse; +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import java.util.List; + +class TriggerRunsQueryResponseImpl extends WrapperImpl implements TriggerRunsQueryResponse { + private final DataFactoryManager manager; + TriggerRunsQueryResponseImpl(TriggerRunsQueryResponseInner inner, DataFactoryManager manager) { + super(inner); + this.manager = manager; + } + + @Override + public DataFactoryManager manager() { + return this.manager; + } + + @Override + public String continuationToken() { + return this.inner().continuationToken(); + } + + @Override + public List value() { + return this.inner().value(); + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/TriggerRunsQueryResponseInner.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/TriggerRunsQueryResponseInner.java new file mode 100644 index 0000000000000..357a6c50c2622 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/TriggerRunsQueryResponseInner.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.v2018_06_01.implementation; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * A list of trigger runs. + */ +public class TriggerRunsQueryResponseInner { + /** + * List of trigger 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 list of trigger runs. + * + * @return the value value + */ + public List value() { + return this.value; + } + + /** + * Set list of trigger runs. + * + * @param value the value value to set + * @return the TriggerRunsQueryResponseInner object itself. + */ + public TriggerRunsQueryResponseInner withValue(List value) { + this.value = value; + return this; + } + + /** + * Get the continuation token for getting the next page of results, if any remaining results exist, null otherwise. + * + * @return the continuationToken value + */ + public String continuationToken() { + return this.continuationToken; + } + + /** + * Set the continuation token for getting the next page of results, if any remaining results exist, null otherwise. + * + * @param continuationToken the continuationToken value to set + * @return the TriggerRunsQueryResponseInner object itself. + */ + public TriggerRunsQueryResponseInner withContinuationToken(String continuationToken) { + this.continuationToken = continuationToken; + return this; + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/TriggersImpl.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/TriggersImpl.java new file mode 100644 index 0000000000000..65f83b0487f57 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/TriggersImpl.java @@ -0,0 +1,93 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01.implementation; + +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import com.microsoft.azure.management.datafactory.v2018_06_01.Triggers; +import rx.Completable; +import rx.Observable; +import rx.functions.Func1; +import com.microsoft.azure.Page; +import com.microsoft.azure.management.datafactory.v2018_06_01.FactoryTriggerResource; + +class TriggersImpl extends WrapperImpl implements Triggers { + private final DataFactoryManager manager; + + TriggersImpl(DataFactoryManager manager) { + super(manager.inner().triggers()); + this.manager = manager; + } + + public DataFactoryManager manager() { + return this.manager; + } + + @Override + public FactoryTriggerResourceImpl define(String name) { + return wrapModel(name); + } + + private FactoryTriggerResourceImpl wrapModel(TriggerResourceInner inner) { + return new FactoryTriggerResourceImpl(inner, manager()); + } + + private FactoryTriggerResourceImpl wrapModel(String name) { + return new FactoryTriggerResourceImpl(name, this.manager()); + } + + @Override + public Completable startAsync(String resourceGroupName, String factoryName, String triggerName) { + TriggersInner client = this.inner(); + return client.startAsync(resourceGroupName, factoryName, triggerName).toCompletable(); + } + + @Override + public Completable stopAsync(String resourceGroupName, String factoryName, String triggerName) { + TriggersInner client = this.inner(); + return client.stopAsync(resourceGroupName, factoryName, triggerName).toCompletable(); + } + + @Override + public Observable listByFactoryAsync(final String resourceGroupName, final String factoryName) { + TriggersInner client = this.inner(); + return client.listByFactoryAsync(resourceGroupName, factoryName) + .flatMapIterable(new Func1, Iterable>() { + @Override + public Iterable call(Page page) { + return page.items(); + } + }) + .map(new Func1() { + @Override + public FactoryTriggerResource call(TriggerResourceInner inner) { + return wrapModel(inner); + } + }); + } + + @Override + public Observable getAsync(String resourceGroupName, String factoryName, String triggerName) { + TriggersInner client = this.inner(); + return client.getAsync(resourceGroupName, factoryName, triggerName) + .map(new Func1() { + @Override + public FactoryTriggerResource call(TriggerResourceInner inner) { + return wrapModel(inner); + } + }); + } + + @Override + public Completable deleteAsync(String resourceGroupName, String factoryName, String triggerName) { + TriggersInner client = this.inner(); + return client.deleteAsync(resourceGroupName, factoryName, triggerName).toCompletable(); + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/TriggersInner.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/TriggersInner.java new file mode 100644 index 0000000000000..d285a8b32111f --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/TriggersInner.java @@ -0,0 +1,1153 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactory.v2018_06_01.implementation; + +import retrofit2.Retrofit; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.AzureServiceFuture; +import com.microsoft.azure.CloudException; +import com.microsoft.azure.ListOperationCallback; +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.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.v2018_06_01.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.v2018_06_01.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.v2018_06_01.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("If-None-Match") String ifNoneMatch, @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.v2018_06_01.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.v2018_06_01.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.v2018_06_01.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.v2018_06_01.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.v2018_06_01.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.v2018_06_01.Triggers listByFactoryNext" }) + @GET + Observable> listByFactoryNext(@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 CloudException 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 CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(CloudException.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 CloudException 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 CloudException 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 CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.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 CloudException 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."); + } + final String ifNoneMatch = null; + return service.get(this.client.subscriptionId(), resourceGroupName, factoryName, triggerName, this.client.apiVersion(), ifNoneMatch, 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); + } + } + }); + } + + /** + * Gets a trigger. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param triggerName The trigger name. + * @param ifNoneMatch ETag of the trigger entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was provided, then no content will be returned. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException 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, String ifNoneMatch) { + return getWithServiceResponseAsync(resourceGroupName, factoryName, triggerName, ifNoneMatch).toBlocking().single().body(); + } + + /** + * Gets a trigger. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param triggerName The trigger name. + * @param ifNoneMatch ETag of the trigger entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was provided, then no content will be returned. + * @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, String ifNoneMatch, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getWithServiceResponseAsync(resourceGroupName, factoryName, triggerName, ifNoneMatch), serviceCallback); + } + + /** + * Gets a trigger. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param triggerName The trigger name. + * @param ifNoneMatch ETag of the trigger entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was provided, then no content will be returned. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the TriggerResourceInner object + */ + public Observable getAsync(String resourceGroupName, String factoryName, String triggerName, String ifNoneMatch) { + return getWithServiceResponseAsync(resourceGroupName, factoryName, triggerName, ifNoneMatch).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. + * @param ifNoneMatch ETag of the trigger entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was provided, then no content will be returned. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the TriggerResourceInner object + */ + public Observable> getWithServiceResponseAsync(String resourceGroupName, String factoryName, String triggerName, String ifNoneMatch) { + 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(), ifNoneMatch, 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 CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(304, new TypeToken() { }.getType()) + .registerError(CloudException.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 CloudException 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 CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(204, new TypeToken() { }.getType()) + .registerError(CloudException.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 CloudException 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 CloudException 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 CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.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 CloudException 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 CloudException 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 CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.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 CloudException 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 CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + +} diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/package-info.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/package-info.java new file mode 100644 index 0000000000000..ec1db07b5c823 --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01.implementation; diff --git a/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/package-info.java b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/package-info.java new file mode 100644 index 0000000000000..b8c8f50a31d6a --- /dev/null +++ b/datafactory/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/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.v2018_06_01;