diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/CHANGELOG.md b/sdk/datafactory/azure-resourcemanager-datafactory/CHANGELOG.md index d31e2ed5f06c..deb3ad49a90b 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/CHANGELOG.md +++ b/sdk/datafactory/azure-resourcemanager-datafactory/CHANGELOG.md @@ -1,6 +1,8 @@ # Release History -## 1.0.0-beta.11 (Unreleased) +## 1.0.0-beta.1 (2022-02-14) + +- Azure Resource Manager DataFactory client library for Java. This package contains Microsoft Azure SDK for DataFactory Management SDK. The Azure Data Factory V2 management API provides a RESTful set of web services that interact with Azure Data Factory V2 services. Package tag package-2018-06. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ### Features Added diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/README.md b/sdk/datafactory/azure-resourcemanager-datafactory/README.md index 69178ff347eb..0b9221e1f369 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/README.md +++ b/sdk/datafactory/azure-resourcemanager-datafactory/README.md @@ -32,7 +32,7 @@ Various documentation is available to help you get started com.azure.resourcemanager azure-resourcemanager-datafactory - 1.0.0-beta.10 + 1.0.0-beta.11 ``` [//]: # ({x-version-update-end}) @@ -78,7 +78,7 @@ See [API design][design] for general introduction on design and key concepts on // storage account StorageAccount storageAccount = storageManager.storageAccounts().define(STORAGE_ACCOUNT) .withRegion(REGION) - .withExistingResourceGroup(RESOURCE_GROUP) + .withExistingResourceGroup(resourceGroup) .create(); final String storageAccountKey = storageAccount.getKeys().iterator().next().value(); final String connectionString = getStorageConnectionString(STORAGE_ACCOUNT, storageAccountKey, storageManager.environment()); @@ -86,7 +86,7 @@ final String connectionString = getStorageConnectionString(STORAGE_ACCOUNT, stor // container final String containerName = "adf"; storageManager.blobContainers().defineContainer(containerName) - .withExistingBlobService(RESOURCE_GROUP, STORAGE_ACCOUNT) + .withExistingStorageAccount(resourceGroup, STORAGE_ACCOUNT) .withPublicAccess(PublicAccess.NONE) .create(); @@ -99,9 +99,9 @@ BlobClient blobClient = new BlobClientBuilder() blobClient.upload(BinaryData.fromString("data")); // data factory -manager.factories().define(DATA_FACTORY) +Factory dataFactory = manager.factories().define(DATA_FACTORY) .withRegion(REGION) - .withExistingResourceGroup(RESOURCE_GROUP) + .withExistingResourceGroup(resourceGroup) .create(); // linked service @@ -111,7 +111,7 @@ connectionStringProperty.put("value", connectionString); final String linkedServiceName = "LinkedService"; manager.linkedServices().define(linkedServiceName) - .withExistingFactory(RESOURCE_GROUP, DATA_FACTORY) + .withExistingFactory(resourceGroup, DATA_FACTORY) .withProperties(new AzureStorageLinkedService() .withConnectionString(connectionStringProperty)) .create(); @@ -119,7 +119,7 @@ manager.linkedServices().define(linkedServiceName) // input dataset final String inputDatasetName = "InputDataset"; manager.datasets().define(inputDatasetName) - .withExistingFactory(RESOURCE_GROUP, DATA_FACTORY) + .withExistingFactory(resourceGroup, DATA_FACTORY) .withProperties(new AzureBlobDataset() .withLinkedServiceName(new LinkedServiceReference().withReferenceName(linkedServiceName)) .withFolderPath(containerName) @@ -130,7 +130,7 @@ manager.datasets().define(inputDatasetName) // output dataset final String outputDatasetName = "OutputDataset"; manager.datasets().define(outputDatasetName) - .withExistingFactory(RESOURCE_GROUP, DATA_FACTORY) + .withExistingFactory(resourceGroup, DATA_FACTORY) .withProperties(new AzureBlobDataset() .withLinkedServiceName(new LinkedServiceReference().withReferenceName(linkedServiceName)) .withFolderPath(containerName) @@ -140,7 +140,7 @@ manager.datasets().define(outputDatasetName) // pipeline PipelineResource pipeline = manager.pipelines().define("CopyBlobPipeline") - .withExistingFactory(RESOURCE_GROUP, DATA_FACTORY) + .withExistingFactory(resourceGroup, DATA_FACTORY) .withActivities(Collections.singletonList(new CopyActivity() .withName("CopyBlob") .withSource(new BlobSource()) @@ -153,11 +153,11 @@ PipelineResource pipeline = manager.pipelines().define("CopyBlobPipeline") CreateRunResponse createRun = pipeline.createRun(); // wait for completion -PipelineRun pipelineRun = manager.pipelineRuns().get(RESOURCE_GROUP, DATA_FACTORY, createRun.runId()); +PipelineRun pipelineRun = manager.pipelineRuns().get(resourceGroup, DATA_FACTORY, createRun.runId()); String runStatus = pipelineRun.status(); while ("InProgress".equals(runStatus)) { sleepIfRunningAgainstService(10 * 1000); // wait 10 seconds - pipelineRun = manager.pipelineRuns().get(RESOURCE_GROUP, DATA_FACTORY, createRun.runId()); + pipelineRun = manager.pipelineRuns().get(resourceGroup, DATA_FACTORY, createRun.runId()); runStatus = pipelineRun.status(); } ``` diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/DataFactoryManager.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/DataFactoryManager.java index e0dd4199138f..8eed8312d398 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/DataFactoryManager.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/DataFactoryManager.java @@ -251,7 +251,7 @@ public DataFactoryManager authenticate(TokenCredential credential, AzureProfile .append("-") .append("com.azure.resourcemanager.datafactory") .append("/") - .append("1.0.0-beta.10"); + .append("1.0.0-beta.1"); if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) { userAgentBuilder .append(" (") diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/DataFlowDebugSessionsClient.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/DataFlowDebugSessionsClient.java index be94cc516096..0f4754438cf2 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/DataFlowDebugSessionsClient.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/DataFlowDebugSessionsClient.java @@ -19,7 +19,6 @@ import com.azure.resourcemanager.datafactory.models.DataFlowDebugCommandRequest; import com.azure.resourcemanager.datafactory.models.DataFlowDebugPackage; import com.azure.resourcemanager.datafactory.models.DeleteDataFlowDebugSessionRequest; -import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in DataFlowDebugSessionsClient. */ public interface DataFlowDebugSessionsClient { @@ -32,8 +31,7 @@ public interface DataFlowDebugSessionsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response body structure for creating data flow debug session along with {@link Response} on successful - * completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of response body structure for creating data flow debug session. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, CreateDataFlowDebugSessionResponseInner> @@ -49,8 +47,7 @@ public interface DataFlowDebugSessionsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response body structure for creating data flow debug session along with {@link Response} on successful - * completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of response body structure for creating data flow debug session. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, CreateDataFlowDebugSessionResponseInner> @@ -96,7 +93,7 @@ CreateDataFlowDebugSessionResponseInner create( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of active debug sessions. + * @return a list of active debug sessions as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable queryByFactory(String resourceGroupName, String factoryName); @@ -110,7 +107,7 @@ CreateDataFlowDebugSessionResponseInner create( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of active debug sessions. + * @return a list of active debug sessions as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable queryByFactory( @@ -185,8 +182,8 @@ Response deleteWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response body structure of data flow result for data preview, statistics or expression preview along with - * {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of response body structure of data flow result for data preview, + * statistics or expression preview. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, DataFlowDebugCommandResponseInner> beginExecuteCommand( @@ -202,8 +199,8 @@ SyncPoller, DataFlowDebugCommandRe * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response body structure of data flow result for data preview, statistics or expression preview along with - * {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of response body structure of data flow result for data preview, + * statistics or expression preview. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, DataFlowDebugCommandResponseInner> beginExecuteCommand( diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/DataFlowsClient.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/DataFlowsClient.java index 7aaa8fb30f0c..e9ff918a8772 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/DataFlowsClient.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/DataFlowsClient.java @@ -122,7 +122,7 @@ Response deleteWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of data flow resources. + * @return a list of data flow resources as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByFactory(String resourceGroupName, String factoryName); @@ -136,7 +136,7 @@ Response deleteWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of data flow resources. + * @return a list of data flow resources as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByFactory(String resourceGroupName, String factoryName, Context context); diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/DatasetsClient.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/DatasetsClient.java index 19aba8898965..a07fdd93270c 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/DatasetsClient.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/DatasetsClient.java @@ -21,7 +21,7 @@ public interface DatasetsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of dataset resources. + * @return a list of dataset resources as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByFactory(String resourceGroupName, String factoryName); @@ -35,7 +35,7 @@ public interface DatasetsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of dataset resources. + * @return a list of dataset resources as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByFactory(String resourceGroupName, String factoryName, Context context); diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/FactoriesClient.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/FactoriesClient.java index 6bd420a3639f..32ad739af713 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/FactoriesClient.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/FactoriesClient.java @@ -24,7 +24,7 @@ public interface FactoriesClient { * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of factory resources. + * @return a list of factory resources as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(); @@ -36,7 +36,7 @@ public interface FactoriesClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of factory resources. + * @return a list of factory resources as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(Context context); @@ -76,7 +76,7 @@ Response configureFactoryRepoWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of factory resources. + * @return a list of factory resources as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByResourceGroup(String resourceGroupName); @@ -89,7 +89,7 @@ Response configureFactoryRepoWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of factory resources. + * @return a list of factory resources as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByResourceGroup(String resourceGroupName, Context context); diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/IntegrationRuntimeObjectMetadatasClient.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/IntegrationRuntimeObjectMetadatasClient.java index 87ea1af9c402..3e4bb339a7a8 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/IntegrationRuntimeObjectMetadatasClient.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/IntegrationRuntimeObjectMetadatasClient.java @@ -13,7 +13,6 @@ import com.azure.resourcemanager.datafactory.fluent.models.SsisObjectMetadataListResponseInner; import com.azure.resourcemanager.datafactory.fluent.models.SsisObjectMetadataStatusResponseInner; import com.azure.resourcemanager.datafactory.models.GetSsisObjectMetadataRequest; -import reactor.core.publisher.Mono; /** * An instance of this class provides access to all the operations defined in IntegrationRuntimeObjectMetadatasClient. @@ -28,7 +27,7 @@ public interface IntegrationRuntimeObjectMetadatasClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the status of the operation along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of the status of the operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, SsisObjectMetadataStatusResponseInner> beginRefresh( @@ -44,7 +43,7 @@ SyncPoller, SsisObjectMetadata * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the status of the operation along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of the status of the operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, SsisObjectMetadataStatusResponseInner> beginRefresh( diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/IntegrationRuntimesClient.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/IntegrationRuntimesClient.java index 6dba85cbd825..5b4b26008451 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/IntegrationRuntimesClient.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/IntegrationRuntimesClient.java @@ -21,7 +21,6 @@ import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeRegenerateKeyParameters; import com.azure.resourcemanager.datafactory.models.LinkedIntegrationRuntimeRequest; import com.azure.resourcemanager.datafactory.models.UpdateIntegrationRuntimeRequest; -import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in IntegrationRuntimesClient. */ public interface IntegrationRuntimesClient { @@ -33,7 +32,7 @@ public interface IntegrationRuntimesClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration runtime resources. + * @return a list of integration runtime resources as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByFactory(String resourceGroupName, String factoryName); @@ -47,7 +46,7 @@ public interface IntegrationRuntimesClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration runtime resources. + * @return a list of integration runtime resources as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByFactory( @@ -380,7 +379,7 @@ Response listAuthKeysWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return integration runtime status response along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of integration runtime status response. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, IntegrationRuntimeStatusResponseInner> beginStart( @@ -396,7 +395,7 @@ SyncPoller, IntegrationRuntime * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return integration runtime status response along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of integration runtime status response. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, IntegrationRuntimeStatusResponseInner> beginStart( @@ -442,7 +441,7 @@ IntegrationRuntimeStatusResponseInner start( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginStop( @@ -458,7 +457,7 @@ SyncPoller, Void> beginStop( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginStop( diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/LinkedServicesClient.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/LinkedServicesClient.java index a7b1978b8b5d..0df038b090db 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/LinkedServicesClient.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/LinkedServicesClient.java @@ -21,7 +21,7 @@ public interface LinkedServicesClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of linked service resources. + * @return a list of linked service resources as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByFactory(String resourceGroupName, String factoryName); @@ -35,7 +35,7 @@ public interface LinkedServicesClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of linked service resources. + * @return a list of linked service resources as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByFactory( diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/ManagedPrivateEndpointsClient.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/ManagedPrivateEndpointsClient.java index 9bf8cf36718a..757f468e283a 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/ManagedPrivateEndpointsClient.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/ManagedPrivateEndpointsClient.java @@ -22,7 +22,7 @@ public interface ManagedPrivateEndpointsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of managed private endpoint resources. + * @return a list of managed private endpoint resources as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByFactory( @@ -38,7 +38,7 @@ PagedIterable listByFactory( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of managed private endpoint resources. + * @return a list of managed private endpoint resources as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByFactory( diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/ManagedVirtualNetworksClient.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/ManagedVirtualNetworksClient.java index 2fc3ea5ad4e4..62314bb02b0e 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/ManagedVirtualNetworksClient.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/ManagedVirtualNetworksClient.java @@ -21,7 +21,7 @@ public interface ManagedVirtualNetworksClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of managed Virtual Network resources. + * @return a list of managed Virtual Network resources as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByFactory(String resourceGroupName, String factoryName); @@ -35,7 +35,7 @@ public interface ManagedVirtualNetworksClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of managed Virtual Network resources. + * @return a list of managed Virtual Network resources as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByFactory( diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/OperationsClient.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/OperationsClient.java index e5497276e2a1..544dfd34da47 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/OperationsClient.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/OperationsClient.java @@ -17,7 +17,8 @@ public interface OperationsClient { * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of operations that can be performed by the Data Factory service. + * @return a list of operations that can be performed by the Data Factory service as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(); @@ -29,7 +30,8 @@ public interface OperationsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of operations that can be performed by the Data Factory service. + * @return a list of operations that can be performed by the Data Factory service as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(Context context); diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/PipelinesClient.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/PipelinesClient.java index 90d4a3631454..b16fb595119a 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/PipelinesClient.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/PipelinesClient.java @@ -23,7 +23,7 @@ public interface PipelinesClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of pipeline resources. + * @return a list of pipeline resources as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByFactory(String resourceGroupName, String factoryName); @@ -37,7 +37,7 @@ public interface PipelinesClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of pipeline resources. + * @return a list of pipeline resources as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByFactory(String resourceGroupName, String factoryName, Context context); diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/PrivateEndPointConnectionsClient.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/PrivateEndPointConnectionsClient.java index efd33932c27b..804a29c92d87 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/PrivateEndPointConnectionsClient.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/PrivateEndPointConnectionsClient.java @@ -20,7 +20,7 @@ public interface PrivateEndPointConnectionsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of linked service resources. + * @return a list of linked service resources as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByFactory(String resourceGroupName, String factoryName); @@ -34,7 +34,7 @@ public interface PrivateEndPointConnectionsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of linked service resources. + * @return a list of linked service resources as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByFactory( diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/TriggersClient.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/TriggersClient.java index 700d255958cb..634c41d2f796 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/TriggersClient.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/TriggersClient.java @@ -15,7 +15,6 @@ import com.azure.resourcemanager.datafactory.fluent.models.TriggerResourceInner; import com.azure.resourcemanager.datafactory.fluent.models.TriggerSubscriptionOperationStatusInner; import com.azure.resourcemanager.datafactory.models.TriggerFilterParameters; -import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in TriggersClient. */ public interface TriggersClient { @@ -27,7 +26,7 @@ public interface TriggersClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of trigger resources. + * @return a list of trigger resources as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByFactory(String resourceGroupName, String factoryName); @@ -41,7 +40,7 @@ public interface TriggersClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of trigger resources. + * @return a list of trigger resources as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByFactory(String resourceGroupName, String factoryName, Context context); @@ -187,8 +186,7 @@ Response deleteWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return defines the response of a trigger subscription operation along with {@link Response} on successful - * completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of defines the response of a trigger subscription operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, TriggerSubscriptionOperationStatusInner> @@ -204,8 +202,7 @@ Response deleteWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return defines the response of a trigger subscription operation along with {@link Response} on successful - * completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of defines the response of a trigger subscription operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, TriggerSubscriptionOperationStatusInner> @@ -282,8 +279,7 @@ Response getEventSubscriptionStatusWith * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return defines the response of a trigger subscription operation along with {@link Response} on successful - * completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of defines the response of a trigger subscription operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, TriggerSubscriptionOperationStatusInner> @@ -299,8 +295,7 @@ Response getEventSubscriptionStatusWith * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return defines the response of a trigger subscription operation along with {@link Response} on successful - * completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of defines the response of a trigger subscription operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, TriggerSubscriptionOperationStatusInner> @@ -346,7 +341,7 @@ TriggerSubscriptionOperationStatusInner unsubscribeFromEvents( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginStart(String resourceGroupName, String factoryName, String triggerName); @@ -361,7 +356,7 @@ TriggerSubscriptionOperationStatusInner unsubscribeFromEvents( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginStart( @@ -403,7 +398,7 @@ SyncPoller, Void> beginStart( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginStop(String resourceGroupName, String factoryName, String triggerName); @@ -418,7 +413,7 @@ SyncPoller, Void> beginStart( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginStop( diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/FactoryUpdateProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/FactoryUpdateProperties.java new file mode 100644 index 000000000000..587715a3adf1 --- /dev/null +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/FactoryUpdateProperties.java @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.datafactory.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.datafactory.models.PublicNetworkAccess; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** Factory update resource properties. */ +@Fluent +public final class FactoryUpdateProperties { + @JsonIgnore private final ClientLogger logger = new ClientLogger(FactoryUpdateProperties.class); + + /* + * Whether or not public network access is allowed for the data factory. + */ + @JsonProperty(value = "publicNetworkAccess") + private PublicNetworkAccess publicNetworkAccess; + + /** + * Get the publicNetworkAccess property: Whether or not public network access is allowed for the data factory. + * + * @return the publicNetworkAccess value. + */ + public PublicNetworkAccess publicNetworkAccess() { + return this.publicNetworkAccess; + } + + /** + * Set the publicNetworkAccess property: Whether or not public network access is allowed for the data factory. + * + * @param publicNetworkAccess the publicNetworkAccess value to set. + * @return the FactoryUpdateProperties object itself. + */ + public FactoryUpdateProperties withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess) { + this.publicNetworkAccess = publicNetworkAccess; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/QuickbaseLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/QuickbaseLinkedServiceTypeProperties.java new file mode 100644 index 000000000000..5ee7046b0e3c --- /dev/null +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/QuickbaseLinkedServiceTypeProperties.java @@ -0,0 +1,122 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.datafactory.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.datafactory.models.SecretBase; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** Quickbase linked service type properties. */ +@Fluent +public final class QuickbaseLinkedServiceTypeProperties { + @JsonIgnore private final ClientLogger logger = new ClientLogger(QuickbaseLinkedServiceTypeProperties.class); + + /* + * The url to connect Quickbase source. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "url", required = true) + private Object url; + + /* + * The user token for the Quickbase source. + */ + @JsonProperty(value = "userToken", required = true) + private SecretBase userToken; + + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "encryptedCredential") + private Object encryptedCredential; + + /** + * Get the url property: The url to connect Quickbase source. Type: string (or Expression with resultType string). + * + * @return the url value. + */ + public Object url() { + return this.url; + } + + /** + * Set the url property: The url to connect Quickbase source. Type: string (or Expression with resultType string). + * + * @param url the url value to set. + * @return the QuickbaseLinkedServiceTypeProperties object itself. + */ + public QuickbaseLinkedServiceTypeProperties withUrl(Object url) { + this.url = url; + return this; + } + + /** + * Get the userToken property: The user token for the Quickbase source. + * + * @return the userToken value. + */ + public SecretBase userToken() { + return this.userToken; + } + + /** + * Set the userToken property: The user token for the Quickbase source. + * + * @param userToken the userToken value to set. + * @return the QuickbaseLinkedServiceTypeProperties object itself. + */ + public QuickbaseLinkedServiceTypeProperties withUserToken(SecretBase userToken) { + this.userToken = userToken; + return this; + } + + /** + * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted + * using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value. + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted + * using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set. + * @return the QuickbaseLinkedServiceTypeProperties object itself. + */ + public QuickbaseLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (url() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property url in model QuickbaseLinkedServiceTypeProperties")); + } + if (userToken() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property userToken in model QuickbaseLinkedServiceTypeProperties")); + } else { + userToken().validate(); + } + } +} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ScriptActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ScriptActivityTypeProperties.java new file mode 100644 index 000000000000..5f75650eadf6 --- /dev/null +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ScriptActivityTypeProperties.java @@ -0,0 +1,85 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.datafactory.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.datafactory.models.ScriptActivityScriptBlock; +import com.azure.resourcemanager.datafactory.models.ScriptActivityTypePropertiesLogSettings; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; + +/** Script activity properties. */ +@Fluent +public final class ScriptActivityTypeProperties { + @JsonIgnore private final ClientLogger logger = new ClientLogger(ScriptActivityTypeProperties.class); + + /* + * Array of script blocks. Type: array. + */ + @JsonProperty(value = "scripts") + private List scripts; + + /* + * Log settings of script activity. + */ + @JsonProperty(value = "logSettings") + private ScriptActivityTypePropertiesLogSettings logSettings; + + /** + * Get the scripts property: Array of script blocks. Type: array. + * + * @return the scripts value. + */ + public List scripts() { + return this.scripts; + } + + /** + * Set the scripts property: Array of script blocks. Type: array. + * + * @param scripts the scripts value to set. + * @return the ScriptActivityTypeProperties object itself. + */ + public ScriptActivityTypeProperties withScripts(List scripts) { + this.scripts = scripts; + return this; + } + + /** + * Get the logSettings property: Log settings of script activity. + * + * @return the logSettings value. + */ + public ScriptActivityTypePropertiesLogSettings logSettings() { + return this.logSettings; + } + + /** + * Set the logSettings property: Log settings of script activity. + * + * @param logSettings the logSettings value to set. + * @return the ScriptActivityTypeProperties object itself. + */ + public ScriptActivityTypeProperties withLogSettings(ScriptActivityTypePropertiesLogSettings logSettings) { + this.logSettings = logSettings; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (scripts() != null) { + scripts().forEach(e -> e.validate()); + } + if (logSettings() != null) { + logSettings().validate(); + } + } +} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SmartsheetLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SmartsheetLinkedServiceTypeProperties.java new file mode 100644 index 000000000000..1b3c21003a68 --- /dev/null +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SmartsheetLinkedServiceTypeProperties.java @@ -0,0 +1,89 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.datafactory.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.datafactory.models.SecretBase; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** Smartsheet linked service type properties. */ +@Fluent +public final class SmartsheetLinkedServiceTypeProperties { + @JsonIgnore private final ClientLogger logger = new ClientLogger(SmartsheetLinkedServiceTypeProperties.class); + + /* + * The api token for the Smartsheet source. + */ + @JsonProperty(value = "apiToken", required = true) + private SecretBase apiToken; + + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "encryptedCredential") + private Object encryptedCredential; + + /** + * Get the apiToken property: The api token for the Smartsheet source. + * + * @return the apiToken value. + */ + public SecretBase apiToken() { + return this.apiToken; + } + + /** + * Set the apiToken property: The api token for the Smartsheet source. + * + * @param apiToken the apiToken value to set. + * @return the SmartsheetLinkedServiceTypeProperties object itself. + */ + public SmartsheetLinkedServiceTypeProperties withApiToken(SecretBase apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted + * using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value. + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted + * using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set. + * @return the SmartsheetLinkedServiceTypeProperties object itself. + */ + public SmartsheetLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (apiToken() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property apiToken in model SmartsheetLinkedServiceTypeProperties")); + } else { + apiToken().validate(); + } + } +} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/TeamDeskLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/TeamDeskLinkedServiceTypeProperties.java new file mode 100644 index 000000000000..49f03d5493cc --- /dev/null +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/TeamDeskLinkedServiceTypeProperties.java @@ -0,0 +1,208 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.datafactory.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.datafactory.models.SecretBase; +import com.azure.resourcemanager.datafactory.models.TeamDeskAuthenticationType; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** TeamDesk linked service type properties. */ +@Fluent +public final class TeamDeskLinkedServiceTypeProperties { + @JsonIgnore private final ClientLogger logger = new ClientLogger(TeamDeskLinkedServiceTypeProperties.class); + + /* + * The authentication type to use. + */ + @JsonProperty(value = "authenticationType", required = true) + private TeamDeskAuthenticationType authenticationType; + + /* + * The url to connect TeamDesk source. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "url", required = true) + private Object url; + + /* + * The username of the TeamDesk source. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "userName") + private Object username; + + /* + * The password of the TeamDesk source. + */ + @JsonProperty(value = "password") + private SecretBase password; + + /* + * The api token for the TeamDesk source. + */ + @JsonProperty(value = "apiToken") + private SecretBase apiToken; + + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "encryptedCredential") + private Object encryptedCredential; + + /** + * Get the authenticationType property: The authentication type to use. + * + * @return the authenticationType value. + */ + public TeamDeskAuthenticationType authenticationType() { + return this.authenticationType; + } + + /** + * Set the authenticationType property: The authentication type to use. + * + * @param authenticationType the authenticationType value to set. + * @return the TeamDeskLinkedServiceTypeProperties object itself. + */ + public TeamDeskLinkedServiceTypeProperties withAuthenticationType(TeamDeskAuthenticationType authenticationType) { + this.authenticationType = authenticationType; + return this; + } + + /** + * Get the url property: The url to connect TeamDesk source. Type: string (or Expression with resultType string). + * + * @return the url value. + */ + public Object url() { + return this.url; + } + + /** + * Set the url property: The url to connect TeamDesk source. Type: string (or Expression with resultType string). + * + * @param url the url value to set. + * @return the TeamDeskLinkedServiceTypeProperties object itself. + */ + public TeamDeskLinkedServiceTypeProperties withUrl(Object url) { + this.url = url; + return this; + } + + /** + * Get the username property: The username of the TeamDesk source. Type: string (or Expression with resultType + * string). + * + * @return the username value. + */ + public Object username() { + return this.username; + } + + /** + * Set the username property: The username of the TeamDesk source. Type: string (or Expression with resultType + * string). + * + * @param username the username value to set. + * @return the TeamDeskLinkedServiceTypeProperties object itself. + */ + public TeamDeskLinkedServiceTypeProperties withUsername(Object username) { + this.username = username; + return this; + } + + /** + * Get the password property: The password of the TeamDesk source. + * + * @return the password value. + */ + public SecretBase password() { + return this.password; + } + + /** + * Set the password property: The password of the TeamDesk source. + * + * @param password the password value to set. + * @return the TeamDeskLinkedServiceTypeProperties object itself. + */ + public TeamDeskLinkedServiceTypeProperties withPassword(SecretBase password) { + this.password = password; + return this; + } + + /** + * Get the apiToken property: The api token for the TeamDesk source. + * + * @return the apiToken value. + */ + public SecretBase apiToken() { + return this.apiToken; + } + + /** + * Set the apiToken property: The api token for the TeamDesk source. + * + * @param apiToken the apiToken value to set. + * @return the TeamDeskLinkedServiceTypeProperties object itself. + */ + public TeamDeskLinkedServiceTypeProperties withApiToken(SecretBase apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted + * using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value. + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted + * using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set. + * @return the TeamDeskLinkedServiceTypeProperties object itself. + */ + public TeamDeskLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (authenticationType() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property authenticationType in model TeamDeskLinkedServiceTypeProperties")); + } + if (url() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property url in model TeamDeskLinkedServiceTypeProperties")); + } + if (password() != null) { + password().validate(); + } + if (apiToken() != null) { + apiToken().validate(); + } + } +} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ZendeskLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ZendeskLinkedServiceTypeProperties.java new file mode 100644 index 000000000000..97fdb631b830 --- /dev/null +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ZendeskLinkedServiceTypeProperties.java @@ -0,0 +1,208 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.datafactory.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.datafactory.models.SecretBase; +import com.azure.resourcemanager.datafactory.models.ZendeskAuthenticationType; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** Zendesk linked service type properties. */ +@Fluent +public final class ZendeskLinkedServiceTypeProperties { + @JsonIgnore private final ClientLogger logger = new ClientLogger(ZendeskLinkedServiceTypeProperties.class); + + /* + * The authentication type to use. + */ + @JsonProperty(value = "authenticationType", required = true) + private ZendeskAuthenticationType authenticationType; + + /* + * The url to connect Zendesk source. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "url", required = true) + private Object url; + + /* + * The username of the Zendesk source. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "userName") + private Object username; + + /* + * The password of the Zendesk source. + */ + @JsonProperty(value = "password") + private SecretBase password; + + /* + * The api token for the Zendesk source. + */ + @JsonProperty(value = "apiToken") + private SecretBase apiToken; + + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "encryptedCredential") + private Object encryptedCredential; + + /** + * Get the authenticationType property: The authentication type to use. + * + * @return the authenticationType value. + */ + public ZendeskAuthenticationType authenticationType() { + return this.authenticationType; + } + + /** + * Set the authenticationType property: The authentication type to use. + * + * @param authenticationType the authenticationType value to set. + * @return the ZendeskLinkedServiceTypeProperties object itself. + */ + public ZendeskLinkedServiceTypeProperties withAuthenticationType(ZendeskAuthenticationType authenticationType) { + this.authenticationType = authenticationType; + return this; + } + + /** + * Get the url property: The url to connect Zendesk source. Type: string (or Expression with resultType string). + * + * @return the url value. + */ + public Object url() { + return this.url; + } + + /** + * Set the url property: The url to connect Zendesk source. Type: string (or Expression with resultType string). + * + * @param url the url value to set. + * @return the ZendeskLinkedServiceTypeProperties object itself. + */ + public ZendeskLinkedServiceTypeProperties withUrl(Object url) { + this.url = url; + return this; + } + + /** + * Get the username property: The username of the Zendesk source. Type: string (or Expression with resultType + * string). + * + * @return the username value. + */ + public Object username() { + return this.username; + } + + /** + * Set the username property: The username of the Zendesk source. Type: string (or Expression with resultType + * string). + * + * @param username the username value to set. + * @return the ZendeskLinkedServiceTypeProperties object itself. + */ + public ZendeskLinkedServiceTypeProperties withUsername(Object username) { + this.username = username; + return this; + } + + /** + * Get the password property: The password of the Zendesk source. + * + * @return the password value. + */ + public SecretBase password() { + return this.password; + } + + /** + * Set the password property: The password of the Zendesk source. + * + * @param password the password value to set. + * @return the ZendeskLinkedServiceTypeProperties object itself. + */ + public ZendeskLinkedServiceTypeProperties withPassword(SecretBase password) { + this.password = password; + return this; + } + + /** + * Get the apiToken property: The api token for the Zendesk source. + * + * @return the apiToken value. + */ + public SecretBase apiToken() { + return this.apiToken; + } + + /** + * Set the apiToken property: The api token for the Zendesk source. + * + * @param apiToken the apiToken value to set. + * @return the ZendeskLinkedServiceTypeProperties object itself. + */ + public ZendeskLinkedServiceTypeProperties withApiToken(SecretBase apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted + * using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value. + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted + * using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set. + * @return the ZendeskLinkedServiceTypeProperties object itself. + */ + public ZendeskLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (authenticationType() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property authenticationType in model ZendeskLinkedServiceTypeProperties")); + } + if (url() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property url in model ZendeskLinkedServiceTypeProperties")); + } + if (password() != null) { + password().validate(); + } + if (apiToken() != null) { + apiToken().validate(); + } + } +} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DataFlowDebugSessionsClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DataFlowDebugSessionsClientImpl.java index 1b2ce7e57d66..ffc4f695246b 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DataFlowDebugSessionsClientImpl.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DataFlowDebugSessionsClientImpl.java @@ -283,8 +283,7 @@ private Mono>> createWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response body structure for creating data flow debug session along with {@link Response} on successful - * completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of response body structure for creating data flow debug session. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, CreateDataFlowDebugSessionResponseInner> @@ -310,8 +309,7 @@ private Mono>> createWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response body structure for creating data flow debug session along with {@link Response} on successful - * completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of response body structure for creating data flow debug session. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, CreateDataFlowDebugSessionResponseInner> @@ -339,8 +337,7 @@ private Mono>> createWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response body structure for creating data flow debug session along with {@link Response} on successful - * completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of response body structure for creating data flow debug session. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, CreateDataFlowDebugSessionResponseInner> @@ -358,8 +355,7 @@ private Mono>> createWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response body structure for creating data flow debug session along with {@link Response} on successful - * completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of response body structure for creating data flow debug session. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, CreateDataFlowDebugSessionResponseInner> @@ -564,7 +560,7 @@ private Mono> queryByFactorySingleP * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of active debug sessions. + * @return a list of active debug sessions as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux queryByFactoryAsync(String resourceGroupName, String factoryName) { @@ -582,7 +578,7 @@ private PagedFlux queryByFactoryAsync(String reso * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of active debug sessions. + * @return a list of active debug sessions as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux queryByFactoryAsync( @@ -600,7 +596,7 @@ private PagedFlux queryByFactoryAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of active debug sessions. + * @return a list of active debug sessions as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable queryByFactory(String resourceGroupName, String factoryName) { @@ -616,7 +612,7 @@ public PagedIterable queryByFactory(String resour * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of active debug sessions. + * @return a list of active debug sessions as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable queryByFactory( @@ -1072,8 +1068,8 @@ private Mono>> executeCommandWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response body structure of data flow result for data preview, statistics or expression preview along with - * {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of response body structure of data flow result for data preview, + * statistics or expression preview. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, DataFlowDebugCommandResponseInner> @@ -1100,8 +1096,8 @@ private Mono>> executeCommandWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response body structure of data flow result for data preview, statistics or expression preview along with - * {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of response body structure of data flow result for data preview, + * statistics or expression preview. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, DataFlowDebugCommandResponseInner> @@ -1129,8 +1125,8 @@ private Mono>> executeCommandWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response body structure of data flow result for data preview, statistics or expression preview along with - * {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of response body structure of data flow result for data preview, + * statistics or expression preview. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, DataFlowDebugCommandResponseInner> @@ -1148,8 +1144,8 @@ private Mono>> executeCommandWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response body structure of data flow result for data preview, statistics or expression preview along with - * {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of response body structure of data flow result for data preview, + * statistics or expression preview. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, DataFlowDebugCommandResponseInner> diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DataFlowsClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DataFlowsClientImpl.java index b77d19cd6c32..00fa002a46b0 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DataFlowsClientImpl.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DataFlowsClientImpl.java @@ -850,7 +850,7 @@ private Mono> listByFactorySinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of data flow resources. + * @return a list of data flow resources as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByFactoryAsync(String resourceGroupName, String factoryName) { @@ -868,7 +868,7 @@ private PagedFlux listByFactoryAsync(String resourceGroup * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of data flow resources. + * @return a list of data flow resources as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByFactoryAsync( @@ -886,7 +886,7 @@ private PagedFlux listByFactoryAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of data flow resources. + * @return a list of data flow resources as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByFactory(String resourceGroupName, String factoryName) { @@ -902,7 +902,7 @@ public PagedIterable listByFactory(String resourceGroupNa * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of data flow resources. + * @return a list of data flow resources as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByFactory( diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DatasetsClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DatasetsClientImpl.java index 1b57f28d6653..1ba4f8e68fc5 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DatasetsClientImpl.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DatasetsClientImpl.java @@ -258,7 +258,7 @@ private Mono> listByFactorySinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of dataset resources. + * @return a list of dataset resources as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByFactoryAsync(String resourceGroupName, String factoryName) { @@ -276,7 +276,7 @@ private PagedFlux listByFactoryAsync(String resourceGroupN * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of dataset resources. + * @return a list of dataset resources as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByFactoryAsync( @@ -294,7 +294,7 @@ private PagedFlux listByFactoryAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of dataset resources. + * @return a list of dataset resources as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByFactory(String resourceGroupName, String factoryName) { @@ -310,7 +310,7 @@ public PagedIterable listByFactory(String resourceGroupNam * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of dataset resources. + * @return a list of dataset resources as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByFactory( diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/FactoriesClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/FactoriesClientImpl.java index eb7ce831ef88..bb1c37484d41 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/FactoriesClientImpl.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/FactoriesClientImpl.java @@ -319,7 +319,7 @@ private Mono> listSinglePageAsync(Context context) { * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of factory resources. + * @return a list of factory resources as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync() { @@ -333,7 +333,7 @@ private PagedFlux listAsync() { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of factory resources. + * @return a list of factory resources as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(Context context) { @@ -346,7 +346,7 @@ private PagedFlux listAsync(Context context) { * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of factory resources. + * @return a list of factory resources as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list() { @@ -360,7 +360,7 @@ public PagedIterable list() { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of factory resources. + * @return a list of factory resources as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(Context context) { @@ -628,7 +628,7 @@ private Mono> listByResourceGroupSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of factory resources. + * @return a list of factory resources as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByResourceGroupAsync(String resourceGroupName) { @@ -645,7 +645,7 @@ private PagedFlux listByResourceGroupAsync(String resourceGroupNam * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of factory resources. + * @return a list of factory resources as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) { @@ -661,7 +661,7 @@ private PagedFlux listByResourceGroupAsync(String resourceGroupNam * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of factory resources. + * @return a list of factory resources as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByResourceGroup(String resourceGroupName) { @@ -676,7 +676,7 @@ public PagedIterable listByResourceGroup(String resourceGroupName) * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of factory resources. + * @return a list of factory resources as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/IntegrationRuntimeObjectMetadatasClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/IntegrationRuntimeObjectMetadatasClientImpl.java index 1530fd8daa97..f2081b571a4b 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/IntegrationRuntimeObjectMetadatasClientImpl.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/IntegrationRuntimeObjectMetadatasClientImpl.java @@ -219,7 +219,7 @@ private Mono>> refreshWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the status of the operation along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of the status of the operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, SsisObjectMetadataStatusResponseInner> @@ -246,7 +246,7 @@ private Mono>> refreshWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the status of the operation along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of the status of the operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, SsisObjectMetadataStatusResponseInner> @@ -274,7 +274,7 @@ private Mono>> refreshWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the status of the operation along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of the status of the operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, SsisObjectMetadataStatusResponseInner> @@ -292,7 +292,7 @@ private Mono>> refreshWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the status of the operation along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of the status of the operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, SsisObjectMetadataStatusResponseInner> diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/IntegrationRuntimesClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/IntegrationRuntimesClientImpl.java index f2ae6ffd9f81..8a1454c5a889 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/IntegrationRuntimesClientImpl.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/IntegrationRuntimesClientImpl.java @@ -491,7 +491,7 @@ private Mono> listByFactorySingle * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration runtime resources. + * @return a list of integration runtime resources as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByFactoryAsync( @@ -510,7 +510,7 @@ private PagedFlux listByFactoryAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration runtime resources. + * @return a list of integration runtime resources as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByFactoryAsync( @@ -528,7 +528,7 @@ private PagedFlux listByFactoryAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration runtime resources. + * @return a list of integration runtime resources as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByFactory(String resourceGroupName, String factoryName) { @@ -544,7 +544,7 @@ public PagedIterable listByFactory(String resou * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration runtime resources. + * @return a list of integration runtime resources as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByFactory( @@ -2418,7 +2418,7 @@ private Mono>> startWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return integration runtime status response along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of integration runtime status response. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, IntegrationRuntimeStatusResponseInner> @@ -2445,7 +2445,7 @@ private Mono>> startWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return integration runtime status response along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of integration runtime status response. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, IntegrationRuntimeStatusResponseInner> @@ -2472,7 +2472,7 @@ private Mono>> startWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return integration runtime status response along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of integration runtime status response. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, IntegrationRuntimeStatusResponseInner> @@ -2490,7 +2490,7 @@ private Mono>> startWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return integration runtime status response along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of integration runtime status response. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, IntegrationRuntimeStatusResponseInner> @@ -2689,7 +2689,7 @@ private Mono>> stopWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginStopAsync( @@ -2712,7 +2712,7 @@ private PollerFlux, Void> beginStopAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginStopAsync( @@ -2734,7 +2734,7 @@ private PollerFlux, Void> beginStopAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginStop( @@ -2752,7 +2752,7 @@ public SyncPoller, Void> beginStop( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginStop( diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/LinkedServicesClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/LinkedServicesClientImpl.java index bcb9f6d50ef8..4e531cc54765 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/LinkedServicesClientImpl.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/LinkedServicesClientImpl.java @@ -261,7 +261,7 @@ private Mono> listByFactorySinglePageA * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of linked service resources. + * @return a list of linked service resources as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByFactoryAsync(String resourceGroupName, String factoryName) { @@ -279,7 +279,7 @@ private PagedFlux listByFactoryAsync(String resource * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of linked service resources. + * @return a list of linked service resources as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByFactoryAsync( @@ -297,7 +297,7 @@ private PagedFlux listByFactoryAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of linked service resources. + * @return a list of linked service resources as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByFactory(String resourceGroupName, String factoryName) { @@ -313,7 +313,7 @@ public PagedIterable listByFactory(String resourceGr * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of linked service resources. + * @return a list of linked service resources as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByFactory( diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ManagedPrivateEndpointsClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ManagedPrivateEndpointsClientImpl.java index 580a036ff0b1..a9eacede02a1 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ManagedPrivateEndpointsClientImpl.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ManagedPrivateEndpointsClientImpl.java @@ -286,7 +286,7 @@ private Mono> listByFactorySi * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of managed private endpoint resources. + * @return a list of managed private endpoint resources as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByFactoryAsync( @@ -306,7 +306,7 @@ private PagedFlux listByFactoryAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of managed private endpoint resources. + * @return a list of managed private endpoint resources as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByFactoryAsync( @@ -325,7 +325,7 @@ private PagedFlux listByFactoryAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of managed private endpoint resources. + * @return a list of managed private endpoint resources as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByFactory( @@ -343,7 +343,7 @@ public PagedIterable listByFactory( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of managed private endpoint resources. + * @return a list of managed private endpoint resources as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByFactory( diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ManagedVirtualNetworksClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ManagedVirtualNetworksClientImpl.java index 71a32d8c9370..1259720ef922 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ManagedVirtualNetworksClientImpl.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ManagedVirtualNetworksClientImpl.java @@ -245,7 +245,7 @@ private Mono> listByFactorySin * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of managed Virtual Network resources. + * @return a list of managed Virtual Network resources as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByFactoryAsync( @@ -264,7 +264,7 @@ private PagedFlux listByFactoryAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of managed Virtual Network resources. + * @return a list of managed Virtual Network resources as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByFactoryAsync( @@ -282,7 +282,7 @@ private PagedFlux listByFactoryAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of managed Virtual Network resources. + * @return a list of managed Virtual Network resources as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByFactory( @@ -299,7 +299,7 @@ public PagedIterable listByFactory( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of managed Virtual Network resources. + * @return a list of managed Virtual Network resources as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByFactory( diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/OperationsClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/OperationsClientImpl.java index b4cd52a50c78..f050a21f7c42 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/OperationsClientImpl.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/OperationsClientImpl.java @@ -150,7 +150,8 @@ private Mono> listSinglePageAsync(Context context) * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of operations that can be performed by the Data Factory service. + * @return a list of operations that can be performed by the Data Factory service as paginated response with {@link + * PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync() { @@ -164,7 +165,8 @@ private PagedFlux listAsync() { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of operations that can be performed by the Data Factory service. + * @return a list of operations that can be performed by the Data Factory service as paginated response with {@link + * PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(Context context) { @@ -177,7 +179,8 @@ private PagedFlux listAsync(Context context) { * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of operations that can be performed by the Data Factory service. + * @return a list of operations that can be performed by the Data Factory service as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list() { @@ -191,7 +194,8 @@ public PagedIterable list() { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of operations that can be performed by the Data Factory service. + * @return a list of operations that can be performed by the Data Factory service as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(Context context) { diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PipelinesClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PipelinesClientImpl.java index d340dfe29330..303fa10088d7 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PipelinesClientImpl.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PipelinesClientImpl.java @@ -283,7 +283,7 @@ private Mono> listByFactorySinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of pipeline resources. + * @return a list of pipeline resources as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByFactoryAsync(String resourceGroupName, String factoryName) { @@ -301,7 +301,7 @@ private PagedFlux listByFactoryAsync(String resourceGroup * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of pipeline resources. + * @return a list of pipeline resources as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByFactoryAsync( @@ -319,7 +319,7 @@ private PagedFlux listByFactoryAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of pipeline resources. + * @return a list of pipeline resources as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByFactory(String resourceGroupName, String factoryName) { @@ -335,7 +335,7 @@ public PagedIterable listByFactory(String resourceGroupNa * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of pipeline resources. + * @return a list of pipeline resources as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByFactory( diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PrivateEndPointConnectionsClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PrivateEndPointConnectionsClientImpl.java index cb92b5539883..0eebb430ea0e 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PrivateEndPointConnectionsClientImpl.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PrivateEndPointConnectionsClientImpl.java @@ -209,7 +209,7 @@ private Mono> listByFactor * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of linked service resources. + * @return a list of linked service resources as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByFactoryAsync( @@ -228,7 +228,7 @@ private PagedFlux listByFactoryAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of linked service resources. + * @return a list of linked service resources as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByFactoryAsync( @@ -246,7 +246,7 @@ private PagedFlux listByFactoryAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of linked service resources. + * @return a list of linked service resources as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByFactory( @@ -263,7 +263,7 @@ public PagedIterable listByFactory( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of linked service resources. + * @return a list of linked service resources as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByFactory( diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/TriggersClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/TriggersClientImpl.java index c185dbb0b76d..df1a39528b36 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/TriggersClientImpl.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/TriggersClientImpl.java @@ -363,7 +363,7 @@ private Mono> listByFactorySinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of trigger resources. + * @return a list of trigger resources as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByFactoryAsync(String resourceGroupName, String factoryName) { @@ -381,7 +381,7 @@ private PagedFlux listByFactoryAsync(String resourceGroupN * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of trigger resources. + * @return a list of trigger resources as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByFactoryAsync( @@ -399,7 +399,7 @@ private PagedFlux listByFactoryAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of trigger resources. + * @return a list of trigger resources as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByFactory(String resourceGroupName, String factoryName) { @@ -415,7 +415,7 @@ public PagedIterable listByFactory(String resourceGroupNam * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of trigger resources. + * @return a list of trigger resources as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByFactory( @@ -1299,8 +1299,7 @@ private Mono>> subscribeToEventsWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return defines the response of a trigger subscription operation along with {@link Response} on successful - * completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of defines the response of a trigger subscription operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, TriggerSubscriptionOperationStatusInner> @@ -1327,8 +1326,7 @@ private Mono>> subscribeToEventsWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return defines the response of a trigger subscription operation along with {@link Response} on successful - * completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of defines the response of a trigger subscription operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, TriggerSubscriptionOperationStatusInner> @@ -1355,8 +1353,7 @@ private Mono>> subscribeToEventsWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return defines the response of a trigger subscription operation along with {@link Response} on successful - * completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of defines the response of a trigger subscription operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, TriggerSubscriptionOperationStatusInner> @@ -1374,8 +1371,7 @@ private Mono>> subscribeToEventsWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return defines the response of a trigger subscription operation along with {@link Response} on successful - * completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of defines the response of a trigger subscription operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, TriggerSubscriptionOperationStatusInner> @@ -1739,8 +1735,7 @@ private Mono>> unsubscribeFromEventsWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return defines the response of a trigger subscription operation along with {@link Response} on successful - * completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of defines the response of a trigger subscription operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, TriggerSubscriptionOperationStatusInner> @@ -1767,8 +1762,7 @@ private Mono>> unsubscribeFromEventsWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return defines the response of a trigger subscription operation along with {@link Response} on successful - * completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of defines the response of a trigger subscription operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, TriggerSubscriptionOperationStatusInner> @@ -1796,8 +1790,7 @@ private Mono>> unsubscribeFromEventsWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return defines the response of a trigger subscription operation along with {@link Response} on successful - * completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of defines the response of a trigger subscription operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, TriggerSubscriptionOperationStatusInner> @@ -1815,8 +1808,7 @@ private Mono>> unsubscribeFromEventsWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return defines the response of a trigger subscription operation along with {@link Response} on successful - * completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of defines the response of a trigger subscription operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, TriggerSubscriptionOperationStatusInner> @@ -2011,7 +2003,7 @@ private Mono>> startWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginStartAsync( @@ -2033,7 +2025,7 @@ private PollerFlux, Void> beginStartAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginStartAsync( @@ -2055,7 +2047,7 @@ private PollerFlux, Void> beginStartAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginStart( @@ -2073,7 +2065,7 @@ public SyncPoller, Void> beginStart( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginStart( @@ -2262,7 +2254,7 @@ private Mono>> stopWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginStopAsync( @@ -2284,7 +2276,7 @@ private PollerFlux, Void> beginStopAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginStopAsync( @@ -2306,7 +2298,7 @@ private PollerFlux, Void> beginStopAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginStop( @@ -2324,7 +2316,7 @@ public SyncPoller, Void> beginStop( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginStop( diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowDebugSessions.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowDebugSessions.java index e642b75e0426..8391c27c376c 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowDebugSessions.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowDebugSessions.java @@ -47,7 +47,7 @@ CreateDataFlowDebugSessionResponse create( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of active debug sessions. + * @return a list of active debug sessions as paginated response with {@link PagedIterable}. */ PagedIterable queryByFactory(String resourceGroupName, String factoryName); @@ -60,7 +60,7 @@ CreateDataFlowDebugSessionResponse create( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of active debug sessions. + * @return a list of active debug sessions as paginated response with {@link PagedIterable}. */ PagedIterable queryByFactory( String resourceGroupName, String factoryName, Context context); diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlows.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlows.java index 6fada0716b12..1ccb4daef27b 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlows.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlows.java @@ -75,7 +75,7 @@ Response deleteWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of data flow resources. + * @return a list of data flow resources as paginated response with {@link PagedIterable}. */ PagedIterable listByFactory(String resourceGroupName, String factoryName); @@ -88,7 +88,7 @@ Response deleteWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of data flow resources. + * @return a list of data flow resources as paginated response with {@link PagedIterable}. */ PagedIterable listByFactory(String resourceGroupName, String factoryName, Context context); diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Datasets.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Datasets.java index f16c360e2ab1..6c422d71a0de 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Datasets.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Datasets.java @@ -18,7 +18,7 @@ public interface Datasets { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of dataset resources. + * @return a list of dataset resources as paginated response with {@link PagedIterable}. */ PagedIterable listByFactory(String resourceGroupName, String factoryName); @@ -31,7 +31,7 @@ public interface Datasets { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of dataset resources. + * @return a list of dataset resources as paginated response with {@link PagedIterable}. */ PagedIterable listByFactory(String resourceGroupName, String factoryName, Context context); diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExecutionActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExecutionActivity.java index 43beae9d1cea..56b53e9917be 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExecutionActivity.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExecutionActivity.java @@ -43,7 +43,8 @@ @JsonSubTypes.Type(name = "DatabricksSparkJar", value = DatabricksSparkJarActivity.class), @JsonSubTypes.Type(name = "DatabricksSparkPython", value = DatabricksSparkPythonActivity.class), @JsonSubTypes.Type(name = "AzureFunctionActivity", value = AzureFunctionActivity.class), - @JsonSubTypes.Type(name = "ExecuteDataFlow", value = ExecuteDataFlowActivity.class) + @JsonSubTypes.Type(name = "ExecuteDataFlow", value = ExecuteDataFlowActivity.class), + @JsonSubTypes.Type(name = "Script", value = ScriptActivity.class) }) @Fluent public class ExecutionActivity extends Activity { diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Factories.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Factories.java index f9be59bafeaf..825098add921 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Factories.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Factories.java @@ -15,7 +15,7 @@ public interface Factories { * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of factory resources. + * @return a list of factory resources as paginated response with {@link PagedIterable}. */ PagedIterable list(); @@ -26,7 +26,7 @@ public interface Factories { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of factory resources. + * @return a list of factory resources as paginated response with {@link PagedIterable}. */ PagedIterable list(Context context); @@ -63,7 +63,7 @@ Response configureFactoryRepoWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of factory resources. + * @return a list of factory resources as paginated response with {@link PagedIterable}. */ PagedIterable listByResourceGroup(String resourceGroupName); @@ -75,7 +75,7 @@ Response configureFactoryRepoWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of factory resources. + * @return a list of factory resources as paginated response with {@link PagedIterable}. */ PagedIterable listByResourceGroup(String resourceGroupName, Context context); diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FactoryUpdateParameters.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FactoryUpdateParameters.java index ee779d40c7d5..ba407e8a6eae 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FactoryUpdateParameters.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FactoryUpdateParameters.java @@ -6,6 +6,7 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.datafactory.fluent.models.FactoryUpdateProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -30,10 +31,10 @@ public final class FactoryUpdateParameters { private FactoryIdentity identity; /* - * Whether or not public network access is allowed for the data factory. + * Properties of update the factory. */ - @JsonProperty(value = "publicNetworkAccess") - private PublicNetworkAccess publicNetworkAccess; + @JsonProperty(value = "properties") + private FactoryUpdateProperties innerProperties; /** * Get the tags property: The resource tags. @@ -75,13 +76,22 @@ public FactoryUpdateParameters withIdentity(FactoryIdentity identity) { return this; } + /** + * Get the innerProperties property: Properties of update the factory. + * + * @return the innerProperties value. + */ + private FactoryUpdateProperties innerProperties() { + return this.innerProperties; + } + /** * Get the publicNetworkAccess property: Whether or not public network access is allowed for the data factory. * * @return the publicNetworkAccess value. */ public PublicNetworkAccess publicNetworkAccess() { - return this.publicNetworkAccess; + return this.innerProperties() == null ? null : this.innerProperties().publicNetworkAccess(); } /** @@ -91,7 +101,10 @@ public PublicNetworkAccess publicNetworkAccess() { * @return the FactoryUpdateParameters object itself. */ public FactoryUpdateParameters withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess) { - this.publicNetworkAccess = publicNetworkAccess; + if (this.innerProperties() == null) { + this.innerProperties = new FactoryUpdateProperties(); + } + this.innerProperties().withPublicNetworkAccess(publicNetworkAccess); return this; } @@ -104,5 +117,8 @@ public void validate() { if (identity() != null) { identity().validate(); } + if (innerProperties() != null) { + innerProperties().validate(); + } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimes.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimes.java index 165ee8618578..2e0cab4b06df 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimes.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimes.java @@ -18,7 +18,7 @@ public interface IntegrationRuntimes { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration runtime resources. + * @return a list of integration runtime resources as paginated response with {@link PagedIterable}. */ PagedIterable listByFactory(String resourceGroupName, String factoryName); @@ -31,7 +31,7 @@ public interface IntegrationRuntimes { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration runtime resources. + * @return a list of integration runtime resources as paginated response with {@link PagedIterable}. */ PagedIterable listByFactory( String resourceGroupName, String factoryName, Context context); diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LinkedService.java index a3d3ae7dd325..42373eb4dd4d 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LinkedService.java @@ -80,6 +80,10 @@ @JsonSubTypes.Type(name = "SapOpenHub", value = SapOpenHubLinkedService.class), @JsonSubTypes.Type(name = "RestService", value = RestServiceLinkedService.class), @JsonSubTypes.Type(name = "AmazonS3", value = AmazonS3LinkedService.class), + @JsonSubTypes.Type(name = "TeamDesk", value = TeamDeskLinkedService.class), + @JsonSubTypes.Type(name = "Quickbase", value = QuickbaseLinkedService.class), + @JsonSubTypes.Type(name = "Smartsheet", value = SmartsheetLinkedService.class), + @JsonSubTypes.Type(name = "Zendesk", value = ZendeskLinkedService.class), @JsonSubTypes.Type(name = "AmazonRedshift", value = AmazonRedshiftLinkedService.class), @JsonSubTypes.Type(name = "CustomDataSource", value = CustomDataSourceLinkedService.class), @JsonSubTypes.Type(name = "AzureSearch", value = AzureSearchLinkedService.class), diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LinkedServices.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LinkedServices.java index addfdd9b90e3..e681ad015c57 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LinkedServices.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LinkedServices.java @@ -18,7 +18,7 @@ public interface LinkedServices { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of linked service resources. + * @return a list of linked service resources as paginated response with {@link PagedIterable}. */ PagedIterable listByFactory(String resourceGroupName, String factoryName); @@ -31,7 +31,7 @@ public interface LinkedServices { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of linked service resources. + * @return a list of linked service resources as paginated response with {@link PagedIterable}. */ PagedIterable listByFactory(String resourceGroupName, String factoryName, Context context); diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ManagedPrivateEndpoints.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ManagedPrivateEndpoints.java index ae725eb2bba2..355812c0d9e4 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ManagedPrivateEndpoints.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ManagedPrivateEndpoints.java @@ -19,7 +19,7 @@ public interface ManagedPrivateEndpoints { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of managed private endpoint resources. + * @return a list of managed private endpoint resources as paginated response with {@link PagedIterable}. */ PagedIterable listByFactory( String resourceGroupName, String factoryName, String managedVirtualNetworkName); @@ -34,7 +34,7 @@ PagedIterable listByFactory( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of managed private endpoint resources. + * @return a list of managed private endpoint resources as paginated response with {@link PagedIterable}. */ PagedIterable listByFactory( String resourceGroupName, String factoryName, String managedVirtualNetworkName, Context context); diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ManagedVirtualNetworks.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ManagedVirtualNetworks.java index 1ff8703f8e1a..e0ddd78ae57c 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ManagedVirtualNetworks.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ManagedVirtualNetworks.java @@ -18,7 +18,7 @@ public interface ManagedVirtualNetworks { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of managed Virtual Network resources. + * @return a list of managed Virtual Network resources as paginated response with {@link PagedIterable}. */ PagedIterable listByFactory(String resourceGroupName, String factoryName); @@ -31,7 +31,7 @@ public interface ManagedVirtualNetworks { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of managed Virtual Network resources. + * @return a list of managed Virtual Network resources as paginated response with {@link PagedIterable}. */ PagedIterable listByFactory( String resourceGroupName, String factoryName, Context context); diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Operations.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Operations.java index 1e546367cede..db5ba8f4e114 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Operations.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Operations.java @@ -14,7 +14,8 @@ public interface Operations { * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of operations that can be performed by the Data Factory service. + * @return a list of operations that can be performed by the Data Factory service as paginated response with {@link + * PagedIterable}. */ PagedIterable list(); @@ -25,7 +26,8 @@ public interface Operations { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of operations that can be performed by the Data Factory service. + * @return a list of operations that can be performed by the Data Factory service as paginated response with {@link + * PagedIterable}. */ PagedIterable list(Context context); } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Pipelines.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Pipelines.java index 26c5fd43c1b9..d2aac1589126 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Pipelines.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Pipelines.java @@ -19,7 +19,7 @@ public interface Pipelines { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of pipeline resources. + * @return a list of pipeline resources as paginated response with {@link PagedIterable}. */ PagedIterable listByFactory(String resourceGroupName, String factoryName); @@ -32,7 +32,7 @@ public interface Pipelines { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of pipeline resources. + * @return a list of pipeline resources as paginated response with {@link PagedIterable}. */ PagedIterable listByFactory(String resourceGroupName, String factoryName, Context context); diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PrivateEndPointConnections.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PrivateEndPointConnections.java index fb4533feb033..ba186b6292a8 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PrivateEndPointConnections.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PrivateEndPointConnections.java @@ -17,7 +17,7 @@ public interface PrivateEndPointConnections { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of linked service resources. + * @return a list of linked service resources as paginated response with {@link PagedIterable}. */ PagedIterable listByFactory(String resourceGroupName, String factoryName); @@ -30,7 +30,7 @@ public interface PrivateEndPointConnections { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of linked service resources. + * @return a list of linked service resources as paginated response with {@link PagedIterable}. */ PagedIterable listByFactory( String resourceGroupName, String factoryName, Context context); diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/QuickbaseLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/QuickbaseLinkedService.java new file mode 100644 index 000000000000..7242e10b8c9c --- /dev/null +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/QuickbaseLinkedService.java @@ -0,0 +1,155 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.datafactory.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.datafactory.fluent.models.QuickbaseLinkedServiceTypeProperties; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import java.util.List; +import java.util.Map; + +/** Linked service for Quickbase. */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("Quickbase") +@Fluent +public final class QuickbaseLinkedService extends LinkedService { + @JsonIgnore private final ClientLogger logger = new ClientLogger(QuickbaseLinkedService.class); + + /* + * Quickbase linked service properties. + */ + @JsonProperty(value = "typeProperties", required = true) + private QuickbaseLinkedServiceTypeProperties innerTypeProperties = new QuickbaseLinkedServiceTypeProperties(); + + /** + * Get the innerTypeProperties property: Quickbase linked service properties. + * + * @return the innerTypeProperties value. + */ + private QuickbaseLinkedServiceTypeProperties innerTypeProperties() { + return this.innerTypeProperties; + } + + /** {@inheritDoc} */ + @Override + public QuickbaseLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public QuickbaseLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public QuickbaseLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public QuickbaseLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); + return this; + } + + /** + * Get the url property: The url to connect Quickbase source. Type: string (or Expression with resultType string). + * + * @return the url value. + */ + public Object url() { + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().url(); + } + + /** + * Set the url property: The url to connect Quickbase source. Type: string (or Expression with resultType string). + * + * @param url the url value to set. + * @return the QuickbaseLinkedService object itself. + */ + public QuickbaseLinkedService withUrl(Object url) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new QuickbaseLinkedServiceTypeProperties(); + } + this.innerTypeProperties().withUrl(url); + return this; + } + + /** + * Get the userToken property: The user token for the Quickbase source. + * + * @return the userToken value. + */ + public SecretBase userToken() { + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().userToken(); + } + + /** + * Set the userToken property: The user token for the Quickbase source. + * + * @param userToken the userToken value to set. + * @return the QuickbaseLinkedService object itself. + */ + public QuickbaseLinkedService withUserToken(SecretBase userToken) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new QuickbaseLinkedServiceTypeProperties(); + } + this.innerTypeProperties().withUserToken(userToken); + return this; + } + + /** + * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted + * using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value. + */ + public Object encryptedCredential() { + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + } + + /** + * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted + * using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set. + * @return the QuickbaseLinkedService object itself. + */ + public QuickbaseLinkedService withEncryptedCredential(Object encryptedCredential) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new QuickbaseLinkedServiceTypeProperties(); + } + this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + @Override + public void validate() { + super.validate(); + if (innerTypeProperties() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property innerTypeProperties in model QuickbaseLinkedService")); + } else { + innerTypeProperties().validate(); + } + } +} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ScriptActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ScriptActivity.java new file mode 100644 index 000000000000..90bd8bde4adb --- /dev/null +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ScriptActivity.java @@ -0,0 +1,143 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.datafactory.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.datafactory.fluent.models.ScriptActivityTypeProperties; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import java.util.List; + +/** Script activity type. */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("Script") +@Fluent +public final class ScriptActivity extends ExecutionActivity { + @JsonIgnore private final ClientLogger logger = new ClientLogger(ScriptActivity.class); + + /* + * Script activity properties. + */ + @JsonProperty(value = "typeProperties", required = true) + private ScriptActivityTypeProperties innerTypeProperties = new ScriptActivityTypeProperties(); + + /** + * Get the innerTypeProperties property: Script activity properties. + * + * @return the innerTypeProperties value. + */ + private ScriptActivityTypeProperties innerTypeProperties() { + return this.innerTypeProperties; + } + + /** {@inheritDoc} */ + @Override + public ScriptActivity withLinkedServiceName(LinkedServiceReference linkedServiceName) { + super.withLinkedServiceName(linkedServiceName); + return this; + } + + /** {@inheritDoc} */ + @Override + public ScriptActivity withPolicy(ActivityPolicy policy) { + super.withPolicy(policy); + return this; + } + + /** {@inheritDoc} */ + @Override + public ScriptActivity withName(String name) { + super.withName(name); + return this; + } + + /** {@inheritDoc} */ + @Override + public ScriptActivity withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public ScriptActivity withDependsOn(List dependsOn) { + super.withDependsOn(dependsOn); + return this; + } + + /** {@inheritDoc} */ + @Override + public ScriptActivity withUserProperties(List userProperties) { + super.withUserProperties(userProperties); + return this; + } + + /** + * Get the scripts property: Array of script blocks. Type: array. + * + * @return the scripts value. + */ + public List scripts() { + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().scripts(); + } + + /** + * Set the scripts property: Array of script blocks. Type: array. + * + * @param scripts the scripts value to set. + * @return the ScriptActivity object itself. + */ + public ScriptActivity withScripts(List scripts) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new ScriptActivityTypeProperties(); + } + this.innerTypeProperties().withScripts(scripts); + return this; + } + + /** + * Get the logSettings property: Log settings of script activity. + * + * @return the logSettings value. + */ + public ScriptActivityTypePropertiesLogSettings logSettings() { + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().logSettings(); + } + + /** + * Set the logSettings property: Log settings of script activity. + * + * @param logSettings the logSettings value to set. + * @return the ScriptActivity object itself. + */ + public ScriptActivity withLogSettings(ScriptActivityTypePropertiesLogSettings logSettings) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new ScriptActivityTypeProperties(); + } + this.innerTypeProperties().withLogSettings(logSettings); + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + @Override + public void validate() { + super.validate(); + if (innerTypeProperties() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property innerTypeProperties in model ScriptActivity")); + } else { + innerTypeProperties().validate(); + } + } +} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ScriptActivityLogDestination.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ScriptActivityLogDestination.java new file mode 100644 index 000000000000..688c5ca27d34 --- /dev/null +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ScriptActivityLogDestination.java @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.datafactory.models; + +import com.azure.core.util.ExpandableStringEnum; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.Collection; + +/** Defines values for ScriptActivityLogDestination. */ +public final class ScriptActivityLogDestination extends ExpandableStringEnum { + /** Static value ActivityOutput for ScriptActivityLogDestination. */ + public static final ScriptActivityLogDestination ACTIVITY_OUTPUT = fromString("ActivityOutput"); + + /** Static value ExternalStore for ScriptActivityLogDestination. */ + public static final ScriptActivityLogDestination EXTERNAL_STORE = fromString("ExternalStore"); + + /** + * Creates or finds a ScriptActivityLogDestination from its string representation. + * + * @param name a name to look for. + * @return the corresponding ScriptActivityLogDestination. + */ + @JsonCreator + public static ScriptActivityLogDestination fromString(String name) { + return fromString(name, ScriptActivityLogDestination.class); + } + + /** @return known ScriptActivityLogDestination values. */ + public static Collection values() { + return values(ScriptActivityLogDestination.class); + } +} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ScriptActivityParameter.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ScriptActivityParameter.java new file mode 100644 index 000000000000..efb794e3de50 --- /dev/null +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ScriptActivityParameter.java @@ -0,0 +1,155 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.datafactory.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** Parameters of a script block. */ +@Fluent +public final class ScriptActivityParameter { + @JsonIgnore private final ClientLogger logger = new ClientLogger(ScriptActivityParameter.class); + + /* + * The name of the parameter. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "name") + private Object name; + + /* + * The type of the parameter. + */ + @JsonProperty(value = "type") + private ScriptActivityParameterType type; + + /* + * The value of the parameter. + */ + @JsonProperty(value = "value") + private Object value; + + /* + * The direction of the parameter. + */ + @JsonProperty(value = "direction") + private ScriptActivityParameterDirection direction; + + /* + * The size of the output direction parameter. + */ + @JsonProperty(value = "size") + private Integer size; + + /** + * Get the name property: The name of the parameter. Type: string (or Expression with resultType string). + * + * @return the name value. + */ + public Object name() { + return this.name; + } + + /** + * Set the name property: The name of the parameter. Type: string (or Expression with resultType string). + * + * @param name the name value to set. + * @return the ScriptActivityParameter object itself. + */ + public ScriptActivityParameter withName(Object name) { + this.name = name; + return this; + } + + /** + * Get the type property: The type of the parameter. + * + * @return the type value. + */ + public ScriptActivityParameterType type() { + return this.type; + } + + /** + * Set the type property: The type of the parameter. + * + * @param type the type value to set. + * @return the ScriptActivityParameter object itself. + */ + public ScriptActivityParameter withType(ScriptActivityParameterType type) { + this.type = type; + return this; + } + + /** + * Get the value property: The value of the parameter. + * + * @return the value value. + */ + public Object value() { + return this.value; + } + + /** + * Set the value property: The value of the parameter. + * + * @param value the value value to set. + * @return the ScriptActivityParameter object itself. + */ + public ScriptActivityParameter withValue(Object value) { + this.value = value; + return this; + } + + /** + * Get the direction property: The direction of the parameter. + * + * @return the direction value. + */ + public ScriptActivityParameterDirection direction() { + return this.direction; + } + + /** + * Set the direction property: The direction of the parameter. + * + * @param direction the direction value to set. + * @return the ScriptActivityParameter object itself. + */ + public ScriptActivityParameter withDirection(ScriptActivityParameterDirection direction) { + this.direction = direction; + return this; + } + + /** + * Get the size property: The size of the output direction parameter. + * + * @return the size value. + */ + public Integer size() { + return this.size; + } + + /** + * Set the size property: The size of the output direction parameter. + * + * @param size the size value to set. + * @return the ScriptActivityParameter object itself. + */ + public ScriptActivityParameter withSize(Integer size) { + this.size = size; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ScriptActivityParameterDirection.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ScriptActivityParameterDirection.java new file mode 100644 index 000000000000..586c6469bf88 --- /dev/null +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ScriptActivityParameterDirection.java @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.datafactory.models; + +import com.azure.core.util.ExpandableStringEnum; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.Collection; + +/** Defines values for ScriptActivityParameterDirection. */ +public final class ScriptActivityParameterDirection extends ExpandableStringEnum { + /** Static value Input for ScriptActivityParameterDirection. */ + public static final ScriptActivityParameterDirection INPUT = fromString("Input"); + + /** Static value Output for ScriptActivityParameterDirection. */ + public static final ScriptActivityParameterDirection OUTPUT = fromString("Output"); + + /** Static value InputOutput for ScriptActivityParameterDirection. */ + public static final ScriptActivityParameterDirection INPUT_OUTPUT = fromString("InputOutput"); + + /** + * Creates or finds a ScriptActivityParameterDirection from its string representation. + * + * @param name a name to look for. + * @return the corresponding ScriptActivityParameterDirection. + */ + @JsonCreator + public static ScriptActivityParameterDirection fromString(String name) { + return fromString(name, ScriptActivityParameterDirection.class); + } + + /** @return known ScriptActivityParameterDirection values. */ + public static Collection values() { + return values(ScriptActivityParameterDirection.class); + } +} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ScriptActivityParameterType.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ScriptActivityParameterType.java new file mode 100644 index 000000000000..3651c706f092 --- /dev/null +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ScriptActivityParameterType.java @@ -0,0 +1,64 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.datafactory.models; + +import com.azure.core.util.ExpandableStringEnum; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.Collection; + +/** Defines values for ScriptActivityParameterType. */ +public final class ScriptActivityParameterType extends ExpandableStringEnum { + /** Static value Boolean for ScriptActivityParameterType. */ + public static final ScriptActivityParameterType BOOLEAN = fromString("Boolean"); + + /** Static value DateTime for ScriptActivityParameterType. */ + public static final ScriptActivityParameterType DATE_TIME = fromString("DateTime"); + + /** Static value DateTimeOffset for ScriptActivityParameterType. */ + public static final ScriptActivityParameterType DATE_TIME_OFFSET = fromString("DateTimeOffset"); + + /** Static value Decimal for ScriptActivityParameterType. */ + public static final ScriptActivityParameterType DECIMAL = fromString("Decimal"); + + /** Static value Double for ScriptActivityParameterType. */ + public static final ScriptActivityParameterType DOUBLE = fromString("Double"); + + /** Static value Guid for ScriptActivityParameterType. */ + public static final ScriptActivityParameterType GUID = fromString("Guid"); + + /** Static value Int16 for ScriptActivityParameterType. */ + public static final ScriptActivityParameterType INT16 = fromString("Int16"); + + /** Static value Int32 for ScriptActivityParameterType. */ + public static final ScriptActivityParameterType INT32 = fromString("Int32"); + + /** Static value Int64 for ScriptActivityParameterType. */ + public static final ScriptActivityParameterType INT64 = fromString("Int64"); + + /** Static value Single for ScriptActivityParameterType. */ + public static final ScriptActivityParameterType SINGLE = fromString("Single"); + + /** Static value String for ScriptActivityParameterType. */ + public static final ScriptActivityParameterType STRING = fromString("String"); + + /** Static value Timespan for ScriptActivityParameterType. */ + public static final ScriptActivityParameterType TIMESPAN = fromString("Timespan"); + + /** + * Creates or finds a ScriptActivityParameterType from its string representation. + * + * @param name a name to look for. + * @return the corresponding ScriptActivityParameterType. + */ + @JsonCreator + public static ScriptActivityParameterType fromString(String name) { + return fromString(name, ScriptActivityParameterType.class); + } + + /** @return known ScriptActivityParameterType values. */ + public static Collection values() { + return values(ScriptActivityParameterType.class); + } +} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ScriptActivityScriptBlock.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ScriptActivityScriptBlock.java new file mode 100644 index 000000000000..87dfb1a5baf7 --- /dev/null +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ScriptActivityScriptBlock.java @@ -0,0 +1,116 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.datafactory.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; + +/** Script block of scripts. */ +@Fluent +public final class ScriptActivityScriptBlock { + @JsonIgnore private final ClientLogger logger = new ClientLogger(ScriptActivityScriptBlock.class); + + /* + * The query text. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "text", required = true) + private Object text; + + /* + * The type of the query. Type: string. + */ + @JsonProperty(value = "type", required = true) + private ScriptType type; + + /* + * Array of script parameters. Type: array. + */ + @JsonProperty(value = "parameters") + private List parameters; + + /** + * Get the text property: The query text. Type: string (or Expression with resultType string). + * + * @return the text value. + */ + public Object text() { + return this.text; + } + + /** + * Set the text property: The query text. Type: string (or Expression with resultType string). + * + * @param text the text value to set. + * @return the ScriptActivityScriptBlock object itself. + */ + public ScriptActivityScriptBlock withText(Object text) { + this.text = text; + return this; + } + + /** + * Get the type property: The type of the query. Type: string. + * + * @return the type value. + */ + public ScriptType type() { + return this.type; + } + + /** + * Set the type property: The type of the query. Type: string. + * + * @param type the type value to set. + * @return the ScriptActivityScriptBlock object itself. + */ + public ScriptActivityScriptBlock withType(ScriptType type) { + this.type = type; + return this; + } + + /** + * Get the parameters property: Array of script parameters. Type: array. + * + * @return the parameters value. + */ + public List parameters() { + return this.parameters; + } + + /** + * Set the parameters property: Array of script parameters. Type: array. + * + * @param parameters the parameters value to set. + * @return the ScriptActivityScriptBlock object itself. + */ + public ScriptActivityScriptBlock withParameters(List parameters) { + this.parameters = parameters; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (text() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException("Missing required property text in model ScriptActivityScriptBlock")); + } + if (type() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException("Missing required property type in model ScriptActivityScriptBlock")); + } + if (parameters() != null) { + parameters().forEach(e -> e.validate()); + } + } +} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ScriptActivityTypePropertiesLogSettings.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ScriptActivityTypePropertiesLogSettings.java new file mode 100644 index 000000000000..6c353b45149c --- /dev/null +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ScriptActivityTypePropertiesLogSettings.java @@ -0,0 +1,85 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.datafactory.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** Log settings of script activity. */ +@Fluent +public final class ScriptActivityTypePropertiesLogSettings { + @JsonIgnore private final ClientLogger logger = new ClientLogger(ScriptActivityTypePropertiesLogSettings.class); + + /* + * The destination of logs. Type: string. + */ + @JsonProperty(value = "logDestination", required = true) + private ScriptActivityLogDestination logDestination; + + /* + * Log location settings customer needs to provide when enabling log. + */ + @JsonProperty(value = "logLocationSettings") + private LogLocationSettings logLocationSettings; + + /** + * Get the logDestination property: The destination of logs. Type: string. + * + * @return the logDestination value. + */ + public ScriptActivityLogDestination logDestination() { + return this.logDestination; + } + + /** + * Set the logDestination property: The destination of logs. Type: string. + * + * @param logDestination the logDestination value to set. + * @return the ScriptActivityTypePropertiesLogSettings object itself. + */ + public ScriptActivityTypePropertiesLogSettings withLogDestination(ScriptActivityLogDestination logDestination) { + this.logDestination = logDestination; + return this; + } + + /** + * Get the logLocationSettings property: Log location settings customer needs to provide when enabling log. + * + * @return the logLocationSettings value. + */ + public LogLocationSettings logLocationSettings() { + return this.logLocationSettings; + } + + /** + * Set the logLocationSettings property: Log location settings customer needs to provide when enabling log. + * + * @param logLocationSettings the logLocationSettings value to set. + * @return the ScriptActivityTypePropertiesLogSettings object itself. + */ + public ScriptActivityTypePropertiesLogSettings withLogLocationSettings(LogLocationSettings logLocationSettings) { + this.logLocationSettings = logLocationSettings; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (logDestination() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property logDestination in model ScriptActivityTypePropertiesLogSettings")); + } + if (logLocationSettings() != null) { + logLocationSettings().validate(); + } + } +} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ScriptType.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ScriptType.java new file mode 100644 index 000000000000..90c2d8230ee4 --- /dev/null +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ScriptType.java @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.datafactory.models; + +import com.azure.core.util.ExpandableStringEnum; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.Collection; + +/** Defines values for ScriptType. */ +public final class ScriptType extends ExpandableStringEnum { + /** Static value Query for ScriptType. */ + public static final ScriptType QUERY = fromString("Query"); + + /** Static value NonQuery for ScriptType. */ + public static final ScriptType NON_QUERY = fromString("NonQuery"); + + /** + * Creates or finds a ScriptType from its string representation. + * + * @param name a name to look for. + * @return the corresponding ScriptType. + */ + @JsonCreator + public static ScriptType fromString(String name) { + return fromString(name, ScriptType.class); + } + + /** @return known ScriptType values. */ + public static Collection values() { + return values(ScriptType.class); + } +} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SmartsheetLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SmartsheetLinkedService.java new file mode 100644 index 000000000000..dcd966d2b6f9 --- /dev/null +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SmartsheetLinkedService.java @@ -0,0 +1,132 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.datafactory.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.datafactory.fluent.models.SmartsheetLinkedServiceTypeProperties; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import java.util.List; +import java.util.Map; + +/** Linked service for Smartsheet. */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("Smartsheet") +@Fluent +public final class SmartsheetLinkedService extends LinkedService { + @JsonIgnore private final ClientLogger logger = new ClientLogger(SmartsheetLinkedService.class); + + /* + * Smartsheet linked service properties. + */ + @JsonProperty(value = "typeProperties", required = true) + private SmartsheetLinkedServiceTypeProperties innerTypeProperties = new SmartsheetLinkedServiceTypeProperties(); + + /** + * Get the innerTypeProperties property: Smartsheet linked service properties. + * + * @return the innerTypeProperties value. + */ + private SmartsheetLinkedServiceTypeProperties innerTypeProperties() { + return this.innerTypeProperties; + } + + /** {@inheritDoc} */ + @Override + public SmartsheetLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public SmartsheetLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public SmartsheetLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public SmartsheetLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); + return this; + } + + /** + * Get the apiToken property: The api token for the Smartsheet source. + * + * @return the apiToken value. + */ + public SecretBase apiToken() { + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().apiToken(); + } + + /** + * Set the apiToken property: The api token for the Smartsheet source. + * + * @param apiToken the apiToken value to set. + * @return the SmartsheetLinkedService object itself. + */ + public SmartsheetLinkedService withApiToken(SecretBase apiToken) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new SmartsheetLinkedServiceTypeProperties(); + } + this.innerTypeProperties().withApiToken(apiToken); + return this; + } + + /** + * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted + * using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value. + */ + public Object encryptedCredential() { + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + } + + /** + * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted + * using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set. + * @return the SmartsheetLinkedService object itself. + */ + public SmartsheetLinkedService withEncryptedCredential(Object encryptedCredential) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new SmartsheetLinkedServiceTypeProperties(); + } + this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + @Override + public void validate() { + super.validate(); + if (innerTypeProperties() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property innerTypeProperties in model SmartsheetLinkedService")); + } else { + innerTypeProperties().validate(); + } + } +} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TeamDeskAuthenticationType.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TeamDeskAuthenticationType.java new file mode 100644 index 000000000000..b77651db457d --- /dev/null +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TeamDeskAuthenticationType.java @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.datafactory.models; + +import com.azure.core.util.ExpandableStringEnum; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.Collection; + +/** Defines values for TeamDeskAuthenticationType. */ +public final class TeamDeskAuthenticationType extends ExpandableStringEnum { + /** Static value Basic for TeamDeskAuthenticationType. */ + public static final TeamDeskAuthenticationType BASIC = fromString("Basic"); + + /** Static value Token for TeamDeskAuthenticationType. */ + public static final TeamDeskAuthenticationType TOKEN = fromString("Token"); + + /** + * Creates or finds a TeamDeskAuthenticationType from its string representation. + * + * @param name a name to look for. + * @return the corresponding TeamDeskAuthenticationType. + */ + @JsonCreator + public static TeamDeskAuthenticationType fromString(String name) { + return fromString(name, TeamDeskAuthenticationType.class); + } + + /** @return known TeamDeskAuthenticationType values. */ + public static Collection values() { + return values(TeamDeskAuthenticationType.class); + } +} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TeamDeskLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TeamDeskLinkedService.java new file mode 100644 index 000000000000..2cb69c2ade6c --- /dev/null +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TeamDeskLinkedService.java @@ -0,0 +1,226 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.datafactory.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.datafactory.fluent.models.TeamDeskLinkedServiceTypeProperties; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import java.util.List; +import java.util.Map; + +/** Linked service for TeamDesk. */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("TeamDesk") +@Fluent +public final class TeamDeskLinkedService extends LinkedService { + @JsonIgnore private final ClientLogger logger = new ClientLogger(TeamDeskLinkedService.class); + + /* + * TeamDesk linked service properties. + */ + @JsonProperty(value = "typeProperties", required = true) + private TeamDeskLinkedServiceTypeProperties innerTypeProperties = new TeamDeskLinkedServiceTypeProperties(); + + /** + * Get the innerTypeProperties property: TeamDesk linked service properties. + * + * @return the innerTypeProperties value. + */ + private TeamDeskLinkedServiceTypeProperties innerTypeProperties() { + return this.innerTypeProperties; + } + + /** {@inheritDoc} */ + @Override + public TeamDeskLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public TeamDeskLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public TeamDeskLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public TeamDeskLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); + return this; + } + + /** + * Get the authenticationType property: The authentication type to use. + * + * @return the authenticationType value. + */ + public TeamDeskAuthenticationType authenticationType() { + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authenticationType(); + } + + /** + * Set the authenticationType property: The authentication type to use. + * + * @param authenticationType the authenticationType value to set. + * @return the TeamDeskLinkedService object itself. + */ + public TeamDeskLinkedService withAuthenticationType(TeamDeskAuthenticationType authenticationType) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new TeamDeskLinkedServiceTypeProperties(); + } + this.innerTypeProperties().withAuthenticationType(authenticationType); + return this; + } + + /** + * Get the url property: The url to connect TeamDesk source. Type: string (or Expression with resultType string). + * + * @return the url value. + */ + public Object url() { + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().url(); + } + + /** + * Set the url property: The url to connect TeamDesk source. Type: string (or Expression with resultType string). + * + * @param url the url value to set. + * @return the TeamDeskLinkedService object itself. + */ + public TeamDeskLinkedService withUrl(Object url) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new TeamDeskLinkedServiceTypeProperties(); + } + this.innerTypeProperties().withUrl(url); + return this; + } + + /** + * Get the username property: The username of the TeamDesk source. Type: string (or Expression with resultType + * string). + * + * @return the username value. + */ + public Object username() { + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); + } + + /** + * Set the username property: The username of the TeamDesk source. Type: string (or Expression with resultType + * string). + * + * @param username the username value to set. + * @return the TeamDeskLinkedService object itself. + */ + public TeamDeskLinkedService withUsername(Object username) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new TeamDeskLinkedServiceTypeProperties(); + } + this.innerTypeProperties().withUsername(username); + return this; + } + + /** + * Get the password property: The password of the TeamDesk source. + * + * @return the password value. + */ + public SecretBase password() { + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); + } + + /** + * Set the password property: The password of the TeamDesk source. + * + * @param password the password value to set. + * @return the TeamDeskLinkedService object itself. + */ + public TeamDeskLinkedService withPassword(SecretBase password) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new TeamDeskLinkedServiceTypeProperties(); + } + this.innerTypeProperties().withPassword(password); + return this; + } + + /** + * Get the apiToken property: The api token for the TeamDesk source. + * + * @return the apiToken value. + */ + public SecretBase apiToken() { + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().apiToken(); + } + + /** + * Set the apiToken property: The api token for the TeamDesk source. + * + * @param apiToken the apiToken value to set. + * @return the TeamDeskLinkedService object itself. + */ + public TeamDeskLinkedService withApiToken(SecretBase apiToken) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new TeamDeskLinkedServiceTypeProperties(); + } + this.innerTypeProperties().withApiToken(apiToken); + return this; + } + + /** + * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted + * using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value. + */ + public Object encryptedCredential() { + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + } + + /** + * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted + * using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set. + * @return the TeamDeskLinkedService object itself. + */ + public TeamDeskLinkedService withEncryptedCredential(Object encryptedCredential) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new TeamDeskLinkedServiceTypeProperties(); + } + this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + @Override + public void validate() { + super.validate(); + if (innerTypeProperties() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property innerTypeProperties in model TeamDeskLinkedService")); + } else { + innerTypeProperties().validate(); + } + } +} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Triggers.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Triggers.java index 2d80bb445cca..a5c2fc5568a7 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Triggers.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Triggers.java @@ -18,7 +18,7 @@ public interface Triggers { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of trigger resources. + * @return a list of trigger resources as paginated response with {@link PagedIterable}. */ PagedIterable listByFactory(String resourceGroupName, String factoryName); @@ -31,7 +31,7 @@ public interface Triggers { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of trigger resources. + * @return a list of trigger resources as paginated response with {@link PagedIterable}. */ PagedIterable listByFactory(String resourceGroupName, String factoryName, Context context); diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ZendeskAuthenticationType.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ZendeskAuthenticationType.java new file mode 100644 index 000000000000..6c25547e8fba --- /dev/null +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ZendeskAuthenticationType.java @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.datafactory.models; + +import com.azure.core.util.ExpandableStringEnum; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.Collection; + +/** Defines values for ZendeskAuthenticationType. */ +public final class ZendeskAuthenticationType extends ExpandableStringEnum { + /** Static value Basic for ZendeskAuthenticationType. */ + public static final ZendeskAuthenticationType BASIC = fromString("Basic"); + + /** Static value Token for ZendeskAuthenticationType. */ + public static final ZendeskAuthenticationType TOKEN = fromString("Token"); + + /** + * Creates or finds a ZendeskAuthenticationType from its string representation. + * + * @param name a name to look for. + * @return the corresponding ZendeskAuthenticationType. + */ + @JsonCreator + public static ZendeskAuthenticationType fromString(String name) { + return fromString(name, ZendeskAuthenticationType.class); + } + + /** @return known ZendeskAuthenticationType values. */ + public static Collection values() { + return values(ZendeskAuthenticationType.class); + } +} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ZendeskLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ZendeskLinkedService.java new file mode 100644 index 000000000000..b82910578051 --- /dev/null +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ZendeskLinkedService.java @@ -0,0 +1,226 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.datafactory.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.datafactory.fluent.models.ZendeskLinkedServiceTypeProperties; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import java.util.List; +import java.util.Map; + +/** Linked service for Zendesk. */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("Zendesk") +@Fluent +public final class ZendeskLinkedService extends LinkedService { + @JsonIgnore private final ClientLogger logger = new ClientLogger(ZendeskLinkedService.class); + + /* + * Zendesk linked service properties. + */ + @JsonProperty(value = "typeProperties", required = true) + private ZendeskLinkedServiceTypeProperties innerTypeProperties = new ZendeskLinkedServiceTypeProperties(); + + /** + * Get the innerTypeProperties property: Zendesk linked service properties. + * + * @return the innerTypeProperties value. + */ + private ZendeskLinkedServiceTypeProperties innerTypeProperties() { + return this.innerTypeProperties; + } + + /** {@inheritDoc} */ + @Override + public ZendeskLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public ZendeskLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public ZendeskLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public ZendeskLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); + return this; + } + + /** + * Get the authenticationType property: The authentication type to use. + * + * @return the authenticationType value. + */ + public ZendeskAuthenticationType authenticationType() { + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authenticationType(); + } + + /** + * Set the authenticationType property: The authentication type to use. + * + * @param authenticationType the authenticationType value to set. + * @return the ZendeskLinkedService object itself. + */ + public ZendeskLinkedService withAuthenticationType(ZendeskAuthenticationType authenticationType) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new ZendeskLinkedServiceTypeProperties(); + } + this.innerTypeProperties().withAuthenticationType(authenticationType); + return this; + } + + /** + * Get the url property: The url to connect Zendesk source. Type: string (or Expression with resultType string). + * + * @return the url value. + */ + public Object url() { + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().url(); + } + + /** + * Set the url property: The url to connect Zendesk source. Type: string (or Expression with resultType string). + * + * @param url the url value to set. + * @return the ZendeskLinkedService object itself. + */ + public ZendeskLinkedService withUrl(Object url) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new ZendeskLinkedServiceTypeProperties(); + } + this.innerTypeProperties().withUrl(url); + return this; + } + + /** + * Get the username property: The username of the Zendesk source. Type: string (or Expression with resultType + * string). + * + * @return the username value. + */ + public Object username() { + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); + } + + /** + * Set the username property: The username of the Zendesk source. Type: string (or Expression with resultType + * string). + * + * @param username the username value to set. + * @return the ZendeskLinkedService object itself. + */ + public ZendeskLinkedService withUsername(Object username) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new ZendeskLinkedServiceTypeProperties(); + } + this.innerTypeProperties().withUsername(username); + return this; + } + + /** + * Get the password property: The password of the Zendesk source. + * + * @return the password value. + */ + public SecretBase password() { + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); + } + + /** + * Set the password property: The password of the Zendesk source. + * + * @param password the password value to set. + * @return the ZendeskLinkedService object itself. + */ + public ZendeskLinkedService withPassword(SecretBase password) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new ZendeskLinkedServiceTypeProperties(); + } + this.innerTypeProperties().withPassword(password); + return this; + } + + /** + * Get the apiToken property: The api token for the Zendesk source. + * + * @return the apiToken value. + */ + public SecretBase apiToken() { + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().apiToken(); + } + + /** + * Set the apiToken property: The api token for the Zendesk source. + * + * @param apiToken the apiToken value to set. + * @return the ZendeskLinkedService object itself. + */ + public ZendeskLinkedService withApiToken(SecretBase apiToken) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new ZendeskLinkedServiceTypeProperties(); + } + this.innerTypeProperties().withApiToken(apiToken); + return this; + } + + /** + * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted + * using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @return the encryptedCredential value. + */ + public Object encryptedCredential() { + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + } + + /** + * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted + * using the integration runtime credential manager. Type: string (or Expression with resultType string). + * + * @param encryptedCredential the encryptedCredential value to set. + * @return the ZendeskLinkedService object itself. + */ + public ZendeskLinkedService withEncryptedCredential(Object encryptedCredential) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new ZendeskLinkedServiceTypeProperties(); + } + this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + @Override + public void validate() { + super.validate(); + if (innerTypeProperties() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property innerTypeProperties in model ZendeskLinkedService")); + } else { + innerTypeProperties().validate(); + } + } +}