diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/CHANGELOG.md b/sdk/datafactory/azure-resourcemanager-datafactory/CHANGELOG.md index 223b77ba8f20..31cec6103cea 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.24 (Unreleased) +## 1.0.0-beta.1 (2023-10-22) + +- 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 82f638fd08ff..85421324e90f 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.23 + 1.0.0-beta.24 ``` [//]: # ({x-version-update-end}) @@ -45,7 +45,7 @@ Azure Management Libraries require a `TokenCredential` implementation for authen ### Authentication -By default, Azure Active Directory token authentication depends on correct configuration of the following environment variables. +By default, Microsoft Entra ID token authentication depends on correct configuration of the following environment variables. - `AZURE_CLIENT_ID` for Azure client ID. - `AZURE_TENANT_ID` for Azure tenant ID. @@ -181,7 +181,7 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m [survey]: https://microsoft.qualtrics.com/jfe/form/SV_ehN0lIk2FKEBkwd?Q_CHL=DOCS [docs]: https://azure.github.io/azure-sdk-for-java/ -[jdk]: https://docs.microsoft.com/java/azure/jdk/ +[jdk]: https://learn.microsoft.com/azure/developer/java/fundamentals/ [azure_subscription]: https://azure.microsoft.com/free/ [azure_identity]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/identity/azure-identity [azure_core_http_netty]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/core/azure-core-http-netty 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 1770cebf8f91..0e089970a1cc 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 @@ -294,7 +294,7 @@ public DataFactoryManager authenticate(TokenCredential credential, AzureProfile .append("-") .append("com.azure.resourcemanager.datafactory") .append("/") - .append("1.0.0-beta.23"); + .append("1.0.0-beta.1"); if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) { userAgentBuilder .append(" (") diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureFunctionActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureFunctionActivityTypeProperties.java index 808a6412de0d..9c42c15af661 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureFunctionActivityTypeProperties.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureFunctionActivityTypeProperties.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.datafactory.models.AzureFunctionActivityMethod; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.Map; /** Azure Function activity type properties. */ @Fluent @@ -31,7 +33,8 @@ public final class AzureFunctionActivityTypeProperties { * resultType string). */ @JsonProperty(value = "headers") - private Object headers; + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) + private Map headers; /* * Represents the payload that will be sent to the endpoint. Required for POST/PUT method, not allowed for GET @@ -93,7 +96,7 @@ public AzureFunctionActivityTypeProperties withFunctionName(Object functionName) * * @return the headers value. */ - public Object headers() { + public Map headers() { return this.headers; } @@ -105,7 +108,7 @@ public Object headers() { * @param headers the headers value to set. * @return the AzureFunctionActivityTypeProperties object itself. */ - public AzureFunctionActivityTypeProperties withHeaders(Object headers) { + public AzureFunctionActivityTypeProperties withHeaders(Map headers) { this.headers = headers; return this; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/WebActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/WebActivityTypeProperties.java index b7d1b8bc2de2..1619b73e1248 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/WebActivityTypeProperties.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/WebActivityTypeProperties.java @@ -11,8 +11,10 @@ import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; import com.azure.resourcemanager.datafactory.models.WebActivityAuthentication; import com.azure.resourcemanager.datafactory.models.WebActivityMethod; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; +import java.util.Map; /** Web activity type properties. */ @Fluent @@ -35,7 +37,8 @@ public final class WebActivityTypeProperties { * resultType string). */ @JsonProperty(value = "headers") - private Object headers; + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) + private Map headers; /* * Represents the payload that will be sent to the endpoint. Required for POST/PUT method, not allowed for GET @@ -125,7 +128,7 @@ public WebActivityTypeProperties withUrl(Object url) { * * @return the headers value. */ - public Object headers() { + public Map headers() { return this.headers; } @@ -137,7 +140,7 @@ public Object headers() { * @param headers the headers value to set. * @return the WebActivityTypeProperties object itself. */ - public WebActivityTypeProperties withHeaders(Object headers) { + public WebActivityTypeProperties withHeaders(Map headers) { this.headers = headers; return this; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/WebhookActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/WebhookActivityTypeProperties.java index a7f28e3bb558..f58b7b6048ce 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/WebhookActivityTypeProperties.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/WebhookActivityTypeProperties.java @@ -8,7 +8,9 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.datafactory.models.WebActivityAuthentication; import com.azure.resourcemanager.datafactory.models.WebhookActivityMethod; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.Map; /** WebHook activity type properties. */ @Fluent @@ -38,7 +40,8 @@ public final class WebhookActivityTypeProperties { * resultType string). */ @JsonProperty(value = "headers") - private Object headers; + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) + private Map headers; /* * Represents the payload that will be sent to the endpoint. Required for POST/PUT method, not allowed for GET @@ -138,7 +141,7 @@ public WebhookActivityTypeProperties withTimeout(String timeout) { * * @return the headers value. */ - public Object headers() { + public Map headers() { return this.headers; } @@ -150,7 +153,7 @@ public Object headers() { * @param headers the headers value to set. * @return the WebhookActivityTypeProperties object itself. */ - public WebhookActivityTypeProperties withHeaders(Object headers) { + public WebhookActivityTypeProperties withHeaders(Map headers) { this.headers = headers; return this; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/Utils.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/Utils.java index 1bd12c0f321c..1541f98d34f7 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/Utils.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/Utils.java @@ -20,6 +20,9 @@ import reactor.core.publisher.Flux; final class Utils { + private Utils() { + } + static String getValueFromIdByName(String id, String name) { if (id == null) { return null; @@ -60,7 +63,7 @@ static String getValueFromIdByParameterName(String id, String pathTemplate, Stri segments.add(idSegment); idItrReverted.forEachRemaining(segments::add); Collections.reverse(segments); - if (segments.size() > 0 && segments.get(0).isEmpty()) { + if (!segments.isEmpty() && segments.get(0).isEmpty()) { segments.remove(0); } return String.join("/", segments); @@ -74,7 +77,7 @@ static String getValueFromIdByParameterName(String id, String pathTemplate, Stri } static PagedIterable mapPage(PagedIterable pageIterable, Function mapper) { - return new PagedIterableImpl(pageIterable, mapper); + return new PagedIterableImpl<>(pageIterable, mapper); } private static final class PagedIterableImpl extends PagedIterable { @@ -133,30 +136,27 @@ public Stream> streamByPage(String continuationToken, int prefe @Override public Iterator iterator() { - return new IteratorImpl(pagedIterable.iterator(), mapper); + return new IteratorImpl<>(pagedIterable.iterator(), mapper); } @Override public Iterable> iterableByPage() { - return new IterableImpl, PagedResponse>(pagedIterable.iterableByPage(), pageMapper); + return new IterableImpl<>(pagedIterable.iterableByPage(), pageMapper); } @Override public Iterable> iterableByPage(String continuationToken) { - return new IterableImpl, PagedResponse>( - pagedIterable.iterableByPage(continuationToken), pageMapper); + return new IterableImpl<>(pagedIterable.iterableByPage(continuationToken), pageMapper); } @Override public Iterable> iterableByPage(int preferredPageSize) { - return new IterableImpl, PagedResponse>( - pagedIterable.iterableByPage(preferredPageSize), pageMapper); + return new IterableImpl<>(pagedIterable.iterableByPage(preferredPageSize), pageMapper); } @Override public Iterable> iterableByPage(String continuationToken, int preferredPageSize) { - return new IterableImpl, PagedResponse>( - pagedIterable.iterableByPage(continuationToken, preferredPageSize), pageMapper); + return new IterableImpl<>(pagedIterable.iterableByPage(continuationToken, preferredPageSize), pageMapper); } } @@ -198,7 +198,7 @@ private IterableImpl(Iterable iterable, Function mapper) { @Override public Iterator iterator() { - return new IteratorImpl(iterable.iterator(), mapper); + return new IteratorImpl<>(iterable.iterator(), mapper); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureFunctionActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureFunctionActivity.java index 709e890f6b9f..8585f08517be 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureFunctionActivity.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureFunctionActivity.java @@ -11,6 +11,7 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import java.util.List; +import java.util.Map; /** Azure Function activity. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @@ -147,7 +148,7 @@ public AzureFunctionActivity withFunctionName(Object functionName) { * * @return the headers value. */ - public Object headers() { + public Map headers() { return this.innerTypeProperties() == null ? null : this.innerTypeProperties().headers(); } @@ -159,7 +160,7 @@ public Object headers() { * @param headers the headers value to set. * @return the AzureFunctionActivity object itself. */ - public AzureFunctionActivity withHeaders(Object headers) { + public AzureFunctionActivity withHeaders(Map headers) { if (this.innerTypeProperties() == null) { this.innerTypeProperties = new AzureFunctionActivityTypeProperties(); } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/WebActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/WebActivity.java index b3cedc246c04..468af4f66d1a 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/WebActivity.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/WebActivity.java @@ -11,6 +11,7 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import java.util.List; +import java.util.Map; /** Web activity. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @@ -145,7 +146,7 @@ public WebActivity withUrl(Object url) { * * @return the headers value. */ - public Object headers() { + public Map headers() { return this.innerTypeProperties() == null ? null : this.innerTypeProperties().headers(); } @@ -157,7 +158,7 @@ public Object headers() { * @param headers the headers value to set. * @return the WebActivity object itself. */ - public WebActivity withHeaders(Object headers) { + public WebActivity withHeaders(Map headers) { if (this.innerTypeProperties() == null) { this.innerTypeProperties = new WebActivityTypeProperties(); } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/WebhookActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/WebhookActivity.java index c472ee502cc6..33440a8bc7d2 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/WebhookActivity.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/WebhookActivity.java @@ -11,6 +11,7 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import java.util.List; +import java.util.Map; /** WebHook activity. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @@ -23,6 +24,12 @@ public final class WebhookActivity extends ControlActivity { @JsonProperty(value = "typeProperties", required = true) private WebhookActivityTypeProperties innerTypeProperties = new WebhookActivityTypeProperties(); + /* + * Activity policy. + */ + @JsonProperty(value = "policy") + private SecureInputOutputPolicy policy; + /** Creates an instance of WebhookActivity class. */ public WebhookActivity() { } @@ -36,6 +43,26 @@ private WebhookActivityTypeProperties innerTypeProperties() { return this.innerTypeProperties; } + /** + * Get the policy property: Activity policy. + * + * @return the policy value. + */ + public SecureInputOutputPolicy policy() { + return this.policy; + } + + /** + * Set the policy property: Activity policy. + * + * @param policy the policy value to set. + * @return the WebhookActivity object itself. + */ + public WebhookActivity withPolicy(SecureInputOutputPolicy policy) { + this.policy = policy; + return this; + } + /** {@inheritDoc} */ @Override public WebhookActivity withName(String name) { @@ -160,7 +187,7 @@ public WebhookActivity withTimeout(String timeout) { * * @return the headers value. */ - public Object headers() { + public Map headers() { return this.innerTypeProperties() == null ? null : this.innerTypeProperties().headers(); } @@ -172,7 +199,7 @@ public Object headers() { * @param headers the headers value to set. * @return the WebhookActivity object itself. */ - public WebhookActivity withHeaders(Object headers) { + public WebhookActivity withHeaders(Map headers) { if (this.innerTypeProperties() == null) { this.innerTypeProperties = new WebhookActivityTypeProperties(); } @@ -271,6 +298,9 @@ public void validate() { } else { innerTypeProperties().validate(); } + if (policy() != null) { + policy().validate(); + } } private static final ClientLogger LOGGER = new ClientLogger(WebhookActivity.class); diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-datafactory/proxy-config.json b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-datafactory/proxy-config.json new file mode 100644 index 000000000000..7c41c2eae6af --- /dev/null +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-datafactory/proxy-config.json @@ -0,0 +1 @@ +[ [ "com.azure.resourcemanager.datafactory.implementation.OperationsClientImpl$OperationsService" ], [ "com.azure.resourcemanager.datafactory.implementation.FactoriesClientImpl$FactoriesService" ], [ "com.azure.resourcemanager.datafactory.implementation.ExposureControlsClientImpl$ExposureControlsService" ], [ "com.azure.resourcemanager.datafactory.implementation.IntegrationRuntimesClientImpl$IntegrationRuntimesService" ], [ "com.azure.resourcemanager.datafactory.implementation.IntegrationRuntimeObjectMetadatasClientImpl$IntegrationRuntimeObjectMetadatasService" ], [ "com.azure.resourcemanager.datafactory.implementation.IntegrationRuntimeNodesClientImpl$IntegrationRuntimeNodesService" ], [ "com.azure.resourcemanager.datafactory.implementation.LinkedServicesClientImpl$LinkedServicesService" ], [ "com.azure.resourcemanager.datafactory.implementation.DatasetsClientImpl$DatasetsService" ], [ "com.azure.resourcemanager.datafactory.implementation.PipelinesClientImpl$PipelinesService" ], [ "com.azure.resourcemanager.datafactory.implementation.PipelineRunsClientImpl$PipelineRunsService" ], [ "com.azure.resourcemanager.datafactory.implementation.ActivityRunsClientImpl$ActivityRunsService" ], [ "com.azure.resourcemanager.datafactory.implementation.TriggersClientImpl$TriggersService" ], [ "com.azure.resourcemanager.datafactory.implementation.TriggerRunsClientImpl$TriggerRunsService" ], [ "com.azure.resourcemanager.datafactory.implementation.DataFlowsClientImpl$DataFlowsService" ], [ "com.azure.resourcemanager.datafactory.implementation.DataFlowDebugSessionsClientImpl$DataFlowDebugSessionsService" ], [ "com.azure.resourcemanager.datafactory.implementation.ManagedVirtualNetworksClientImpl$ManagedVirtualNetworksService" ], [ "com.azure.resourcemanager.datafactory.implementation.ManagedPrivateEndpointsClientImpl$ManagedPrivateEndpointsService" ], [ "com.azure.resourcemanager.datafactory.implementation.CredentialOperationsClientImpl$CredentialOperationsService" ], [ "com.azure.resourcemanager.datafactory.implementation.PrivateEndPointConnectionsClientImpl$PrivateEndPointConnectionsService" ], [ "com.azure.resourcemanager.datafactory.implementation.PrivateEndpointConnectionOperationsClientImpl$PrivateEndpointConnectionOperationsService" ], [ "com.azure.resourcemanager.datafactory.implementation.PrivateLinkResourcesClientImpl$PrivateLinkResourcesService" ], [ "com.azure.resourcemanager.datafactory.implementation.GlobalParametersClientImpl$GlobalParametersService" ], [ "com.azure.resourcemanager.datafactory.implementation.ChangeDataCapturesClientImpl$ChangeDataCapturesService" ] ] \ No newline at end of file diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-datafactory/reflect-config.json b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-datafactory/reflect-config.json new file mode 100644 index 000000000000..72ac68c084a1 --- /dev/null +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-datafactory/reflect-config.json @@ -0,0 +1,5376 @@ +[ { + "name" : "com.azure.resourcemanager.datafactory.models.OperationListResponse", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.OperationInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.OperationDisplay", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.OperationProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.OperationServiceSpecification", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.OperationLogSpecification", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.OperationMetricSpecification", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.OperationMetricAvailability", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.OperationMetricDimension", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.FactoryListResponse", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.FactoryInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.FactoryIdentity", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.FactoryProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.PurviewConfiguration", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.FactoryRepoConfiguration", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.GlobalParameterSpecification", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.EncryptionConfiguration", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.CmkIdentityDefinition", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.FactoryRepoUpdate", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ExposureControlRequest", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.ExposureControlResponseInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ExposureControlBatchRequest", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.ExposureControlBatchResponseInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.FactoryUpdateParameters", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.FactoryUpdateProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.GitHubAccessTokenRequest", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.GitHubClientSecret", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.GitHubAccessTokenResponseInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.UserAccessPolicy", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.AccessPolicyResponseInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.IntegrationRuntimeListResponse", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeResourceInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.IntegrationRuntime", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.UpdateIntegrationRuntimeRequest", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeStatusResponseInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.IntegrationRuntimeStatus", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.IntegrationRuntimeOutboundNetworkDependenciesEndpoint", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeConnectionInfoInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.IntegrationRuntimeRegenerateKeyParameters", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeAuthKeysInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeMonitoringDataInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.IntegrationRuntimeNodeMonitoringData", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.LinkedIntegrationRuntimeRequest", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.CreateLinkedIntegrationRuntimeRequest", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.SsisObjectMetadataStatusResponseInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.GetSsisObjectMetadataRequest", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.SsisObjectMetadataListResponseInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SsisObjectMetadata", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.SelfHostedIntegrationRuntimeNodeInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.UpdateIntegrationRuntimeNodeRequest", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeNodeIpAddressInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.LinkedServiceListResponse", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.LinkedServiceResourceInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.LinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.IntegrationRuntimeReference", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ParameterSpecification", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.DatasetListResponse", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.DatasetResourceInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.Dataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.LinkedServiceReference", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.DatasetFolder", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.PipelineListResponse", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.PipelineResourceInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.Pipeline", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.Activity", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ActivityDependency", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.UserProperty", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.VariableSpecification", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.PipelineFolder", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.PipelinePolicy", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.PipelineElapsedTimeMetricPolicy", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.CreateRunResponseInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.RunFilterParameters", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.RunQueryFilter", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.RunQueryOrderBy", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.PipelineRunsQueryResponseInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.PipelineRunInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.PipelineRunInvokedBy", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.ActivityRunsQueryResponseInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ActivityRun", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.TriggerListResponse", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.TriggerResourceInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.Trigger", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.TriggerFilterParameters", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.TriggerQueryResponseInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.TriggerSubscriptionOperationStatusInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.TriggerRunsQueryResponseInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.TriggerRun", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.DataFlowResourceInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.DataFlow", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.DataFlowFolder", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.DataFlowListResponse", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.CreateDataFlowDebugSessionRequest", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.IntegrationRuntimeDebugResource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SubResourceDebugResource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.CreateDataFlowDebugSessionResponseInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.QueryDataFlowDebugSessionsResponse", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.DataFlowDebugSessionInfoInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.DataFlowDebugPackage", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.DataFlowDebugResource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.DatasetDebugResource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.LinkedServiceDebugResource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.DataFlowStagingInfo", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.DataFlowDebugPackageDebugSettings", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.DataFlowSourceSetting", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.AddDataFlowToDebugSessionResponseInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.DeleteDataFlowDebugSessionRequest", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.DataFlowDebugCommandRequest", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.DataFlowDebugCommandPayload", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.DataFlowDebugCommandResponseInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ManagedVirtualNetworkListResponse", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.ManagedVirtualNetworkResourceInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ManagedVirtualNetwork", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ManagedPrivateEndpointListResponse", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.ManagedPrivateEndpointResourceInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ManagedPrivateEndpoint", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ConnectionStateProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.CredentialListResponse", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.ManagedIdentityCredentialResourceInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ManagedIdentityCredential", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.ManagedIdentityTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.Credential", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.PrivateEndpointConnectionListResponse", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.PrivateEndpointConnectionResourceInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.RemotePrivateEndpointConnection", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ArmIdWrapper", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.PrivateLinkConnectionState", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.PrivateLinkConnectionApprovalRequestResource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.PrivateLinkConnectionApprovalRequest", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.PrivateEndpoint", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.PrivateLinkResourcesWrapperInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.PrivateLinkResource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.PrivateLinkResourceProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.GlobalParameterListResponse", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.GlobalParameterResourceInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ChangeDataCaptureListResponse", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.ChangeDataCaptureResourceInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.ChangeDataCapture", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ChangeDataCaptureFolder", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.MapperSourceConnectionsInfo", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.MapperTable", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.MapperTableProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.MapperTableSchema", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.MapperDslConnectorProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.MapperConnection", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.MapperTargetConnectionsInfo", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.DataMapperMapping", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.MapperConnectionReference", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.MapperAttributeMappings", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.MapperAttributeMapping", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.MapperAttributeReference", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.MapperPolicy", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.MapperPolicyRecurrence", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.Expression", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SecureString", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SecretBase", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AzureKeyVaultSecretReference", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.FactoryVstsConfiguration", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.FactoryGitHubConfiguration", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.PipelineReference", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.TriggerPipelineReference", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.DatasetReference", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.GetDataFactoryOperationStatusResponse", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.DataFlowReference", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ManagedVirtualNetworkReference", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.CredentialReference", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.MappingDataFlow", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.MappingDataFlowTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.DataFlowSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.Transformation", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.DataFlowSink", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.Flowlet", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.FlowletTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.WranglingDataFlow", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.PowerQueryTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.PowerQuerySource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.PowerQuerySink", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.DatasetLocation", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AzureBlobStorageLocation", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AzureBlobFSLocation", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AzureDataLakeStoreLocation", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AmazonS3Location", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.FileServerLocation", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AzureFileStorageLocation", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AmazonS3CompatibleLocation", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.OracleCloudStorageLocation", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.GoogleCloudStorageLocation", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.FtpServerLocation", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SftpLocation", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.HttpServerLocation", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.HdfsLocation", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.DatasetSchemaDataElement", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.DatasetStorageFormat", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.TextFormat", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.JsonFormat", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AvroFormat", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.OrcFormat", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ParquetFormat", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.DatasetCompression", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AmazonS3Dataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.AmazonS3DatasetTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AvroDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.AvroDatasetTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ExcelDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.ExcelDatasetTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ParquetDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.ParquetDatasetTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.DelimitedTextDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.DelimitedTextDatasetTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.JsonDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.JsonDatasetTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.XmlDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.XmlDatasetTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.OrcDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.OrcDatasetTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.BinaryDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.BinaryDatasetTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AzureBlobDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.AzureBlobDatasetTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AzureTableDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.AzureTableDatasetTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AzureSqlTableDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.AzureSqlTableDatasetTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AzureSqlMITableDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.AzureSqlMITableDatasetTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AzureSqlDWTableDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.AzureSqlDWTableDatasetTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.CassandraTableDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.CassandraTableDatasetTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.CustomDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.CosmosDbSqlApiCollectionDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.CosmosDbSqlApiCollectionDatasetTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.DocumentDbCollectionDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.DocumentDbCollectionDatasetTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.DynamicsEntityDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.DynamicsEntityDatasetTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.DynamicsCrmEntityDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.DynamicsCrmEntityDatasetTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.CommonDataServiceForAppsEntityDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.CommonDataServiceForAppsEntityDatasetTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AzureDataLakeStoreDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.AzureDataLakeStoreDatasetTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AzureBlobFSDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.AzureBlobFSDatasetTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.Office365Dataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.Office365DatasetTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.FileShareDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.FileShareDatasetTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.MongoDbCollectionDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.MongoDbCollectionDatasetTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.MongoDbAtlasCollectionDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.MongoDbAtlasCollectionDatasetTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.MongoDbV2CollectionDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.MongoDbV2CollectionDatasetTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.CosmosDbMongoDbApiCollectionDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.CosmosDbMongoDbApiCollectionDatasetTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ODataResourceDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.ODataResourceDatasetTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.OracleTableDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.OracleTableDatasetTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AmazonRdsForOracleTableDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.AmazonRdsForOracleTableDatasetTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.TeradataTableDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.TeradataTableDatasetTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AzureMySqlTableDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.AzureMySqlTableDatasetTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AmazonRedshiftTableDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.AmazonRedshiftTableDatasetTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.Db2TableDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.Db2TableDatasetTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.RelationalTableDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.RelationalTableDatasetTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.InformixTableDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.InformixTableDatasetTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.OdbcTableDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.OdbcTableDatasetTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.MySqlTableDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.MySqlTableDatasetTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.PostgreSqlTableDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.PostgreSqlTableDatasetTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.MicrosoftAccessTableDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.MicrosoftAccessTableDatasetTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SalesforceObjectDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.SalesforceObjectDatasetTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SalesforceServiceCloudObjectDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.SalesforceServiceCloudObjectDatasetTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SybaseTableDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.SybaseTableDatasetTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SapBwCubeDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SapCloudForCustomerResourceDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.SapCloudForCustomerResourceDatasetTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SapEccResourceDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.SapEccResourceDatasetTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SapHanaTableDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.SapHanaTableDatasetTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SapOpenHubTableDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.SapOpenHubTableDatasetTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SqlServerTableDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.SqlServerTableDatasetTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AmazonRdsForSqlServerTableDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.AmazonRdsForSqlServerTableDatasetTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.RestResourceDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.RestResourceDatasetTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SapTableResourceDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.SapTableResourceDatasetTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SapOdpResourceDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.SapOdpResourceDatasetTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.WebTableDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.WebTableDatasetTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AzureSearchIndexDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.AzureSearchIndexDatasetTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.HttpDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.HttpDatasetTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.GenericDatasetTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AmazonMwsObjectDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AzurePostgreSqlTableDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.AzurePostgreSqlTableDatasetTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ConcurObjectDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.CouchbaseTableDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.DrillTableDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.DrillDatasetTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.EloquaObjectDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.GoogleBigQueryObjectDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.GoogleBigQueryDatasetTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.GreenplumTableDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.GreenplumDatasetTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.HBaseObjectDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.HiveObjectDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.HiveDatasetTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.HubspotObjectDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ImpalaObjectDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.ImpalaDatasetTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.JiraObjectDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.MagentoObjectDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.MariaDBTableDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AzureMariaDBTableDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.MarketoObjectDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.PaypalObjectDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.PhoenixObjectDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.PhoenixDatasetTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.PrestoObjectDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.PrestoDatasetTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.QuickBooksObjectDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ServiceNowObjectDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ShopifyObjectDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SparkObjectDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.SparkDatasetTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SquareObjectDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.XeroObjectDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ZohoObjectDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.NetezzaTableDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.NetezzaTableDatasetTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.VerticaTableDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.VerticaDatasetTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SalesforceMarketingCloudObjectDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ResponsysObjectDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.DynamicsAXResourceDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.DynamicsAXResourceDatasetTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.OracleServiceCloudObjectDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AzureDataExplorerTableDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.AzureDataExplorerDatasetTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.GoogleAdWordsObjectDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SnowflakeDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.SnowflakeDatasetTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SharePointOnlineListResourceDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.SharePointOnlineListDatasetTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AzureDatabricksDeltaLakeDataset", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.AzureDatabricksDeltaLakeDatasetTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ManagedIntegrationRuntime", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.ManagedIntegrationRuntimeTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.IntegrationRuntimeComputeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.IntegrationRuntimeDataFlowProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.IntegrationRuntimeVNetProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.CopyComputeScaleProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.PipelineExternalComputeScaleProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.IntegrationRuntimeSsisProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.IntegrationRuntimeSsisCatalogInfo", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.IntegrationRuntimeCustomSetupScriptProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.IntegrationRuntimeDataProxyProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.EntityReference", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.CustomSetupBase", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.PackageStore", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.IntegrationRuntimeCustomerVirtualNetwork", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.CmdkeySetup", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.CmdkeySetupTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.EnvironmentVariableSetup", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.EnvironmentVariableSetupTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ComponentSetup", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.LicensedComponentSetupTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AzPowerShellSetup", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.AzPowerShellSetupTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SelfHostedIntegrationRuntime", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.SelfHostedIntegrationRuntimeTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.LinkedIntegrationRuntimeType", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.LinkedIntegrationRuntimeKeyAuthorization", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.LinkedIntegrationRuntimeRbacAuthorization", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ManagedIntegrationRuntimeStatus", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.ManagedIntegrationRuntimeStatusTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ManagedIntegrationRuntimeNode", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ManagedIntegrationRuntimeError", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ManagedIntegrationRuntimeOperationResult", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SelfHostedIntegrationRuntimeStatus", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.SelfHostedIntegrationRuntimeStatusTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.LinkedIntegrationRuntime", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SsisFolder", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SsisProject", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SsisEnvironmentReference", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SsisParameter", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SsisPackage", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SsisEnvironment", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SsisVariable", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AzureStorageLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.AzureStorageLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AzureBlobStorageLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.AzureBlobStorageLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AzureTableStorageLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AzureSqlDWLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.AzureSqlDWLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SqlServerLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.SqlServerLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SqlAlwaysEncryptedProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AmazonRdsForSqlServerLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.AmazonRdsForSqlServerLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AzureSqlDatabaseLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.AzureSqlDatabaseLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AzureSqlMILinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.AzureSqlMILinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AzureBatchLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.AzureBatchLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AzureKeyVaultLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.AzureKeyVaultLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.CosmosDbLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.CosmosDbLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.DynamicsLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.DynamicsLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.DynamicsCrmLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.DynamicsCrmLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.CommonDataServiceForAppsLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.CommonDataServiceForAppsLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.HDInsightLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.HDInsightLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.FileServerLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.FileServerLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AzureFileStorageLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.AzureFileStorageLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AmazonS3CompatibleLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.AmazonS3CompatibleLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.OracleCloudStorageLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.OracleCloudStorageLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.GoogleCloudStorageLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.GoogleCloudStorageLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.OracleLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.OracleLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AmazonRdsForOracleLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.AmazonRdsForLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AzureMySqlLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.AzureMySqlLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.MySqlLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.MySqlLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.PostgreSqlLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.PostgreSqlLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SybaseLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.SybaseLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.Db2LinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.Db2LinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.TeradataLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.TeradataLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AzureMLLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.AzureMLLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AzureMLServiceLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.AzureMLServiceLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.OdbcLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.OdbcLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.InformixLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.InformixLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.MicrosoftAccessLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.MicrosoftAccessLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.HdfsLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.HdfsLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ODataLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.ODataLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.WebLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.WebLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.WebAnonymousAuthentication", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.WebBasicAuthentication", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.WebClientCertificateAuthentication", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.CassandraLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.CassandraLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.MongoDbLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.MongoDbLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.MongoDbAtlasLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.MongoDbAtlasLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.MongoDbV2LinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.MongoDbV2LinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.CosmosDbMongoDbApiLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.CosmosDbMongoDbApiLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AzureDataLakeStoreLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.AzureDataLakeStoreLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AzureBlobFSLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.AzureBlobFSLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.Office365LinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.Office365LinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SalesforceLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.SalesforceLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SalesforceServiceCloudLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.SalesforceServiceCloudLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SapCloudForCustomerLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.SapCloudForCustomerLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SapEccLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.SapEccLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SapOpenHubLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.SapOpenHubLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SapOdpLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.SapOdpLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.RestServiceLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.RestServiceLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.TeamDeskLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.TeamDeskLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.QuickbaseLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.QuickbaseLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SmartsheetLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.SmartsheetLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ZendeskLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.ZendeskLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.DataworldLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.DataworldLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AppFiguresLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.AppFiguresLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AsanaLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.AsanaLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.TwilioLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.TwilioLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.GoogleSheetsLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.GoogleSheetsLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AmazonS3LinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.AmazonS3LinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AmazonRedshiftLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.AmazonRedshiftLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.CustomDataSourceLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AzureSearchLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.AzureSearchLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.HttpLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.HttpLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.FtpServerLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.FtpServerLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SftpServerLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.SftpServerLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SapBWLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.SapBWLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SapHanaLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.SapHanaLinkedServiceProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AmazonMwsLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.AmazonMwsLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AzurePostgreSqlLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.AzurePostgreSqlLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ConcurLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.ConcurLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.CouchbaseLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.CouchbaseLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.DrillLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.DrillLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.EloquaLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.EloquaLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.GoogleBigQueryLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.GoogleBigQueryLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.GreenplumLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.GreenplumLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.HBaseLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.HBaseLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.HiveLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.HiveLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.HubspotLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.HubspotLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ImpalaLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.ImpalaLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.JiraLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.JiraLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.MagentoLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.MagentoLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.MariaDBLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.MariaDBLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AzureMariaDBLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.AzureMariaDBLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.MarketoLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.MarketoLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.PaypalLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.PaypalLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.PhoenixLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.PhoenixLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.PrestoLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.PrestoLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.QuickBooksLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.QuickBooksLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ServiceNowLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.ServiceNowLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ShopifyLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.ShopifyLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SparkLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.SparkLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SquareLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.SquareLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.XeroLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.XeroLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ZohoLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.ZohoLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.VerticaLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.VerticaLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.NetezzaLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.NetezzaLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SalesforceMarketingCloudLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.SalesforceMarketingCloudLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.HDInsightOnDemandLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.HDInsightOnDemandLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ScriptAction", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AzureDataLakeAnalyticsLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.AzureDataLakeAnalyticsLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AzureDatabricksLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.AzureDatabricksLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AzureDatabricksDeltaLakeLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.AzureDatabricksDetltaLakeLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ResponsysLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.ResponsysLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.DynamicsAXLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.DynamicsAXLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.OracleServiceCloudLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.OracleServiceCloudLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.GoogleAdWordsLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.GoogleAdWordsLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SapTableLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.SapTableLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AzureDataExplorerLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.AzureDataExplorerLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AzureFunctionLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.AzureFunctionLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SnowflakeLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.SnowflakeLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SharePointOnlineListLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.SharePointOnlineListLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AzureSynapseArtifactsLinkedService", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.AzureSynapseArtifactsLinkedServiceTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ControlActivity", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ExecutionActivity", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ActivityPolicy", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.StoreReadSettings", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AzureBlobStorageReadSettings", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AzureBlobFSReadSettings", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AzureDataLakeStoreReadSettings", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AmazonS3ReadSettings", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.FileServerReadSettings", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AzureFileStorageReadSettings", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SftpWriteSettings", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.StoreWriteSettings", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AmazonS3CompatibleReadSettings", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.OracleCloudStorageReadSettings", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.GoogleCloudStorageReadSettings", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.FtpReadSettings", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SftpReadSettings", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.HttpReadSettings", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.HdfsReadSettings", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.DistcpSettings", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AzureBlobStorageWriteSettings", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AzureBlobFSWriteSettings", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AzureDataLakeStoreWriteSettings", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.FileServerWriteSettings", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AzureFileStorageWriteSettings", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.FormatReadSettings", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.CompressionReadSettings", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ZipDeflateReadSettings", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.TarReadSettings", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.TarGZipReadSettings", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.DelimitedTextReadSettings", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.JsonReadSettings", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.XmlReadSettings", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.BinaryReadSettings", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.FormatWriteSettings", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AvroWriteSettings", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.OrcWriteSettings", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ParquetWriteSettings", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.DelimitedTextWriteSettings", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.JsonWriteSettings", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AvroSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.CopySource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ExcelSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ParquetSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.DelimitedTextSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.JsonSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.XmlSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.OrcSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.DelimitedTextSink", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.CopySink", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.JsonSink", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.OrcSink", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.CopyActivity", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.CopyActivityTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.StagingSettings", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.RedirectIncompatibleRowSettings", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.LogStorageSettings", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.LogSettings", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.CopyActivityLogSettings", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.LogLocationSettings", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SkipErrorFile", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.BinarySource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.TabularSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AzureTableSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.BlobSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.DocumentDbCollectionSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.CosmosDbSqlApiSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.DynamicsSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.DynamicsCrmSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.CommonDataServiceForAppsSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.RelationalSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.InformixSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.MicrosoftAccessSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.Db2Source", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.OdbcSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.MySqlSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.PostgreSqlSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SybaseSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SapBwSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ODataSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SalesforceSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SalesforceServiceCloudSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SapCloudForCustomerSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SapEccSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SapHanaSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SapHanaPartitionSettings", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SapOpenHubSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SapOdpSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SapTableSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SapTablePartitionSettings", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.RestSink", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.RestSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SqlSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SqlPartitionSettings", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SqlServerSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AmazonRdsForSqlServerSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AzureSqlSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SqlMISource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SqlDWSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.FileSystemSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.HdfsSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AzureMySqlSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AzureDataExplorerSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.OracleSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.OraclePartitionSettings", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AmazonRdsForOracleSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AmazonRdsForOraclePartitionSettings", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.TeradataSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.TeradataPartitionSettings", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.WebSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.CassandraSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.MongoDbSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.MongoDbAtlasSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.MongoDbCursorMethodsProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.MongoDbV2Source", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.CosmosDbMongoDbApiSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.Office365Source", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AzureDataLakeStoreSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AzureBlobFSSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.HttpSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AmazonMwsSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AzurePostgreSqlSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AzurePostgreSqlSink", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AzureMySqlSink", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ConcurSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.CouchbaseSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.DrillSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.EloquaSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.GoogleBigQuerySource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.GreenplumSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.HBaseSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.HiveSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.HubspotSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ImpalaSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.JiraSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.MagentoSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.MariaDBSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AzureMariaDBSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.MarketoSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.PaypalSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.PhoenixSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.PrestoSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.QuickBooksSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ServiceNowSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ShopifySource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SparkSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SquareSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.XeroSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ZohoSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.NetezzaSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.NetezzaPartitionSettings", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.VerticaSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SalesforceMarketingCloudSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ResponsysSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.DynamicsAXSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.OracleServiceCloudSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.GoogleAdWordsSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AmazonRedshiftSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.RedshiftUnloadSettings", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SnowflakeSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SnowflakeExportCopyCommand", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ExportSettings", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AzureDatabricksDeltaLakeSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AzureDatabricksDeltaLakeExportCommand", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AzureDatabricksDeltaLakeSink", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AzureDatabricksDeltaLakeImportCommand", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ImportSettings", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SapCloudForCustomerSink", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AzureQueueSink", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AzureTableSink", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AvroSink", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ParquetSink", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.BinarySink", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.BlobSink", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.MetadataItem", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.FileSystemSink", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.DocumentDbCollectionSink", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.CosmosDbSqlApiSink", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SqlSink", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SqlUpsertSettings", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SqlServerSink", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AzureSqlSink", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SqlMISink", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SqlDWSink", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.PolybaseSettings", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.DWCopyCommandSettings", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.DWCopyCommandDefaultValue", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SqlDWUpsertSettings", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SnowflakeSink", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SnowflakeImportCopyCommand", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.OracleSink", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AzureDataLakeStoreSink", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AzureBlobFSSink", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AzureSearchIndexSink", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.OdbcSink", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.InformixSink", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.MicrosoftAccessSink", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.DynamicsSink", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.DynamicsCrmSink", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.CommonDataServiceForAppsSink", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AzureDataExplorerSink", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SalesforceSink", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SalesforceServiceCloudSink", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.MongoDbAtlasSink", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.MongoDbV2Sink", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.CosmosDbMongoDbApiSink", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.CopyTranslator", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.TabularTranslator", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.TypeConversionSettings", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.HDInsightHiveActivity", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.HDInsightHiveActivityTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.HDInsightPigActivity", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.HDInsightPigActivityTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.HDInsightMapReduceActivity", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.HDInsightMapReduceActivityTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.HDInsightStreamingActivity", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.HDInsightStreamingActivityTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.HDInsightSparkActivity", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.HDInsightSparkActivityTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ExecuteSsisPackageActivity", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.ExecuteSsisPackageActivityTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SsisPackageLocation", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.SsisPackageLocationTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SsisAccessCredential", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SsisChildPackage", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SsisExecutionCredential", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SsisExecutionParameter", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SsisPropertyOverride", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SsisLogLocation", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.SsisLogLocationTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.CustomActivity", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.CustomActivityTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.CustomActivityReferenceObject", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SqlServerStoredProcedureActivity", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.SqlServerStoredProcedureActivityTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ExecutePipelineActivity", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ExecutePipelineActivityPolicy", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.ExecutePipelineActivityTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.DeleteActivity", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.DeleteActivityTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AzureDataExplorerCommandActivity", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.AzureDataExplorerCommandActivityTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.LookupActivity", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.LookupActivityTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.WebActivity", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.WebActivityTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.WebActivityAuthentication", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.GetMetadataActivity", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.GetMetadataActivityTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.IfConditionActivity", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.IfConditionActivityTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SwitchActivity", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.SwitchActivityTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SwitchCase", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ForEachActivity", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.ForEachActivityTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AzureMLBatchExecutionActivity", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.AzureMLBatchExecutionActivityTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AzureMLWebServiceFile", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AzureMLUpdateResourceActivity", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.AzureMLUpdateResourceActivityTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AzureMLExecutePipelineActivity", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.AzureMLExecutePipelineActivityTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.DataLakeAnalyticsUsqlActivity", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.DataLakeAnalyticsUsqlActivityTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.WaitActivity", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.WaitActivityTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.FailActivity", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.FailActivityTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.UntilActivity", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.UntilActivityTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ValidationActivity", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.ValidationActivityTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.FilterActivity", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.FilterActivityTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.DatabricksNotebookActivity", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.DatabricksNotebookActivityTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.DatabricksSparkJarActivity", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.DatabricksSparkJarActivityTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.DatabricksSparkPythonActivity", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.DatabricksSparkPythonActivityTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SetVariableActivity", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.SetVariableActivityTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SecureInputOutputPolicy", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AppendVariableActivity", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.AppendVariableActivityTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AzureFunctionActivity", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.AzureFunctionActivityTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.WebhookActivity", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.WebhookActivityTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ExecuteDataFlowActivity", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.ExecuteDataFlowActivityTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ExecuteDataFlowActivityTypePropertiesCompute", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ExecuteWranglingDataflowActivity", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.ExecutePowerQueryActivityTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.PowerQuerySinkMapping", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ScriptActivity", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.ScriptActivityTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ScriptActivityScriptBlock", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ScriptActivityParameter", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ScriptActivityTypePropertiesLogSettings", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SharePointOnlineListSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SynapseNotebookActivity", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.SynapseNotebookActivityTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SynapseNotebookReference", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.BigDataPoolParametrizationReference", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.NotebookParameter", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SparkConfigurationParametrizationReference", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SynapseSparkJobDefinitionActivity", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.SynapseSparkJobActivityTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SynapseSparkJobReference", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.MultiplePipelineTrigger", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ScheduleTrigger", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.ScheduleTriggerTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ScheduleTriggerRecurrence", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.RecurrenceSchedule", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.RecurrenceScheduleOccurrence", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.BlobTrigger", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.BlobTriggerTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.BlobEventsTrigger", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.BlobEventsTriggerTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.CustomEventsTrigger", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.CustomEventsTriggerTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.TumblingWindowTrigger", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.TumblingWindowTriggerTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.RetryPolicy", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.DependencyReference", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.TriggerReference", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.TriggerDependencyReference", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.TumblingWindowTriggerDependencyReference", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SelfDependencyTumblingWindowTriggerReference", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.RerunTumblingWindowTrigger", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.RerunTumblingWindowTriggerTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ChainingTrigger", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.ChainingTriggerTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ServicePrincipalCredential", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.fluent.models.ServicePrincipalCredentialTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.FactoryIdentityType", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.GlobalParameterType", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.PublicNetworkAccess", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.IntegrationRuntimeType", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.IntegrationRuntimeAutoUpdate", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.IntegrationRuntimeState", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.IntegrationRuntimeAuthKeyName", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SsisObjectMetadataType", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SelfHostedIntegrationRuntimeNodeStatus", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.IntegrationRuntimeUpdateResult", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ParameterType", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ActivityState", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.DependencyCondition", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.VariableType", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.RunQueryFilterOperand", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.RunQueryFilterOperator", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.RunQueryOrderByField", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.RunQueryOrder", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.TriggerRuntimeState", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.EventSubscriptionStatus", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.TriggerRunStatus", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.DataFlowDebugCommandType", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ConnectionType", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.MappingType", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.FrequencyType", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.DataFlowReferenceType", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ManagedVirtualNetworkReferenceType", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.CredentialReferenceType", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.DataFlowComputeType", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.IntegrationRuntimeSsisCatalogPricingTier", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.IntegrationRuntimeLicenseType", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.IntegrationRuntimeEntityReferenceType", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.IntegrationRuntimeEdition", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ManagedIntegrationRuntimeNodeStatus", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.IntegrationRuntimeInternalChannelEncryptionMode", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AzureStorageAuthenticationType", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SqlAlwaysEncryptedAkvAuthType", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.CosmosDbConnectionMode", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SybaseAuthenticationType", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.Db2AuthenticationType", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.TeradataAuthenticationType", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ODataAuthenticationType", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ODataAadServicePrincipalCredentialType", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.WebAuthenticationType", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.MongoDbAuthenticationType", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.RestServiceAuthenticationType", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.TeamDeskAuthenticationType", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ZendeskAuthenticationType", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.HttpAuthenticationType", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.FtpAuthenticationType", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SftpAuthenticationType", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SapHanaAuthenticationType", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.GoogleBigQueryAuthenticationType", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.HBaseAuthenticationType", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.HiveServerType", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.HiveThriftTransportProtocol", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.HiveAuthenticationType", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ImpalaAuthenticationType", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.PhoenixAuthenticationType", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.PrestoAuthenticationType", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ServiceNowAuthenticationType", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SparkServerType", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SparkThriftTransportProtocol", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SparkAuthenticationType", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.GoogleAdWordsAuthenticationType", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.CassandraSourceReadConsistencyLevels", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SapCloudForCustomerSinkWriteBehavior", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.PolybaseSettingsRejectType", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AzureSearchIndexWriteBehaviorType", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.DynamicsSinkWriteBehavior", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SalesforceSinkWriteBehavior", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.HDInsightActivityDebugInfoOption", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SsisPackageLocationType", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SsisLogLocationType", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.WebActivityMethod", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.AzureFunctionActivityMethod", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.WebhookActivityMethod", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ScriptType", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ScriptActivityParameterType", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ScriptActivityParameterDirection", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ScriptActivityLogDestination", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.NotebookReferenceType", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.BigDataPoolReferenceType", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.NotebookParameterType", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.ConfigurationType", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SparkConfigurationReferenceType", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.SparkJobReferenceType", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.RecurrenceFrequency", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.BlobEventTypes", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.TumblingWindowFrequency", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.TriggerReferenceType", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.DaysOfWeek", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.datafactory.models.DayOfWeek", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +} ] \ No newline at end of file diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ActivityDependencyTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ActivityDependencyTests.java deleted file mode 100644 index ec704e2201b7..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ActivityDependencyTests.java +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ActivityDependencyTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ActivityDependency model = - BinaryData - .fromString( - "{\"activity\":\"wcoezbrhub\",\"dependencyConditions\":[\"Succeeded\"],\"\":{\"okkqfqjbvleo\":\"dataygo\"}}") - .toObject(ActivityDependency.class); - Assertions.assertEquals("wcoezbrhub", model.activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependencyConditions().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ActivityDependency model = - new ActivityDependency() - .withActivity("wcoezbrhub") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(ActivityDependency.class); - Assertions.assertEquals("wcoezbrhub", model.activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependencyConditions().get(0)); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ActivityPolicyTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ActivityPolicyTests.java deleted file mode 100644 index a148622d58a2..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ActivityPolicyTests.java +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityPolicy; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ActivityPolicyTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ActivityPolicy model = - BinaryData - .fromString( - "{\"timeout\":\"datamsgg\",\"retry\":\"datacmazilq\",\"retryIntervalInSeconds\":840058407,\"secureInput\":false,\"secureOutput\":false,\"\":{\"zykmdklwbqkmtwua\":\"datay\"}}") - .toObject(ActivityPolicy.class); - Assertions.assertEquals(840058407, model.retryIntervalInSeconds()); - Assertions.assertEquals(false, model.secureInput()); - Assertions.assertEquals(false, model.secureOutput()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ActivityPolicy model = - new ActivityPolicy() - .withTimeout("datamsgg") - .withRetry("datacmazilq") - .withRetryIntervalInSeconds(840058407) - .withSecureInput(false) - .withSecureOutput(false) - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(ActivityPolicy.class); - Assertions.assertEquals(840058407, model.retryIntervalInSeconds()); - Assertions.assertEquals(false, model.secureInput()); - Assertions.assertEquals(false, model.secureOutput()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ActivityRunTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ActivityRunTests.java deleted file mode 100644 index 4d770c5e1f45..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ActivityRunTests.java +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityRun; -import java.util.HashMap; -import java.util.Map; - -public final class ActivityRunTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ActivityRun model = - BinaryData - .fromString( - "{\"pipelineName\":\"tj\",\"pipelineRunId\":\"ysdzhez\",\"activityName\":\"vaiqyuvvf\",\"activityType\":\"kphhq\",\"activityRunId\":\"kvylauyavl\",\"linkedServiceName\":\"mncsttijfybvp\",\"status\":\"krsgsgb\",\"activityRunStart\":\"2021-08-14T00:34:57Z\",\"activityRunEnd\":\"2021-08-27T04:01:57Z\",\"durationInMs\":1030277029,\"input\":\"datadgkynscliqhzvhxn\",\"output\":\"datamtk\",\"error\":\"dataotppnv\",\"\":{\"dhlfkqojpykvgt\":\"dataxhihfrbbcevqagtl\"}}") - .toObject(ActivityRun.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ActivityRun model = - new ActivityRun() - .withAdditionalProperties( - mapOf( - "durationInMs", - 1030277029, - "linkedServiceName", - "mncsttijfybvp", - "activityRunStart", - "2021-08-14T00:34:57Z", - "activityRunEnd", - "2021-08-27T04:01:57Z", - "activityName", - "vaiqyuvvf", - "error", - "dataotppnv", - "pipelineName", - "tj", - "output", - "datamtk", - "activityRunId", - "kvylauyavl", - "input", - "datadgkynscliqhzvhxn", - "pipelineRunId", - "ysdzhez", - "activityType", - "kphhq", - "status", - "krsgsgb")); - model = BinaryData.fromObject(model).toObject(ActivityRun.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ActivityTests.java deleted file mode 100644 index 624a0caf0bb9..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ActivityTests.java +++ /dev/null @@ -1,78 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.Activity; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - Activity model = - BinaryData - .fromString( - "{\"type\":\"Activity\",\"name\":\"volvtn\",\"description\":\"qfzgemjdftul\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"amtmcz\",\"dependencyConditions\":[\"Succeeded\"],\"\":{\"qioknssxmojm\":\"datawcw\"}},{\"activity\":\"vpkjpr\",\"dependencyConditions\":[\"Skipped\"],\"\":{\"ydbsd\":\"datazqljyxgtczh\"}}],\"userProperties\":[{\"name\":\"kx\",\"value\":\"dataaehvbbxuri\"}],\"\":{\"ckpyklyhplu\":\"datafnhtbaxkgxyw\",\"gzibthostgktstv\":\"datadpvruud\",\"odqkdlwwqfb\":\"dataxeclzedqbcvhzlhp\",\"lmbtxhwgfwsrt\":\"datamlkxtrqjfs\"}}") - .toObject(Activity.class); - Assertions.assertEquals("volvtn", model.name()); - Assertions.assertEquals("qfzgemjdftul", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("amtmcz", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("kx", model.userProperties().get(0).name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Activity model = - new Activity() - .withName("volvtn") - .withDescription("qfzgemjdftul") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("amtmcz") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("vpkjpr") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("kx").withValue("dataaehvbbxuri"))) - .withAdditionalProperties(mapOf("type", "Activity")); - model = BinaryData.fromObject(model).toObject(Activity.class); - Assertions.assertEquals("volvtn", model.name()); - Assertions.assertEquals("qfzgemjdftul", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("amtmcz", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("kx", model.userProperties().get(0).name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AddDataFlowToDebugSessionResponseInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AddDataFlowToDebugSessionResponseInnerTests.java deleted file mode 100644 index 14c98f2d13a5..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AddDataFlowToDebugSessionResponseInnerTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.AddDataFlowToDebugSessionResponseInner; -import org.junit.jupiter.api.Assertions; - -public final class AddDataFlowToDebugSessionResponseInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AddDataFlowToDebugSessionResponseInner model = - BinaryData - .fromString("{\"jobVersion\":\"fbcgwgcloxoebqin\"}") - .toObject(AddDataFlowToDebugSessionResponseInner.class); - Assertions.assertEquals("fbcgwgcloxoebqin", model.jobVersion()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AddDataFlowToDebugSessionResponseInner model = - new AddDataFlowToDebugSessionResponseInner().withJobVersion("fbcgwgcloxoebqin"); - model = BinaryData.fromObject(model).toObject(AddDataFlowToDebugSessionResponseInner.class); - Assertions.assertEquals("fbcgwgcloxoebqin", model.jobVersion()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonMwsObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonMwsObjectDatasetTests.java deleted file mode 100644 index 372f913c13de..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonMwsObjectDatasetTests.java +++ /dev/null @@ -1,82 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AmazonMwsObjectDataset; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AmazonMwsObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AmazonMwsObjectDataset model = - BinaryData - .fromString( - "{\"type\":\"AmazonMWSObject\",\"typeProperties\":{\"tableName\":\"datan\"},\"description\":\"lxcltjhbcycg\",\"structure\":\"datakcsihxvta\",\"schema\":\"datawf\",\"linkedServiceName\":{\"referenceName\":\"pxpry\",\"parameters\":{\"gugwlux\":\"databubwhzq\",\"mkdhwqcqweba\":\"datahtq\",\"phujeucosvk\":\"datamfpk\",\"llgnueezfpffb\":\"dataeergvypaxpjpy\"}},\"parameters\":{\"gzyojfchicpare\":{\"type\":\"Array\",\"defaultValue\":\"datavmcgm\"},\"ojuxil\":{\"type\":\"Bool\",\"defaultValue\":\"dataksgqhb\"},\"fldfljwt\":{\"type\":\"Object\",\"defaultValue\":\"datalkc\"}},\"annotations\":[\"datatsflotumbm\",\"datagftshfgmuxuqiags\",\"dataoikuqirhsk\",\"datapaowkgvnlfueyxfz\"],\"folder\":{\"name\":\"lrjugcfebpiucenb\"},\"\":{\"lsxr\":\"datalldfknbdzw\"}}") - .toObject(AmazonMwsObjectDataset.class); - Assertions.assertEquals("lxcltjhbcycg", model.description()); - Assertions.assertEquals("pxpry", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("gzyojfchicpare").type()); - Assertions.assertEquals("lrjugcfebpiucenb", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AmazonMwsObjectDataset model = - new AmazonMwsObjectDataset() - .withDescription("lxcltjhbcycg") - .withStructure("datakcsihxvta") - .withSchema("datawf") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("pxpry") - .withParameters( - mapOf( - "gugwlux", - "databubwhzq", - "mkdhwqcqweba", - "datahtq", - "phujeucosvk", - "datamfpk", - "llgnueezfpffb", - "dataeergvypaxpjpy"))) - .withParameters( - mapOf( - "gzyojfchicpare", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datavmcgm"), - "ojuxil", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("dataksgqhb"), - "fldfljwt", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datalkc"))) - .withAnnotations( - Arrays.asList("datatsflotumbm", "datagftshfgmuxuqiags", "dataoikuqirhsk", "datapaowkgvnlfueyxfz")) - .withFolder(new DatasetFolder().withName("lrjugcfebpiucenb")) - .withTableName("datan"); - model = BinaryData.fromObject(model).toObject(AmazonMwsObjectDataset.class); - Assertions.assertEquals("lxcltjhbcycg", model.description()); - Assertions.assertEquals("pxpry", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("gzyojfchicpare").type()); - Assertions.assertEquals("lrjugcfebpiucenb", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonMwsSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonMwsSourceTests.java deleted file mode 100644 index 573eb9a440bc..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonMwsSourceTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AmazonMwsSource; - -public final class AmazonMwsSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AmazonMwsSource model = - BinaryData - .fromString( - "{\"type\":\"AmazonMWSSource\",\"query\":\"dataexhimvlocdxvh\",\"queryTimeout\":\"databidhhipntrdd\",\"additionalColumns\":\"dataiwanvydgmqscijlf\",\"sourceRetryCount\":\"dataxgnzasvpm\",\"sourceRetryWait\":\"dataooqyp\",\"maxConcurrentConnections\":\"datalm\",\"disableMetricsCollection\":\"dataebv\",\"\":{\"bvbexrbynnl\":\"dataoyde\",\"bosacrnpscfkef\":\"dataddhdklwzzsic\",\"gecehennledhouk\":\"dataltxefamimgjuvjv\"}}") - .toObject(AmazonMwsSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AmazonMwsSource model = - new AmazonMwsSource() - .withSourceRetryCount("dataxgnzasvpm") - .withSourceRetryWait("dataooqyp") - .withMaxConcurrentConnections("datalm") - .withDisableMetricsCollection("dataebv") - .withQueryTimeout("databidhhipntrdd") - .withAdditionalColumns("dataiwanvydgmqscijlf") - .withQuery("dataexhimvlocdxvh"); - model = BinaryData.fromObject(model).toObject(AmazonMwsSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRdsForOraclePartitionSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRdsForOraclePartitionSettingsTests.java deleted file mode 100644 index c4c78815e441..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRdsForOraclePartitionSettingsTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AmazonRdsForOraclePartitionSettings; - -public final class AmazonRdsForOraclePartitionSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AmazonRdsForOraclePartitionSettings model = - BinaryData - .fromString( - "{\"partitionNames\":\"datacyhfubzixqxxgra\",\"partitionColumnName\":\"dataftzn\",\"partitionUpperBound\":\"datarfhj\",\"partitionLowerBound\":\"dataiutbrnr\"}") - .toObject(AmazonRdsForOraclePartitionSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AmazonRdsForOraclePartitionSettings model = - new AmazonRdsForOraclePartitionSettings() - .withPartitionNames("datacyhfubzixqxxgra") - .withPartitionColumnName("dataftzn") - .withPartitionUpperBound("datarfhj") - .withPartitionLowerBound("dataiutbrnr"); - model = BinaryData.fromObject(model).toObject(AmazonRdsForOraclePartitionSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRdsForOracleSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRdsForOracleSourceTests.java deleted file mode 100644 index 98fb3496cb4e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRdsForOracleSourceTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AmazonRdsForOraclePartitionSettings; -import com.azure.resourcemanager.datafactory.models.AmazonRdsForOracleSource; - -public final class AmazonRdsForOracleSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AmazonRdsForOracleSource model = - BinaryData - .fromString( - "{\"type\":\"AmazonRdsForOracleSource\",\"oracleReaderQuery\":\"datatjbldgikokjwgej\",\"queryTimeout\":\"datauzezwnqhcpkjgsy\",\"partitionOption\":\"datadt\",\"partitionSettings\":{\"partitionNames\":\"dataqcutk\",\"partitionColumnName\":\"datarourtmccdejtoypl\",\"partitionUpperBound\":\"datavjutckfhmdcvlb\",\"partitionLowerBound\":\"dataezvujpbmz\"},\"additionalColumns\":\"datalgm\",\"sourceRetryCount\":\"dataxwkkbnhmdtj\",\"sourceRetryWait\":\"datapfoispchhvvmvs\",\"maxConcurrentConnections\":\"datayqdhaz\",\"disableMetricsCollection\":\"dataug\",\"\":{\"ubobqqnwhcmvdow\":\"dataovozyepkrncjrqhu\"}}") - .toObject(AmazonRdsForOracleSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AmazonRdsForOracleSource model = - new AmazonRdsForOracleSource() - .withSourceRetryCount("dataxwkkbnhmdtj") - .withSourceRetryWait("datapfoispchhvvmvs") - .withMaxConcurrentConnections("datayqdhaz") - .withDisableMetricsCollection("dataug") - .withOracleReaderQuery("datatjbldgikokjwgej") - .withQueryTimeout("datauzezwnqhcpkjgsy") - .withPartitionOption("datadt") - .withPartitionSettings( - new AmazonRdsForOraclePartitionSettings() - .withPartitionNames("dataqcutk") - .withPartitionColumnName("datarourtmccdejtoypl") - .withPartitionUpperBound("datavjutckfhmdcvlb") - .withPartitionLowerBound("dataezvujpbmz")) - .withAdditionalColumns("datalgm"); - model = BinaryData.fromObject(model).toObject(AmazonRdsForOracleSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRdsForOracleTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRdsForOracleTableDatasetTests.java deleted file mode 100644 index b6d35e5f686d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRdsForOracleTableDatasetTests.java +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AmazonRdsForOracleTableDataset; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AmazonRdsForOracleTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AmazonRdsForOracleTableDataset model = - BinaryData - .fromString( - "{\"type\":\"AmazonRdsForOracleTable\",\"typeProperties\":{\"schema\":\"dataipvwkauj\",\"table\":\"dataw\"},\"description\":\"ox\",\"structure\":\"datawofxxdplrel\",\"schema\":\"datavga\",\"linkedServiceName\":{\"referenceName\":\"cbtuxlbpxrhrfjen\",\"parameters\":{\"jixy\":\"datawefiktlhqashtos\",\"acfvvtdpcbpzf\":\"datasecigzzdwj\",\"fiwltkfysu\":\"datamcsaugbr\"}},\"parameters\":{\"hcvasyy\":{\"type\":\"Array\",\"defaultValue\":\"dataklx\"},\"ixyxxhwrlqomaqs\":{\"type\":\"Array\",\"defaultValue\":\"dataokjbmsr\"},\"zozsxag\":{\"type\":\"Bool\",\"defaultValue\":\"datapzzbrwn\"}},\"annotations\":[\"datak\"],\"folder\":{\"name\":\"ksybvrrbnhylsb\"},\"\":{\"stizsyqag\":\"datacydyllmxv\",\"dylkyhtr\":\"datallcbrva\",\"ogykugdlavsav\":\"dataqwfyybptmjjr\"}}") - .toObject(AmazonRdsForOracleTableDataset.class); - Assertions.assertEquals("ox", model.description()); - Assertions.assertEquals("cbtuxlbpxrhrfjen", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("hcvasyy").type()); - Assertions.assertEquals("ksybvrrbnhylsb", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AmazonRdsForOracleTableDataset model = - new AmazonRdsForOracleTableDataset() - .withDescription("ox") - .withStructure("datawofxxdplrel") - .withSchema("datavga") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("cbtuxlbpxrhrfjen") - .withParameters( - mapOf( - "jixy", - "datawefiktlhqashtos", - "acfvvtdpcbpzf", - "datasecigzzdwj", - "fiwltkfysu", - "datamcsaugbr"))) - .withParameters( - mapOf( - "hcvasyy", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("dataklx"), - "ixyxxhwrlqomaqs", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("dataokjbmsr"), - "zozsxag", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datapzzbrwn"))) - .withAnnotations(Arrays.asList("datak")) - .withFolder(new DatasetFolder().withName("ksybvrrbnhylsb")) - .withSchemaTypePropertiesSchema("dataipvwkauj") - .withTable("dataw"); - model = BinaryData.fromObject(model).toObject(AmazonRdsForOracleTableDataset.class); - Assertions.assertEquals("ox", model.description()); - Assertions.assertEquals("cbtuxlbpxrhrfjen", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("hcvasyy").type()); - Assertions.assertEquals("ksybvrrbnhylsb", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRdsForOracleTableDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRdsForOracleTableDatasetTypePropertiesTests.java deleted file mode 100644 index c4520b97b1bc..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRdsForOracleTableDatasetTypePropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.AmazonRdsForOracleTableDatasetTypeProperties; - -public final class AmazonRdsForOracleTableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AmazonRdsForOracleTableDatasetTypeProperties model = - BinaryData - .fromString("{\"schema\":\"datahk\",\"table\":\"datageuufkb\"}") - .toObject(AmazonRdsForOracleTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AmazonRdsForOracleTableDatasetTypeProperties model = - new AmazonRdsForOracleTableDatasetTypeProperties().withSchema("datahk").withTable("datageuufkb"); - model = BinaryData.fromObject(model).toObject(AmazonRdsForOracleTableDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRdsForSqlServerSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRdsForSqlServerSourceTests.java deleted file mode 100644 index 5f22b459f163..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRdsForSqlServerSourceTests.java +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AmazonRdsForSqlServerSource; -import com.azure.resourcemanager.datafactory.models.SqlPartitionSettings; - -public final class AmazonRdsForSqlServerSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AmazonRdsForSqlServerSource model = - BinaryData - .fromString( - "{\"type\":\"AmazonRdsForSqlServerSource\",\"sqlReaderQuery\":\"datajzpvckhbutmxtijs\",\"sqlReaderStoredProcedureName\":\"datatdp\",\"storedProcedureParameters\":\"datajtwibwcd\",\"isolationLevel\":\"datamnswxq\",\"produceAdditionalTypes\":\"datahffcanvrdtdl\",\"partitionOption\":\"datamgghutl\",\"partitionSettings\":{\"partitionColumnName\":\"datazljyogcpw\",\"partitionUpperBound\":\"datagpbi\",\"partitionLowerBound\":\"datanxhq\"},\"queryTimeout\":\"datajmfolqdikuv\",\"additionalColumns\":\"datalsp\",\"sourceRetryCount\":\"dataghkflwnl\",\"sourceRetryWait\":\"dataawtpwnk\",\"maxConcurrentConnections\":\"dataxl\",\"disableMetricsCollection\":\"dataqnil\",\"\":{\"rfdml\":\"dataygvsfafc\",\"cufc\":\"dataeqdw\",\"clcnxfofwqd\":\"datahq\"}}") - .toObject(AmazonRdsForSqlServerSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AmazonRdsForSqlServerSource model = - new AmazonRdsForSqlServerSource() - .withSourceRetryCount("dataghkflwnl") - .withSourceRetryWait("dataawtpwnk") - .withMaxConcurrentConnections("dataxl") - .withDisableMetricsCollection("dataqnil") - .withQueryTimeout("datajmfolqdikuv") - .withAdditionalColumns("datalsp") - .withSqlReaderQuery("datajzpvckhbutmxtijs") - .withSqlReaderStoredProcedureName("datatdp") - .withStoredProcedureParameters("datajtwibwcd") - .withIsolationLevel("datamnswxq") - .withProduceAdditionalTypes("datahffcanvrdtdl") - .withPartitionOption("datamgghutl") - .withPartitionSettings( - new SqlPartitionSettings() - .withPartitionColumnName("datazljyogcpw") - .withPartitionUpperBound("datagpbi") - .withPartitionLowerBound("datanxhq")); - model = BinaryData.fromObject(model).toObject(AmazonRdsForSqlServerSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRdsForSqlServerTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRdsForSqlServerTableDatasetTests.java deleted file mode 100644 index 89a2af02087b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRdsForSqlServerTableDatasetTests.java +++ /dev/null @@ -1,71 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AmazonRdsForSqlServerTableDataset; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AmazonRdsForSqlServerTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AmazonRdsForSqlServerTableDataset model = - BinaryData - .fromString( - "{\"type\":\"AmazonRdsForSqlServerTable\",\"typeProperties\":{\"schema\":\"datamhbtqyzycgcmbkyg\",\"table\":\"datajdqosxzmdzlybqfu\"},\"description\":\"ekzfkicx\",\"structure\":\"dataevmnk\",\"schema\":\"datahvsr\",\"linkedServiceName\":{\"referenceName\":\"jokvlwvbjsa\",\"parameters\":{\"a\":\"datavmf\",\"dhgxgiea\":\"datawbpzgfgqp\"}},\"parameters\":{\"uhwyxjsfmaxcebn\":{\"type\":\"Object\",\"defaultValue\":\"dataxavlozukgs\"},\"xpjpvemdf\":{\"type\":\"Bool\",\"defaultValue\":\"dataskemqqerw\"}},\"annotations\":[\"datatu\",\"databrxz\",\"datahyt\"],\"folder\":{\"name\":\"kjgeecwtfma\"},\"\":{\"sl\":\"datamnhtwofxfmhlvyq\",\"iekhjgqq\":\"dataqrmlq\",\"luwozf\":\"dataugwespscvsmsp\"}}") - .toObject(AmazonRdsForSqlServerTableDataset.class); - Assertions.assertEquals("ekzfkicx", model.description()); - Assertions.assertEquals("jokvlwvbjsa", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("uhwyxjsfmaxcebn").type()); - Assertions.assertEquals("kjgeecwtfma", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AmazonRdsForSqlServerTableDataset model = - new AmazonRdsForSqlServerTableDataset() - .withDescription("ekzfkicx") - .withStructure("dataevmnk") - .withSchema("datahvsr") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("jokvlwvbjsa") - .withParameters(mapOf("a", "datavmf", "dhgxgiea", "datawbpzgfgqp"))) - .withParameters( - mapOf( - "uhwyxjsfmaxcebn", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("dataxavlozukgs"), - "xpjpvemdf", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("dataskemqqerw"))) - .withAnnotations(Arrays.asList("datatu", "databrxz", "datahyt")) - .withFolder(new DatasetFolder().withName("kjgeecwtfma")) - .withSchemaTypePropertiesSchema("datamhbtqyzycgcmbkyg") - .withTable("datajdqosxzmdzlybqfu"); - model = BinaryData.fromObject(model).toObject(AmazonRdsForSqlServerTableDataset.class); - Assertions.assertEquals("ekzfkicx", model.description()); - Assertions.assertEquals("jokvlwvbjsa", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("uhwyxjsfmaxcebn").type()); - Assertions.assertEquals("kjgeecwtfma", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRdsForSqlServerTableDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRdsForSqlServerTableDatasetTypePropertiesTests.java deleted file mode 100644 index 364870fcd8d0..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRdsForSqlServerTableDatasetTypePropertiesTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.AmazonRdsForSqlServerTableDatasetTypeProperties; - -public final class AmazonRdsForSqlServerTableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AmazonRdsForSqlServerTableDatasetTypeProperties model = - BinaryData - .fromString("{\"schema\":\"dataasupcvqgxcvwio\",\"table\":\"datacmcgmlmpnvq\"}") - .toObject(AmazonRdsForSqlServerTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AmazonRdsForSqlServerTableDatasetTypeProperties model = - new AmazonRdsForSqlServerTableDatasetTypeProperties() - .withSchema("dataasupcvqgxcvwio") - .withTable("datacmcgmlmpnvq"); - model = BinaryData.fromObject(model).toObject(AmazonRdsForSqlServerTableDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRedshiftSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRedshiftSourceTests.java deleted file mode 100644 index 8ea64cc84bb8..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRedshiftSourceTests.java +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AmazonRedshiftSource; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.RedshiftUnloadSettings; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AmazonRedshiftSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AmazonRedshiftSource model = - BinaryData - .fromString( - "{\"type\":\"AmazonRedshiftSource\",\"query\":\"datafcxdldhhkdeviw\",\"redshiftUnloadSettings\":{\"s3LinkedServiceName\":{\"referenceName\":\"hfxvl\",\"parameters\":{\"tuujcuavctxyrmws\":\"datarhsmghh\",\"cnn\":\"datarzmy\"}},\"bucketName\":\"dataajxv\"},\"queryTimeout\":\"dataidlwmewrgu\",\"additionalColumns\":\"dataugpkunvygupgnnvm\",\"sourceRetryCount\":\"datazqmxwwmekms\",\"sourceRetryWait\":\"datafjbefszfrxfy\",\"maxConcurrentConnections\":\"dataypxcqmdeecd\",\"disableMetricsCollection\":\"datajsizyhp\",\"\":{\"kqtfyuy\":\"datakgrtwhmadhismw\",\"tzgew\":\"dataybshchxuea\",\"fsewusqupkrr\":\"dataqwibtkrhcgbzr\"}}") - .toObject(AmazonRedshiftSource.class); - Assertions.assertEquals("hfxvl", model.redshiftUnloadSettings().s3LinkedServiceName().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AmazonRedshiftSource model = - new AmazonRedshiftSource() - .withSourceRetryCount("datazqmxwwmekms") - .withSourceRetryWait("datafjbefszfrxfy") - .withMaxConcurrentConnections("dataypxcqmdeecd") - .withDisableMetricsCollection("datajsizyhp") - .withQueryTimeout("dataidlwmewrgu") - .withAdditionalColumns("dataugpkunvygupgnnvm") - .withQuery("datafcxdldhhkdeviw") - .withRedshiftUnloadSettings( - new RedshiftUnloadSettings() - .withS3LinkedServiceName( - new LinkedServiceReference() - .withReferenceName("hfxvl") - .withParameters(mapOf("tuujcuavctxyrmws", "datarhsmghh", "cnn", "datarzmy"))) - .withBucketName("dataajxv")); - model = BinaryData.fromObject(model).toObject(AmazonRedshiftSource.class); - Assertions.assertEquals("hfxvl", model.redshiftUnloadSettings().s3LinkedServiceName().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRedshiftTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRedshiftTableDatasetTests.java deleted file mode 100644 index 5b41660d8e13..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRedshiftTableDatasetTests.java +++ /dev/null @@ -1,77 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AmazonRedshiftTableDataset; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AmazonRedshiftTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AmazonRedshiftTableDataset model = - BinaryData - .fromString( - "{\"type\":\"AmazonRedshiftTable\",\"typeProperties\":{\"tableName\":\"datamhidyliuajkln\",\"table\":\"datagdnxqeon\",\"schema\":\"datarjjaojpz\"},\"description\":\"d\",\"structure\":\"dataigecwsadsqyuddkh\",\"schema\":\"datadmohheuyu\",\"linkedServiceName\":{\"referenceName\":\"nxmyevyigde\",\"parameters\":{\"ejwli\":\"datafi\"}},\"parameters\":{\"pqokhdyncra\":{\"type\":\"Bool\",\"defaultValue\":\"datajzwhajod\"},\"m\":{\"type\":\"Int\",\"defaultValue\":\"dataewb\"},\"clmslnunkqvz\":{\"type\":\"Int\",\"defaultValue\":\"datapmqnmelyksygih\"}},\"annotations\":[\"databajdexquawexi\",\"databfzetjizwh\",\"datanbmajvvyxtvvx\",\"dataakzixb\"],\"folder\":{\"name\":\"bfmlngfwhrmvlakn\"},\"\":{\"zblxna\":\"datawxn\",\"kovohwvpr\":\"datahsmfndcbsyhludzj\",\"cntjna\":\"datafdvtdurmdt\"}}") - .toObject(AmazonRedshiftTableDataset.class); - Assertions.assertEquals("d", model.description()); - Assertions.assertEquals("nxmyevyigde", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("pqokhdyncra").type()); - Assertions.assertEquals("bfmlngfwhrmvlakn", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AmazonRedshiftTableDataset model = - new AmazonRedshiftTableDataset() - .withDescription("d") - .withStructure("dataigecwsadsqyuddkh") - .withSchema("datadmohheuyu") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("nxmyevyigde") - .withParameters(mapOf("ejwli", "datafi"))) - .withParameters( - mapOf( - "pqokhdyncra", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datajzwhajod"), - "m", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("dataewb"), - "clmslnunkqvz", - new ParameterSpecification() - .withType(ParameterType.INT) - .withDefaultValue("datapmqnmelyksygih"))) - .withAnnotations( - Arrays.asList("databajdexquawexi", "databfzetjizwh", "datanbmajvvyxtvvx", "dataakzixb")) - .withFolder(new DatasetFolder().withName("bfmlngfwhrmvlakn")) - .withTableName("datamhidyliuajkln") - .withTable("datagdnxqeon") - .withSchemaTypePropertiesSchema("datarjjaojpz"); - model = BinaryData.fromObject(model).toObject(AmazonRedshiftTableDataset.class); - Assertions.assertEquals("d", model.description()); - Assertions.assertEquals("nxmyevyigde", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("pqokhdyncra").type()); - Assertions.assertEquals("bfmlngfwhrmvlakn", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRedshiftTableDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRedshiftTableDatasetTypePropertiesTests.java deleted file mode 100644 index 779a174ba4e2..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRedshiftTableDatasetTypePropertiesTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.AmazonRedshiftTableDatasetTypeProperties; - -public final class AmazonRedshiftTableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AmazonRedshiftTableDatasetTypeProperties model = - BinaryData - .fromString( - "{\"tableName\":\"datahvqiiasbtwskkf\",\"table\":\"datayikmxhhqsxjbjk\",\"schema\":\"datariglb\"}") - .toObject(AmazonRedshiftTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AmazonRedshiftTableDatasetTypeProperties model = - new AmazonRedshiftTableDatasetTypeProperties() - .withTableName("datahvqiiasbtwskkf") - .withTable("datayikmxhhqsxjbjk") - .withSchema("datariglb"); - model = BinaryData.fromObject(model).toObject(AmazonRedshiftTableDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonS3CompatibleLocationTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonS3CompatibleLocationTests.java deleted file mode 100644 index 4eb44a13b7b0..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonS3CompatibleLocationTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AmazonS3CompatibleLocation; - -public final class AmazonS3CompatibleLocationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AmazonS3CompatibleLocation model = - BinaryData - .fromString( - "{\"type\":\"AmazonS3CompatibleLocation\",\"bucketName\":\"dataxtpzdlyse\",\"version\":\"datatoakatprytgrhz\",\"folderPath\":\"datafdpfawrptvcsht\",\"fileName\":\"datatzc\",\"\":{\"m\":\"dataqgdirda\",\"bwjjirmuydgf\":\"datazjgcfjfx\"}}") - .toObject(AmazonS3CompatibleLocation.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AmazonS3CompatibleLocation model = - new AmazonS3CompatibleLocation() - .withFolderPath("datafdpfawrptvcsht") - .withFileName("datatzc") - .withBucketName("dataxtpzdlyse") - .withVersion("datatoakatprytgrhz"); - model = BinaryData.fromObject(model).toObject(AmazonS3CompatibleLocation.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonS3CompatibleReadSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonS3CompatibleReadSettingsTests.java deleted file mode 100644 index 69710ad4c39b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonS3CompatibleReadSettingsTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AmazonS3CompatibleReadSettings; - -public final class AmazonS3CompatibleReadSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AmazonS3CompatibleReadSettings model = - BinaryData - .fromString( - "{\"type\":\"AmazonS3CompatibleReadSettings\",\"recursive\":\"datagd\",\"wildcardFolderPath\":\"datajkoxlccjdooy\",\"wildcardFileName\":\"dataozzo\",\"prefix\":\"datadjhqqlbwid\",\"fileListPath\":\"datadftbxruu\",\"enablePartitionDiscovery\":\"dataaarrrgjnqkuca\",\"partitionRootPath\":\"datanpwgchl\",\"deleteFilesAfterCompletion\":\"datattxfitt\",\"modifiedDatetimeStart\":\"dataaxq\",\"modifiedDatetimeEnd\":\"dataflnl\",\"maxConcurrentConnections\":\"dataacss\",\"disableMetricsCollection\":\"datallfukqurrtcfgq\",\"\":{\"vymo\":\"datayrsleghozsmjj\",\"sxv\":\"dataryyyvlxmspjqa\"}}") - .toObject(AmazonS3CompatibleReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AmazonS3CompatibleReadSettings model = - new AmazonS3CompatibleReadSettings() - .withMaxConcurrentConnections("dataacss") - .withDisableMetricsCollection("datallfukqurrtcfgq") - .withRecursive("datagd") - .withWildcardFolderPath("datajkoxlccjdooy") - .withWildcardFileName("dataozzo") - .withPrefix("datadjhqqlbwid") - .withFileListPath("datadftbxruu") - .withEnablePartitionDiscovery("dataaarrrgjnqkuca") - .withPartitionRootPath("datanpwgchl") - .withDeleteFilesAfterCompletion("datattxfitt") - .withModifiedDatetimeStart("dataaxq") - .withModifiedDatetimeEnd("dataflnl"); - model = BinaryData.fromObject(model).toObject(AmazonS3CompatibleReadSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonS3LocationTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonS3LocationTests.java deleted file mode 100644 index 53ff872a3cfe..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonS3LocationTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AmazonS3Location; - -public final class AmazonS3LocationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AmazonS3Location model = - BinaryData - .fromString( - "{\"type\":\"AmazonS3Location\",\"bucketName\":\"dataae\",\"version\":\"datacflwtjdtlr\",\"folderPath\":\"datafooy\",\"fileName\":\"datauxdtzcq\",\"\":{\"lantolamlb\":\"datadudgcozzomeh\",\"z\":\"datajuxkqll\"}}") - .toObject(AmazonS3Location.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AmazonS3Location model = - new AmazonS3Location() - .withFolderPath("datafooy") - .withFileName("datauxdtzcq") - .withBucketName("dataae") - .withVersion("datacflwtjdtlr"); - model = BinaryData.fromObject(model).toObject(AmazonS3Location.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonS3ReadSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonS3ReadSettingsTests.java deleted file mode 100644 index 0b497e3654e6..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonS3ReadSettingsTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AmazonS3ReadSettings; - -public final class AmazonS3ReadSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AmazonS3ReadSettings model = - BinaryData - .fromString( - "{\"type\":\"AmazonS3ReadSettings\",\"recursive\":\"datawkqztqrnreyj\",\"wildcardFolderPath\":\"datanrweevtu\",\"wildcardFileName\":\"datadclugvs\",\"prefix\":\"datapsy\",\"fileListPath\":\"datagaaymfkexhiwmklj\",\"enablePartitionDiscovery\":\"datagxcewz\",\"partitionRootPath\":\"dataxz\",\"deleteFilesAfterCompletion\":\"datatcrccttedzyz\",\"modifiedDatetimeStart\":\"datasjuthsy\",\"modifiedDatetimeEnd\":\"datafilnc\",\"maxConcurrentConnections\":\"datankpxefmpzdwer\",\"disableMetricsCollection\":\"datakzxdlu\",\"\":{\"avpglntnsiuxyit\":\"dataptmndzbfo\",\"gomhenqnov\":\"datawsdxyzgrrllzx\"}}") - .toObject(AmazonS3ReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AmazonS3ReadSettings model = - new AmazonS3ReadSettings() - .withMaxConcurrentConnections("datankpxefmpzdwer") - .withDisableMetricsCollection("datakzxdlu") - .withRecursive("datawkqztqrnreyj") - .withWildcardFolderPath("datanrweevtu") - .withWildcardFileName("datadclugvs") - .withPrefix("datapsy") - .withFileListPath("datagaaymfkexhiwmklj") - .withEnablePartitionDiscovery("datagxcewz") - .withPartitionRootPath("dataxz") - .withDeleteFilesAfterCompletion("datatcrccttedzyz") - .withModifiedDatetimeStart("datasjuthsy") - .withModifiedDatetimeEnd("datafilnc"); - model = BinaryData.fromObject(model).toObject(AmazonS3ReadSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AppendVariableActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AppendVariableActivityTests.java deleted file mode 100644 index 1f41e1947658..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AppendVariableActivityTests.java +++ /dev/null @@ -1,110 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.AppendVariableActivity; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AppendVariableActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AppendVariableActivity model = - BinaryData - .fromString( - "{\"type\":\"AppendVariable\",\"typeProperties\":{\"variableName\":\"ubsaskgi\",\"value\":\"datailbiwacxldho\"},\"name\":\"cdpwxh\",\"description\":\"vtbgznpxa\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"hikmfzdlhp\",\"dependencyConditions\":[\"Skipped\",\"Completed\",\"Skipped\"],\"\":{\"pfku\":\"dataiaztmxwmjaevwidn\",\"y\":\"datahwdirt\",\"dykxgcfhv\":\"dataaqya\"}},{\"activity\":\"ynsyhz\",\"dependencyConditions\":[\"Completed\",\"Skipped\",\"Failed\"],\"\":{\"ujhjbfoemmj\":\"dataycraryxrtt\",\"vvpxhdefydit\":\"datastlg\",\"a\":\"datajm\"}},{\"activity\":\"jyqhcowouoih\",\"dependencyConditions\":[\"Succeeded\",\"Skipped\",\"Completed\",\"Failed\"],\"\":{\"hjpsgprlmpz\":\"datab\",\"hvphkdciyidzb\":\"dataaiakyflr\"}},{\"activity\":\"fwlxxwpyzbgstml\",\"dependencyConditions\":[\"Succeeded\"],\"\":{\"kkengowcut\":\"datagcazyni\",\"ouichoiimennxvqj\":\"datahmxmjm\",\"efszuu\":\"datakqdqn\"}}],\"userProperties\":[{\"name\":\"esfggheqllrpcqy\",\"value\":\"dataq\"},{\"name\":\"krvmvdqhag\",\"value\":\"datahohqe\"},{\"name\":\"tlsipedgtupkm\",\"value\":\"dataxeubngwidgxypdo\"}],\"\":{\"ivybl\":\"datahmcmfvyh\",\"k\":\"datao\"}}") - .toObject(AppendVariableActivity.class); - Assertions.assertEquals("cdpwxh", model.name()); - Assertions.assertEquals("vtbgznpxa", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("hikmfzdlhp", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SKIPPED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("esfggheqllrpcqy", model.userProperties().get(0).name()); - Assertions.assertEquals("ubsaskgi", model.variableName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AppendVariableActivity model = - new AppendVariableActivity() - .withName("cdpwxh") - .withDescription("vtbgznpxa") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("hikmfzdlhp") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.SKIPPED, - DependencyCondition.COMPLETED, - DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("ynsyhz") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.COMPLETED, - DependencyCondition.SKIPPED, - DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("jyqhcowouoih") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.SUCCEEDED, - DependencyCondition.SKIPPED, - DependencyCondition.COMPLETED, - DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("fwlxxwpyzbgstml") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays - .asList( - new UserProperty().withName("esfggheqllrpcqy").withValue("dataq"), - new UserProperty().withName("krvmvdqhag").withValue("datahohqe"), - new UserProperty().withName("tlsipedgtupkm").withValue("dataxeubngwidgxypdo"))) - .withVariableName("ubsaskgi") - .withValue("datailbiwacxldho"); - model = BinaryData.fromObject(model).toObject(AppendVariableActivity.class); - Assertions.assertEquals("cdpwxh", model.name()); - Assertions.assertEquals("vtbgznpxa", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("hikmfzdlhp", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SKIPPED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("esfggheqllrpcqy", model.userProperties().get(0).name()); - Assertions.assertEquals("ubsaskgi", model.variableName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AppendVariableActivityTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AppendVariableActivityTypePropertiesTests.java deleted file mode 100644 index be1c4348f717..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AppendVariableActivityTypePropertiesTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.AppendVariableActivityTypeProperties; -import org.junit.jupiter.api.Assertions; - -public final class AppendVariableActivityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AppendVariableActivityTypeProperties model = - BinaryData - .fromString("{\"variableName\":\"voprgcsjycor\",\"value\":\"databwsfxkudicw\"}") - .toObject(AppendVariableActivityTypeProperties.class); - Assertions.assertEquals("voprgcsjycor", model.variableName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AppendVariableActivityTypeProperties model = - new AppendVariableActivityTypeProperties().withVariableName("voprgcsjycor").withValue("databwsfxkudicw"); - model = BinaryData.fromObject(model).toObject(AppendVariableActivityTypeProperties.class); - Assertions.assertEquals("voprgcsjycor", model.variableName()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ArmIdWrapperTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ArmIdWrapperTests.java deleted file mode 100644 index 2ad9684df250..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ArmIdWrapperTests.java +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ArmIdWrapper; - -public final class ArmIdWrapperTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ArmIdWrapper model = BinaryData.fromString("{\"id\":\"z\"}").toObject(ArmIdWrapper.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ArmIdWrapper model = new ArmIdWrapper(); - model = BinaryData.fromObject(model).toObject(ArmIdWrapper.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AvroFormatTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AvroFormatTests.java deleted file mode 100644 index d01d18af5137..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AvroFormatTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AvroFormat; - -public final class AvroFormatTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AvroFormat model = - BinaryData - .fromString( - "{\"type\":\"AvroFormat\",\"serializer\":\"dataugxwjwilmqrslaat\",\"deserializer\":\"datatwujjzgx\",\"\":{\"hvtqqykbkk\":\"datawlxrhgt\",\"vmcofn\":\"dataeozejogmkorvv\"}}") - .toObject(AvroFormat.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AvroFormat model = new AvroFormat().withSerializer("dataugxwjwilmqrslaat").withDeserializer("datatwujjzgx"); - model = BinaryData.fromObject(model).toObject(AvroFormat.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AvroSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AvroSinkTests.java deleted file mode 100644 index 761d2dfd0ab5..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AvroSinkTests.java +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AvroSink; -import com.azure.resourcemanager.datafactory.models.AvroWriteSettings; -import com.azure.resourcemanager.datafactory.models.StoreWriteSettings; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AvroSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AvroSink model = - BinaryData - .fromString( - "{\"type\":\"AvroSink\",\"storeSettings\":{\"type\":\"StoreWriteSettings\",\"maxConcurrentConnections\":\"dataaeiepvjr\",\"disableMetricsCollection\":\"dataksx\",\"copyBehavior\":\"datakb\",\"\":{\"hjyahrmuwvsdyruo\":\"dataawokr\",\"qgpldrn\":\"dataidtxmbnmjimggz\",\"sbetzufkvxerbd\":\"datajhdbnfb\"}},\"formatSettings\":{\"type\":\"AvroWriteSettings\",\"recordName\":\"ngdctmjz\",\"recordNamespace\":\"aeu\",\"maxRowsPerFile\":\"datagvheqzlqevas\",\"fileNamePrefix\":\"datagoodfh\",\"\":{\"jlizlzxh\":\"dataegdynydd\",\"sjwawl\":\"datacuglgmfznholaf\",\"yk\":\"dataqmznkcwiok\"}},\"writeBatchSize\":\"dataxmobnehbbchtcoel\",\"writeBatchTimeout\":\"datafnpxumgnjmsk\",\"sinkRetryCount\":\"dataeuogjiowande\",\"sinkRetryWait\":\"dataebpalz\",\"maxConcurrentConnections\":\"dataptg\",\"disableMetricsCollection\":\"datarz\",\"\":{\"rzilvcncdazw\":\"datafdsvmpt\",\"gvfgme\":\"datalgoravovqpnxpufv\",\"dkqfjzgyzj\":\"datafyelfxlbkbh\"}}") - .toObject(AvroSink.class); - Assertions.assertEquals("ngdctmjz", model.formatSettings().recordName()); - Assertions.assertEquals("aeu", model.formatSettings().recordNamespace()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AvroSink model = - new AvroSink() - .withWriteBatchSize("dataxmobnehbbchtcoel") - .withWriteBatchTimeout("datafnpxumgnjmsk") - .withSinkRetryCount("dataeuogjiowande") - .withSinkRetryWait("dataebpalz") - .withMaxConcurrentConnections("dataptg") - .withDisableMetricsCollection("datarz") - .withStoreSettings( - new StoreWriteSettings() - .withMaxConcurrentConnections("dataaeiepvjr") - .withDisableMetricsCollection("dataksx") - .withCopyBehavior("datakb") - .withAdditionalProperties(mapOf("type", "StoreWriteSettings"))) - .withFormatSettings( - new AvroWriteSettings() - .withRecordName("ngdctmjz") - .withRecordNamespace("aeu") - .withMaxRowsPerFile("datagvheqzlqevas") - .withFileNamePrefix("datagoodfh")); - model = BinaryData.fromObject(model).toObject(AvroSink.class); - Assertions.assertEquals("ngdctmjz", model.formatSettings().recordName()); - Assertions.assertEquals("aeu", model.formatSettings().recordNamespace()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AvroSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AvroSourceTests.java deleted file mode 100644 index ad20c4f07f9a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AvroSourceTests.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AvroSource; -import com.azure.resourcemanager.datafactory.models.StoreReadSettings; -import java.util.HashMap; -import java.util.Map; - -public final class AvroSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AvroSource model = - BinaryData - .fromString( - "{\"type\":\"AvroSource\",\"storeSettings\":{\"type\":\"StoreReadSettings\",\"maxConcurrentConnections\":\"datacjmsrorjbyyxkc\",\"disableMetricsCollection\":\"datahvb\",\"\":{\"ivwven\":\"datat\",\"gjyho\":\"dataicyctak\",\"chvskq\":\"datasmahb\"}},\"additionalColumns\":\"databigozrvlkl\",\"sourceRetryCount\":\"datarlysseo\",\"sourceRetryWait\":\"datapgs\",\"maxConcurrentConnections\":\"datanjgmogmc\",\"disableMetricsCollection\":\"dataqzukbwyp\",\"\":{\"lw\":\"datafzvyoxgeriz\",\"oqmwpmrlg\":\"datakovopqpfcdp\",\"vamvrejkvci\":\"datajqsxfp\"}}") - .toObject(AvroSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AvroSource model = - new AvroSource() - .withSourceRetryCount("datarlysseo") - .withSourceRetryWait("datapgs") - .withMaxConcurrentConnections("datanjgmogmc") - .withDisableMetricsCollection("dataqzukbwyp") - .withStoreSettings( - new StoreReadSettings() - .withMaxConcurrentConnections("datacjmsrorjbyyxkc") - .withDisableMetricsCollection("datahvb") - .withAdditionalProperties(mapOf("type", "StoreReadSettings"))) - .withAdditionalColumns("databigozrvlkl"); - model = BinaryData.fromObject(model).toObject(AvroSource.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AvroWriteSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AvroWriteSettingsTests.java deleted file mode 100644 index 71461c0b589b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AvroWriteSettingsTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AvroWriteSettings; -import org.junit.jupiter.api.Assertions; - -public final class AvroWriteSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AvroWriteSettings model = - BinaryData - .fromString( - "{\"type\":\"AvroWriteSettings\",\"recordName\":\"gadrvxbcye\",\"recordNamespace\":\"jbcbrtiqpj\",\"maxRowsPerFile\":\"datakamhdqluicrqxqj\",\"fileNamePrefix\":\"dataosmlhcppfgtns\",\"\":{\"mfhde\":\"datahztnjpkpmdlt\",\"xpebsxcnhq\":\"dataliaaiqyxlro\",\"rdamyumr\":\"datacbtyor\",\"ygj\":\"databbaxnym\"}}") - .toObject(AvroWriteSettings.class); - Assertions.assertEquals("gadrvxbcye", model.recordName()); - Assertions.assertEquals("jbcbrtiqpj", model.recordNamespace()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AvroWriteSettings model = - new AvroWriteSettings() - .withRecordName("gadrvxbcye") - .withRecordNamespace("jbcbrtiqpj") - .withMaxRowsPerFile("datakamhdqluicrqxqj") - .withFileNamePrefix("dataosmlhcppfgtns"); - model = BinaryData.fromObject(model).toObject(AvroWriteSettings.class); - Assertions.assertEquals("gadrvxbcye", model.recordName()); - Assertions.assertEquals("jbcbrtiqpj", model.recordNamespace()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzPowerShellSetupTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzPowerShellSetupTests.java deleted file mode 100644 index 5c5538a66e0a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzPowerShellSetupTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzPowerShellSetup; -import org.junit.jupiter.api.Assertions; - -public final class AzPowerShellSetupTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzPowerShellSetup model = - BinaryData - .fromString("{\"type\":\"AzPowerShellSetup\",\"typeProperties\":{\"version\":\"rjpjthiz\"}}") - .toObject(AzPowerShellSetup.class); - Assertions.assertEquals("rjpjthiz", model.version()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzPowerShellSetup model = new AzPowerShellSetup().withVersion("rjpjthiz"); - model = BinaryData.fromObject(model).toObject(AzPowerShellSetup.class); - Assertions.assertEquals("rjpjthiz", model.version()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzPowerShellSetupTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzPowerShellSetupTypePropertiesTests.java deleted file mode 100644 index 84f824d8671a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzPowerShellSetupTypePropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.AzPowerShellSetupTypeProperties; -import org.junit.jupiter.api.Assertions; - -public final class AzPowerShellSetupTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzPowerShellSetupTypeProperties model = - BinaryData.fromString("{\"version\":\"abcylzzietu\"}").toObject(AzPowerShellSetupTypeProperties.class); - Assertions.assertEquals("abcylzzietu", model.version()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzPowerShellSetupTypeProperties model = new AzPowerShellSetupTypeProperties().withVersion("abcylzzietu"); - model = BinaryData.fromObject(model).toObject(AzPowerShellSetupTypeProperties.class); - Assertions.assertEquals("abcylzzietu", model.version()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobDatasetTests.java deleted file mode 100644 index 0150fbfd5d83..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobDatasetTests.java +++ /dev/null @@ -1,95 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureBlobDataset; -import com.azure.resourcemanager.datafactory.models.DatasetCompression; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.DatasetStorageFormat; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AzureBlobDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureBlobDataset model = - BinaryData - .fromString( - "{\"type\":\"AzureBlob\",\"typeProperties\":{\"folderPath\":\"datayhssrlvkpkpkocm\",\"tableRootLocation\":\"datacebxx\",\"fileName\":\"datayicyvspeslhwy\",\"modifiedDatetimeStart\":\"datagvrccpu\",\"modifiedDatetimeEnd\":\"datadhg\",\"format\":{\"type\":\"DatasetStorageFormat\",\"serializer\":\"datardyddtpfcudvaf\",\"deserializer\":\"datafbq\",\"\":{\"rdw\":\"dataqnxhgk\",\"zvcmbpwd\":\"dataejpec\",\"bvtzldzchub\":\"dataudayprldidwmtf\",\"zuvigvl\":\"datagwn\"}},\"compression\":{\"type\":\"datafrbzakp\",\"level\":\"datacqra\",\"\":{\"cw\":\"datajpsucmxi\",\"jgsatky\":\"dataxyn\"}}},\"description\":\"cb\",\"structure\":\"datagcru\",\"schema\":\"datahirc\",\"linkedServiceName\":{\"referenceName\":\"gcvsvkkjbjolpy\",\"parameters\":{\"igowxxbhtpsyioqe\":\"datakvuznadvhmlie\",\"wanvmwdvgjqcrbko\":\"dataqwtqszzgyksik\",\"gyweo\":\"datapnbn\"}},\"parameters\":{\"kchkapit\":{\"type\":\"String\",\"defaultValue\":\"datacmahiwfrya\"},\"t\":{\"type\":\"SecureString\",\"defaultValue\":\"datahfyf\"},\"wh\":{\"type\":\"Object\",\"defaultValue\":\"dataep\"}},\"annotations\":[\"datafdgbggcjxzhbl\"],\"folder\":{\"name\":\"eh\"},\"\":{\"mbhdo\":\"dataym\"}}") - .toObject(AzureBlobDataset.class); - Assertions.assertEquals("cb", model.description()); - Assertions.assertEquals("gcvsvkkjbjolpy", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("kchkapit").type()); - Assertions.assertEquals("eh", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureBlobDataset model = - new AzureBlobDataset() - .withDescription("cb") - .withStructure("datagcru") - .withSchema("datahirc") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("gcvsvkkjbjolpy") - .withParameters( - mapOf( - "igowxxbhtpsyioqe", - "datakvuznadvhmlie", - "wanvmwdvgjqcrbko", - "dataqwtqszzgyksik", - "gyweo", - "datapnbn"))) - .withParameters( - mapOf( - "kchkapit", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datacmahiwfrya"), - "t", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("datahfyf"), - "wh", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("dataep"))) - .withAnnotations(Arrays.asList("datafdgbggcjxzhbl")) - .withFolder(new DatasetFolder().withName("eh")) - .withFolderPath("datayhssrlvkpkpkocm") - .withTableRootLocation("datacebxx") - .withFileName("datayicyvspeslhwy") - .withModifiedDatetimeStart("datagvrccpu") - .withModifiedDatetimeEnd("datadhg") - .withFormat( - new DatasetStorageFormat() - .withSerializer("datardyddtpfcudvaf") - .withDeserializer("datafbq") - .withAdditionalProperties(mapOf("type", "DatasetStorageFormat"))) - .withCompression( - new DatasetCompression() - .withType("datafrbzakp") - .withLevel("datacqra") - .withAdditionalProperties(mapOf())); - model = BinaryData.fromObject(model).toObject(AzureBlobDataset.class); - Assertions.assertEquals("cb", model.description()); - Assertions.assertEquals("gcvsvkkjbjolpy", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("kchkapit").type()); - Assertions.assertEquals("eh", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobDatasetTypePropertiesTests.java deleted file mode 100644 index bd2c35eb5749..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobDatasetTypePropertiesTests.java +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.AzureBlobDatasetTypeProperties; -import com.azure.resourcemanager.datafactory.models.DatasetCompression; -import com.azure.resourcemanager.datafactory.models.DatasetStorageFormat; -import java.util.HashMap; -import java.util.Map; - -public final class AzureBlobDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureBlobDatasetTypeProperties model = - BinaryData - .fromString( - "{\"folderPath\":\"databng\",\"tableRootLocation\":\"datalgxz\",\"fileName\":\"datavxd\",\"modifiedDatetimeStart\":\"dataexatmdmnrsen\",\"modifiedDatetimeEnd\":\"datairxyddmiploisj\",\"format\":{\"type\":\"DatasetStorageFormat\",\"serializer\":\"datao\",\"deserializer\":\"datanntwg\",\"\":{\"s\":\"dataoh\",\"bdjzghximkg\":\"datapzupzwwy\",\"ot\":\"datamxpqkjnpyriwn\",\"jkyjrexw\":\"dataxmmqmt\"}},\"compression\":{\"type\":\"datanbexfted\",\"level\":\"databheeggzgrnqt\",\"\":{\"tgjqg\":\"datazuum\",\"syxzxjmkanbc\":\"datacant\"}}}") - .toObject(AzureBlobDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureBlobDatasetTypeProperties model = - new AzureBlobDatasetTypeProperties() - .withFolderPath("databng") - .withTableRootLocation("datalgxz") - .withFileName("datavxd") - .withModifiedDatetimeStart("dataexatmdmnrsen") - .withModifiedDatetimeEnd("datairxyddmiploisj") - .withFormat( - new DatasetStorageFormat() - .withSerializer("datao") - .withDeserializer("datanntwg") - .withAdditionalProperties(mapOf("type", "DatasetStorageFormat"))) - .withCompression( - new DatasetCompression() - .withType("datanbexfted") - .withLevel("databheeggzgrnqt") - .withAdditionalProperties(mapOf())); - model = BinaryData.fromObject(model).toObject(AzureBlobDatasetTypeProperties.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobFSDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobFSDatasetTests.java deleted file mode 100644 index f34a07d3e7d0..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobFSDatasetTests.java +++ /dev/null @@ -1,81 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureBlobFSDataset; -import com.azure.resourcemanager.datafactory.models.DatasetCompression; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.DatasetStorageFormat; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AzureBlobFSDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureBlobFSDataset model = - BinaryData - .fromString( - "{\"type\":\"AzureBlobFSFile\",\"typeProperties\":{\"folderPath\":\"datagc\",\"fileName\":\"datayrhkvxzzmiem\",\"format\":{\"type\":\"DatasetStorageFormat\",\"serializer\":\"datatgp\",\"deserializer\":\"datasw\",\"\":{\"ornfbm\":\"datavjmghpakbqyhl\"}},\"compression\":{\"type\":\"dataagkncjmybnyevz\",\"level\":\"datajawrhulemm\",\"\":{\"kitzm\":\"datawppxirx\",\"cltjl\":\"datahitaxj\"}}},\"description\":\"gcem\",\"structure\":\"datadzdvyljubv\",\"schema\":\"datayzufldifnivlutgg\",\"linkedServiceName\":{\"referenceName\":\"aacxauhvc\",\"parameters\":{\"oiyygkts\":\"datahklsqx\",\"xxoxwfzbkv\":\"dataj\"}},\"parameters\":{\"snbwutlvuwm\":{\"type\":\"Bool\",\"defaultValue\":\"dataxphsowbe\"}},\"annotations\":[\"dataustihtgrafjajvky\",\"datammjczvog\"],\"folder\":{\"name\":\"rjenn\"},\"\":{\"xnrp\":\"dataaeuwqdwxhhlbmyph\",\"ywbihqbtodjfyx\":\"datahewokyqsfkxf\",\"rugyozzzawnjdv\":\"datavkvwzdmvddqw\"}}") - .toObject(AzureBlobFSDataset.class); - Assertions.assertEquals("gcem", model.description()); - Assertions.assertEquals("aacxauhvc", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("snbwutlvuwm").type()); - Assertions.assertEquals("rjenn", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureBlobFSDataset model = - new AzureBlobFSDataset() - .withDescription("gcem") - .withStructure("datadzdvyljubv") - .withSchema("datayzufldifnivlutgg") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("aacxauhvc") - .withParameters(mapOf("oiyygkts", "datahklsqx", "xxoxwfzbkv", "dataj"))) - .withParameters( - mapOf( - "snbwutlvuwm", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("dataxphsowbe"))) - .withAnnotations(Arrays.asList("dataustihtgrafjajvky", "datammjczvog")) - .withFolder(new DatasetFolder().withName("rjenn")) - .withFolderPath("datagc") - .withFileName("datayrhkvxzzmiem") - .withFormat( - new DatasetStorageFormat() - .withSerializer("datatgp") - .withDeserializer("datasw") - .withAdditionalProperties(mapOf("type", "DatasetStorageFormat"))) - .withCompression( - new DatasetCompression() - .withType("dataagkncjmybnyevz") - .withLevel("datajawrhulemm") - .withAdditionalProperties(mapOf())); - model = BinaryData.fromObject(model).toObject(AzureBlobFSDataset.class); - Assertions.assertEquals("gcem", model.description()); - Assertions.assertEquals("aacxauhvc", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("snbwutlvuwm").type()); - Assertions.assertEquals("rjenn", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobFSDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobFSDatasetTypePropertiesTests.java deleted file mode 100644 index a7a6e7dc1c09..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobFSDatasetTypePropertiesTests.java +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.AzureBlobFSDatasetTypeProperties; -import com.azure.resourcemanager.datafactory.models.DatasetCompression; -import com.azure.resourcemanager.datafactory.models.DatasetStorageFormat; -import java.util.HashMap; -import java.util.Map; - -public final class AzureBlobFSDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureBlobFSDatasetTypeProperties model = - BinaryData - .fromString( - "{\"folderPath\":\"datarho\",\"fileName\":\"datakkvxu\",\"format\":{\"type\":\"DatasetStorageFormat\",\"serializer\":\"datazbvb\",\"deserializer\":\"datauvqhxtozfgdkw\",\"\":{\"utui\":\"datarklpiigfuzk\",\"xyll\":\"datajclzjwaqdzqydewu\"}},\"compression\":{\"type\":\"datazevtzqwczoc\",\"level\":\"databek\",\"\":{\"horkslhraqk\":\"datanfpkyvnhiys\",\"flteatnegef\":\"datawlwkfflaqwmwqog\",\"ibt\":\"datajxnjtqbgy\",\"kxunsaujqgbb\":\"datanvxwtdqtcbjdbtqy\"}}}") - .toObject(AzureBlobFSDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureBlobFSDatasetTypeProperties model = - new AzureBlobFSDatasetTypeProperties() - .withFolderPath("datarho") - .withFileName("datakkvxu") - .withFormat( - new DatasetStorageFormat() - .withSerializer("datazbvb") - .withDeserializer("datauvqhxtozfgdkw") - .withAdditionalProperties(mapOf("type", "DatasetStorageFormat"))) - .withCompression( - new DatasetCompression() - .withType("datazevtzqwczoc") - .withLevel("databek") - .withAdditionalProperties(mapOf())); - model = BinaryData.fromObject(model).toObject(AzureBlobFSDatasetTypeProperties.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobFSLocationTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobFSLocationTests.java deleted file mode 100644 index de09b49094a9..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobFSLocationTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureBlobFSLocation; - -public final class AzureBlobFSLocationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureBlobFSLocation model = - BinaryData - .fromString( - "{\"type\":\"AzureBlobFSLocation\",\"fileSystem\":\"datadsiuorin\",\"folderPath\":\"datacedpksriwmmtmqrx\",\"fileName\":\"dataqvvyczyay\",\"\":{\"bxiqahragpxmibpl\":\"datag\"}}") - .toObject(AzureBlobFSLocation.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureBlobFSLocation model = - new AzureBlobFSLocation() - .withFolderPath("datacedpksriwmmtmqrx") - .withFileName("dataqvvyczyay") - .withFileSystem("datadsiuorin"); - model = BinaryData.fromObject(model).toObject(AzureBlobFSLocation.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobFSReadSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobFSReadSettingsTests.java deleted file mode 100644 index 1d126a81c149..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobFSReadSettingsTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureBlobFSReadSettings; - -public final class AzureBlobFSReadSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureBlobFSReadSettings model = - BinaryData - .fromString( - "{\"type\":\"AzureBlobFSReadSettings\",\"recursive\":\"dataekyd\",\"wildcardFolderPath\":\"datadkzfkneck\",\"wildcardFileName\":\"datarvdszrizpejhy\",\"fileListPath\":\"datazxqtcgswmh\",\"enablePartitionDiscovery\":\"dataicitykzyirj\",\"partitionRootPath\":\"datangnfunhtzgxsyiwm\",\"deleteFilesAfterCompletion\":\"datakudhjztbwzjbqzqw\",\"modifiedDatetimeStart\":\"dataznhqzdbzlkds\",\"modifiedDatetimeEnd\":\"datakvprk\",\"maxConcurrentConnections\":\"datavxieqcnv\",\"disableMetricsCollection\":\"datashfafbeh\",\"\":{\"lpfrecrizkabafd\":\"dataiuexkpgrmwdwlrae\",\"sgpdbhbdxsjsox\":\"datasizao\",\"inlgttvon\":\"datauwuungdvvddrcpqu\",\"mitmtkcqixgqxs\":\"datarpeli\"}}") - .toObject(AzureBlobFSReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureBlobFSReadSettings model = - new AzureBlobFSReadSettings() - .withMaxConcurrentConnections("datavxieqcnv") - .withDisableMetricsCollection("datashfafbeh") - .withRecursive("dataekyd") - .withWildcardFolderPath("datadkzfkneck") - .withWildcardFileName("datarvdszrizpejhy") - .withFileListPath("datazxqtcgswmh") - .withEnablePartitionDiscovery("dataicitykzyirj") - .withPartitionRootPath("datangnfunhtzgxsyiwm") - .withDeleteFilesAfterCompletion("datakudhjztbwzjbqzqw") - .withModifiedDatetimeStart("dataznhqzdbzlkds") - .withModifiedDatetimeEnd("datakvprk"); - model = BinaryData.fromObject(model).toObject(AzureBlobFSReadSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobFSSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobFSSinkTests.java deleted file mode 100644 index d853a88c83bb..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobFSSinkTests.java +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureBlobFSSink; -import com.azure.resourcemanager.datafactory.models.MetadataItem; -import java.util.Arrays; - -public final class AzureBlobFSSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureBlobFSSink model = - BinaryData - .fromString( - "{\"type\":\"AzureBlobFSSink\",\"copyBehavior\":\"datalkmgcxmkr\",\"metadata\":[{\"name\":\"dataidy\",\"value\":\"datawcgvyuusexenyw\"},{\"name\":\"datadxqqgysxpa\",\"value\":\"datamthdqvcifwknlyt\"},{\"name\":\"datartocadtnmqrpj\",\"value\":\"datajixcya\"},{\"name\":\"dataii\",\"value\":\"datadbtrkv\"}],\"writeBatchSize\":\"datauessuuzfrw\",\"writeBatchTimeout\":\"datatrngj\",\"sinkRetryCount\":\"dataks\",\"sinkRetryWait\":\"datak\",\"maxConcurrentConnections\":\"datapulpyeyqsinie\",\"disableMetricsCollection\":\"databvvvtxk\",\"\":{\"kbdtmr\":\"datatlbb\",\"hvbpvizuuluilgm\":\"datajtuz\",\"dntj\":\"datav\",\"aaruvbzcqgtz\":\"datamjxgqsbjc\"}}") - .toObject(AzureBlobFSSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureBlobFSSink model = - new AzureBlobFSSink() - .withWriteBatchSize("datauessuuzfrw") - .withWriteBatchTimeout("datatrngj") - .withSinkRetryCount("dataks") - .withSinkRetryWait("datak") - .withMaxConcurrentConnections("datapulpyeyqsinie") - .withDisableMetricsCollection("databvvvtxk") - .withCopyBehavior("datalkmgcxmkr") - .withMetadata( - Arrays - .asList( - new MetadataItem().withName("dataidy").withValue("datawcgvyuusexenyw"), - new MetadataItem().withName("datadxqqgysxpa").withValue("datamthdqvcifwknlyt"), - new MetadataItem().withName("datartocadtnmqrpj").withValue("datajixcya"), - new MetadataItem().withName("dataii").withValue("datadbtrkv"))); - model = BinaryData.fromObject(model).toObject(AzureBlobFSSink.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobFSSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobFSSourceTests.java deleted file mode 100644 index 94c7d8b76c17..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobFSSourceTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureBlobFSSource; - -public final class AzureBlobFSSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureBlobFSSource model = - BinaryData - .fromString( - "{\"type\":\"AzureBlobFSSource\",\"treatEmptyAsNull\":\"datazlcfe\",\"skipHeaderLineCount\":\"dataryxnklfswzsyigx\",\"recursive\":\"dataxhygc\",\"sourceRetryCount\":\"databapeuqyz\",\"sourceRetryWait\":\"datasuopcdiaossp\",\"maxConcurrentConnections\":\"datatgkmrsqaqgllnhgi\",\"disableMetricsCollection\":\"datawzzk\",\"\":{\"wdkpadktsyywa\":\"datarnglgituae\",\"dajqpdvvzbejx\":\"datajrfqtfkkiup\"}}") - .toObject(AzureBlobFSSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureBlobFSSource model = - new AzureBlobFSSource() - .withSourceRetryCount("databapeuqyz") - .withSourceRetryWait("datasuopcdiaossp") - .withMaxConcurrentConnections("datatgkmrsqaqgllnhgi") - .withDisableMetricsCollection("datawzzk") - .withTreatEmptyAsNull("datazlcfe") - .withSkipHeaderLineCount("dataryxnklfswzsyigx") - .withRecursive("dataxhygc"); - model = BinaryData.fromObject(model).toObject(AzureBlobFSSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobFSWriteSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobFSWriteSettingsTests.java deleted file mode 100644 index 153a0dc2e5ce..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobFSWriteSettingsTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureBlobFSWriteSettings; - -public final class AzureBlobFSWriteSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureBlobFSWriteSettings model = - BinaryData - .fromString( - "{\"type\":\"AzureBlobFSWriteSettings\",\"blockSizeInMB\":\"datacbwmvp\",\"maxConcurrentConnections\":\"datajyzicel\",\"disableMetricsCollection\":\"dataazcgwnibnduqgji\",\"copyBehavior\":\"dataxxiao\",\"\":{\"pugnvhtgwadu\":\"datauhumgw\"}}") - .toObject(AzureBlobFSWriteSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureBlobFSWriteSettings model = - new AzureBlobFSWriteSettings() - .withMaxConcurrentConnections("datajyzicel") - .withDisableMetricsCollection("dataazcgwnibnduqgji") - .withCopyBehavior("dataxxiao") - .withBlockSizeInMB("datacbwmvp"); - model = BinaryData.fromObject(model).toObject(AzureBlobFSWriteSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobStorageLocationTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobStorageLocationTests.java deleted file mode 100644 index 72b19d1eccd2..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobStorageLocationTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureBlobStorageLocation; - -public final class AzureBlobStorageLocationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureBlobStorageLocation model = - BinaryData - .fromString( - "{\"type\":\"AzureBlobStorageLocation\",\"container\":\"dataovsfb\",\"folderPath\":\"datavzopaxmfmvsm\",\"fileName\":\"dataoxfaxdtn\",\"\":{\"oiauesugmocpcj\":\"databsat\",\"rgttw\":\"datacboe\"}}") - .toObject(AzureBlobStorageLocation.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureBlobStorageLocation model = - new AzureBlobStorageLocation() - .withFolderPath("datavzopaxmfmvsm") - .withFileName("dataoxfaxdtn") - .withContainer("dataovsfb"); - model = BinaryData.fromObject(model).toObject(AzureBlobStorageLocation.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobStorageReadSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobStorageReadSettingsTests.java deleted file mode 100644 index b839ba85ed40..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobStorageReadSettingsTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureBlobStorageReadSettings; - -public final class AzureBlobStorageReadSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureBlobStorageReadSettings model = - BinaryData - .fromString( - "{\"type\":\"AzureBlobStorageReadSettings\",\"recursive\":\"datan\",\"wildcardFolderPath\":\"datahrhcfeqjkac\",\"wildcardFileName\":\"datatnuckojqoxpw\",\"prefix\":\"datavfdosq\",\"fileListPath\":\"dataoyqbpzxushmlti\",\"enablePartitionDiscovery\":\"datacptvkbcykntdzze\",\"partitionRootPath\":\"datazpggsyeydctjnei\",\"deleteFilesAfterCompletion\":\"dataztlzbwbyvjispkgk\",\"modifiedDatetimeStart\":\"datapvbzmyo\",\"modifiedDatetimeEnd\":\"dataxstxsfztlvs\",\"maxConcurrentConnections\":\"datafshhc\",\"disableMetricsCollection\":\"datasowyhxwhdyfgtwx\",\"\":{\"im\":\"databzfiacmwmc\",\"tnolziohdxyuk\":\"datahrfmcjjxxwzdwmju\",\"sffpizef\":\"dataplfwykrpojen\",\"zcevf\":\"datajgblehxpeuahvxf\"}}") - .toObject(AzureBlobStorageReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureBlobStorageReadSettings model = - new AzureBlobStorageReadSettings() - .withMaxConcurrentConnections("datafshhc") - .withDisableMetricsCollection("datasowyhxwhdyfgtwx") - .withRecursive("datan") - .withWildcardFolderPath("datahrhcfeqjkac") - .withWildcardFileName("datatnuckojqoxpw") - .withPrefix("datavfdosq") - .withFileListPath("dataoyqbpzxushmlti") - .withEnablePartitionDiscovery("datacptvkbcykntdzze") - .withPartitionRootPath("datazpggsyeydctjnei") - .withDeleteFilesAfterCompletion("dataztlzbwbyvjispkgk") - .withModifiedDatetimeStart("datapvbzmyo") - .withModifiedDatetimeEnd("dataxstxsfztlvs"); - model = BinaryData.fromObject(model).toObject(AzureBlobStorageReadSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobStorageWriteSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobStorageWriteSettingsTests.java deleted file mode 100644 index 1dd29e453cd0..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobStorageWriteSettingsTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureBlobStorageWriteSettings; - -public final class AzureBlobStorageWriteSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureBlobStorageWriteSettings model = - BinaryData - .fromString( - "{\"type\":\"AzureBlobStorageWriteSettings\",\"blockSizeInMB\":\"datanisoorwfdtjpsjwl\",\"maxConcurrentConnections\":\"dataxl\",\"disableMetricsCollection\":\"datazcdrgtuaoouocaf\",\"copyBehavior\":\"datavhjrpbnrolge\",\"\":{\"lbyjahbzbtl\":\"datanenjtxuuwdmrqa\"}}") - .toObject(AzureBlobStorageWriteSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureBlobStorageWriteSettings model = - new AzureBlobStorageWriteSettings() - .withMaxConcurrentConnections("dataxl") - .withDisableMetricsCollection("datazcdrgtuaoouocaf") - .withCopyBehavior("datavhjrpbnrolge") - .withBlockSizeInMB("datanisoorwfdtjpsjwl"); - model = BinaryData.fromObject(model).toObject(AzureBlobStorageWriteSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataExplorerCommandActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataExplorerCommandActivityTests.java deleted file mode 100644 index 9dfad2d49315..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataExplorerCommandActivityTests.java +++ /dev/null @@ -1,118 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityPolicy; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.AzureDataExplorerCommandActivity; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AzureDataExplorerCommandActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureDataExplorerCommandActivity model = - BinaryData - .fromString( - "{\"type\":\"AzureDataExplorerCommand\",\"typeProperties\":{\"command\":\"dataxxhbrysnszsehoe\",\"commandTimeout\":\"datawbykrn\"},\"linkedServiceName\":{\"referenceName\":\"bkvzwqgmfhlnqy\",\"parameters\":{\"bsaaxstnziv\":\"datayfncwiyfzu\",\"cxygjhclnyoktc\":\"dataccgtujiwzbzed\"}},\"policy\":{\"timeout\":\"datathjgbrxmxqskem\",\"retry\":\"datajjf\",\"retryIntervalInSeconds\":354823036,\"secureInput\":true,\"secureOutput\":true,\"\":{\"vwalhawoptiq\":\"datacnidubocmjiib\"}},\"name\":\"u\",\"description\":\"vtapcxsm\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"ylrvztaelpux\",\"dependencyConditions\":[\"Completed\",\"Failed\",\"Failed\",\"Succeeded\"],\"\":{\"llewe\":\"dataumtnrcvovhyqexu\",\"cdckcpf\":\"datagvqbsyth\"}},{\"activity\":\"mmgfwxthr\",\"dependencyConditions\":[\"Succeeded\"],\"\":{\"ckkbnaseny\":\"datamgosclhj\",\"hgcchzu\":\"datahmwzgfankeoloros\"}},{\"activity\":\"pkhfh\",\"dependencyConditions\":[\"Completed\",\"Failed\"],\"\":{\"yjffpuuyky\":\"datayfkini\",\"yml\":\"databpn\",\"fijvaxuv\":\"datatnnsjc\"}}],\"userProperties\":[{\"name\":\"ptldaaxglxhbn\",\"value\":\"datay\"},{\"name\":\"winle\",\"value\":\"datahtykebtvn\"},{\"name\":\"dcclpbhntoiviue\",\"value\":\"datariehooxqkc\"},{\"name\":\"yydtnl\",\"value\":\"datakyiqjtx\"}],\"\":{\"zsr\":\"datarftidkjotvhivvo\"}}") - .toObject(AzureDataExplorerCommandActivity.class); - Assertions.assertEquals("u", model.name()); - Assertions.assertEquals("vtapcxsm", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.onInactiveMarkAs()); - Assertions.assertEquals("ylrvztaelpux", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("ptldaaxglxhbn", model.userProperties().get(0).name()); - Assertions.assertEquals("bkvzwqgmfhlnqy", model.linkedServiceName().referenceName()); - Assertions.assertEquals(354823036, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureDataExplorerCommandActivity model = - new AzureDataExplorerCommandActivity() - .withName("u") - .withDescription("vtapcxsm") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("ylrvztaelpux") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.COMPLETED, - DependencyCondition.FAILED, - DependencyCondition.FAILED, - DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("mmgfwxthr") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("pkhfh") - .withDependencyConditions( - Arrays.asList(DependencyCondition.COMPLETED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays - .asList( - new UserProperty().withName("ptldaaxglxhbn").withValue("datay"), - new UserProperty().withName("winle").withValue("datahtykebtvn"), - new UserProperty().withName("dcclpbhntoiviue").withValue("datariehooxqkc"), - new UserProperty().withName("yydtnl").withValue("datakyiqjtx"))) - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("bkvzwqgmfhlnqy") - .withParameters(mapOf("bsaaxstnziv", "datayfncwiyfzu", "cxygjhclnyoktc", "dataccgtujiwzbzed"))) - .withPolicy( - new ActivityPolicy() - .withTimeout("datathjgbrxmxqskem") - .withRetry("datajjf") - .withRetryIntervalInSeconds(354823036) - .withSecureInput(true) - .withSecureOutput(true) - .withAdditionalProperties(mapOf())) - .withCommand("dataxxhbrysnszsehoe") - .withCommandTimeout("datawbykrn"); - model = BinaryData.fromObject(model).toObject(AzureDataExplorerCommandActivity.class); - Assertions.assertEquals("u", model.name()); - Assertions.assertEquals("vtapcxsm", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.onInactiveMarkAs()); - Assertions.assertEquals("ylrvztaelpux", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("ptldaaxglxhbn", model.userProperties().get(0).name()); - Assertions.assertEquals("bkvzwqgmfhlnqy", model.linkedServiceName().referenceName()); - Assertions.assertEquals(354823036, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataExplorerCommandActivityTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataExplorerCommandActivityTypePropertiesTests.java deleted file mode 100644 index d298dd1b6030..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataExplorerCommandActivityTypePropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.AzureDataExplorerCommandActivityTypeProperties; - -public final class AzureDataExplorerCommandActivityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureDataExplorerCommandActivityTypeProperties model = - BinaryData - .fromString("{\"command\":\"datapfviiw\",\"commandTimeout\":\"dataqp\"}") - .toObject(AzureDataExplorerCommandActivityTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureDataExplorerCommandActivityTypeProperties model = - new AzureDataExplorerCommandActivityTypeProperties().withCommand("datapfviiw").withCommandTimeout("dataqp"); - model = BinaryData.fromObject(model).toObject(AzureDataExplorerCommandActivityTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataExplorerDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataExplorerDatasetTypePropertiesTests.java deleted file mode 100644 index ca598cc54d6a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataExplorerDatasetTypePropertiesTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.AzureDataExplorerDatasetTypeProperties; - -public final class AzureDataExplorerDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureDataExplorerDatasetTypeProperties model = - BinaryData.fromString("{\"table\":\"dataysyajmm\"}").toObject(AzureDataExplorerDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureDataExplorerDatasetTypeProperties model = - new AzureDataExplorerDatasetTypeProperties().withTable("dataysyajmm"); - model = BinaryData.fromObject(model).toObject(AzureDataExplorerDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataExplorerSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataExplorerSinkTests.java deleted file mode 100644 index 241dcf6ba55b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataExplorerSinkTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureDataExplorerSink; - -public final class AzureDataExplorerSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureDataExplorerSink model = - BinaryData - .fromString( - "{\"type\":\"AzureDataExplorerSink\",\"ingestionMappingName\":\"dataezlqwbgly\",\"ingestionMappingAsJson\":\"dataztt\",\"flushImmediately\":\"datayrwdsnpuo\",\"writeBatchSize\":\"datar\",\"writeBatchTimeout\":\"dataizybpjyp\",\"sinkRetryCount\":\"datatkzghwcywrbmxwls\",\"sinkRetryWait\":\"dataffwf\",\"maxConcurrentConnections\":\"dataiezbmhsqy\",\"disableMetricsCollection\":\"datawbzhafcoayuq\",\"\":{\"yfjtsem\":\"dataghjmmjmmjnx\",\"ocyo\":\"dataidbaykvlrsbrn\",\"mbch\":\"datap\",\"ybugojzcargsxmaw\":\"dataskwaffsjqnjp\"}}") - .toObject(AzureDataExplorerSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureDataExplorerSink model = - new AzureDataExplorerSink() - .withWriteBatchSize("datar") - .withWriteBatchTimeout("dataizybpjyp") - .withSinkRetryCount("datatkzghwcywrbmxwls") - .withSinkRetryWait("dataffwf") - .withMaxConcurrentConnections("dataiezbmhsqy") - .withDisableMetricsCollection("datawbzhafcoayuq") - .withIngestionMappingName("dataezlqwbgly") - .withIngestionMappingAsJson("dataztt") - .withFlushImmediately("datayrwdsnpuo"); - model = BinaryData.fromObject(model).toObject(AzureDataExplorerSink.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataExplorerSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataExplorerSourceTests.java deleted file mode 100644 index 967248cd5597..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataExplorerSourceTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureDataExplorerSource; - -public final class AzureDataExplorerSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureDataExplorerSource model = - BinaryData - .fromString( - "{\"type\":\"AzureDataExplorerSource\",\"query\":\"datatasidityvvgxejh\",\"noTruncation\":\"dataswjwbhtawb\",\"queryTimeout\":\"dataybneuzueikadhusg\",\"additionalColumns\":\"databgljcy\",\"sourceRetryCount\":\"datarzxipxhlxxkviyj\",\"sourceRetryWait\":\"dataqyejyavxgm\",\"maxConcurrentConnections\":\"datacnwxkqqxpnj\",\"disableMetricsCollection\":\"datazdahvethn\",\"\":{\"tymbccmwsyfsg\":\"dataggyqlvnhmuutkw\",\"cbjclfbpfd\":\"datak\",\"q\":\"dataatr\",\"bifktnxugiorb\":\"datatuxwtdaz\"}}") - .toObject(AzureDataExplorerSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureDataExplorerSource model = - new AzureDataExplorerSource() - .withSourceRetryCount("datarzxipxhlxxkviyj") - .withSourceRetryWait("dataqyejyavxgm") - .withMaxConcurrentConnections("datacnwxkqqxpnj") - .withDisableMetricsCollection("datazdahvethn") - .withQuery("datatasidityvvgxejh") - .withNoTruncation("dataswjwbhtawb") - .withQueryTimeout("dataybneuzueikadhusg") - .withAdditionalColumns("databgljcy"); - model = BinaryData.fromObject(model).toObject(AzureDataExplorerSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataExplorerTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataExplorerTableDatasetTests.java deleted file mode 100644 index b2f1eb471123..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataExplorerTableDatasetTests.java +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureDataExplorerTableDataset; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AzureDataExplorerTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureDataExplorerTableDataset model = - BinaryData - .fromString( - "{\"type\":\"AzureDataExplorerTable\",\"typeProperties\":{\"table\":\"datarwxxqkwargcbgdg\"},\"description\":\"ijiqe\",\"structure\":\"datawqykmvugflh\",\"schema\":\"dataoxu\",\"linkedServiceName\":{\"referenceName\":\"hcnnkvthwtam\",\"parameters\":{\"cocdxvbeqzjd\":\"datagyvxhfmuhkezuucq\"}},\"parameters\":{\"my\":{\"type\":\"Array\",\"defaultValue\":\"datapdwnee\"},\"jrwvnffaofkvfru\":{\"type\":\"Bool\",\"defaultValue\":\"datau\"},\"tvymdqaymqmyrn\":{\"type\":\"Int\",\"defaultValue\":\"datafbvhgykzov\"}},\"annotations\":[\"databqkfnoxhvo\",\"datajdgfkr\"],\"folder\":{\"name\":\"rvpa\"},\"\":{\"ej\":\"datadeex\",\"nxbohpzurn\":\"datagu\",\"oijoxcbpkiwse\":\"dataoytkbeadyfenro\",\"ztdacrqcwkk\":\"datacbtaxdrpanhsxwhx\"}}") - .toObject(AzureDataExplorerTableDataset.class); - Assertions.assertEquals("ijiqe", model.description()); - Assertions.assertEquals("hcnnkvthwtam", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("my").type()); - Assertions.assertEquals("rvpa", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureDataExplorerTableDataset model = - new AzureDataExplorerTableDataset() - .withDescription("ijiqe") - .withStructure("datawqykmvugflh") - .withSchema("dataoxu") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("hcnnkvthwtam") - .withParameters(mapOf("cocdxvbeqzjd", "datagyvxhfmuhkezuucq"))) - .withParameters( - mapOf( - "my", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datapdwnee"), - "jrwvnffaofkvfru", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datau"), - "tvymdqaymqmyrn", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datafbvhgykzov"))) - .withAnnotations(Arrays.asList("databqkfnoxhvo", "datajdgfkr")) - .withFolder(new DatasetFolder().withName("rvpa")) - .withTable("datarwxxqkwargcbgdg"); - model = BinaryData.fromObject(model).toObject(AzureDataExplorerTableDataset.class); - Assertions.assertEquals("ijiqe", model.description()); - Assertions.assertEquals("hcnnkvthwtam", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("my").type()); - Assertions.assertEquals("rvpa", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataLakeStoreDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataLakeStoreDatasetTests.java deleted file mode 100644 index fa79585b35de..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataLakeStoreDatasetTests.java +++ /dev/null @@ -1,95 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureDataLakeStoreDataset; -import com.azure.resourcemanager.datafactory.models.DatasetCompression; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.DatasetStorageFormat; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AzureDataLakeStoreDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureDataLakeStoreDataset model = - BinaryData - .fromString( - "{\"type\":\"AzureDataLakeStoreFile\",\"typeProperties\":{\"folderPath\":\"datablwal\",\"fileName\":\"datassnqe\",\"format\":{\"type\":\"DatasetStorageFormat\",\"serializer\":\"datatbptgcsma\",\"deserializer\":\"dataxrwqfmd\",\"\":{\"psibxovuqo\":\"datavtamqwzmnobfew\",\"qnzjcyqqz\":\"datajrkblndyclwgycv\",\"dpisjdl\":\"dataembtbwnalb\",\"eopsk\":\"dataajvmvvlooubsfxip\"}},\"compression\":{\"type\":\"datacjomlupf\",\"level\":\"datausjcd\",\"\":{\"j\":\"datalgdwzrgdqyx\",\"cwwsj\":\"datalgrcavqcwyzoqzkm\"}}},\"description\":\"iixepbntqqwwgfgs\",\"structure\":\"datailefej\",\"schema\":\"datawrznequ\",\"linkedServiceName\":{\"referenceName\":\"ynttwknhajk\",\"parameters\":{\"cydi\":\"datayogjmqjh\",\"vjbssfcriqxz\":\"datanm\",\"py\":\"dataxtdlxwmvcdkucp\",\"pnr\":\"datafrwrgorogeuvmkr\"}},\"parameters\":{\"snqpljpete\":{\"type\":\"Object\",\"defaultValue\":\"datalzof\"},\"ub\":{\"type\":\"Array\",\"defaultValue\":\"dataikelpmwgr\"},\"gjzscueza\":{\"type\":\"String\",\"defaultValue\":\"datahvo\"}},\"annotations\":[\"datadfwgqjhewcffrx\",\"datagezkhzpriqisse\",\"dataerrusyzaiv\",\"datapsjnpck\"],\"folder\":{\"name\":\"jy\"},\"\":{\"jarsbbdddwok\":\"datanbdawsaoplvvmnbk\"}}") - .toObject(AzureDataLakeStoreDataset.class); - Assertions.assertEquals("iixepbntqqwwgfgs", model.description()); - Assertions.assertEquals("ynttwknhajk", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("snqpljpete").type()); - Assertions.assertEquals("jy", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureDataLakeStoreDataset model = - new AzureDataLakeStoreDataset() - .withDescription("iixepbntqqwwgfgs") - .withStructure("datailefej") - .withSchema("datawrznequ") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("ynttwknhajk") - .withParameters( - mapOf( - "cydi", - "datayogjmqjh", - "vjbssfcriqxz", - "datanm", - "py", - "dataxtdlxwmvcdkucp", - "pnr", - "datafrwrgorogeuvmkr"))) - .withParameters( - mapOf( - "snqpljpete", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datalzof"), - "ub", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("dataikelpmwgr"), - "gjzscueza", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datahvo"))) - .withAnnotations( - Arrays.asList("datadfwgqjhewcffrx", "datagezkhzpriqisse", "dataerrusyzaiv", "datapsjnpck")) - .withFolder(new DatasetFolder().withName("jy")) - .withFolderPath("datablwal") - .withFileName("datassnqe") - .withFormat( - new DatasetStorageFormat() - .withSerializer("datatbptgcsma") - .withDeserializer("dataxrwqfmd") - .withAdditionalProperties(mapOf("type", "DatasetStorageFormat"))) - .withCompression( - new DatasetCompression() - .withType("datacjomlupf") - .withLevel("datausjcd") - .withAdditionalProperties(mapOf())); - model = BinaryData.fromObject(model).toObject(AzureDataLakeStoreDataset.class); - Assertions.assertEquals("iixepbntqqwwgfgs", model.description()); - Assertions.assertEquals("ynttwknhajk", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("snqpljpete").type()); - Assertions.assertEquals("jy", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataLakeStoreDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataLakeStoreDatasetTypePropertiesTests.java deleted file mode 100644 index 1a1f85b45c03..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataLakeStoreDatasetTypePropertiesTests.java +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.AzureDataLakeStoreDatasetTypeProperties; -import com.azure.resourcemanager.datafactory.models.DatasetCompression; -import com.azure.resourcemanager.datafactory.models.DatasetStorageFormat; -import java.util.HashMap; -import java.util.Map; - -public final class AzureDataLakeStoreDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureDataLakeStoreDatasetTypeProperties model = - BinaryData - .fromString( - "{\"folderPath\":\"dataailxqkdyqjvzvcg\",\"fileName\":\"dataspzesfkqqxuhvz\",\"format\":{\"type\":\"DatasetStorageFormat\",\"serializer\":\"datarouszxacdwukokgo\",\"deserializer\":\"dataj\",\"\":{\"h\":\"datatubcmu\",\"bcuufkrfn\":\"databtzvxxv\",\"wwp\":\"datacnihkswxmfurqmw\"}},\"compression\":{\"type\":\"dataum\",\"level\":\"dataahbqsvnkxm\",\"\":{\"edr\":\"datau\"}}}") - .toObject(AzureDataLakeStoreDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureDataLakeStoreDatasetTypeProperties model = - new AzureDataLakeStoreDatasetTypeProperties() - .withFolderPath("dataailxqkdyqjvzvcg") - .withFileName("dataspzesfkqqxuhvz") - .withFormat( - new DatasetStorageFormat() - .withSerializer("datarouszxacdwukokgo") - .withDeserializer("dataj") - .withAdditionalProperties(mapOf("type", "DatasetStorageFormat"))) - .withCompression( - new DatasetCompression() - .withType("dataum") - .withLevel("dataahbqsvnkxm") - .withAdditionalProperties(mapOf())); - model = BinaryData.fromObject(model).toObject(AzureDataLakeStoreDatasetTypeProperties.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataLakeStoreLocationTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataLakeStoreLocationTests.java deleted file mode 100644 index 23c7f388306f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataLakeStoreLocationTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureDataLakeStoreLocation; - -public final class AzureDataLakeStoreLocationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureDataLakeStoreLocation model = - BinaryData - .fromString( - "{\"type\":\"AzureDataLakeStoreLocation\",\"folderPath\":\"datapoyryefqmwovyzt\",\"fileName\":\"datanomfpbjceegvyiez\",\"\":{\"ehyh\":\"datatnjillukk\",\"fvulxfaryr\":\"datamjodu\",\"jqwahoyi\":\"datajlgdez\",\"ovbooqbmdqrxy\":\"dataaxqvjweiwtczkddn\"}}") - .toObject(AzureDataLakeStoreLocation.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureDataLakeStoreLocation model = - new AzureDataLakeStoreLocation().withFolderPath("datapoyryefqmwovyzt").withFileName("datanomfpbjceegvyiez"); - model = BinaryData.fromObject(model).toObject(AzureDataLakeStoreLocation.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataLakeStoreReadSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataLakeStoreReadSettingsTests.java deleted file mode 100644 index 49512344ab7b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataLakeStoreReadSettingsTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureDataLakeStoreReadSettings; - -public final class AzureDataLakeStoreReadSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureDataLakeStoreReadSettings model = - BinaryData - .fromString( - "{\"type\":\"AzureDataLakeStoreReadSettings\",\"recursive\":\"dataev\",\"wildcardFolderPath\":\"datauvupdsafqaghw\",\"wildcardFileName\":\"datamecqyi\",\"fileListPath\":\"datajmvvkodkqffhuxo\",\"listAfter\":\"datatgzvzcfmwfogj\",\"listBefore\":\"datamtbpnhjo\",\"enablePartitionDiscovery\":\"datavfz\",\"partitionRootPath\":\"datakrmptapyqees\",\"deleteFilesAfterCompletion\":\"datanpixhulfjl\",\"modifiedDatetimeStart\":\"datahv\",\"modifiedDatetimeEnd\":\"datakwrvtflotjizvi\",\"maxConcurrentConnections\":\"dataixlvnwznfx\",\"disableMetricsCollection\":\"dataylsl\",\"\":{\"llatbld\":\"datatrwkpelyglfwma\",\"nithxnainssv\":\"datacfh\",\"bmyghqtthsb\":\"datakzslylioguwshrmc\"}}") - .toObject(AzureDataLakeStoreReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureDataLakeStoreReadSettings model = - new AzureDataLakeStoreReadSettings() - .withMaxConcurrentConnections("dataixlvnwznfx") - .withDisableMetricsCollection("dataylsl") - .withRecursive("dataev") - .withWildcardFolderPath("datauvupdsafqaghw") - .withWildcardFileName("datamecqyi") - .withFileListPath("datajmvvkodkqffhuxo") - .withListAfter("datatgzvzcfmwfogj") - .withListBefore("datamtbpnhjo") - .withEnablePartitionDiscovery("datavfz") - .withPartitionRootPath("datakrmptapyqees") - .withDeleteFilesAfterCompletion("datanpixhulfjl") - .withModifiedDatetimeStart("datahv") - .withModifiedDatetimeEnd("datakwrvtflotjizvi"); - model = BinaryData.fromObject(model).toObject(AzureDataLakeStoreReadSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataLakeStoreSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataLakeStoreSinkTests.java deleted file mode 100644 index 499482abf467..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataLakeStoreSinkTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureDataLakeStoreSink; - -public final class AzureDataLakeStoreSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureDataLakeStoreSink model = - BinaryData - .fromString( - "{\"type\":\"AzureDataLakeStoreSink\",\"copyBehavior\":\"datayipjzgmxqaupy\",\"enableAdlsSingleFileParallel\":\"datagoyp\",\"writeBatchSize\":\"dataooyyfysn\",\"writeBatchTimeout\":\"datajnl\",\"sinkRetryCount\":\"datacmhonojese\",\"sinkRetryWait\":\"dataxel\",\"maxConcurrentConnections\":\"dataxwmpziy\",\"disableMetricsCollection\":\"datasjswedkfof\",\"\":{\"utzlvx\":\"datapunwp\",\"vddwgozr\":\"dataolvedzrjkrpor\"}}") - .toObject(AzureDataLakeStoreSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureDataLakeStoreSink model = - new AzureDataLakeStoreSink() - .withWriteBatchSize("dataooyyfysn") - .withWriteBatchTimeout("datajnl") - .withSinkRetryCount("datacmhonojese") - .withSinkRetryWait("dataxel") - .withMaxConcurrentConnections("dataxwmpziy") - .withDisableMetricsCollection("datasjswedkfof") - .withCopyBehavior("datayipjzgmxqaupy") - .withEnableAdlsSingleFileParallel("datagoyp"); - model = BinaryData.fromObject(model).toObject(AzureDataLakeStoreSink.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataLakeStoreSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataLakeStoreSourceTests.java deleted file mode 100644 index e35352c7789c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataLakeStoreSourceTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureDataLakeStoreSource; - -public final class AzureDataLakeStoreSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureDataLakeStoreSource model = - BinaryData - .fromString( - "{\"type\":\"AzureDataLakeStoreSource\",\"recursive\":\"dataphgimijzhrbsx\",\"sourceRetryCount\":\"dataublouelf\",\"sourceRetryWait\":\"datafb\",\"maxConcurrentConnections\":\"datablpdwckmnpzub\",\"disableMetricsCollection\":\"datad\",\"\":{\"bsh\":\"datafjrgngc\"}}") - .toObject(AzureDataLakeStoreSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureDataLakeStoreSource model = - new AzureDataLakeStoreSource() - .withSourceRetryCount("dataublouelf") - .withSourceRetryWait("datafb") - .withMaxConcurrentConnections("datablpdwckmnpzub") - .withDisableMetricsCollection("datad") - .withRecursive("dataphgimijzhrbsx"); - model = BinaryData.fromObject(model).toObject(AzureDataLakeStoreSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataLakeStoreWriteSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataLakeStoreWriteSettingsTests.java deleted file mode 100644 index d779ae4ede07..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataLakeStoreWriteSettingsTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureDataLakeStoreWriteSettings; - -public final class AzureDataLakeStoreWriteSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureDataLakeStoreWriteSettings model = - BinaryData - .fromString( - "{\"type\":\"AzureDataLakeStoreWriteSettings\",\"expiryDateTime\":\"datakoxqbozezx\",\"maxConcurrentConnections\":\"datainrguk\",\"disableMetricsCollection\":\"databov\",\"copyBehavior\":\"dataltqlqufkrnrbnjkc\",\"\":{\"qvv\":\"datazqlyputawdmdikuf\",\"hvfojcvnh\":\"dataujzofyldxk\",\"kysg\":\"dataebuiy\"}}") - .toObject(AzureDataLakeStoreWriteSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureDataLakeStoreWriteSettings model = - new AzureDataLakeStoreWriteSettings() - .withMaxConcurrentConnections("datainrguk") - .withDisableMetricsCollection("databov") - .withCopyBehavior("dataltqlqufkrnrbnjkc") - .withExpiryDateTime("datakoxqbozezx"); - model = BinaryData.fromObject(model).toObject(AzureDataLakeStoreWriteSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDatabricksDeltaLakeDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDatabricksDeltaLakeDatasetTests.java deleted file mode 100644 index 9c48caad819e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDatabricksDeltaLakeDatasetTests.java +++ /dev/null @@ -1,82 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureDatabricksDeltaLakeDataset; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AzureDatabricksDeltaLakeDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureDatabricksDeltaLakeDataset model = - BinaryData - .fromString( - "{\"type\":\"AzureDatabricksDeltaLakeDataset\",\"typeProperties\":{\"table\":\"dataspllitxrrgkw\",\"database\":\"dataoyhqoivxcodwkwo\"},\"description\":\"cachhsizfuew\",\"structure\":\"datawfiikqcdnzsfiu\",\"schema\":\"dataneoodmcrxlyz\",\"linkedServiceName\":{\"referenceName\":\"ah\",\"parameters\":{\"brnlsyiaan\":\"datafakrxjjwnbrmdw\",\"lpphcstmrycpana\":\"datastcjhat\",\"izrinlpxngzzxqb\":\"datafa\",\"jkpi\":\"dataqnzmzctbx\"}},\"parameters\":{\"qmbinpxmiwt\":{\"type\":\"Bool\",\"defaultValue\":\"databdozwbskueafz\"},\"abux\":{\"type\":\"Array\",\"defaultValue\":\"datafpvrdukcdnzox\"}},\"annotations\":[\"databawshramqsugq\"],\"folder\":{\"name\":\"madfztofx\"},\"\":{\"feiqb\":\"dataauuagwayfmcerf\",\"hzwj\":\"datas\"}}") - .toObject(AzureDatabricksDeltaLakeDataset.class); - Assertions.assertEquals("cachhsizfuew", model.description()); - Assertions.assertEquals("ah", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("qmbinpxmiwt").type()); - Assertions.assertEquals("madfztofx", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureDatabricksDeltaLakeDataset model = - new AzureDatabricksDeltaLakeDataset() - .withDescription("cachhsizfuew") - .withStructure("datawfiikqcdnzsfiu") - .withSchema("dataneoodmcrxlyz") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("ah") - .withParameters( - mapOf( - "brnlsyiaan", - "datafakrxjjwnbrmdw", - "lpphcstmrycpana", - "datastcjhat", - "izrinlpxngzzxqb", - "datafa", - "jkpi", - "dataqnzmzctbx"))) - .withParameters( - mapOf( - "qmbinpxmiwt", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("databdozwbskueafz"), - "abux", - new ParameterSpecification() - .withType(ParameterType.ARRAY) - .withDefaultValue("datafpvrdukcdnzox"))) - .withAnnotations(Arrays.asList("databawshramqsugq")) - .withFolder(new DatasetFolder().withName("madfztofx")) - .withTable("dataspllitxrrgkw") - .withDatabase("dataoyhqoivxcodwkwo"); - model = BinaryData.fromObject(model).toObject(AzureDatabricksDeltaLakeDataset.class); - Assertions.assertEquals("cachhsizfuew", model.description()); - Assertions.assertEquals("ah", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("qmbinpxmiwt").type()); - Assertions.assertEquals("madfztofx", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDatabricksDeltaLakeDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDatabricksDeltaLakeDatasetTypePropertiesTests.java deleted file mode 100644 index 698757acd1ab..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDatabricksDeltaLakeDatasetTypePropertiesTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.AzureDatabricksDeltaLakeDatasetTypeProperties; - -public final class AzureDatabricksDeltaLakeDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureDatabricksDeltaLakeDatasetTypeProperties model = - BinaryData - .fromString("{\"table\":\"datassvnonijcqcjo\",\"database\":\"datajkugpdqqbt\"}") - .toObject(AzureDatabricksDeltaLakeDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureDatabricksDeltaLakeDatasetTypeProperties model = - new AzureDatabricksDeltaLakeDatasetTypeProperties() - .withTable("datassvnonijcqcjo") - .withDatabase("datajkugpdqqbt"); - model = BinaryData.fromObject(model).toObject(AzureDatabricksDeltaLakeDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDatabricksDeltaLakeExportCommandTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDatabricksDeltaLakeExportCommandTests.java deleted file mode 100644 index e5d5d6d7b569..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDatabricksDeltaLakeExportCommandTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureDatabricksDeltaLakeExportCommand; - -public final class AzureDatabricksDeltaLakeExportCommandTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureDatabricksDeltaLakeExportCommand model = - BinaryData - .fromString( - "{\"type\":\"AzureDatabricksDeltaLakeExportCommand\",\"dateFormat\":\"dataudk\",\"timestampFormat\":\"datasgop\",\"\":{\"rutoud\":\"datamn\",\"eyavldovpwrq\":\"datamdayqkgixfnr\",\"okplzliizbwfjumu\":\"dataf\",\"nchah\":\"datahfqd\"}}") - .toObject(AzureDatabricksDeltaLakeExportCommand.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureDatabricksDeltaLakeExportCommand model = - new AzureDatabricksDeltaLakeExportCommand().withDateFormat("dataudk").withTimestampFormat("datasgop"); - model = BinaryData.fromObject(model).toObject(AzureDatabricksDeltaLakeExportCommand.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDatabricksDeltaLakeImportCommandTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDatabricksDeltaLakeImportCommandTests.java deleted file mode 100644 index ba528c113a95..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDatabricksDeltaLakeImportCommandTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureDatabricksDeltaLakeImportCommand; - -public final class AzureDatabricksDeltaLakeImportCommandTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureDatabricksDeltaLakeImportCommand model = - BinaryData - .fromString( - "{\"type\":\"AzureDatabricksDeltaLakeImportCommand\",\"dateFormat\":\"datahyzez\",\"timestampFormat\":\"datavkzrvy\",\"\":{\"oelyjduzapn\":\"dataqgyui\",\"odprrqcagl\":\"datapo\"}}") - .toObject(AzureDatabricksDeltaLakeImportCommand.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureDatabricksDeltaLakeImportCommand model = - new AzureDatabricksDeltaLakeImportCommand().withDateFormat("datahyzez").withTimestampFormat("datavkzrvy"); - model = BinaryData.fromObject(model).toObject(AzureDatabricksDeltaLakeImportCommand.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDatabricksDeltaLakeSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDatabricksDeltaLakeSinkTests.java deleted file mode 100644 index 365ee28a6396..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDatabricksDeltaLakeSinkTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureDatabricksDeltaLakeImportCommand; -import com.azure.resourcemanager.datafactory.models.AzureDatabricksDeltaLakeSink; - -public final class AzureDatabricksDeltaLakeSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureDatabricksDeltaLakeSink model = - BinaryData - .fromString( - "{\"type\":\"AzureDatabricksDeltaLakeSink\",\"preCopyScript\":\"datanrptrqcap\",\"importSettings\":{\"type\":\"AzureDatabricksDeltaLakeImportCommand\",\"dateFormat\":\"datavowzbkrbqp\",\"timestampFormat\":\"datapujywjmohqzzkp\",\"\":{\"tjgfpqwwugfwpv\":\"datacamseiauveen\",\"ehdydyybz\":\"datacewbqaibkyeysf\"}},\"writeBatchSize\":\"dataylhdxcjqdvci\",\"writeBatchTimeout\":\"datazkui\",\"sinkRetryCount\":\"datavghvecjhbttmhne\",\"sinkRetryWait\":\"datarzieyxxidab\",\"maxConcurrentConnections\":\"dataakkn\",\"disableMetricsCollection\":\"datacseqo\",\"\":{\"jqtdjeydmeui\":\"datasfcryqrr\"}}") - .toObject(AzureDatabricksDeltaLakeSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureDatabricksDeltaLakeSink model = - new AzureDatabricksDeltaLakeSink() - .withWriteBatchSize("dataylhdxcjqdvci") - .withWriteBatchTimeout("datazkui") - .withSinkRetryCount("datavghvecjhbttmhne") - .withSinkRetryWait("datarzieyxxidab") - .withMaxConcurrentConnections("dataakkn") - .withDisableMetricsCollection("datacseqo") - .withPreCopyScript("datanrptrqcap") - .withImportSettings( - new AzureDatabricksDeltaLakeImportCommand() - .withDateFormat("datavowzbkrbqp") - .withTimestampFormat("datapujywjmohqzzkp")); - model = BinaryData.fromObject(model).toObject(AzureDatabricksDeltaLakeSink.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDatabricksDeltaLakeSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDatabricksDeltaLakeSourceTests.java deleted file mode 100644 index c2cc4a932b7e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDatabricksDeltaLakeSourceTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureDatabricksDeltaLakeExportCommand; -import com.azure.resourcemanager.datafactory.models.AzureDatabricksDeltaLakeSource; - -public final class AzureDatabricksDeltaLakeSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureDatabricksDeltaLakeSource model = - BinaryData - .fromString( - "{\"type\":\"AzureDatabricksDeltaLakeSource\",\"query\":\"datal\",\"exportSettings\":{\"type\":\"AzureDatabricksDeltaLakeExportCommand\",\"dateFormat\":\"datatcljopivtwxvc\",\"timestampFormat\":\"datahokkcjjnqx\",\"\":{\"cxjmap\":\"dataayajdf\",\"xcgjuc\":\"datafbzbxeqzvokfrhfa\",\"efsrxqscdbbwej\":\"datauaxdulv\",\"lfscosf\":\"datamksgeqpai\"}},\"sourceRetryCount\":\"dataotvneteehndfpflf\",\"sourceRetryWait\":\"datagfnaoehkgpkss\",\"maxConcurrentConnections\":\"datawkwxdgcfcfkyyrj\",\"disableMetricsCollection\":\"datahslrbwwkbyw\",\"\":{\"sxj\":\"datasodo\",\"oggwc\":\"datakydsquhuixq\",\"dfahky\":\"datadmxhuw\"}}") - .toObject(AzureDatabricksDeltaLakeSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureDatabricksDeltaLakeSource model = - new AzureDatabricksDeltaLakeSource() - .withSourceRetryCount("dataotvneteehndfpflf") - .withSourceRetryWait("datagfnaoehkgpkss") - .withMaxConcurrentConnections("datawkwxdgcfcfkyyrj") - .withDisableMetricsCollection("datahslrbwwkbyw") - .withQuery("datal") - .withExportSettings( - new AzureDatabricksDeltaLakeExportCommand() - .withDateFormat("datatcljopivtwxvc") - .withTimestampFormat("datahokkcjjnqx")); - model = BinaryData.fromObject(model).toObject(AzureDatabricksDeltaLakeSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureFileStorageLocationTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureFileStorageLocationTests.java deleted file mode 100644 index f784b5b6bb91..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureFileStorageLocationTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureFileStorageLocation; - -public final class AzureFileStorageLocationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureFileStorageLocation model = - BinaryData - .fromString( - "{\"type\":\"AzureFileStorageLocation\",\"folderPath\":\"datahuioaeoc\",\"fileName\":\"datajtfeyvkbdgddkr\",\"\":{\"uzy\":\"datacxbeuuqutkzwtjww\",\"deg\":\"dataijcxfno\",\"uckcatuqbhpow\":\"datadydhqkkkb\"}}") - .toObject(AzureFileStorageLocation.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureFileStorageLocation model = - new AzureFileStorageLocation().withFolderPath("datahuioaeoc").withFileName("datajtfeyvkbdgddkr"); - model = BinaryData.fromObject(model).toObject(AzureFileStorageLocation.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureFileStorageReadSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureFileStorageReadSettingsTests.java deleted file mode 100644 index 014a2408cc9f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureFileStorageReadSettingsTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureFileStorageReadSettings; - -public final class AzureFileStorageReadSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureFileStorageReadSettings model = - BinaryData - .fromString( - "{\"type\":\"AzureFileStorageReadSettings\",\"recursive\":\"datacpqboubeh\",\"wildcardFolderPath\":\"datapyiafsuuvoqq\",\"wildcardFileName\":\"dataoinxkothrnlgnwwj\",\"prefix\":\"datagpwdczzkz\",\"fileListPath\":\"datapjnhhiofcnyzqz\",\"enablePartitionDiscovery\":\"dataddngq\",\"partitionRootPath\":\"datallegucemags\",\"deleteFilesAfterCompletion\":\"datajwwpzq\",\"modifiedDatetimeStart\":\"datahlajmikqvnrj\",\"modifiedDatetimeEnd\":\"datao\",\"maxConcurrentConnections\":\"datagtzrgyrldoa\",\"disableMetricsCollection\":\"datadglzdk\",\"\":{\"ederkvbdv\":\"dataj\",\"kxau\":\"dataa\",\"ztghdwrvffjpw\":\"datajr\",\"cplxid\":\"datazlfyftgae\"}}") - .toObject(AzureFileStorageReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureFileStorageReadSettings model = - new AzureFileStorageReadSettings() - .withMaxConcurrentConnections("datagtzrgyrldoa") - .withDisableMetricsCollection("datadglzdk") - .withRecursive("datacpqboubeh") - .withWildcardFolderPath("datapyiafsuuvoqq") - .withWildcardFileName("dataoinxkothrnlgnwwj") - .withPrefix("datagpwdczzkz") - .withFileListPath("datapjnhhiofcnyzqz") - .withEnablePartitionDiscovery("dataddngq") - .withPartitionRootPath("datallegucemags") - .withDeleteFilesAfterCompletion("datajwwpzq") - .withModifiedDatetimeStart("datahlajmikqvnrj") - .withModifiedDatetimeEnd("datao"); - model = BinaryData.fromObject(model).toObject(AzureFileStorageReadSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureFileStorageWriteSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureFileStorageWriteSettingsTests.java deleted file mode 100644 index 781add88e23b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureFileStorageWriteSettingsTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureFileStorageWriteSettings; - -public final class AzureFileStorageWriteSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureFileStorageWriteSettings model = - BinaryData - .fromString( - "{\"type\":\"AzureFileStorageWriteSettings\",\"maxConcurrentConnections\":\"datagmjrvrsq\",\"disableMetricsCollection\":\"datacozrwrylcttvxkx\",\"copyBehavior\":\"datafpvvqwvvnx\",\"\":{\"jbl\":\"dataa\",\"tsztxoswvfrym\":\"dataqwwtevfeugc\",\"gkbaxygwvtkrq\":\"dataqfksqfcxdleohys\"}}") - .toObject(AzureFileStorageWriteSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureFileStorageWriteSettings model = - new AzureFileStorageWriteSettings() - .withMaxConcurrentConnections("datagmjrvrsq") - .withDisableMetricsCollection("datacozrwrylcttvxkx") - .withCopyBehavior("datafpvvqwvvnx"); - model = BinaryData.fromObject(model).toObject(AzureFileStorageWriteSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureFunctionActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureFunctionActivityTests.java deleted file mode 100644 index 93ded225fdab..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureFunctionActivityTests.java +++ /dev/null @@ -1,135 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityPolicy; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.AzureFunctionActivity; -import com.azure.resourcemanager.datafactory.models.AzureFunctionActivityMethod; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AzureFunctionActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureFunctionActivity model = - BinaryData - .fromString( - "{\"type\":\"AzureFunctionActivity\",\"typeProperties\":{\"method\":\"HEAD\",\"functionName\":\"dataxenmuev\",\"headers\":\"datassclgolbpw\",\"body\":\"datazdionlgn\"},\"linkedServiceName\":{\"referenceName\":\"pk\",\"parameters\":{\"xndrhlbxrqbicj\":\"datafdtzskvpq\",\"poczxmwbk\":\"dataaafvxxiizkehf\",\"inhqpq\":\"datawihbyufm\",\"huxzdgoto\":\"dataowxd\"}},\"policy\":{\"timeout\":\"dataduirjqxknaeuhxnp\",\"retry\":\"datadjaeqaolfy\",\"retryIntervalInSeconds\":900983791,\"secureInput\":false,\"secureOutput\":true,\"\":{\"mjwgrwvlzb\":\"dataaxtbn\",\"tieybi\":\"datafmhz\",\"et\":\"dataitgx\"}},\"name\":\"wloo\",\"description\":\"gkwabzr\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"ii\",\"dependencyConditions\":[\"Completed\",\"Failed\"],\"\":{\"kuzlfnbz\":\"dataez\",\"vckyhncqyogv\":\"datakwoajbkw\",\"tnx\":\"datapxs\",\"kovgxamhmqe\":\"datagwxmqyhtlnnpfta\"}},{\"activity\":\"yoylcwzkcreufdp\",\"dependencyConditions\":[\"Failed\",\"Completed\",\"Failed\"],\"\":{\"smiaru\":\"datahrpxsxyba\",\"yvxjelsjhgrvytlu\":\"databotqzypvcob\",\"elawdbkezfko\":\"datakhiycddonqikujjd\"}},{\"activity\":\"voszgcy\",\"dependencyConditions\":[\"Completed\",\"Failed\",\"Succeeded\"],\"\":{\"j\":\"dataqwvvferlqhfzzqqs\",\"skjqejkm\":\"datashwxy\",\"utcyjjbdgfrl\":\"datatwftlhsmtkxzio\",\"egqvusffzvpwzvh\":\"datah\"}}],\"userProperties\":[{\"name\":\"rvmpiw\",\"value\":\"dataoorrnssthninza\"},{\"name\":\"dmnc\",\"value\":\"dataltrxwab\"},{\"name\":\"d\",\"value\":\"dataclqgteoepdpx\"}],\"\":{\"qikeamymalvoy\":\"dataqwfpqixomonq\"}}") - .toObject(AzureFunctionActivity.class); - Assertions.assertEquals("wloo", model.name()); - Assertions.assertEquals("gkwabzr", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.onInactiveMarkAs()); - Assertions.assertEquals("ii", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("rvmpiw", model.userProperties().get(0).name()); - Assertions.assertEquals("pk", model.linkedServiceName().referenceName()); - Assertions.assertEquals(900983791, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - Assertions.assertEquals(AzureFunctionActivityMethod.HEAD, model.method()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureFunctionActivity model = - new AzureFunctionActivity() - .withName("wloo") - .withDescription("gkwabzr") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("ii") - .withDependencyConditions( - Arrays.asList(DependencyCondition.COMPLETED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("yoylcwzkcreufdp") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.FAILED, - DependencyCondition.COMPLETED, - DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("voszgcy") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.COMPLETED, - DependencyCondition.FAILED, - DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays - .asList( - new UserProperty().withName("rvmpiw").withValue("dataoorrnssthninza"), - new UserProperty().withName("dmnc").withValue("dataltrxwab"), - new UserProperty().withName("d").withValue("dataclqgteoepdpx"))) - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("pk") - .withParameters( - mapOf( - "xndrhlbxrqbicj", - "datafdtzskvpq", - "poczxmwbk", - "dataaafvxxiizkehf", - "inhqpq", - "datawihbyufm", - "huxzdgoto", - "dataowxd"))) - .withPolicy( - new ActivityPolicy() - .withTimeout("dataduirjqxknaeuhxnp") - .withRetry("datadjaeqaolfy") - .withRetryIntervalInSeconds(900983791) - .withSecureInput(false) - .withSecureOutput(true) - .withAdditionalProperties(mapOf())) - .withMethod(AzureFunctionActivityMethod.HEAD) - .withFunctionName("dataxenmuev") - .withHeaders("datassclgolbpw") - .withBody("datazdionlgn"); - model = BinaryData.fromObject(model).toObject(AzureFunctionActivity.class); - Assertions.assertEquals("wloo", model.name()); - Assertions.assertEquals("gkwabzr", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.onInactiveMarkAs()); - Assertions.assertEquals("ii", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("rvmpiw", model.userProperties().get(0).name()); - Assertions.assertEquals("pk", model.linkedServiceName().referenceName()); - Assertions.assertEquals(900983791, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - Assertions.assertEquals(AzureFunctionActivityMethod.HEAD, model.method()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureFunctionActivityTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureFunctionActivityTypePropertiesTests.java deleted file mode 100644 index 2729fce2e4c5..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureFunctionActivityTypePropertiesTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.AzureFunctionActivityTypeProperties; -import com.azure.resourcemanager.datafactory.models.AzureFunctionActivityMethod; -import org.junit.jupiter.api.Assertions; - -public final class AzureFunctionActivityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureFunctionActivityTypeProperties model = - BinaryData - .fromString( - "{\"method\":\"DELETE\",\"functionName\":\"datag\",\"headers\":\"dataccccccojnljz\",\"body\":\"dataevmzpoilh\"}") - .toObject(AzureFunctionActivityTypeProperties.class); - Assertions.assertEquals(AzureFunctionActivityMethod.DELETE, model.method()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureFunctionActivityTypeProperties model = - new AzureFunctionActivityTypeProperties() - .withMethod(AzureFunctionActivityMethod.DELETE) - .withFunctionName("datag") - .withHeaders("dataccccccojnljz") - .withBody("dataevmzpoilh"); - model = BinaryData.fromObject(model).toObject(AzureFunctionActivityTypeProperties.class); - Assertions.assertEquals(AzureFunctionActivityMethod.DELETE, model.method()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMLBatchExecutionActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMLBatchExecutionActivityTests.java deleted file mode 100644 index 55b90014a7be..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMLBatchExecutionActivityTests.java +++ /dev/null @@ -1,176 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityPolicy; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.AzureMLBatchExecutionActivity; -import com.azure.resourcemanager.datafactory.models.AzureMLWebServiceFile; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AzureMLBatchExecutionActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureMLBatchExecutionActivity model = - BinaryData - .fromString( - "{\"type\":\"AzureMLBatchExecution\",\"typeProperties\":{\"globalParameters\":{\"zhyceteidf\":\"datangiaadgx\",\"ikyn\":\"dataofmcnnicmlomlnpr\"},\"webServiceOutputs\":{\"c\":{\"filePath\":\"datagquphqnuitumxhve\",\"linkedServiceName\":{\"referenceName\":\"ogabcwvibjfkc\",\"parameters\":{\"utjdmd\":\"datan\",\"qehgrjgvrawjom\":\"datatbdtrqiuohijjlax\",\"dwfyagvhe\":\"datagb\",\"ndapxxgvcsvtf\":\"dataptcuqzdwpcupejzo\"}}}},\"webServiceInputs\":{\"ixxiukghxde\":{\"filePath\":\"datateexapfypdfie\",\"linkedServiceName\":{\"referenceName\":\"utcedeygsrrg\",\"parameters\":{\"wo\":\"dataaqyesahvowlib\",\"okkagkaitihncysa\":\"datadwzzacyrkc\",\"ora\":\"datajlq\",\"ajlptydvebipkeo\":\"datatbiskkceb\"}}},\"gpqxiyllamdz\":{\"filePath\":\"dataqptvxibpzhkn\",\"linkedServiceName\":{\"referenceName\":\"uevzqawjnwj\",\"parameters\":{\"sjghfaldxsd\":\"dataubpfe\",\"jseftvwu\":\"datalbbp\",\"naqyeswinoecwabu\":\"datafmakn\",\"eqayvkmp\":\"dataqflwskb\"}}},\"glimacztkypyvz\":{\"filePath\":\"datazjrlm\",\"linkedServiceName\":{\"referenceName\":\"dboesxpc\",\"parameters\":{\"tbd\":\"databpahbcyggflos\",\"bd\":\"datapydc\"}}}}},\"linkedServiceName\":{\"referenceName\":\"h\",\"parameters\":{\"xdyyo\":\"datarcum\",\"vuemjcjeja\":\"databbtwpkg\"}},\"policy\":{\"timeout\":\"datavxumtxuvdotei\",\"retry\":\"datawrmdqqg\",\"retryIntervalInSeconds\":1560089068,\"secureInput\":false,\"secureOutput\":false,\"\":{\"yfszluzmzgat\":\"dataym\",\"ckmcukzwzgio\":\"dataagroejsaer\",\"iwbvyraazsc\":\"datazrxgqxddvuiu\",\"xmkmybo\":\"dataikjyjcshmtpdvu\"}},\"name\":\"ax\",\"description\":\"ckfivi\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"dqzg\",\"dependencyConditions\":[\"Failed\",\"Skipped\",\"Completed\"],\"\":{\"y\":\"datafraohiyeyfsvuy\"}}],\"userProperties\":[{\"name\":\"zpjnakqcsgoozyxu\",\"value\":\"dataieitp\"},{\"name\":\"kjyjhkrk\",\"value\":\"dataznifpxiqpjnqyylk\"},{\"name\":\"bkljj\",\"value\":\"datauirmcupbehqbmhqi\"}],\"\":{\"ocvctmpxnbnhogb\":\"datadhoagcu\",\"efgett\":\"datahaw\",\"kbvhd\":\"datazlokttpmbxn\"}}") - .toObject(AzureMLBatchExecutionActivity.class); - Assertions.assertEquals("ax", model.name()); - Assertions.assertEquals("ckfivi", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.onInactiveMarkAs()); - Assertions.assertEquals("dqzg", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("zpjnakqcsgoozyxu", model.userProperties().get(0).name()); - Assertions.assertEquals("h", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1560089068, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - Assertions - .assertEquals("ogabcwvibjfkc", model.webServiceOutputs().get("c").linkedServiceName().referenceName()); - Assertions - .assertEquals( - "utcedeygsrrg", model.webServiceInputs().get("ixxiukghxde").linkedServiceName().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureMLBatchExecutionActivity model = - new AzureMLBatchExecutionActivity() - .withName("ax") - .withDescription("ckfivi") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("dqzg") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.FAILED, - DependencyCondition.SKIPPED, - DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays - .asList( - new UserProperty().withName("zpjnakqcsgoozyxu").withValue("dataieitp"), - new UserProperty().withName("kjyjhkrk").withValue("dataznifpxiqpjnqyylk"), - new UserProperty().withName("bkljj").withValue("datauirmcupbehqbmhqi"))) - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("h") - .withParameters(mapOf("xdyyo", "datarcum", "vuemjcjeja", "databbtwpkg"))) - .withPolicy( - new ActivityPolicy() - .withTimeout("datavxumtxuvdotei") - .withRetry("datawrmdqqg") - .withRetryIntervalInSeconds(1560089068) - .withSecureInput(false) - .withSecureOutput(false) - .withAdditionalProperties(mapOf())) - .withGlobalParameters(mapOf("zhyceteidf", "datangiaadgx", "ikyn", "dataofmcnnicmlomlnpr")) - .withWebServiceOutputs( - mapOf( - "c", - new AzureMLWebServiceFile() - .withFilePath("datagquphqnuitumxhve") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("ogabcwvibjfkc") - .withParameters( - mapOf( - "utjdmd", - "datan", - "qehgrjgvrawjom", - "datatbdtrqiuohijjlax", - "dwfyagvhe", - "datagb", - "ndapxxgvcsvtf", - "dataptcuqzdwpcupejzo"))))) - .withWebServiceInputs( - mapOf( - "ixxiukghxde", - new AzureMLWebServiceFile() - .withFilePath("datateexapfypdfie") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("utcedeygsrrg") - .withParameters( - mapOf( - "wo", - "dataaqyesahvowlib", - "okkagkaitihncysa", - "datadwzzacyrkc", - "ora", - "datajlq", - "ajlptydvebipkeo", - "datatbiskkceb"))), - "gpqxiyllamdz", - new AzureMLWebServiceFile() - .withFilePath("dataqptvxibpzhkn") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("uevzqawjnwj") - .withParameters( - mapOf( - "sjghfaldxsd", - "dataubpfe", - "jseftvwu", - "datalbbp", - "naqyeswinoecwabu", - "datafmakn", - "eqayvkmp", - "dataqflwskb"))), - "glimacztkypyvz", - new AzureMLWebServiceFile() - .withFilePath("datazjrlm") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("dboesxpc") - .withParameters(mapOf("tbd", "databpahbcyggflos", "bd", "datapydc"))))); - model = BinaryData.fromObject(model).toObject(AzureMLBatchExecutionActivity.class); - Assertions.assertEquals("ax", model.name()); - Assertions.assertEquals("ckfivi", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.onInactiveMarkAs()); - Assertions.assertEquals("dqzg", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("zpjnakqcsgoozyxu", model.userProperties().get(0).name()); - Assertions.assertEquals("h", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1560089068, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - Assertions - .assertEquals("ogabcwvibjfkc", model.webServiceOutputs().get("c").linkedServiceName().referenceName()); - Assertions - .assertEquals( - "utcedeygsrrg", model.webServiceInputs().get("ixxiukghxde").linkedServiceName().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMLBatchExecutionActivityTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMLBatchExecutionActivityTypePropertiesTests.java deleted file mode 100644 index 36d4546c3966..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMLBatchExecutionActivityTypePropertiesTests.java +++ /dev/null @@ -1,116 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.AzureMLBatchExecutionActivityTypeProperties; -import com.azure.resourcemanager.datafactory.models.AzureMLWebServiceFile; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AzureMLBatchExecutionActivityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureMLBatchExecutionActivityTypeProperties model = - BinaryData - .fromString( - "{\"globalParameters\":{\"vmixfqqm\":\"databcwfp\"},\"webServiceOutputs\":{\"pkevtofvqjrdyd\":{\"filePath\":\"datau\",\"linkedServiceName\":{\"referenceName\":\"fbrjmpdtzu\",\"parameters\":{\"qikouravdqe\":\"datarvpcwyn\",\"ma\":\"dataewgpmademlo\",\"hgdvgcgunqitzwn\":\"datakbmkkun\"}}}},\"webServiceInputs\":{\"krxajta\":{\"filePath\":\"datauppxdzpjewp\",\"linkedServiceName\":{\"referenceName\":\"lyszw\",\"parameters\":{\"tfgbxiao\":\"dataokgrnxly\",\"n\":\"datazrouwkkwtoxl\",\"keeeakzys\":\"datavealwdltstxronbz\"}}},\"zhiradklzg\":{\"filePath\":\"datadfqc\",\"linkedServiceName\":{\"referenceName\":\"jwkdwpcm\",\"parameters\":{\"gwxoreedor\":\"datarrkfhla\",\"qdmzsitrs\":\"dataiycvou\",\"mrjla\":\"datapucxigkpevtb\",\"z\":\"datadggwaldtelnvcfum\"}}},\"jfkuqvt\":{\"filePath\":\"dataqmmapxnoog\",\"linkedServiceName\":{\"referenceName\":\"fujecisicmez\",\"parameters\":{\"nljy\":\"datazpgy\",\"bcufhkrvxxzhqouo\":\"dataumpydk\",\"la\":\"datasczcksjwdwzfdfkg\",\"niybotuq\":\"datavmbsmxhsqdotbnf\"}}}}}") - .toObject(AzureMLBatchExecutionActivityTypeProperties.class); - Assertions - .assertEquals( - "fbrjmpdtzu", model.webServiceOutputs().get("pkevtofvqjrdyd").linkedServiceName().referenceName()); - Assertions.assertEquals("lyszw", model.webServiceInputs().get("krxajta").linkedServiceName().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureMLBatchExecutionActivityTypeProperties model = - new AzureMLBatchExecutionActivityTypeProperties() - .withGlobalParameters(mapOf("vmixfqqm", "databcwfp")) - .withWebServiceOutputs( - mapOf( - "pkevtofvqjrdyd", - new AzureMLWebServiceFile() - .withFilePath("datau") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("fbrjmpdtzu") - .withParameters( - mapOf( - "qikouravdqe", - "datarvpcwyn", - "ma", - "dataewgpmademlo", - "hgdvgcgunqitzwn", - "datakbmkkun"))))) - .withWebServiceInputs( - mapOf( - "krxajta", - new AzureMLWebServiceFile() - .withFilePath("datauppxdzpjewp") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("lyszw") - .withParameters( - mapOf( - "tfgbxiao", - "dataokgrnxly", - "n", - "datazrouwkkwtoxl", - "keeeakzys", - "datavealwdltstxronbz"))), - "zhiradklzg", - new AzureMLWebServiceFile() - .withFilePath("datadfqc") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("jwkdwpcm") - .withParameters( - mapOf( - "gwxoreedor", - "datarrkfhla", - "qdmzsitrs", - "dataiycvou", - "mrjla", - "datapucxigkpevtb", - "z", - "datadggwaldtelnvcfum"))), - "jfkuqvt", - new AzureMLWebServiceFile() - .withFilePath("dataqmmapxnoog") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("fujecisicmez") - .withParameters( - mapOf( - "nljy", - "datazpgy", - "bcufhkrvxxzhqouo", - "dataumpydk", - "la", - "datasczcksjwdwzfdfkg", - "niybotuq", - "datavmbsmxhsqdotbnf"))))); - model = BinaryData.fromObject(model).toObject(AzureMLBatchExecutionActivityTypeProperties.class); - Assertions - .assertEquals( - "fbrjmpdtzu", model.webServiceOutputs().get("pkevtofvqjrdyd").linkedServiceName().referenceName()); - Assertions.assertEquals("lyszw", model.webServiceInputs().get("krxajta").linkedServiceName().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMLExecutePipelineActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMLExecutePipelineActivityTests.java deleted file mode 100644 index b63b8532f1fa..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMLExecutePipelineActivityTests.java +++ /dev/null @@ -1,122 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityPolicy; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.AzureMLExecutePipelineActivity; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AzureMLExecutePipelineActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureMLExecutePipelineActivity model = - BinaryData - .fromString( - "{\"type\":\"AzureMLExecutePipeline\",\"typeProperties\":{\"mlPipelineId\":\"datakkraenzuufpd\",\"mlPipelineEndpointId\":\"datanxephwxdw\",\"version\":\"datawymeqi\",\"experimentName\":\"datajca\",\"mlPipelineParameters\":\"dataxuox\",\"dataPathAssignments\":\"datapleooom\",\"mlParentRunId\":\"datadjfldzvgog\",\"continueOnStepFailure\":\"datacgaofobjlqnaxfvs\"},\"linkedServiceName\":{\"referenceName\":\"strbje\",\"parameters\":{\"wbslrqbdtcjbxoc\":\"databknpzhfhibh\",\"ahbzdgwkim\":\"dataijwpskneprumhik\",\"ujxdnia\":\"datavatrvjkxcrxqpen\",\"qytppjdyikdykxh\":\"dataeterjerhwgiuduw\"}},\"policy\":{\"timeout\":\"datadtucyutrpdgm\",\"retry\":\"datammc\",\"retryIntervalInSeconds\":813552830,\"secureInput\":false,\"secureOutput\":false,\"\":{\"efxaed\":\"datacrjy\",\"vn\":\"datac\",\"jbahshyxhfe\":\"datayfzavs\"}},\"name\":\"tywluxysmq\",\"description\":\"odfp\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"ww\",\"dependencyConditions\":[\"Skipped\"],\"\":{\"vjefnlxq\":\"datamcaofxgw\",\"ambjqynwqcov\":\"datatedzxujxkxjrttzh\"}},{\"activity\":\"jvrsurqhhbddxko\",\"dependencyConditions\":[\"Skipped\",\"Completed\",\"Skipped\"],\"\":{\"vlfujsbcfoguub\":\"dataqasdvepldafxmp\",\"ri\":\"datacqnchdzyjugdknbl\",\"khugxtxxwb\":\"datavcpisvprumttr\"}}],\"userProperties\":[{\"name\":\"nlmpmvegxg\",\"value\":\"datamxplrtuegq\"}],\"\":{\"vjuowkt\":\"datalnjeybgpjy\",\"dkydqcgedip\":\"databpv\"}}") - .toObject(AzureMLExecutePipelineActivity.class); - Assertions.assertEquals("tywluxysmq", model.name()); - Assertions.assertEquals("odfp", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("ww", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SKIPPED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("nlmpmvegxg", model.userProperties().get(0).name()); - Assertions.assertEquals("strbje", model.linkedServiceName().referenceName()); - Assertions.assertEquals(813552830, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureMLExecutePipelineActivity model = - new AzureMLExecutePipelineActivity() - .withName("tywluxysmq") - .withDescription("odfp") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("ww") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("jvrsurqhhbddxko") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.SKIPPED, - DependencyCondition.COMPLETED, - DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("nlmpmvegxg").withValue("datamxplrtuegq"))) - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("strbje") - .withParameters( - mapOf( - "wbslrqbdtcjbxoc", - "databknpzhfhibh", - "ahbzdgwkim", - "dataijwpskneprumhik", - "ujxdnia", - "datavatrvjkxcrxqpen", - "qytppjdyikdykxh", - "dataeterjerhwgiuduw"))) - .withPolicy( - new ActivityPolicy() - .withTimeout("datadtucyutrpdgm") - .withRetry("datammc") - .withRetryIntervalInSeconds(813552830) - .withSecureInput(false) - .withSecureOutput(false) - .withAdditionalProperties(mapOf())) - .withMlPipelineId("datakkraenzuufpd") - .withMlPipelineEndpointId("datanxephwxdw") - .withVersion("datawymeqi") - .withExperimentName("datajca") - .withMlPipelineParameters("dataxuox") - .withDataPathAssignments("datapleooom") - .withMlParentRunId("datadjfldzvgog") - .withContinueOnStepFailure("datacgaofobjlqnaxfvs"); - model = BinaryData.fromObject(model).toObject(AzureMLExecutePipelineActivity.class); - Assertions.assertEquals("tywluxysmq", model.name()); - Assertions.assertEquals("odfp", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("ww", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SKIPPED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("nlmpmvegxg", model.userProperties().get(0).name()); - Assertions.assertEquals("strbje", model.linkedServiceName().referenceName()); - Assertions.assertEquals(813552830, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMLExecutePipelineActivityTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMLExecutePipelineActivityTypePropertiesTests.java deleted file mode 100644 index fcce156eb830..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMLExecutePipelineActivityTypePropertiesTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.AzureMLExecutePipelineActivityTypeProperties; - -public final class AzureMLExecutePipelineActivityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureMLExecutePipelineActivityTypeProperties model = - BinaryData - .fromString( - "{\"mlPipelineId\":\"datazmvttttjmdtf\",\"mlPipelineEndpointId\":\"dataxaeekomiesg\",\"version\":\"datapcwpbtumttmixe\",\"experimentName\":\"dataarb\",\"mlPipelineParameters\":\"datagoushvqnkwjhjut\",\"dataPathAssignments\":\"dataggnldflgqsoi\",\"mlParentRunId\":\"datacmuvf\",\"continueOnStepFailure\":\"datalepetsxetneh\"}") - .toObject(AzureMLExecutePipelineActivityTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureMLExecutePipelineActivityTypeProperties model = - new AzureMLExecutePipelineActivityTypeProperties() - .withMlPipelineId("datazmvttttjmdtf") - .withMlPipelineEndpointId("dataxaeekomiesg") - .withVersion("datapcwpbtumttmixe") - .withExperimentName("dataarb") - .withMlPipelineParameters("datagoushvqnkwjhjut") - .withDataPathAssignments("dataggnldflgqsoi") - .withMlParentRunId("datacmuvf") - .withContinueOnStepFailure("datalepetsxetneh"); - model = BinaryData.fromObject(model).toObject(AzureMLExecutePipelineActivityTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMLUpdateResourceActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMLUpdateResourceActivityTests.java deleted file mode 100644 index 9736adec8f29..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMLUpdateResourceActivityTests.java +++ /dev/null @@ -1,115 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityPolicy; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.AzureMLUpdateResourceActivity; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AzureMLUpdateResourceActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureMLUpdateResourceActivity model = - BinaryData - .fromString( - "{\"type\":\"AzureMLUpdateResource\",\"typeProperties\":{\"trainedModelName\":\"datasqovmtidmyc\",\"trainedModelLinkedServiceName\":{\"referenceName\":\"yajlnotmirgip\",\"parameters\":{\"hnj\":\"datanbfxmefymdmfrfz\",\"twmmvbahftkcey\":\"dataqzdzkyqqbqbwbw\"}},\"trainedModelFilePath\":\"datatdeyoxtlq\"},\"linkedServiceName\":{\"referenceName\":\"xftepzrcqnsjqrgt\",\"parameters\":{\"b\":\"datawpzphkm\",\"ondbvlqtpeba\":\"datarqk\",\"vqdwzyvxd\":\"datawzsxpyrbjt\"}},\"policy\":{\"timeout\":\"datanieqlikyc\",\"retry\":\"datanfukehxvktlrc\",\"retryIntervalInSeconds\":1149102333,\"secureInput\":true,\"secureOutput\":false,\"\":{\"zqamxxpfy\":\"datauwnrqf\",\"rtgww\":\"datampftwtepu\"}},\"name\":\"aolfdgjrgp\",\"description\":\"vohvcaqarppkzz\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"qou\",\"dependencyConditions\":[\"Completed\",\"Failed\",\"Skipped\",\"Completed\"],\"\":{\"znnpazbfrqotigxn\":\"datahtncadrmthhfx\"}}],\"userProperties\":[{\"name\":\"xnvwq\",\"value\":\"datahklhoss\"},{\"name\":\"pjtiu\",\"value\":\"datagjbfm\"},{\"name\":\"sjgmes\",\"value\":\"datamhxkjj\"}],\"\":{\"yafazwie\":\"datargxskghdadgqpbg\",\"rijcwnthtq\":\"datazzxjjdboxuinrs\",\"zbvdzjlkocjuajcl\":\"databcwtcqjsvlzdus\",\"iprjahgqzb\":\"datatssbkzdgwpyljn\"}}") - .toObject(AzureMLUpdateResourceActivity.class); - Assertions.assertEquals("aolfdgjrgp", model.name()); - Assertions.assertEquals("vohvcaqarppkzz", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("qou", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("xnvwq", model.userProperties().get(0).name()); - Assertions.assertEquals("xftepzrcqnsjqrgt", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1149102333, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - Assertions.assertEquals("yajlnotmirgip", model.trainedModelLinkedServiceName().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureMLUpdateResourceActivity model = - new AzureMLUpdateResourceActivity() - .withName("aolfdgjrgp") - .withDescription("vohvcaqarppkzz") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("qou") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.COMPLETED, - DependencyCondition.FAILED, - DependencyCondition.SKIPPED, - DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays - .asList( - new UserProperty().withName("xnvwq").withValue("datahklhoss"), - new UserProperty().withName("pjtiu").withValue("datagjbfm"), - new UserProperty().withName("sjgmes").withValue("datamhxkjj"))) - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("xftepzrcqnsjqrgt") - .withParameters( - mapOf("b", "datawpzphkm", "ondbvlqtpeba", "datarqk", "vqdwzyvxd", "datawzsxpyrbjt"))) - .withPolicy( - new ActivityPolicy() - .withTimeout("datanieqlikyc") - .withRetry("datanfukehxvktlrc") - .withRetryIntervalInSeconds(1149102333) - .withSecureInput(true) - .withSecureOutput(false) - .withAdditionalProperties(mapOf())) - .withTrainedModelName("datasqovmtidmyc") - .withTrainedModelLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("yajlnotmirgip") - .withParameters(mapOf("hnj", "datanbfxmefymdmfrfz", "twmmvbahftkcey", "dataqzdzkyqqbqbwbw"))) - .withTrainedModelFilePath("datatdeyoxtlq"); - model = BinaryData.fromObject(model).toObject(AzureMLUpdateResourceActivity.class); - Assertions.assertEquals("aolfdgjrgp", model.name()); - Assertions.assertEquals("vohvcaqarppkzz", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("qou", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("xnvwq", model.userProperties().get(0).name()); - Assertions.assertEquals("xftepzrcqnsjqrgt", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1149102333, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - Assertions.assertEquals("yajlnotmirgip", model.trainedModelLinkedServiceName().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMLUpdateResourceActivityTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMLUpdateResourceActivityTypePropertiesTests.java deleted file mode 100644 index 0d5eb77e0769..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMLUpdateResourceActivityTypePropertiesTests.java +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.AzureMLUpdateResourceActivityTypeProperties; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AzureMLUpdateResourceActivityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureMLUpdateResourceActivityTypeProperties model = - BinaryData - .fromString( - "{\"trainedModelName\":\"dataicyufnum\",\"trainedModelLinkedServiceName\":{\"referenceName\":\"e\",\"parameters\":{\"qhmuryajp\":\"datar\",\"ihbvfallpobzv\":\"datauflvazpizossqm\",\"h\":\"datantsfyntkfziitbw\",\"s\":\"datawwhml\"}},\"trainedModelFilePath\":\"databfg\"}") - .toObject(AzureMLUpdateResourceActivityTypeProperties.class); - Assertions.assertEquals("e", model.trainedModelLinkedServiceName().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureMLUpdateResourceActivityTypeProperties model = - new AzureMLUpdateResourceActivityTypeProperties() - .withTrainedModelName("dataicyufnum") - .withTrainedModelLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("e") - .withParameters( - mapOf( - "qhmuryajp", - "datar", - "ihbvfallpobzv", - "datauflvazpizossqm", - "h", - "datantsfyntkfziitbw", - "s", - "datawwhml"))) - .withTrainedModelFilePath("databfg"); - model = BinaryData.fromObject(model).toObject(AzureMLUpdateResourceActivityTypeProperties.class); - Assertions.assertEquals("e", model.trainedModelLinkedServiceName().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMLWebServiceFileTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMLWebServiceFileTests.java deleted file mode 100644 index 9afd29bdcbc0..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMLWebServiceFileTests.java +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureMLWebServiceFile; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AzureMLWebServiceFileTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureMLWebServiceFile model = - BinaryData - .fromString( - "{\"filePath\":\"datarbsgwoykcvwqyfix\",\"linkedServiceName\":{\"referenceName\":\"gqmxmiwfzrhilyp\",\"parameters\":{\"quxut\":\"datan\",\"qwkaevbgjhmy\":\"datawbsttmvaijnzq\"}}}") - .toObject(AzureMLWebServiceFile.class); - Assertions.assertEquals("gqmxmiwfzrhilyp", model.linkedServiceName().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureMLWebServiceFile model = - new AzureMLWebServiceFile() - .withFilePath("datarbsgwoykcvwqyfix") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("gqmxmiwfzrhilyp") - .withParameters(mapOf("quxut", "datan", "qwkaevbgjhmy", "datawbsttmvaijnzq"))); - model = BinaryData.fromObject(model).toObject(AzureMLWebServiceFile.class); - Assertions.assertEquals("gqmxmiwfzrhilyp", model.linkedServiceName().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMariaDBSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMariaDBSourceTests.java deleted file mode 100644 index fd1dfc3844e2..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMariaDBSourceTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureMariaDBSource; - -public final class AzureMariaDBSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureMariaDBSource model = - BinaryData - .fromString( - "{\"type\":\"AzureMariaDBSource\",\"query\":\"dataybezmyjqpd\",\"queryTimeout\":\"datadsxvk\",\"additionalColumns\":\"datappxzgjysm\",\"sourceRetryCount\":\"dataktou\",\"sourceRetryWait\":\"databwddpjsokosugr\",\"maxConcurrentConnections\":\"datazfwdmae\",\"disableMetricsCollection\":\"datahq\",\"\":{\"mhfmognn\":\"datagzmonjqnienctwb\",\"byxygubvidpsk\":\"dataxrdllrqamfjyyrfp\",\"dctgsdxjx\":\"datazssxhvzgliu\",\"yvvlgsadpvmn\":\"dataddxoatlprsrkennn\"}}") - .toObject(AzureMariaDBSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureMariaDBSource model = - new AzureMariaDBSource() - .withSourceRetryCount("dataktou") - .withSourceRetryWait("databwddpjsokosugr") - .withMaxConcurrentConnections("datazfwdmae") - .withDisableMetricsCollection("datahq") - .withQueryTimeout("datadsxvk") - .withAdditionalColumns("datappxzgjysm") - .withQuery("dataybezmyjqpd"); - model = BinaryData.fromObject(model).toObject(AzureMariaDBSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMariaDBTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMariaDBTableDatasetTests.java deleted file mode 100644 index 53f49c8248ac..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMariaDBTableDatasetTests.java +++ /dev/null @@ -1,75 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureMariaDBTableDataset; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AzureMariaDBTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureMariaDBTableDataset model = - BinaryData - .fromString( - "{\"type\":\"AzureMariaDBTable\",\"typeProperties\":{\"tableName\":\"datatn\"},\"description\":\"jewihcigaahm\",\"structure\":\"dataspkdnx\",\"schema\":\"dataz\",\"linkedServiceName\":{\"referenceName\":\"tertnzrrwsc\",\"parameters\":{\"nvtolzj\":\"datahdwi\",\"haknklthqwppv\":\"datafkryxs\"}},\"parameters\":{\"bkabhvxjuaivx\":{\"type\":\"Int\",\"defaultValue\":\"datarvpvdrohul\"},\"kg\":{\"type\":\"Array\",\"defaultValue\":\"datarnygti\"},\"rxzpqditu\":{\"type\":\"Bool\",\"defaultValue\":\"datamkphvdl\"},\"e\":{\"type\":\"String\",\"defaultValue\":\"datatfcieil\"}},\"annotations\":[\"datakehldopjsxvbbwsg\",\"datakkmibnmdp\",\"datad\",\"datapwtgzwmzhcmrloqa\"],\"folder\":{\"name\":\"yzavky\"},\"\":{\"bngzldvvd\":\"dataudnmbj\",\"pmq\":\"dataoptythctoxo\",\"sfzsgzgus\":\"dataerwhemvids\"}}") - .toObject(AzureMariaDBTableDataset.class); - Assertions.assertEquals("jewihcigaahm", model.description()); - Assertions.assertEquals("tertnzrrwsc", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("bkabhvxjuaivx").type()); - Assertions.assertEquals("yzavky", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureMariaDBTableDataset model = - new AzureMariaDBTableDataset() - .withDescription("jewihcigaahm") - .withStructure("dataspkdnx") - .withSchema("dataz") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("tertnzrrwsc") - .withParameters(mapOf("nvtolzj", "datahdwi", "haknklthqwppv", "datafkryxs"))) - .withParameters( - mapOf( - "bkabhvxjuaivx", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datarvpvdrohul"), - "kg", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datarnygti"), - "rxzpqditu", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datamkphvdl"), - "e", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datatfcieil"))) - .withAnnotations( - Arrays.asList("datakehldopjsxvbbwsg", "datakkmibnmdp", "datad", "datapwtgzwmzhcmrloqa")) - .withFolder(new DatasetFolder().withName("yzavky")) - .withTableName("datatn"); - model = BinaryData.fromObject(model).toObject(AzureMariaDBTableDataset.class); - Assertions.assertEquals("jewihcigaahm", model.description()); - Assertions.assertEquals("tertnzrrwsc", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("bkabhvxjuaivx").type()); - Assertions.assertEquals("yzavky", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMySqlSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMySqlSinkTests.java deleted file mode 100644 index c7db76d8634d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMySqlSinkTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureMySqlSink; - -public final class AzureMySqlSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureMySqlSink model = - BinaryData - .fromString( - "{\"type\":\"AzureMySqlSink\",\"preCopyScript\":\"dataefvboxvwtln\",\"writeBatchSize\":\"datashtujaqpkupnr\",\"writeBatchTimeout\":\"datajeypdk\",\"sinkRetryCount\":\"datacxzsynbdrqi\",\"sinkRetryWait\":\"dataihg\",\"maxConcurrentConnections\":\"datahyebwg\",\"disableMetricsCollection\":\"dataovsvjxnsor\",\"\":{\"bo\":\"dataarhlyhgiisnfaxt\"}}") - .toObject(AzureMySqlSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureMySqlSink model = - new AzureMySqlSink() - .withWriteBatchSize("datashtujaqpkupnr") - .withWriteBatchTimeout("datajeypdk") - .withSinkRetryCount("datacxzsynbdrqi") - .withSinkRetryWait("dataihg") - .withMaxConcurrentConnections("datahyebwg") - .withDisableMetricsCollection("dataovsvjxnsor") - .withPreCopyScript("dataefvboxvwtln"); - model = BinaryData.fromObject(model).toObject(AzureMySqlSink.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMySqlSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMySqlSourceTests.java deleted file mode 100644 index f0a50643e1fa..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMySqlSourceTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureMySqlSource; - -public final class AzureMySqlSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureMySqlSource model = - BinaryData - .fromString( - "{\"type\":\"AzureMySqlSource\",\"query\":\"datawwzpbamcfrf\",\"queryTimeout\":\"datatcygoombnrm\",\"additionalColumns\":\"dataklfp\",\"sourceRetryCount\":\"datagfvvnkpwl\",\"sourceRetryWait\":\"datazxdzold\",\"maxConcurrentConnections\":\"datafnpn\",\"disableMetricsCollection\":\"dataterjjuzarege\",\"\":{\"uggdh\":\"datazpuda\",\"keculxvkuxvccpda\":\"datattg\"}}") - .toObject(AzureMySqlSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureMySqlSource model = - new AzureMySqlSource() - .withSourceRetryCount("datagfvvnkpwl") - .withSourceRetryWait("datazxdzold") - .withMaxConcurrentConnections("datafnpn") - .withDisableMetricsCollection("dataterjjuzarege") - .withQueryTimeout("datatcygoombnrm") - .withAdditionalColumns("dataklfp") - .withQuery("datawwzpbamcfrf"); - model = BinaryData.fromObject(model).toObject(AzureMySqlSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMySqlTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMySqlTableDatasetTests.java deleted file mode 100644 index 60c2434ffab8..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMySqlTableDatasetTests.java +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureMySqlTableDataset; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AzureMySqlTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureMySqlTableDataset model = - BinaryData - .fromString( - "{\"type\":\"AzureMySqlTable\",\"typeProperties\":{\"tableName\":\"dataw\",\"table\":\"datazyjj\"},\"description\":\"t\",\"structure\":\"datazql\",\"schema\":\"dataagwiijc\",\"linkedServiceName\":{\"referenceName\":\"qiywhxpsbapial\",\"parameters\":{\"zudegefxlieg\":\"dataydp\",\"smhssfnwh\":\"dataot\",\"nfmkcuft\":\"datakahhec\",\"dvhzfkdn\":\"datadgwuzron\"}},\"parameters\":{\"zfzdjekeb\":{\"type\":\"Object\",\"defaultValue\":\"datacikgxkk\"},\"jwyfi\":{\"type\":\"Array\",\"defaultValue\":\"dataxz\"}},\"annotations\":[\"datagcjf\",\"dataiwu\",\"datapjkakrxifqnf\"],\"folder\":{\"name\":\"xsqtzngxbs\"},\"\":{\"ly\":\"datawguxcmmhipbvskci\"}}") - .toObject(AzureMySqlTableDataset.class); - Assertions.assertEquals("t", model.description()); - Assertions.assertEquals("qiywhxpsbapial", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("zfzdjekeb").type()); - Assertions.assertEquals("xsqtzngxbs", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureMySqlTableDataset model = - new AzureMySqlTableDataset() - .withDescription("t") - .withStructure("datazql") - .withSchema("dataagwiijc") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("qiywhxpsbapial") - .withParameters( - mapOf( - "zudegefxlieg", - "dataydp", - "smhssfnwh", - "dataot", - "nfmkcuft", - "datakahhec", - "dvhzfkdn", - "datadgwuzron"))) - .withParameters( - mapOf( - "zfzdjekeb", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datacikgxkk"), - "jwyfi", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("dataxz"))) - .withAnnotations(Arrays.asList("datagcjf", "dataiwu", "datapjkakrxifqnf")) - .withFolder(new DatasetFolder().withName("xsqtzngxbs")) - .withTableName("dataw") - .withTable("datazyjj"); - model = BinaryData.fromObject(model).toObject(AzureMySqlTableDataset.class); - Assertions.assertEquals("t", model.description()); - Assertions.assertEquals("qiywhxpsbapial", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("zfzdjekeb").type()); - Assertions.assertEquals("xsqtzngxbs", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMySqlTableDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMySqlTableDatasetTypePropertiesTests.java deleted file mode 100644 index 88d75029d496..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMySqlTableDatasetTypePropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.AzureMySqlTableDatasetTypeProperties; - -public final class AzureMySqlTableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureMySqlTableDatasetTypeProperties model = - BinaryData - .fromString("{\"tableName\":\"datawfsaa\",\"table\":\"datafgb\"}") - .toObject(AzureMySqlTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureMySqlTableDatasetTypeProperties model = - new AzureMySqlTableDatasetTypeProperties().withTableName("datawfsaa").withTable("datafgb"); - model = BinaryData.fromObject(model).toObject(AzureMySqlTableDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzurePostgreSqlSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzurePostgreSqlSinkTests.java deleted file mode 100644 index 14c49113b7ea..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzurePostgreSqlSinkTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzurePostgreSqlSink; - -public final class AzurePostgreSqlSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzurePostgreSqlSink model = - BinaryData - .fromString( - "{\"type\":\"AzurePostgreSqlSink\",\"preCopyScript\":\"datacownxiwpptvbud\",\"writeBatchSize\":\"dataujvmllyjelnhm\",\"writeBatchTimeout\":\"datahxkofzxkqsle\",\"sinkRetryCount\":\"databam\",\"sinkRetryWait\":\"datanwgccgblepam\",\"maxConcurrentConnections\":\"databaxdaoja\",\"disableMetricsCollection\":\"dataq\",\"\":{\"ljmj\":\"dataqlnxvnm\",\"vhjbzpohfej\":\"datayadafecwnufldzjc\"}}") - .toObject(AzurePostgreSqlSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzurePostgreSqlSink model = - new AzurePostgreSqlSink() - .withWriteBatchSize("dataujvmllyjelnhm") - .withWriteBatchTimeout("datahxkofzxkqsle") - .withSinkRetryCount("databam") - .withSinkRetryWait("datanwgccgblepam") - .withMaxConcurrentConnections("databaxdaoja") - .withDisableMetricsCollection("dataq") - .withPreCopyScript("datacownxiwpptvbud"); - model = BinaryData.fromObject(model).toObject(AzurePostgreSqlSink.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzurePostgreSqlSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzurePostgreSqlSourceTests.java deleted file mode 100644 index 10a83f70873c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzurePostgreSqlSourceTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzurePostgreSqlSource; - -public final class AzurePostgreSqlSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzurePostgreSqlSource model = - BinaryData - .fromString( - "{\"type\":\"AzurePostgreSqlSource\",\"query\":\"datawkctdnnqokq\",\"queryTimeout\":\"datazslnyjpuywi\",\"additionalColumns\":\"datalpe\",\"sourceRetryCount\":\"dataqbnmzkqydt\",\"sourceRetryWait\":\"datac\",\"maxConcurrentConnections\":\"datacmwvp\",\"disableMetricsCollection\":\"datawufnfovylis\",\"\":{\"hjdhlskeifw\":\"datak\"}}") - .toObject(AzurePostgreSqlSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzurePostgreSqlSource model = - new AzurePostgreSqlSource() - .withSourceRetryCount("dataqbnmzkqydt") - .withSourceRetryWait("datac") - .withMaxConcurrentConnections("datacmwvp") - .withDisableMetricsCollection("datawufnfovylis") - .withQueryTimeout("datazslnyjpuywi") - .withAdditionalColumns("datalpe") - .withQuery("datawkctdnnqokq"); - model = BinaryData.fromObject(model).toObject(AzurePostgreSqlSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzurePostgreSqlTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzurePostgreSqlTableDatasetTests.java deleted file mode 100644 index 28753be75123..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzurePostgreSqlTableDatasetTests.java +++ /dev/null @@ -1,89 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzurePostgreSqlTableDataset; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AzurePostgreSqlTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzurePostgreSqlTableDataset model = - BinaryData - .fromString( - "{\"type\":\"AzurePostgreSqlTable\",\"typeProperties\":{\"tableName\":\"dataj\",\"table\":\"datawrduxntpfxxgja\",\"schema\":\"dataxfwf\"},\"description\":\"qv\",\"structure\":\"datafbkqynlzxem\",\"schema\":\"dataupjckiehdm\",\"linkedServiceName\":{\"referenceName\":\"foyrxxxffgmcua\",\"parameters\":{\"csapvbcqpfus\":\"dataeervgc\",\"k\":\"datakijhmine\",\"rkvorlfqmljewyn\":\"dataivp\",\"vlnpbsotmynklnm\":\"datafvvcwvurkmjufa\"}},\"parameters\":{\"keipxutc\":{\"type\":\"Int\",\"defaultValue\":\"datavrkkfcwxizkstxne\"},\"tvsayyaeiiv\":{\"type\":\"Array\",\"defaultValue\":\"dataiuvnfaz\"},\"xqetxtdqius\":{\"type\":\"Float\",\"defaultValue\":\"dataqtjwrvewojoq\"},\"mjsisfqqhc\":{\"type\":\"Array\",\"defaultValue\":\"datazljvgjijzqjhljsa\"}},\"annotations\":[\"dataagsbfeiir\",\"datanjygllfkchhgsj\"],\"folder\":{\"name\":\"c\"},\"\":{\"khdhpmkxdujkxpuq\":\"datawmqcycabaam\",\"ezxiz\":\"datadyoqywsuarpzhry\",\"azccouhwivkd\":\"datasyxbfjilb\",\"pi\":\"datavjsknrbxz\"}}") - .toObject(AzurePostgreSqlTableDataset.class); - Assertions.assertEquals("qv", model.description()); - Assertions.assertEquals("foyrxxxffgmcua", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("keipxutc").type()); - Assertions.assertEquals("c", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzurePostgreSqlTableDataset model = - new AzurePostgreSqlTableDataset() - .withDescription("qv") - .withStructure("datafbkqynlzxem") - .withSchema("dataupjckiehdm") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("foyrxxxffgmcua") - .withParameters( - mapOf( - "csapvbcqpfus", - "dataeervgc", - "k", - "datakijhmine", - "rkvorlfqmljewyn", - "dataivp", - "vlnpbsotmynklnm", - "datafvvcwvurkmjufa"))) - .withParameters( - mapOf( - "keipxutc", - new ParameterSpecification() - .withType(ParameterType.INT) - .withDefaultValue("datavrkkfcwxizkstxne"), - "tvsayyaeiiv", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("dataiuvnfaz"), - "xqetxtdqius", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("dataqtjwrvewojoq"), - "mjsisfqqhc", - new ParameterSpecification() - .withType(ParameterType.ARRAY) - .withDefaultValue("datazljvgjijzqjhljsa"))) - .withAnnotations(Arrays.asList("dataagsbfeiir", "datanjygllfkchhgsj")) - .withFolder(new DatasetFolder().withName("c")) - .withTableName("dataj") - .withTable("datawrduxntpfxxgja") - .withSchemaTypePropertiesSchema("dataxfwf"); - model = BinaryData.fromObject(model).toObject(AzurePostgreSqlTableDataset.class); - Assertions.assertEquals("qv", model.description()); - Assertions.assertEquals("foyrxxxffgmcua", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("keipxutc").type()); - Assertions.assertEquals("c", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzurePostgreSqlTableDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzurePostgreSqlTableDatasetTypePropertiesTests.java deleted file mode 100644 index ef963afba3b4..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzurePostgreSqlTableDatasetTypePropertiesTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.AzurePostgreSqlTableDatasetTypeProperties; - -public final class AzurePostgreSqlTableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzurePostgreSqlTableDatasetTypeProperties model = - BinaryData - .fromString( - "{\"tableName\":\"datavcpi\",\"table\":\"dataqbvxqtolpwbopv\",\"schema\":\"databtzaprjxco\"}") - .toObject(AzurePostgreSqlTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzurePostgreSqlTableDatasetTypeProperties model = - new AzurePostgreSqlTableDatasetTypeProperties() - .withTableName("datavcpi") - .withTable("dataqbvxqtolpwbopv") - .withSchema("databtzaprjxco"); - model = BinaryData.fromObject(model).toObject(AzurePostgreSqlTableDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureQueueSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureQueueSinkTests.java deleted file mode 100644 index c360c8af4f2a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureQueueSinkTests.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureQueueSink; - -public final class AzureQueueSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureQueueSink model = - BinaryData - .fromString( - "{\"type\":\"AzureQueueSink\",\"writeBatchSize\":\"dataujbqrfwnpwvpnb\",\"writeBatchTimeout\":\"dataxomckzeaiayca\",\"sinkRetryCount\":\"datalfsctj\",\"sinkRetryWait\":\"datazqivfge\",\"maxConcurrentConnections\":\"datau\",\"disableMetricsCollection\":\"dataxwuyry\",\"\":{\"ndbrcdumkqhatcko\":\"datafnucgwfljjatj\"}}") - .toObject(AzureQueueSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureQueueSink model = - new AzureQueueSink() - .withWriteBatchSize("dataujbqrfwnpwvpnb") - .withWriteBatchTimeout("dataxomckzeaiayca") - .withSinkRetryCount("datalfsctj") - .withSinkRetryWait("datazqivfge") - .withMaxConcurrentConnections("datau") - .withDisableMetricsCollection("dataxwuyry"); - model = BinaryData.fromObject(model).toObject(AzureQueueSink.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSearchIndexDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSearchIndexDatasetTests.java deleted file mode 100644 index 41dec826a9e8..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSearchIndexDatasetTests.java +++ /dev/null @@ -1,79 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureSearchIndexDataset; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AzureSearchIndexDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureSearchIndexDataset model = - BinaryData - .fromString( - "{\"type\":\"AzureSearchIndex\",\"typeProperties\":{\"indexName\":\"dataryqycymzrlcfgdwz\"},\"description\":\"zfdhea\",\"structure\":\"datayciwzkil\",\"schema\":\"dataqadfgesv\",\"linkedServiceName\":{\"referenceName\":\"oha\",\"parameters\":{\"ovqmxqsxofx\":\"dataizmadjrsbgailj\",\"kgltsxooiobhieb\":\"datankiu\",\"tlsrvqzgaqsosrn\":\"datau\",\"npesw\":\"datalvgrghnhuoxrqhjn\"}},\"parameters\":{\"zdvmsnao\":{\"type\":\"Array\",\"defaultValue\":\"datagebzqzmcsviujo\"}},\"annotations\":[\"dataxoxvimdvetqh\",\"databitqsbyu\"],\"folder\":{\"name\":\"omr\"},\"\":{\"xbdpbcehwbd\":\"datamgrmsdbvqxgfygfk\"}}") - .toObject(AzureSearchIndexDataset.class); - Assertions.assertEquals("zfdhea", model.description()); - Assertions.assertEquals("oha", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("zdvmsnao").type()); - Assertions.assertEquals("omr", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureSearchIndexDataset model = - new AzureSearchIndexDataset() - .withDescription("zfdhea") - .withStructure("datayciwzkil") - .withSchema("dataqadfgesv") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("oha") - .withParameters( - mapOf( - "ovqmxqsxofx", - "dataizmadjrsbgailj", - "kgltsxooiobhieb", - "datankiu", - "tlsrvqzgaqsosrn", - "datau", - "npesw", - "datalvgrghnhuoxrqhjn"))) - .withParameters( - mapOf( - "zdvmsnao", - new ParameterSpecification() - .withType(ParameterType.ARRAY) - .withDefaultValue("datagebzqzmcsviujo"))) - .withAnnotations(Arrays.asList("dataxoxvimdvetqh", "databitqsbyu")) - .withFolder(new DatasetFolder().withName("omr")) - .withIndexName("dataryqycymzrlcfgdwz"); - model = BinaryData.fromObject(model).toObject(AzureSearchIndexDataset.class); - Assertions.assertEquals("zfdhea", model.description()); - Assertions.assertEquals("oha", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("zdvmsnao").type()); - Assertions.assertEquals("omr", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSearchIndexDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSearchIndexDatasetTypePropertiesTests.java deleted file mode 100644 index 269efa7b4489..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSearchIndexDatasetTypePropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.AzureSearchIndexDatasetTypeProperties; - -public final class AzureSearchIndexDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureSearchIndexDatasetTypeProperties model = - BinaryData - .fromString("{\"indexName\":\"datasesboynpytporr\"}") - .toObject(AzureSearchIndexDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureSearchIndexDatasetTypeProperties model = - new AzureSearchIndexDatasetTypeProperties().withIndexName("datasesboynpytporr"); - model = BinaryData.fromObject(model).toObject(AzureSearchIndexDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSearchIndexSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSearchIndexSinkTests.java deleted file mode 100644 index 334ce694bdaa..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSearchIndexSinkTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureSearchIndexSink; -import com.azure.resourcemanager.datafactory.models.AzureSearchIndexWriteBehaviorType; -import org.junit.jupiter.api.Assertions; - -public final class AzureSearchIndexSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureSearchIndexSink model = - BinaryData - .fromString( - "{\"type\":\"AzureSearchIndexSink\",\"writeBehavior\":\"Upload\",\"writeBatchSize\":\"datamrtdznvjgovy\",\"writeBatchTimeout\":\"datappswlept\",\"sinkRetryCount\":\"databrkntfwxkeuyxgpc\",\"sinkRetryWait\":\"datavmrdlckpznov\",\"maxConcurrentConnections\":\"databwpai\",\"disableMetricsCollection\":\"datakzysdhars\",\"\":{\"vtvtyqlthn\":\"datamrpdxnr\",\"diehrajbatgmxk\":\"datadfplk\"}}") - .toObject(AzureSearchIndexSink.class); - Assertions.assertEquals(AzureSearchIndexWriteBehaviorType.UPLOAD, model.writeBehavior()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureSearchIndexSink model = - new AzureSearchIndexSink() - .withWriteBatchSize("datamrtdznvjgovy") - .withWriteBatchTimeout("datappswlept") - .withSinkRetryCount("databrkntfwxkeuyxgpc") - .withSinkRetryWait("datavmrdlckpznov") - .withMaxConcurrentConnections("databwpai") - .withDisableMetricsCollection("datakzysdhars") - .withWriteBehavior(AzureSearchIndexWriteBehaviorType.UPLOAD); - model = BinaryData.fromObject(model).toObject(AzureSearchIndexSink.class); - Assertions.assertEquals(AzureSearchIndexWriteBehaviorType.UPLOAD, model.writeBehavior()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSqlDWTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSqlDWTableDatasetTests.java deleted file mode 100644 index 01a90f648d33..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSqlDWTableDatasetTests.java +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureSqlDWTableDataset; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AzureSqlDWTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureSqlDWTableDataset model = - BinaryData - .fromString( - "{\"type\":\"AzureSqlDWTable\",\"typeProperties\":{\"tableName\":\"dataxjfsg\",\"schema\":\"dataspoebnx\",\"table\":\"datacowscuyfqlam\"},\"description\":\"qhsujkafuzp\",\"structure\":\"dataqpwnikxkcajgr\",\"schema\":\"datact\",\"linkedServiceName\":{\"referenceName\":\"vgoo\",\"parameters\":{\"tm\":\"dataazmzlpcx\",\"ic\":\"dataxxr\"}},\"parameters\":{\"hkvpyeyoa\":{\"type\":\"SecureString\",\"defaultValue\":\"datajd\"}},\"annotations\":[\"datampnqup\",\"datakjr\"],\"folder\":{\"name\":\"ky\"},\"\":{\"hqdcclcvqsr\":\"databdx\"}}") - .toObject(AzureSqlDWTableDataset.class); - Assertions.assertEquals("qhsujkafuzp", model.description()); - Assertions.assertEquals("vgoo", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("hkvpyeyoa").type()); - Assertions.assertEquals("ky", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureSqlDWTableDataset model = - new AzureSqlDWTableDataset() - .withDescription("qhsujkafuzp") - .withStructure("dataqpwnikxkcajgr") - .withSchema("datact") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("vgoo") - .withParameters(mapOf("tm", "dataazmzlpcx", "ic", "dataxxr"))) - .withParameters( - mapOf( - "hkvpyeyoa", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("datajd"))) - .withAnnotations(Arrays.asList("datampnqup", "datakjr")) - .withFolder(new DatasetFolder().withName("ky")) - .withTableName("dataxjfsg") - .withSchemaTypePropertiesSchema("dataspoebnx") - .withTable("datacowscuyfqlam"); - model = BinaryData.fromObject(model).toObject(AzureSqlDWTableDataset.class); - Assertions.assertEquals("qhsujkafuzp", model.description()); - Assertions.assertEquals("vgoo", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("hkvpyeyoa").type()); - Assertions.assertEquals("ky", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSqlDWTableDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSqlDWTableDatasetTypePropertiesTests.java deleted file mode 100644 index 164c68960070..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSqlDWTableDatasetTypePropertiesTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.AzureSqlDWTableDatasetTypeProperties; - -public final class AzureSqlDWTableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureSqlDWTableDatasetTypeProperties model = - BinaryData - .fromString( - "{\"tableName\":\"dataay\",\"schema\":\"datavwbzmfxlrymf\",\"table\":\"datalpiywqnpfydrfbg\"}") - .toObject(AzureSqlDWTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureSqlDWTableDatasetTypeProperties model = - new AzureSqlDWTableDatasetTypeProperties() - .withTableName("dataay") - .withSchema("datavwbzmfxlrymf") - .withTable("datalpiywqnpfydrfbg"); - model = BinaryData.fromObject(model).toObject(AzureSqlDWTableDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSqlMITableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSqlMITableDatasetTests.java deleted file mode 100644 index a038140b90c7..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSqlMITableDatasetTests.java +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureSqlMITableDataset; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AzureSqlMITableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureSqlMITableDataset model = - BinaryData - .fromString( - "{\"type\":\"AzureSqlMITable\",\"typeProperties\":{\"tableName\":\"dataczygpmgfjcu\",\"schema\":\"datajhhy\",\"table\":\"datadevfi\"},\"description\":\"motuzbybwjmtf\",\"structure\":\"datavelni\",\"schema\":\"datapk\",\"linkedServiceName\":{\"referenceName\":\"nstp\",\"parameters\":{\"vswmehfxrtt\":\"dataibjg\",\"ectcxsfmbzdx\":\"databmsennqfabqcama\"}},\"parameters\":{\"zyq\":{\"type\":\"Bool\",\"defaultValue\":\"datakdnnyufxuzms\"},\"ara\":{\"type\":\"Int\",\"defaultValue\":\"datanxhjtlxfikjk\"},\"zpcjcnwjzbqblxr\":{\"type\":\"Bool\",\"defaultValue\":\"datauasnjeglhtrxb\"},\"wsdsorg\":{\"type\":\"Float\",\"defaultValue\":\"datadsvoqiza\"}},\"annotations\":[\"dataxsawooauff\",\"dataxfqk\",\"datawzrdqyoybm\"],\"folder\":{\"name\":\"to\"},\"\":{\"rpqphkvyyzad\":\"datazdaiovrb\",\"yzvelffo\":\"datarxylaypd\"}}") - .toObject(AzureSqlMITableDataset.class); - Assertions.assertEquals("motuzbybwjmtf", model.description()); - Assertions.assertEquals("nstp", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("zyq").type()); - Assertions.assertEquals("to", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureSqlMITableDataset model = - new AzureSqlMITableDataset() - .withDescription("motuzbybwjmtf") - .withStructure("datavelni") - .withSchema("datapk") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("nstp") - .withParameters(mapOf("vswmehfxrtt", "dataibjg", "ectcxsfmbzdx", "databmsennqfabqcama"))) - .withParameters( - mapOf( - "zyq", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datakdnnyufxuzms"), - "ara", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datanxhjtlxfikjk"), - "zpcjcnwjzbqblxr", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datauasnjeglhtrxb"), - "wsdsorg", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datadsvoqiza"))) - .withAnnotations(Arrays.asList("dataxsawooauff", "dataxfqk", "datawzrdqyoybm")) - .withFolder(new DatasetFolder().withName("to")) - .withTableName("dataczygpmgfjcu") - .withSchemaTypePropertiesSchema("datajhhy") - .withTable("datadevfi"); - model = BinaryData.fromObject(model).toObject(AzureSqlMITableDataset.class); - Assertions.assertEquals("motuzbybwjmtf", model.description()); - Assertions.assertEquals("nstp", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("zyq").type()); - Assertions.assertEquals("to", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSqlMITableDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSqlMITableDatasetTypePropertiesTests.java deleted file mode 100644 index f88d135b9b40..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSqlMITableDatasetTypePropertiesTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.AzureSqlMITableDatasetTypeProperties; - -public final class AzureSqlMITableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureSqlMITableDatasetTypeProperties model = - BinaryData - .fromString("{\"tableName\":\"datariwhjdfrwp\",\"schema\":\"datah\",\"table\":\"datankcclpctuog\"}") - .toObject(AzureSqlMITableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureSqlMITableDatasetTypeProperties model = - new AzureSqlMITableDatasetTypeProperties() - .withTableName("datariwhjdfrwp") - .withSchema("datah") - .withTable("datankcclpctuog"); - model = BinaryData.fromObject(model).toObject(AzureSqlMITableDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSqlSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSqlSourceTests.java deleted file mode 100644 index 6d222b472ac5..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSqlSourceTests.java +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureSqlSource; -import com.azure.resourcemanager.datafactory.models.SqlPartitionSettings; - -public final class AzureSqlSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureSqlSource model = - BinaryData - .fromString( - "{\"type\":\"AzureSqlSource\",\"sqlReaderQuery\":\"dataq\",\"sqlReaderStoredProcedureName\":\"dataegilbkzctqbvntl\",\"storedProcedureParameters\":\"datagj\",\"isolationLevel\":\"dataxqoydyislepdbsi\",\"produceAdditionalTypes\":\"datantsp\",\"partitionOption\":\"dataumpyytbjbmjbmtx\",\"partitionSettings\":{\"partitionColumnName\":\"dataf\",\"partitionUpperBound\":\"datag\",\"partitionLowerBound\":\"dataotvocjk\"},\"queryTimeout\":\"datah\",\"additionalColumns\":\"datayvtrsgfdmtfn\",\"sourceRetryCount\":\"datatxqqlbmiq\",\"sourceRetryWait\":\"dataiahjxcd\",\"maxConcurrentConnections\":\"datadlxwsfddyqpfyn\",\"disableMetricsCollection\":\"datawmjsurhljjzsj\",\"\":{\"gadolepnglzjh\":\"datauwizq\",\"am\":\"dataqx\",\"s\":\"dataptc\"}}") - .toObject(AzureSqlSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureSqlSource model = - new AzureSqlSource() - .withSourceRetryCount("datatxqqlbmiq") - .withSourceRetryWait("dataiahjxcd") - .withMaxConcurrentConnections("datadlxwsfddyqpfyn") - .withDisableMetricsCollection("datawmjsurhljjzsj") - .withQueryTimeout("datah") - .withAdditionalColumns("datayvtrsgfdmtfn") - .withSqlReaderQuery("dataq") - .withSqlReaderStoredProcedureName("dataegilbkzctqbvntl") - .withStoredProcedureParameters("datagj") - .withIsolationLevel("dataxqoydyislepdbsi") - .withProduceAdditionalTypes("datantsp") - .withPartitionOption("dataumpyytbjbmjbmtx") - .withPartitionSettings( - new SqlPartitionSettings() - .withPartitionColumnName("dataf") - .withPartitionUpperBound("datag") - .withPartitionLowerBound("dataotvocjk")); - model = BinaryData.fromObject(model).toObject(AzureSqlSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSqlTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSqlTableDatasetTests.java deleted file mode 100644 index e32335c4a097..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSqlTableDatasetTests.java +++ /dev/null @@ -1,89 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureSqlTableDataset; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AzureSqlTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureSqlTableDataset model = - BinaryData - .fromString( - "{\"type\":\"AzureSqlTable\",\"typeProperties\":{\"tableName\":\"databs\",\"schema\":\"datalonbzaowcahdkmb\",\"table\":\"datamihrijezbfsj\"},\"description\":\"czglkvbgukbsvb\",\"structure\":\"dataotygnbknhjg\",\"schema\":\"dataxaxw\",\"linkedServiceName\":{\"referenceName\":\"ffaspsdzkucsz\",\"parameters\":{\"zrn\":\"dataoaqipmnxclfrs\",\"wvpu\":\"datau\",\"n\":\"datafddtbfmekjcng\",\"aoy\":\"datadv\"}},\"parameters\":{\"nofxlttxoqx\":{\"type\":\"SecureString\",\"defaultValue\":\"datayxzmx\"},\"kcjhmmofbnivd\":{\"type\":\"Float\",\"defaultValue\":\"datazujsjirkrp\"},\"caccptbzetxyg\":{\"type\":\"SecureString\",\"defaultValue\":\"dataykpaxnlsfgny\"},\"eoxmpzzw\":{\"type\":\"Int\",\"defaultValue\":\"dataceecvjwyu\"}},\"annotations\":[\"datardvhaztkxbi\",\"datazfgxmbry\"],\"folder\":{\"name\":\"ibio\"},\"\":{\"wdrtxtfdaglmrco\":\"datasykqfd\",\"hubymfp\":\"datazzertkounzsiy\"}}") - .toObject(AzureSqlTableDataset.class); - Assertions.assertEquals("czglkvbgukbsvb", model.description()); - Assertions.assertEquals("ffaspsdzkucsz", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("nofxlttxoqx").type()); - Assertions.assertEquals("ibio", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureSqlTableDataset model = - new AzureSqlTableDataset() - .withDescription("czglkvbgukbsvb") - .withStructure("dataotygnbknhjg") - .withSchema("dataxaxw") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("ffaspsdzkucsz") - .withParameters( - mapOf( - "zrn", - "dataoaqipmnxclfrs", - "wvpu", - "datau", - "n", - "datafddtbfmekjcng", - "aoy", - "datadv"))) - .withParameters( - mapOf( - "nofxlttxoqx", - new ParameterSpecification() - .withType(ParameterType.SECURE_STRING) - .withDefaultValue("datayxzmx"), - "kcjhmmofbnivd", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datazujsjirkrp"), - "caccptbzetxyg", - new ParameterSpecification() - .withType(ParameterType.SECURE_STRING) - .withDefaultValue("dataykpaxnlsfgny"), - "eoxmpzzw", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("dataceecvjwyu"))) - .withAnnotations(Arrays.asList("datardvhaztkxbi", "datazfgxmbry")) - .withFolder(new DatasetFolder().withName("ibio")) - .withTableName("databs") - .withSchemaTypePropertiesSchema("datalonbzaowcahdkmb") - .withTable("datamihrijezbfsj"); - model = BinaryData.fromObject(model).toObject(AzureSqlTableDataset.class); - Assertions.assertEquals("czglkvbgukbsvb", model.description()); - Assertions.assertEquals("ffaspsdzkucsz", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("nofxlttxoqx").type()); - Assertions.assertEquals("ibio", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSqlTableDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSqlTableDatasetTypePropertiesTests.java deleted file mode 100644 index d7b4399af629..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSqlTableDatasetTypePropertiesTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.AzureSqlTableDatasetTypeProperties; - -public final class AzureSqlTableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureSqlTableDatasetTypeProperties model = - BinaryData - .fromString("{\"tableName\":\"dataikze\",\"schema\":\"datannf\",\"table\":\"datatkqowsd\"}") - .toObject(AzureSqlTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureSqlTableDatasetTypeProperties model = - new AzureSqlTableDatasetTypeProperties() - .withTableName("dataikze") - .withSchema("datannf") - .withTable("datatkqowsd"); - model = BinaryData.fromObject(model).toObject(AzureSqlTableDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSynapseArtifactsLinkedServiceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSynapseArtifactsLinkedServiceTests.java deleted file mode 100644 index 4a7dca55d9ae..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSynapseArtifactsLinkedServiceTests.java +++ /dev/null @@ -1,71 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureSynapseArtifactsLinkedService; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AzureSynapseArtifactsLinkedServiceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureSynapseArtifactsLinkedService model = - BinaryData - .fromString( - "{\"type\":\"AzureSynapseArtifacts\",\"typeProperties\":{\"endpoint\":\"datavvb\",\"authentication\":\"datanpriyttiqdcjg\",\"workspaceResourceId\":\"datacwmq\"},\"connectVia\":{\"referenceName\":\"woetjrfruc\",\"parameters\":{\"expothtpaqm\":\"datawdxbpvbsibzmvdey\",\"kymqmgudvy\":\"datawieshqiel\",\"lcwdg\":\"dataecuve\"}},\"description\":\"kjvrr\",\"parameters\":{\"doxpvqpblqubfpe\":{\"type\":\"Int\",\"defaultValue\":\"dataehyirsvr\"}},\"annotations\":[\"datagynheamzlqvaj\"],\"\":{\"sythuioixpfgqlw\":\"datavc\"}}") - .toObject(AzureSynapseArtifactsLinkedService.class); - Assertions.assertEquals("woetjrfruc", model.connectVia().referenceName()); - Assertions.assertEquals("kjvrr", model.description()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("doxpvqpblqubfpe").type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureSynapseArtifactsLinkedService model = - new AzureSynapseArtifactsLinkedService() - .withConnectVia( - new IntegrationRuntimeReference() - .withReferenceName("woetjrfruc") - .withParameters( - mapOf( - "expothtpaqm", - "datawdxbpvbsibzmvdey", - "kymqmgudvy", - "datawieshqiel", - "lcwdg", - "dataecuve"))) - .withDescription("kjvrr") - .withParameters( - mapOf( - "doxpvqpblqubfpe", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("dataehyirsvr"))) - .withAnnotations(Arrays.asList("datagynheamzlqvaj")) - .withEndpoint("datavvb") - .withAuthentication("datanpriyttiqdcjg") - .withWorkspaceResourceId("datacwmq"); - model = BinaryData.fromObject(model).toObject(AzureSynapseArtifactsLinkedService.class); - Assertions.assertEquals("woetjrfruc", model.connectVia().referenceName()); - Assertions.assertEquals("kjvrr", model.description()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("doxpvqpblqubfpe").type()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSynapseArtifactsLinkedServiceTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSynapseArtifactsLinkedServiceTypePropertiesTests.java deleted file mode 100644 index 8ab731fd30a0..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSynapseArtifactsLinkedServiceTypePropertiesTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.AzureSynapseArtifactsLinkedServiceTypeProperties; - -public final class AzureSynapseArtifactsLinkedServiceTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureSynapseArtifactsLinkedServiceTypeProperties model = - BinaryData - .fromString( - "{\"endpoint\":\"dataojwvvqcjrmnverbf\",\"authentication\":\"datahuw\",\"workspaceResourceId\":\"dataitqeyonmoig\"}") - .toObject(AzureSynapseArtifactsLinkedServiceTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureSynapseArtifactsLinkedServiceTypeProperties model = - new AzureSynapseArtifactsLinkedServiceTypeProperties() - .withEndpoint("dataojwvvqcjrmnverbf") - .withAuthentication("datahuw") - .withWorkspaceResourceId("dataitqeyonmoig"); - model = BinaryData.fromObject(model).toObject(AzureSynapseArtifactsLinkedServiceTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureTableDatasetTests.java deleted file mode 100644 index 65bae5b8fcc8..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureTableDatasetTests.java +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureTableDataset; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AzureTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureTableDataset model = - BinaryData - .fromString( - "{\"type\":\"AzureTable\",\"typeProperties\":{\"tableName\":\"dataazofm\"},\"description\":\"vtemaspmanydscdk\",\"structure\":\"datadpwjcbhaahntof\",\"schema\":\"datafh\",\"linkedServiceName\":{\"referenceName\":\"fixoskk\",\"parameters\":{\"ujybsrwz\":\"dataiv\",\"t\":\"datamr\",\"ikesmkwtzgfr\":\"datadhmfppinm\"}},\"parameters\":{\"btqhvmmniiqyhol\":{\"type\":\"String\",\"defaultValue\":\"dataerxlobk\"},\"nq\":{\"type\":\"String\",\"defaultValue\":\"dataskbggi\"}},\"annotations\":[\"datatmwpblxk\"],\"folder\":{\"name\":\"gvxrktjcjigc\"},\"\":{\"efpgeedyyb\":\"datapanbqxasevc\"}}") - .toObject(AzureTableDataset.class); - Assertions.assertEquals("vtemaspmanydscdk", model.description()); - Assertions.assertEquals("fixoskk", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("btqhvmmniiqyhol").type()); - Assertions.assertEquals("gvxrktjcjigc", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureTableDataset model = - new AzureTableDataset() - .withDescription("vtemaspmanydscdk") - .withStructure("datadpwjcbhaahntof") - .withSchema("datafh") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("fixoskk") - .withParameters(mapOf("ujybsrwz", "dataiv", "t", "datamr", "ikesmkwtzgfr", "datadhmfppinm"))) - .withParameters( - mapOf( - "btqhvmmniiqyhol", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("dataerxlobk"), - "nq", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("dataskbggi"))) - .withAnnotations(Arrays.asList("datatmwpblxk")) - .withFolder(new DatasetFolder().withName("gvxrktjcjigc")) - .withTableName("dataazofm"); - model = BinaryData.fromObject(model).toObject(AzureTableDataset.class); - Assertions.assertEquals("vtemaspmanydscdk", model.description()); - Assertions.assertEquals("fixoskk", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("btqhvmmniiqyhol").type()); - Assertions.assertEquals("gvxrktjcjigc", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureTableDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureTableDatasetTypePropertiesTests.java deleted file mode 100644 index 240d9e54b580..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureTableDatasetTypePropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.AzureTableDatasetTypeProperties; - -public final class AzureTableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureTableDatasetTypeProperties model = - BinaryData - .fromString("{\"tableName\":\"datauholaemwcgimmri\"}") - .toObject(AzureTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureTableDatasetTypeProperties model = - new AzureTableDatasetTypeProperties().withTableName("datauholaemwcgimmri"); - model = BinaryData.fromObject(model).toObject(AzureTableDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureTableSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureTableSourceTests.java deleted file mode 100644 index cf109b628aa5..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureTableSourceTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureTableSource; - -public final class AzureTableSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureTableSource model = - BinaryData - .fromString( - "{\"type\":\"AzureTableSource\",\"azureTableSourceQuery\":\"datazgzscgs\",\"azureTableSourceIgnoreTableNotFound\":\"dataujkeytpmlrjnnbmo\",\"queryTimeout\":\"dataytqtvatujphqvfx\",\"additionalColumns\":\"dataogwghxoxwp\",\"sourceRetryCount\":\"datakkmpfnwd\",\"sourceRetryWait\":\"datazwmtsm\",\"maxConcurrentConnections\":\"dataciyp\",\"disableMetricsCollection\":\"datanrgmgnvcusv\",\"\":{\"sn\":\"datazbdbv\",\"fom\":\"datahym\"}}") - .toObject(AzureTableSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureTableSource model = - new AzureTableSource() - .withSourceRetryCount("datakkmpfnwd") - .withSourceRetryWait("datazwmtsm") - .withMaxConcurrentConnections("dataciyp") - .withDisableMetricsCollection("datanrgmgnvcusv") - .withQueryTimeout("dataytqtvatujphqvfx") - .withAdditionalColumns("dataogwghxoxwp") - .withAzureTableSourceQuery("datazgzscgs") - .withAzureTableSourceIgnoreTableNotFound("dataujkeytpmlrjnnbmo"); - model = BinaryData.fromObject(model).toObject(AzureTableSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BigDataPoolParametrizationReferenceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BigDataPoolParametrizationReferenceTests.java deleted file mode 100644 index 209a1db0b74b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BigDataPoolParametrizationReferenceTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.BigDataPoolParametrizationReference; -import com.azure.resourcemanager.datafactory.models.BigDataPoolReferenceType; -import org.junit.jupiter.api.Assertions; - -public final class BigDataPoolParametrizationReferenceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BigDataPoolParametrizationReference model = - BinaryData - .fromString("{\"type\":\"BigDataPoolReference\",\"referenceName\":\"datazxphhwn\"}") - .toObject(BigDataPoolParametrizationReference.class); - Assertions.assertEquals(BigDataPoolReferenceType.BIG_DATA_POOL_REFERENCE, model.type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BigDataPoolParametrizationReference model = - new BigDataPoolParametrizationReference() - .withType(BigDataPoolReferenceType.BIG_DATA_POOL_REFERENCE) - .withReferenceName("datazxphhwn"); - model = BinaryData.fromObject(model).toObject(BigDataPoolParametrizationReference.class); - Assertions.assertEquals(BigDataPoolReferenceType.BIG_DATA_POOL_REFERENCE, model.type()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BinaryDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BinaryDatasetTests.java deleted file mode 100644 index 82ff1e74e36c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BinaryDatasetTests.java +++ /dev/null @@ -1,98 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.BinaryDataset; -import com.azure.resourcemanager.datafactory.models.DatasetCompression; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.DatasetLocation; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class BinaryDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BinaryDataset model = - BinaryData - .fromString( - "{\"type\":\"Binary\",\"typeProperties\":{\"location\":{\"type\":\"DatasetLocation\",\"folderPath\":\"datapujzfl\",\"fileName\":\"datadsgxcelujiswlluu\",\"\":{\"fxzf\":\"datafw\",\"eupcknecexkgrv\":\"datau\",\"yt\":\"datapsjdmng\",\"yxcnwawox\":\"datapdz\"}},\"compression\":{\"type\":\"datazbejqfbifop\",\"level\":\"dataxdwdrpazqjkrfm\",\"\":{\"gp\":\"datatfcuuugtj\",\"nnzm\":\"dataayiawohfm\",\"idzr\":\"datacjjkmqenh\",\"lo\":\"datavs\"}}},\"description\":\"vslvivqsuvwten\",\"structure\":\"datapijpkhc\",\"schema\":\"dataaqxukuicjufte\",\"linkedServiceName\":{\"referenceName\":\"iooanduewfhv\",\"parameters\":{\"gvzua\":\"datahxzubfjzabbw\",\"gavkmv\":\"dataxcdckixspsa\",\"kpzjbyetjxryopt\":\"dataxzerej\",\"z\":\"dataeitwhlbecgi\"}},\"parameters\":{\"hspbo\":{\"type\":\"String\",\"defaultValue\":\"datarrabovrwwxywp\"},\"skpeswyhhmifjua\":{\"type\":\"String\",\"defaultValue\":\"datafp\"},\"cmlae\":{\"type\":\"Array\",\"defaultValue\":\"datawvcmmpeglyuq\"},\"rorh\":{\"type\":\"Bool\",\"defaultValue\":\"databqufpnezsjzayml\"}},\"annotations\":[\"datazmsimehtcu\",\"datawdhtqqhyhnimxtn\",\"dataugisnomwnwngho\"],\"folder\":{\"name\":\"keyymicjixxfs\"},\"\":{\"veywetkrhlolmcn\":\"datartnuguefxxijteb\",\"npetlrnrde\":\"dataepfgsvbbvaqdl\",\"vxehuekdxljzvdo\":\"dataaw\"}}") - .toObject(BinaryDataset.class); - Assertions.assertEquals("vslvivqsuvwten", model.description()); - Assertions.assertEquals("iooanduewfhv", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("hspbo").type()); - Assertions.assertEquals("keyymicjixxfs", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BinaryDataset model = - new BinaryDataset() - .withDescription("vslvivqsuvwten") - .withStructure("datapijpkhc") - .withSchema("dataaqxukuicjufte") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("iooanduewfhv") - .withParameters( - mapOf( - "gvzua", - "datahxzubfjzabbw", - "gavkmv", - "dataxcdckixspsa", - "kpzjbyetjxryopt", - "dataxzerej", - "z", - "dataeitwhlbecgi"))) - .withParameters( - mapOf( - "hspbo", - new ParameterSpecification() - .withType(ParameterType.STRING) - .withDefaultValue("datarrabovrwwxywp"), - "skpeswyhhmifjua", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datafp"), - "cmlae", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datawvcmmpeglyuq"), - "rorh", - new ParameterSpecification() - .withType(ParameterType.BOOL) - .withDefaultValue("databqufpnezsjzayml"))) - .withAnnotations(Arrays.asList("datazmsimehtcu", "datawdhtqqhyhnimxtn", "dataugisnomwnwngho")) - .withFolder(new DatasetFolder().withName("keyymicjixxfs")) - .withLocation( - new DatasetLocation() - .withFolderPath("datapujzfl") - .withFileName("datadsgxcelujiswlluu") - .withAdditionalProperties(mapOf("type", "DatasetLocation"))) - .withCompression( - new DatasetCompression() - .withType("datazbejqfbifop") - .withLevel("dataxdwdrpazqjkrfm") - .withAdditionalProperties(mapOf())); - model = BinaryData.fromObject(model).toObject(BinaryDataset.class); - Assertions.assertEquals("vslvivqsuvwten", model.description()); - Assertions.assertEquals("iooanduewfhv", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("hspbo").type()); - Assertions.assertEquals("keyymicjixxfs", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BinaryDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BinaryDatasetTypePropertiesTests.java deleted file mode 100644 index 8f6ec12141df..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BinaryDatasetTypePropertiesTests.java +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.BinaryDatasetTypeProperties; -import com.azure.resourcemanager.datafactory.models.DatasetCompression; -import com.azure.resourcemanager.datafactory.models.DatasetLocation; -import java.util.HashMap; -import java.util.Map; - -public final class BinaryDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BinaryDatasetTypeProperties model = - BinaryData - .fromString( - "{\"location\":{\"type\":\"DatasetLocation\",\"folderPath\":\"datarblerlprdaqcc\",\"fileName\":\"datacbnygd\",\"\":{\"zlrz\":\"dataxwbpwyykdig\",\"mjqmv\":\"datadasdni\"}},\"compression\":{\"type\":\"datagkiqla\",\"level\":\"dataqtwvcazekdzdz\",\"\":{\"lgf\":\"datajwztsmpchggry\",\"gfrrkdknczgoryw\":\"dataatig\",\"ka\":\"datavojtvmdevdlhqv\"}}}") - .toObject(BinaryDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BinaryDatasetTypeProperties model = - new BinaryDatasetTypeProperties() - .withLocation( - new DatasetLocation() - .withFolderPath("datarblerlprdaqcc") - .withFileName("datacbnygd") - .withAdditionalProperties(mapOf("type", "DatasetLocation"))) - .withCompression( - new DatasetCompression() - .withType("datagkiqla") - .withLevel("dataqtwvcazekdzdz") - .withAdditionalProperties(mapOf())); - model = BinaryData.fromObject(model).toObject(BinaryDatasetTypeProperties.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BinaryReadSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BinaryReadSettingsTests.java deleted file mode 100644 index d1c9364d1a1c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BinaryReadSettingsTests.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.BinaryReadSettings; -import com.azure.resourcemanager.datafactory.models.CompressionReadSettings; -import java.util.HashMap; -import java.util.Map; - -public final class BinaryReadSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BinaryReadSettings model = - BinaryData - .fromString( - "{\"type\":\"BinaryReadSettings\",\"compressionProperties\":{\"type\":\"CompressionReadSettings\",\"\":{\"lyznbbcimxznfoak\":\"datapjozgryocgwkph\",\"bbh\":\"datajwiswzn\",\"behv\":\"dataleiwfi\"}},\"\":{\"zgnyfhqyli\":\"datahltnds\",\"eninaf\":\"datagnbhz\",\"tzkcol\":\"dataagaocv\"}}") - .toObject(BinaryReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BinaryReadSettings model = - new BinaryReadSettings() - .withCompressionProperties( - new CompressionReadSettings().withAdditionalProperties(mapOf("type", "CompressionReadSettings"))); - model = BinaryData.fromObject(model).toObject(BinaryReadSettings.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BinarySinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BinarySinkTests.java deleted file mode 100644 index 7c577bb0222a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BinarySinkTests.java +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.BinarySink; -import com.azure.resourcemanager.datafactory.models.StoreWriteSettings; -import java.util.HashMap; -import java.util.Map; - -public final class BinarySinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BinarySink model = - BinaryData - .fromString( - "{\"type\":\"BinarySink\",\"storeSettings\":{\"type\":\"StoreWriteSettings\",\"maxConcurrentConnections\":\"datax\",\"disableMetricsCollection\":\"datanmsfqntakroxkurf\",\"copyBehavior\":\"datawcmzpwkcagfqg\",\"\":{\"prdpvblonlh\":\"datamj\",\"zqavimxnhylwog\":\"datagexwjhic\",\"bgda\":\"datavl\",\"hdxlfntdclkmgg\":\"datat\"}},\"writeBatchSize\":\"datalfyxaiaf\",\"writeBatchTimeout\":\"datamxekfvycvhwduo\",\"sinkRetryCount\":\"dataapzzcxk\",\"sinkRetryWait\":\"datasbahcassqeybd\",\"maxConcurrentConnections\":\"dataeyakg\",\"disableMetricsCollection\":\"dataohfq\",\"\":{\"awctaarboxal\":\"datakicxtumqi\",\"xwevl\":\"dataoadmcvvkjnpe\",\"bo\":\"datahuahlqm\",\"xoyllx\":\"datagpmmz\"}}") - .toObject(BinarySink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BinarySink model = - new BinarySink() - .withWriteBatchSize("datalfyxaiaf") - .withWriteBatchTimeout("datamxekfvycvhwduo") - .withSinkRetryCount("dataapzzcxk") - .withSinkRetryWait("datasbahcassqeybd") - .withMaxConcurrentConnections("dataeyakg") - .withDisableMetricsCollection("dataohfq") - .withStoreSettings( - new StoreWriteSettings() - .withMaxConcurrentConnections("datax") - .withDisableMetricsCollection("datanmsfqntakroxkurf") - .withCopyBehavior("datawcmzpwkcagfqg") - .withAdditionalProperties(mapOf("type", "StoreWriteSettings"))); - model = BinaryData.fromObject(model).toObject(BinarySink.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BinarySourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BinarySourceTests.java deleted file mode 100644 index afa583d55620..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BinarySourceTests.java +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.BinaryReadSettings; -import com.azure.resourcemanager.datafactory.models.BinarySource; -import com.azure.resourcemanager.datafactory.models.CompressionReadSettings; -import com.azure.resourcemanager.datafactory.models.StoreReadSettings; -import java.util.HashMap; -import java.util.Map; - -public final class BinarySourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BinarySource model = - BinaryData - .fromString( - "{\"type\":\"BinarySource\",\"storeSettings\":{\"type\":\"StoreReadSettings\",\"maxConcurrentConnections\":\"datadnok\",\"disableMetricsCollection\":\"datagiecjyftsn\",\"\":{\"tjc\":\"dataz\",\"xxbkqmagpdsuyy\":\"dataa\"}},\"formatSettings\":{\"type\":\"BinaryReadSettings\",\"compressionProperties\":{\"type\":\"CompressionReadSettings\",\"\":{\"hhvgddfzcnylz\":\"dataoox\",\"degfhofo\":\"datalhufsgcpwrtg\"}},\"\":{\"otjj\":\"dataiuik\",\"snr\":\"dataecxvkqjpovjvvx\",\"flqwqcxyiqppacji\":\"datawrbmhjm\",\"jzgnla\":\"datarllacylbtkxe\"}},\"sourceRetryCount\":\"datattexaugoj\",\"sourceRetryWait\":\"datajezr\",\"maxConcurrentConnections\":\"datao\",\"disableMetricsCollection\":\"datawlntenhnqtvx\",\"\":{\"lceo\":\"dataehhehotqorrv\",\"gjir\":\"datalyugzl\"}}") - .toObject(BinarySource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BinarySource model = - new BinarySource() - .withSourceRetryCount("datattexaugoj") - .withSourceRetryWait("datajezr") - .withMaxConcurrentConnections("datao") - .withDisableMetricsCollection("datawlntenhnqtvx") - .withStoreSettings( - new StoreReadSettings() - .withMaxConcurrentConnections("datadnok") - .withDisableMetricsCollection("datagiecjyftsn") - .withAdditionalProperties(mapOf("type", "StoreReadSettings"))) - .withFormatSettings( - new BinaryReadSettings() - .withCompressionProperties( - new CompressionReadSettings() - .withAdditionalProperties(mapOf("type", "CompressionReadSettings")))); - model = BinaryData.fromObject(model).toObject(BinarySource.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BlobEventsTriggerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BlobEventsTriggerTests.java deleted file mode 100644 index bdbf4f6d4d56..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BlobEventsTriggerTests.java +++ /dev/null @@ -1,78 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.BlobEventTypes; -import com.azure.resourcemanager.datafactory.models.BlobEventsTrigger; -import com.azure.resourcemanager.datafactory.models.PipelineReference; -import com.azure.resourcemanager.datafactory.models.TriggerPipelineReference; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class BlobEventsTriggerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BlobEventsTrigger model = - BinaryData - .fromString( - "{\"type\":\"BlobEventsTrigger\",\"typeProperties\":{\"blobPathBeginsWith\":\"bzjvzgyzenveiy\",\"blobPathEndsWith\":\"ngtylvdumpm\",\"ignoreEmptyBlobs\":true,\"events\":[\"Microsoft.Storage.BlobDeleted\",\"Microsoft.Storage.BlobDeleted\"],\"scope\":\"chdy\"},\"pipelines\":[{\"pipelineReference\":{\"referenceName\":\"m\",\"name\":\"gdjbl\"},\"parameters\":{\"auetzp\":\"dataeclf\"}}],\"description\":\"cfgrtgnvlrm\",\"runtimeState\":\"Stopped\",\"annotations\":[\"dataxsybnwogvkc\"],\"\":{\"lvinxwtxtetwqk\":\"datavrqkmpqs\",\"rvkneo\":\"datazauumzwlr\",\"zvugqwxslisgfx\":\"dataplng\",\"llgrckoxkpjzyc\":\"datayfeqajtzquhqrj\"}}") - .toObject(BlobEventsTrigger.class); - Assertions.assertEquals("cfgrtgnvlrm", model.description()); - Assertions.assertEquals("m", model.pipelines().get(0).pipelineReference().referenceName()); - Assertions.assertEquals("gdjbl", model.pipelines().get(0).pipelineReference().name()); - Assertions.assertEquals("bzjvzgyzenveiy", model.blobPathBeginsWith()); - Assertions.assertEquals("ngtylvdumpm", model.blobPathEndsWith()); - Assertions.assertEquals(true, model.ignoreEmptyBlobs()); - Assertions.assertEquals(BlobEventTypes.MICROSOFT_STORAGE_BLOB_DELETED, model.events().get(0)); - Assertions.assertEquals("chdy", model.scope()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BlobEventsTrigger model = - new BlobEventsTrigger() - .withDescription("cfgrtgnvlrm") - .withAnnotations(Arrays.asList("dataxsybnwogvkc")) - .withPipelines( - Arrays - .asList( - new TriggerPipelineReference() - .withPipelineReference(new PipelineReference().withReferenceName("m").withName("gdjbl")) - .withParameters(mapOf("auetzp", "dataeclf")))) - .withBlobPathBeginsWith("bzjvzgyzenveiy") - .withBlobPathEndsWith("ngtylvdumpm") - .withIgnoreEmptyBlobs(true) - .withEvents( - Arrays - .asList( - BlobEventTypes.MICROSOFT_STORAGE_BLOB_DELETED, - BlobEventTypes.MICROSOFT_STORAGE_BLOB_DELETED)) - .withScope("chdy"); - model = BinaryData.fromObject(model).toObject(BlobEventsTrigger.class); - Assertions.assertEquals("cfgrtgnvlrm", model.description()); - Assertions.assertEquals("m", model.pipelines().get(0).pipelineReference().referenceName()); - Assertions.assertEquals("gdjbl", model.pipelines().get(0).pipelineReference().name()); - Assertions.assertEquals("bzjvzgyzenveiy", model.blobPathBeginsWith()); - Assertions.assertEquals("ngtylvdumpm", model.blobPathEndsWith()); - Assertions.assertEquals(true, model.ignoreEmptyBlobs()); - Assertions.assertEquals(BlobEventTypes.MICROSOFT_STORAGE_BLOB_DELETED, model.events().get(0)); - Assertions.assertEquals("chdy", model.scope()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BlobEventsTriggerTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BlobEventsTriggerTypePropertiesTests.java deleted file mode 100644 index 236432f59dc8..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BlobEventsTriggerTypePropertiesTests.java +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.BlobEventsTriggerTypeProperties; -import com.azure.resourcemanager.datafactory.models.BlobEventTypes; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class BlobEventsTriggerTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BlobEventsTriggerTypeProperties model = - BinaryData - .fromString( - "{\"blobPathBeginsWith\":\"zjwugrjio\",\"blobPathEndsWith\":\"cuxgimfftvylfke\",\"ignoreEmptyBlobs\":true,\"events\":[\"Microsoft.Storage.BlobCreated\"],\"scope\":\"x\"}") - .toObject(BlobEventsTriggerTypeProperties.class); - Assertions.assertEquals("zjwugrjio", model.blobPathBeginsWith()); - Assertions.assertEquals("cuxgimfftvylfke", model.blobPathEndsWith()); - Assertions.assertEquals(true, model.ignoreEmptyBlobs()); - Assertions.assertEquals(BlobEventTypes.MICROSOFT_STORAGE_BLOB_CREATED, model.events().get(0)); - Assertions.assertEquals("x", model.scope()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BlobEventsTriggerTypeProperties model = - new BlobEventsTriggerTypeProperties() - .withBlobPathBeginsWith("zjwugrjio") - .withBlobPathEndsWith("cuxgimfftvylfke") - .withIgnoreEmptyBlobs(true) - .withEvents(Arrays.asList(BlobEventTypes.MICROSOFT_STORAGE_BLOB_CREATED)) - .withScope("x"); - model = BinaryData.fromObject(model).toObject(BlobEventsTriggerTypeProperties.class); - Assertions.assertEquals("zjwugrjio", model.blobPathBeginsWith()); - Assertions.assertEquals("cuxgimfftvylfke", model.blobPathEndsWith()); - Assertions.assertEquals(true, model.ignoreEmptyBlobs()); - Assertions.assertEquals(BlobEventTypes.MICROSOFT_STORAGE_BLOB_CREATED, model.events().get(0)); - Assertions.assertEquals("x", model.scope()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BlobSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BlobSinkTests.java deleted file mode 100644 index c471df36db1a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BlobSinkTests.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.BlobSink; -import com.azure.resourcemanager.datafactory.models.MetadataItem; -import java.util.Arrays; - -public final class BlobSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BlobSink model = - BinaryData - .fromString( - "{\"type\":\"BlobSink\",\"blobWriterOverwriteFiles\":\"dataahzylspzcyrhynl\",\"blobWriterDateTimeFormat\":\"datariaecvagud\",\"blobWriterAddHeader\":\"dataadgyhqrasxe\",\"copyBehavior\":\"datajqqhbkxiu\",\"metadata\":[{\"name\":\"databhzdjvdyrzijggb\",\"value\":\"datapzgvq\"},{\"name\":\"datanxzaliicrut\",\"value\":\"datamflvxilaytjywf\"}],\"writeBatchSize\":\"datawnoghqdl\",\"writeBatchTimeout\":\"datawqngpvvnbuknvku\",\"sinkRetryCount\":\"datasz\",\"sinkRetryWait\":\"datauqbuvpbeswgkre\",\"maxConcurrentConnections\":\"datapufkcamzcbzgikl\",\"disableMetricsCollection\":\"dataegcg\",\"\":{\"mmcbiktetzvqtce\":\"datapbsie\",\"pdnbzqweohmlkzhx\":\"datavcsbyimygswdu\",\"haerhxd\":\"datadmauanxzrqt\",\"bqmoguy\":\"datahkbrkhjjbwelicrx\"}}") - .toObject(BlobSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BlobSink model = - new BlobSink() - .withWriteBatchSize("datawnoghqdl") - .withWriteBatchTimeout("datawqngpvvnbuknvku") - .withSinkRetryCount("datasz") - .withSinkRetryWait("datauqbuvpbeswgkre") - .withMaxConcurrentConnections("datapufkcamzcbzgikl") - .withDisableMetricsCollection("dataegcg") - .withBlobWriterOverwriteFiles("dataahzylspzcyrhynl") - .withBlobWriterDateTimeFormat("datariaecvagud") - .withBlobWriterAddHeader("dataadgyhqrasxe") - .withCopyBehavior("datajqqhbkxiu") - .withMetadata( - Arrays - .asList( - new MetadataItem().withName("databhzdjvdyrzijggb").withValue("datapzgvq"), - new MetadataItem().withName("datanxzaliicrut").withValue("datamflvxilaytjywf"))); - model = BinaryData.fromObject(model).toObject(BlobSink.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BlobSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BlobSourceTests.java deleted file mode 100644 index 149b4cbc1ecf..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BlobSourceTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.BlobSource; - -public final class BlobSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BlobSource model = - BinaryData - .fromString( - "{\"type\":\"BlobSource\",\"treatEmptyAsNull\":\"datakh\",\"skipHeaderLineCount\":\"datatecsmocqwey\",\"recursive\":\"dataakettmfcxviwf\",\"sourceRetryCount\":\"datajxxbsafqiwldu\",\"sourceRetryWait\":\"datasyjzdasgkfz\",\"maxConcurrentConnections\":\"datahqomuzohnpkofklb\",\"disableMetricsCollection\":\"dataln\",\"\":{\"mmvazvwzienij\":\"datafyvowl\",\"jxdnkgztfgcu\":\"datanmgdpxeivr\",\"tqggzahngn\":\"datavbreh\",\"z\":\"dataseiidfpwbybmxf\"}}") - .toObject(BlobSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BlobSource model = - new BlobSource() - .withSourceRetryCount("datajxxbsafqiwldu") - .withSourceRetryWait("datasyjzdasgkfz") - .withMaxConcurrentConnections("datahqomuzohnpkofklb") - .withDisableMetricsCollection("dataln") - .withTreatEmptyAsNull("datakh") - .withSkipHeaderLineCount("datatecsmocqwey") - .withRecursive("dataakettmfcxviwf"); - model = BinaryData.fromObject(model).toObject(BlobSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BlobTriggerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BlobTriggerTests.java deleted file mode 100644 index e16a23bbd7aa..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BlobTriggerTests.java +++ /dev/null @@ -1,95 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.BlobTrigger; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.PipelineReference; -import com.azure.resourcemanager.datafactory.models.TriggerPipelineReference; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class BlobTriggerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BlobTrigger model = - BinaryData - .fromString( - "{\"type\":\"BlobTrigger\",\"typeProperties\":{\"folderPath\":\"bvgwylta\",\"maxConcurrency\":155779144,\"linkedService\":{\"referenceName\":\"gbelxmulyalupijq\",\"parameters\":{\"wetkrmqitmcxqahx\":\"datady\",\"dceimlu\":\"datanlor\",\"oxrj\":\"dataqxjxqqbkfdnski\"}}},\"pipelines\":[{\"pipelineReference\":{\"referenceName\":\"cicqaufhxe\",\"name\":\"bcxeecgf\"},\"parameters\":{\"ayybwxqryyltnfwl\":\"dataji\",\"mgijevfjnv\":\"datakukmdeqrpu\",\"f\":\"dataokwjmteh\"}},{\"pipelineReference\":{\"referenceName\":\"xtkvpejtdlqorcyp\",\"name\":\"wfalgzsg\"},\"parameters\":{\"ducvhhayqx\":\"dataclzmjhiqgi\",\"ujenobf\":\"datacrsho\",\"vtzrg\":\"dataiscauudxf\"}},{\"pipelineReference\":{\"referenceName\":\"xbrfqi\",\"name\":\"wfxmdotdgvsoyp\"},\"parameters\":{\"ypzcql\":\"dataqvczd\",\"hlipxkxhj\":\"datauhbkapbgmjodfs\"}}],\"description\":\"vsjuvjmnsgvf\",\"runtimeState\":\"Started\",\"annotations\":[\"dataplvglwx\",\"datapiwpi\",\"dataydxmplxzrofscib\",\"datatxyjq\"],\"\":{\"da\":\"datayzxzkpum\",\"rrpzcvg\":\"databoqeteavphup\"}}") - .toObject(BlobTrigger.class); - Assertions.assertEquals("vsjuvjmnsgvf", model.description()); - Assertions.assertEquals("cicqaufhxe", model.pipelines().get(0).pipelineReference().referenceName()); - Assertions.assertEquals("bcxeecgf", model.pipelines().get(0).pipelineReference().name()); - Assertions.assertEquals("bvgwylta", model.folderPath()); - Assertions.assertEquals(155779144, model.maxConcurrency()); - Assertions.assertEquals("gbelxmulyalupijq", model.linkedService().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BlobTrigger model = - new BlobTrigger() - .withDescription("vsjuvjmnsgvf") - .withAnnotations(Arrays.asList("dataplvglwx", "datapiwpi", "dataydxmplxzrofscib", "datatxyjq")) - .withPipelines( - Arrays - .asList( - new TriggerPipelineReference() - .withPipelineReference( - new PipelineReference().withReferenceName("cicqaufhxe").withName("bcxeecgf")) - .withParameters( - mapOf( - "ayybwxqryyltnfwl", - "dataji", - "mgijevfjnv", - "datakukmdeqrpu", - "f", - "dataokwjmteh")), - new TriggerPipelineReference() - .withPipelineReference( - new PipelineReference().withReferenceName("xtkvpejtdlqorcyp").withName("wfalgzsg")) - .withParameters( - mapOf( - "ducvhhayqx", - "dataclzmjhiqgi", - "ujenobf", - "datacrsho", - "vtzrg", - "dataiscauudxf")), - new TriggerPipelineReference() - .withPipelineReference( - new PipelineReference().withReferenceName("xbrfqi").withName("wfxmdotdgvsoyp")) - .withParameters(mapOf("ypzcql", "dataqvczd", "hlipxkxhj", "datauhbkapbgmjodfs")))) - .withFolderPath("bvgwylta") - .withMaxConcurrency(155779144) - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("gbelxmulyalupijq") - .withParameters( - mapOf("wetkrmqitmcxqahx", "datady", "dceimlu", "datanlor", "oxrj", "dataqxjxqqbkfdnski"))); - model = BinaryData.fromObject(model).toObject(BlobTrigger.class); - Assertions.assertEquals("vsjuvjmnsgvf", model.description()); - Assertions.assertEquals("cicqaufhxe", model.pipelines().get(0).pipelineReference().referenceName()); - Assertions.assertEquals("bcxeecgf", model.pipelines().get(0).pipelineReference().name()); - Assertions.assertEquals("bvgwylta", model.folderPath()); - Assertions.assertEquals(155779144, model.maxConcurrency()); - Assertions.assertEquals("gbelxmulyalupijq", model.linkedService().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BlobTriggerTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BlobTriggerTypePropertiesTests.java deleted file mode 100644 index c4c1a91208f3..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BlobTriggerTypePropertiesTests.java +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.BlobTriggerTypeProperties; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class BlobTriggerTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BlobTriggerTypeProperties model = - BinaryData - .fromString( - "{\"folderPath\":\"hknnvjgc\",\"maxConcurrency\":1468097285,\"linkedService\":{\"referenceName\":\"efewofhjonqkbn\",\"parameters\":{\"uvr\":\"dataattzxvfsrufj\"}}}") - .toObject(BlobTriggerTypeProperties.class); - Assertions.assertEquals("hknnvjgc", model.folderPath()); - Assertions.assertEquals(1468097285, model.maxConcurrency()); - Assertions.assertEquals("efewofhjonqkbn", model.linkedService().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BlobTriggerTypeProperties model = - new BlobTriggerTypeProperties() - .withFolderPath("hknnvjgc") - .withMaxConcurrency(1468097285) - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("efewofhjonqkbn") - .withParameters(mapOf("uvr", "dataattzxvfsrufj"))); - model = BinaryData.fromObject(model).toObject(BlobTriggerTypeProperties.class); - Assertions.assertEquals("hknnvjgc", model.folderPath()); - Assertions.assertEquals(1468097285, model.maxConcurrency()); - Assertions.assertEquals("efewofhjonqkbn", model.linkedService().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CassandraSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CassandraSourceTests.java deleted file mode 100644 index b4528a147136..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CassandraSourceTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CassandraSource; -import com.azure.resourcemanager.datafactory.models.CassandraSourceReadConsistencyLevels; -import org.junit.jupiter.api.Assertions; - -public final class CassandraSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CassandraSource model = - BinaryData - .fromString( - "{\"type\":\"CassandraSource\",\"query\":\"dataattaloomf\",\"consistencyLevel\":\"ALL\",\"queryTimeout\":\"datatwzslrprftq\",\"additionalColumns\":\"datavouyqzhoikemho\",\"sourceRetryCount\":\"dataabmxoo\",\"sourceRetryWait\":\"dataoogozerccz\",\"maxConcurrentConnections\":\"databnkgkuujeq\",\"disableMetricsCollection\":\"dataqafjkajlogvfn\",\"\":{\"wehjybboqyxi\":\"dataolvazkqkycgej\",\"vdgemymyddzjtx\":\"datac\",\"lys\":\"datavgslm\"}}") - .toObject(CassandraSource.class); - Assertions.assertEquals(CassandraSourceReadConsistencyLevels.ALL, model.consistencyLevel()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CassandraSource model = - new CassandraSource() - .withSourceRetryCount("dataabmxoo") - .withSourceRetryWait("dataoogozerccz") - .withMaxConcurrentConnections("databnkgkuujeq") - .withDisableMetricsCollection("dataqafjkajlogvfn") - .withQueryTimeout("datatwzslrprftq") - .withAdditionalColumns("datavouyqzhoikemho") - .withQuery("dataattaloomf") - .withConsistencyLevel(CassandraSourceReadConsistencyLevels.ALL); - model = BinaryData.fromObject(model).toObject(CassandraSource.class); - Assertions.assertEquals(CassandraSourceReadConsistencyLevels.ALL, model.consistencyLevel()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChainingTriggerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChainingTriggerTests.java deleted file mode 100644 index a3569b18c7a1..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChainingTriggerTests.java +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ChainingTrigger; -import com.azure.resourcemanager.datafactory.models.PipelineReference; -import com.azure.resourcemanager.datafactory.models.TriggerPipelineReference; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ChainingTriggerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ChainingTrigger model = - BinaryData - .fromString( - "{\"type\":\"ChainingTrigger\",\"pipeline\":{\"pipelineReference\":{\"referenceName\":\"imcfmdh\",\"name\":\"lliscyxcluvjppuj\"},\"parameters\":{\"obltoargc\":\"datathshcjg\",\"gvfs\":\"datatgqyqwmzzcg\",\"ybxmuehfkbhymd\":\"dataabuurtuqw\"}},\"typeProperties\":{\"dependsOn\":[{\"referenceName\":\"s\",\"name\":\"j\"},{\"referenceName\":\"chhrnfa\",\"name\":\"e\"}],\"runDimension\":\"iww\"},\"description\":\"kxz\",\"runtimeState\":\"Started\",\"annotations\":[\"datalhmvc\",\"databiagwu\"],\"\":{\"ywtaufm\":\"datayi\"}}") - .toObject(ChainingTrigger.class); - Assertions.assertEquals("kxz", model.description()); - Assertions.assertEquals("imcfmdh", model.pipeline().pipelineReference().referenceName()); - Assertions.assertEquals("lliscyxcluvjppuj", model.pipeline().pipelineReference().name()); - Assertions.assertEquals("s", model.dependsOn().get(0).referenceName()); - Assertions.assertEquals("j", model.dependsOn().get(0).name()); - Assertions.assertEquals("iww", model.runDimension()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ChainingTrigger model = - new ChainingTrigger() - .withDescription("kxz") - .withAnnotations(Arrays.asList("datalhmvc", "databiagwu")) - .withPipeline( - new TriggerPipelineReference() - .withPipelineReference( - new PipelineReference().withReferenceName("imcfmdh").withName("lliscyxcluvjppuj")) - .withParameters( - mapOf( - "obltoargc", - "datathshcjg", - "gvfs", - "datatgqyqwmzzcg", - "ybxmuehfkbhymd", - "dataabuurtuqw"))) - .withDependsOn( - Arrays - .asList( - new PipelineReference().withReferenceName("s").withName("j"), - new PipelineReference().withReferenceName("chhrnfa").withName("e"))) - .withRunDimension("iww"); - model = BinaryData.fromObject(model).toObject(ChainingTrigger.class); - Assertions.assertEquals("kxz", model.description()); - Assertions.assertEquals("imcfmdh", model.pipeline().pipelineReference().referenceName()); - Assertions.assertEquals("lliscyxcluvjppuj", model.pipeline().pipelineReference().name()); - Assertions.assertEquals("s", model.dependsOn().get(0).referenceName()); - Assertions.assertEquals("j", model.dependsOn().get(0).name()); - Assertions.assertEquals("iww", model.runDimension()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChainingTriggerTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChainingTriggerTypePropertiesTests.java deleted file mode 100644 index ae823a51d66c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChainingTriggerTypePropertiesTests.java +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.ChainingTriggerTypeProperties; -import com.azure.resourcemanager.datafactory.models.PipelineReference; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ChainingTriggerTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ChainingTriggerTypeProperties model = - BinaryData - .fromString( - "{\"dependsOn\":[{\"referenceName\":\"fjno\",\"name\":\"ibcez\"},{\"referenceName\":\"tfyarlwl\",\"name\":\"jerqlbz\"},{\"referenceName\":\"sff\",\"name\":\"u\"}],\"runDimension\":\"ybteyht\"}") - .toObject(ChainingTriggerTypeProperties.class); - Assertions.assertEquals("fjno", model.dependsOn().get(0).referenceName()); - Assertions.assertEquals("ibcez", model.dependsOn().get(0).name()); - Assertions.assertEquals("ybteyht", model.runDimension()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ChainingTriggerTypeProperties model = - new ChainingTriggerTypeProperties() - .withDependsOn( - Arrays - .asList( - new PipelineReference().withReferenceName("fjno").withName("ibcez"), - new PipelineReference().withReferenceName("tfyarlwl").withName("jerqlbz"), - new PipelineReference().withReferenceName("sff").withName("u"))) - .withRunDimension("ybteyht"); - model = BinaryData.fromObject(model).toObject(ChainingTriggerTypeProperties.class); - Assertions.assertEquals("fjno", model.dependsOn().get(0).referenceName()); - Assertions.assertEquals("ibcez", model.dependsOn().get(0).name()); - Assertions.assertEquals("ybteyht", model.runDimension()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureFolderTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureFolderTests.java deleted file mode 100644 index 4ad695abcb66..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureFolderTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ChangeDataCaptureFolder; -import org.junit.jupiter.api.Assertions; - -public final class ChangeDataCaptureFolderTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ChangeDataCaptureFolder model = - BinaryData.fromString("{\"name\":\"pkcvmwf\"}").toObject(ChangeDataCaptureFolder.class); - Assertions.assertEquals("pkcvmwf", model.name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ChangeDataCaptureFolder model = new ChangeDataCaptureFolder().withName("pkcvmwf"); - model = BinaryData.fromObject(model).toObject(ChangeDataCaptureFolder.class); - Assertions.assertEquals("pkcvmwf", model.name()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureListResponseTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureListResponseTests.java deleted file mode 100644 index 1d2b64212b6c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureListResponseTests.java +++ /dev/null @@ -1,391 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.ChangeDataCaptureResourceInner; -import com.azure.resourcemanager.datafactory.models.ChangeDataCaptureFolder; -import com.azure.resourcemanager.datafactory.models.ChangeDataCaptureListResponse; -import com.azure.resourcemanager.datafactory.models.ConnectionType; -import com.azure.resourcemanager.datafactory.models.DataMapperMapping; -import com.azure.resourcemanager.datafactory.models.FrequencyType; -import com.azure.resourcemanager.datafactory.models.MapperConnection; -import com.azure.resourcemanager.datafactory.models.MapperPolicy; -import com.azure.resourcemanager.datafactory.models.MapperPolicyRecurrence; -import com.azure.resourcemanager.datafactory.models.MapperSourceConnectionsInfo; -import com.azure.resourcemanager.datafactory.models.MapperTable; -import com.azure.resourcemanager.datafactory.models.MapperTargetConnectionsInfo; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ChangeDataCaptureListResponseTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ChangeDataCaptureListResponse model = - BinaryData - .fromString( - "{\"value\":[{\"properties\":{\"folder\":{\"name\":\"cgdz\"},\"description\":\"nr\",\"sourceConnectionsInfo\":[{\"sourceEntities\":[{},{}],\"connection\":{\"type\":\"linkedservicetype\"}},{\"sourceEntities\":[{},{},{},{}],\"connection\":{\"type\":\"linkedservicetype\"}}],\"targetConnectionsInfo\":[{\"targetEntities\":[{},{},{},{}],\"connection\":{\"type\":\"linkedservicetype\"},\"dataMapperMappings\":[{}],\"relationships\":[\"datanamtuatmzw\"]},{\"targetEntities\":[{},{},{}],\"connection\":{\"type\":\"linkedservicetype\"},\"dataMapperMappings\":[{},{}],\"relationships\":[\"datamizvgbgatzuuvbx\"]},{\"targetEntities\":[{},{},{}],\"connection\":{\"type\":\"linkedservicetype\"},\"dataMapperMappings\":[{},{}],\"relationships\":[\"datahttzlswvajqfutlx\",\"dataoqza\",\"dataunwqr\",\"datazfrgqhaohcm\"]},{\"targetEntities\":[{}],\"connection\":{\"type\":\"linkedservicetype\"},\"dataMapperMappings\":[{}],\"relationships\":[\"datambpyryxamebly\",\"datayvk\",\"datakmrocxne\",\"datav\"]}],\"policy\":{\"mode\":\"tod\",\"recurrence\":{\"frequency\":\"Hour\",\"interval\":1443311872}},\"allowVNetOverride\":true,\"status\":\"gvoavyunssxlgh\"},\"name\":\"egjlgvvpa\",\"type\":\"ksgbuxan\",\"etag\":\"ygdhgaqipirpiwr\",\"\":{\"pibkephuu\":\"dataulopmjnlexwhcb\",\"qpbrlc\":\"dataerctatoyin\",\"uc\":\"datarduczkgofxyfs\",\"qnrmvvfko\":\"datacrrpcjttbstvje\"},\"id\":\"lghktuidvrm\"},{\"properties\":{\"folder\":{\"name\":\"pdwwexymzvlazi\"},\"description\":\"hpwvqsgnyyuu\",\"sourceConnectionsInfo\":[{\"sourceEntities\":[{}],\"connection\":{\"type\":\"linkedservicetype\"}},{\"sourceEntities\":[{},{},{},{}],\"connection\":{\"type\":\"linkedservicetype\"}},{\"sourceEntities\":[{},{},{},{}],\"connection\":{\"type\":\"linkedservicetype\"}},{\"sourceEntities\":[{},{}],\"connection\":{\"type\":\"linkedservicetype\"}}],\"targetConnectionsInfo\":[{\"targetEntities\":[{}],\"connection\":{\"type\":\"linkedservicetype\"},\"dataMapperMappings\":[{},{}],\"relationships\":[\"datasrfhf\"]},{\"targetEntities\":[{},{},{}],\"connection\":{\"type\":\"linkedservicetype\"},\"dataMapperMappings\":[{},{}],\"relationships\":[\"datawcdommpvfqaw\",\"datafgbrtt\"]},{\"targetEntities\":[{},{},{},{}],\"connection\":{\"type\":\"linkedservicetype\"},\"dataMapperMappings\":[{},{}],\"relationships\":[\"datahajlfn\",\"datahiqfyuttdiy\",\"datab\"]},{\"targetEntities\":[{}],\"connection\":{\"type\":\"linkedservicetype\"},\"dataMapperMappings\":[{}],\"relationships\":[\"datak\",\"datactwwgzw\",\"datajlmec\"]}],\"policy\":{\"mode\":\"gygzyvn\",\"recurrence\":{\"frequency\":\"Minute\",\"interval\":488658265}},\"allowVNetOverride\":true,\"status\":\"moqqtlffhzbk\"},\"name\":\"jjjavfqnvhnq\",\"type\":\"wdogiyetesyp\",\"etag\":\"dbztjhqtfbov\",\"\":{\"hpsprkzyaupiac\":\"datakbwetnj\"},\"id\":\"n\"},{\"properties\":{\"folder\":{\"name\":\"wqro\"},\"description\":\"tuovmaonurj\",\"sourceConnectionsInfo\":[{\"sourceEntities\":[{},{},{}],\"connection\":{\"type\":\"linkedservicetype\"}},{\"sourceEntities\":[{}],\"connection\":{\"type\":\"linkedservicetype\"}},{\"sourceEntities\":[{},{},{}],\"connection\":{\"type\":\"linkedservicetype\"}},{\"sourceEntities\":[{}],\"connection\":{\"type\":\"linkedservicetype\"}}],\"targetConnectionsInfo\":[{\"targetEntities\":[{},{},{}],\"connection\":{\"type\":\"linkedservicetype\"},\"dataMapperMappings\":[{},{},{},{}],\"relationships\":[\"datascvsfxigctm\"]},{\"targetEntities\":[{}],\"connection\":{\"type\":\"linkedservicetype\"},\"dataMapperMappings\":[{}],\"relationships\":[\"dataccyd\",\"datatce\",\"datakdqkkyihzt\",\"dataeq\"]},{\"targetEntities\":[{},{},{}],\"connection\":{\"type\":\"linkedservicetype\"},\"dataMapperMappings\":[{},{}],\"relationships\":[\"dataychillcecfe\",\"datauwaoaguhicqlli\",\"datastacsjvhrweftkwq\"]}],\"policy\":{\"mode\":\"pmvssehaep\",\"recurrence\":{\"frequency\":\"Hour\",\"interval\":1216217570}},\"allowVNetOverride\":true,\"status\":\"upeuknijduyye\"},\"name\":\"ydjfb\",\"type\":\"yv\",\"etag\":\"ulrtywikdmh\",\"\":{\"ufr\":\"datauflgbhgauacdixm\",\"ozo\":\"dataryjqgdkf\"},\"id\":\"qb\"},{\"properties\":{\"folder\":{\"name\":\"vefgwbmqjchntas\"},\"description\":\"ymxbulpzealb\",\"sourceConnectionsInfo\":[{\"sourceEntities\":[{},{},{},{}],\"connection\":{\"type\":\"linkedservicetype\"}},{\"sourceEntities\":[{},{}],\"connection\":{\"type\":\"linkedservicetype\"}},{\"sourceEntities\":[{},{},{}],\"connection\":{\"type\":\"linkedservicetype\"}}],\"targetConnectionsInfo\":[{\"targetEntities\":[{},{},{}],\"connection\":{\"type\":\"linkedservicetype\"},\"dataMapperMappings\":[{}],\"relationships\":[\"datacmmzrrs\",\"dataubiwsdrnpxq\",\"dataodiffjxcjrmmua\"]}],\"policy\":{\"mode\":\"ibvjogjonmcy\",\"recurrence\":{\"frequency\":\"Hour\",\"interval\":2103208222}},\"allowVNetOverride\":false,\"status\":\"in\"},\"name\":\"fvfkak\",\"type\":\"ldtve\",\"etag\":\"oclzhz\",\"\":{\"amrdixtrekidswys\":\"datayuxgvttxpnrupz\"},\"id\":\"ruffgllukk\"}],\"nextLink\":\"vlxhrpqhvmblc\"}") - .toObject(ChangeDataCaptureListResponse.class); - Assertions.assertEquals("lghktuidvrm", model.value().get(0).id()); - Assertions.assertEquals("cgdz", model.value().get(0).folder().name()); - Assertions.assertEquals("nr", model.value().get(0).description()); - Assertions - .assertEquals( - ConnectionType.LINKEDSERVICETYPE, - model.value().get(0).sourceConnectionsInfo().get(0).connection().type()); - Assertions - .assertEquals( - ConnectionType.LINKEDSERVICETYPE, - model.value().get(0).targetConnectionsInfo().get(0).connection().type()); - Assertions.assertEquals("tod", model.value().get(0).policy().mode()); - Assertions.assertEquals(FrequencyType.HOUR, model.value().get(0).policy().recurrence().frequency()); - Assertions.assertEquals(1443311872, model.value().get(0).policy().recurrence().interval()); - Assertions.assertEquals(true, model.value().get(0).allowVNetOverride()); - Assertions.assertEquals("gvoavyunssxlgh", model.value().get(0).status()); - Assertions.assertEquals("vlxhrpqhvmblc", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ChangeDataCaptureListResponse model = - new ChangeDataCaptureListResponse() - .withValue( - Arrays - .asList( - new ChangeDataCaptureResourceInner() - .withId("lghktuidvrm") - .withFolder(new ChangeDataCaptureFolder().withName("cgdz")) - .withDescription("nr") - .withSourceConnectionsInfo( - Arrays - .asList( - new MapperSourceConnectionsInfo() - .withSourceEntities(Arrays.asList(new MapperTable(), new MapperTable())) - .withConnection( - new MapperConnection().withType(ConnectionType.LINKEDSERVICETYPE)), - new MapperSourceConnectionsInfo() - .withSourceEntities( - Arrays - .asList( - new MapperTable(), - new MapperTable(), - new MapperTable(), - new MapperTable())) - .withConnection( - new MapperConnection().withType(ConnectionType.LINKEDSERVICETYPE)))) - .withTargetConnectionsInfo( - Arrays - .asList( - new MapperTargetConnectionsInfo() - .withTargetEntities( - Arrays - .asList( - new MapperTable(), - new MapperTable(), - new MapperTable(), - new MapperTable())) - .withConnection( - new MapperConnection().withType(ConnectionType.LINKEDSERVICETYPE)) - .withDataMapperMappings(Arrays.asList(new DataMapperMapping())) - .withRelationships(Arrays.asList("datanamtuatmzw")), - new MapperTargetConnectionsInfo() - .withTargetEntities( - Arrays - .asList( - new MapperTable(), new MapperTable(), new MapperTable())) - .withConnection( - new MapperConnection().withType(ConnectionType.LINKEDSERVICETYPE)) - .withDataMapperMappings( - Arrays.asList(new DataMapperMapping(), new DataMapperMapping())) - .withRelationships(Arrays.asList("datamizvgbgatzuuvbx")), - new MapperTargetConnectionsInfo() - .withTargetEntities( - Arrays - .asList( - new MapperTable(), new MapperTable(), new MapperTable())) - .withConnection( - new MapperConnection().withType(ConnectionType.LINKEDSERVICETYPE)) - .withDataMapperMappings( - Arrays.asList(new DataMapperMapping(), new DataMapperMapping())) - .withRelationships( - Arrays - .asList( - "datahttzlswvajqfutlx", - "dataoqza", - "dataunwqr", - "datazfrgqhaohcm")), - new MapperTargetConnectionsInfo() - .withTargetEntities(Arrays.asList(new MapperTable())) - .withConnection( - new MapperConnection().withType(ConnectionType.LINKEDSERVICETYPE)) - .withDataMapperMappings(Arrays.asList(new DataMapperMapping())) - .withRelationships( - Arrays - .asList( - "datambpyryxamebly", "datayvk", "datakmrocxne", "datav")))) - .withPolicy( - new MapperPolicy() - .withMode("tod") - .withRecurrence( - new MapperPolicyRecurrence() - .withFrequency(FrequencyType.HOUR) - .withInterval(1443311872))) - .withAllowVNetOverride(true) - .withStatus("gvoavyunssxlgh") - .withAdditionalProperties( - mapOf("name", "egjlgvvpa", "etag", "ygdhgaqipirpiwr", "type", "ksgbuxan")), - new ChangeDataCaptureResourceInner() - .withId("n") - .withFolder(new ChangeDataCaptureFolder().withName("pdwwexymzvlazi")) - .withDescription("hpwvqsgnyyuu") - .withSourceConnectionsInfo( - Arrays - .asList( - new MapperSourceConnectionsInfo() - .withSourceEntities(Arrays.asList(new MapperTable())) - .withConnection( - new MapperConnection().withType(ConnectionType.LINKEDSERVICETYPE)), - new MapperSourceConnectionsInfo() - .withSourceEntities( - Arrays - .asList( - new MapperTable(), - new MapperTable(), - new MapperTable(), - new MapperTable())) - .withConnection( - new MapperConnection().withType(ConnectionType.LINKEDSERVICETYPE)), - new MapperSourceConnectionsInfo() - .withSourceEntities( - Arrays - .asList( - new MapperTable(), - new MapperTable(), - new MapperTable(), - new MapperTable())) - .withConnection( - new MapperConnection().withType(ConnectionType.LINKEDSERVICETYPE)), - new MapperSourceConnectionsInfo() - .withSourceEntities(Arrays.asList(new MapperTable(), new MapperTable())) - .withConnection( - new MapperConnection().withType(ConnectionType.LINKEDSERVICETYPE)))) - .withTargetConnectionsInfo( - Arrays - .asList( - new MapperTargetConnectionsInfo() - .withTargetEntities(Arrays.asList(new MapperTable())) - .withConnection( - new MapperConnection().withType(ConnectionType.LINKEDSERVICETYPE)) - .withDataMapperMappings( - Arrays.asList(new DataMapperMapping(), new DataMapperMapping())) - .withRelationships(Arrays.asList("datasrfhf")), - new MapperTargetConnectionsInfo() - .withTargetEntities( - Arrays - .asList( - new MapperTable(), new MapperTable(), new MapperTable())) - .withConnection( - new MapperConnection().withType(ConnectionType.LINKEDSERVICETYPE)) - .withDataMapperMappings( - Arrays.asList(new DataMapperMapping(), new DataMapperMapping())) - .withRelationships(Arrays.asList("datawcdommpvfqaw", "datafgbrtt")), - new MapperTargetConnectionsInfo() - .withTargetEntities( - Arrays - .asList( - new MapperTable(), - new MapperTable(), - new MapperTable(), - new MapperTable())) - .withConnection( - new MapperConnection().withType(ConnectionType.LINKEDSERVICETYPE)) - .withDataMapperMappings( - Arrays.asList(new DataMapperMapping(), new DataMapperMapping())) - .withRelationships( - Arrays.asList("datahajlfn", "datahiqfyuttdiy", "datab")), - new MapperTargetConnectionsInfo() - .withTargetEntities(Arrays.asList(new MapperTable())) - .withConnection( - new MapperConnection().withType(ConnectionType.LINKEDSERVICETYPE)) - .withDataMapperMappings(Arrays.asList(new DataMapperMapping())) - .withRelationships(Arrays.asList("datak", "datactwwgzw", "datajlmec")))) - .withPolicy( - new MapperPolicy() - .withMode("gygzyvn") - .withRecurrence( - new MapperPolicyRecurrence() - .withFrequency(FrequencyType.MINUTE) - .withInterval(488658265))) - .withAllowVNetOverride(true) - .withStatus("moqqtlffhzbk") - .withAdditionalProperties( - mapOf("name", "jjjavfqnvhnq", "etag", "dbztjhqtfbov", "type", "wdogiyetesyp")), - new ChangeDataCaptureResourceInner() - .withId("qb") - .withFolder(new ChangeDataCaptureFolder().withName("wqro")) - .withDescription("tuovmaonurj") - .withSourceConnectionsInfo( - Arrays - .asList( - new MapperSourceConnectionsInfo() - .withSourceEntities( - Arrays - .asList( - new MapperTable(), new MapperTable(), new MapperTable())) - .withConnection( - new MapperConnection().withType(ConnectionType.LINKEDSERVICETYPE)), - new MapperSourceConnectionsInfo() - .withSourceEntities(Arrays.asList(new MapperTable())) - .withConnection( - new MapperConnection().withType(ConnectionType.LINKEDSERVICETYPE)), - new MapperSourceConnectionsInfo() - .withSourceEntities( - Arrays - .asList( - new MapperTable(), new MapperTable(), new MapperTable())) - .withConnection( - new MapperConnection().withType(ConnectionType.LINKEDSERVICETYPE)), - new MapperSourceConnectionsInfo() - .withSourceEntities(Arrays.asList(new MapperTable())) - .withConnection( - new MapperConnection().withType(ConnectionType.LINKEDSERVICETYPE)))) - .withTargetConnectionsInfo( - Arrays - .asList( - new MapperTargetConnectionsInfo() - .withTargetEntities( - Arrays - .asList( - new MapperTable(), new MapperTable(), new MapperTable())) - .withConnection( - new MapperConnection().withType(ConnectionType.LINKEDSERVICETYPE)) - .withDataMapperMappings( - Arrays - .asList( - new DataMapperMapping(), - new DataMapperMapping(), - new DataMapperMapping(), - new DataMapperMapping())) - .withRelationships(Arrays.asList("datascvsfxigctm")), - new MapperTargetConnectionsInfo() - .withTargetEntities(Arrays.asList(new MapperTable())) - .withConnection( - new MapperConnection().withType(ConnectionType.LINKEDSERVICETYPE)) - .withDataMapperMappings(Arrays.asList(new DataMapperMapping())) - .withRelationships( - Arrays.asList("dataccyd", "datatce", "datakdqkkyihzt", "dataeq")), - new MapperTargetConnectionsInfo() - .withTargetEntities( - Arrays - .asList( - new MapperTable(), new MapperTable(), new MapperTable())) - .withConnection( - new MapperConnection().withType(ConnectionType.LINKEDSERVICETYPE)) - .withDataMapperMappings( - Arrays.asList(new DataMapperMapping(), new DataMapperMapping())) - .withRelationships( - Arrays - .asList( - "dataychillcecfe", - "datauwaoaguhicqlli", - "datastacsjvhrweftkwq")))) - .withPolicy( - new MapperPolicy() - .withMode("pmvssehaep") - .withRecurrence( - new MapperPolicyRecurrence() - .withFrequency(FrequencyType.HOUR) - .withInterval(1216217570))) - .withAllowVNetOverride(true) - .withStatus("upeuknijduyye") - .withAdditionalProperties(mapOf("name", "ydjfb", "etag", "ulrtywikdmh", "type", "yv")), - new ChangeDataCaptureResourceInner() - .withId("ruffgllukk") - .withFolder(new ChangeDataCaptureFolder().withName("vefgwbmqjchntas")) - .withDescription("ymxbulpzealb") - .withSourceConnectionsInfo( - Arrays - .asList( - new MapperSourceConnectionsInfo() - .withSourceEntities( - Arrays - .asList( - new MapperTable(), - new MapperTable(), - new MapperTable(), - new MapperTable())) - .withConnection( - new MapperConnection().withType(ConnectionType.LINKEDSERVICETYPE)), - new MapperSourceConnectionsInfo() - .withSourceEntities(Arrays.asList(new MapperTable(), new MapperTable())) - .withConnection( - new MapperConnection().withType(ConnectionType.LINKEDSERVICETYPE)), - new MapperSourceConnectionsInfo() - .withSourceEntities( - Arrays - .asList( - new MapperTable(), new MapperTable(), new MapperTable())) - .withConnection( - new MapperConnection().withType(ConnectionType.LINKEDSERVICETYPE)))) - .withTargetConnectionsInfo( - Arrays - .asList( - new MapperTargetConnectionsInfo() - .withTargetEntities( - Arrays - .asList( - new MapperTable(), new MapperTable(), new MapperTable())) - .withConnection( - new MapperConnection().withType(ConnectionType.LINKEDSERVICETYPE)) - .withDataMapperMappings(Arrays.asList(new DataMapperMapping())) - .withRelationships( - Arrays - .asList( - "datacmmzrrs", "dataubiwsdrnpxq", "dataodiffjxcjrmmua")))) - .withPolicy( - new MapperPolicy() - .withMode("ibvjogjonmcy") - .withRecurrence( - new MapperPolicyRecurrence() - .withFrequency(FrequencyType.HOUR) - .withInterval(2103208222))) - .withAllowVNetOverride(false) - .withStatus("in") - .withAdditionalProperties(mapOf("name", "fvfkak", "etag", "oclzhz", "type", "ldtve")))) - .withNextLink("vlxhrpqhvmblc"); - model = BinaryData.fromObject(model).toObject(ChangeDataCaptureListResponse.class); - Assertions.assertEquals("lghktuidvrm", model.value().get(0).id()); - Assertions.assertEquals("cgdz", model.value().get(0).folder().name()); - Assertions.assertEquals("nr", model.value().get(0).description()); - Assertions - .assertEquals( - ConnectionType.LINKEDSERVICETYPE, - model.value().get(0).sourceConnectionsInfo().get(0).connection().type()); - Assertions - .assertEquals( - ConnectionType.LINKEDSERVICETYPE, - model.value().get(0).targetConnectionsInfo().get(0).connection().type()); - Assertions.assertEquals("tod", model.value().get(0).policy().mode()); - Assertions.assertEquals(FrequencyType.HOUR, model.value().get(0).policy().recurrence().frequency()); - Assertions.assertEquals(1443311872, model.value().get(0).policy().recurrence().interval()); - Assertions.assertEquals(true, model.value().get(0).allowVNetOverride()); - Assertions.assertEquals("gvoavyunssxlgh", model.value().get(0).status()); - Assertions.assertEquals("vlxhrpqhvmblc", model.nextLink()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureResourceInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureResourceInnerTests.java deleted file mode 100644 index 023eb202855b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureResourceInnerTests.java +++ /dev/null @@ -1,262 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.ChangeDataCaptureResourceInner; -import com.azure.resourcemanager.datafactory.models.ChangeDataCaptureFolder; -import com.azure.resourcemanager.datafactory.models.ConnectionType; -import com.azure.resourcemanager.datafactory.models.DataMapperMapping; -import com.azure.resourcemanager.datafactory.models.FrequencyType; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.MapperAttributeMappings; -import com.azure.resourcemanager.datafactory.models.MapperConnection; -import com.azure.resourcemanager.datafactory.models.MapperConnectionReference; -import com.azure.resourcemanager.datafactory.models.MapperDslConnectorProperties; -import com.azure.resourcemanager.datafactory.models.MapperPolicy; -import com.azure.resourcemanager.datafactory.models.MapperPolicyRecurrence; -import com.azure.resourcemanager.datafactory.models.MapperSourceConnectionsInfo; -import com.azure.resourcemanager.datafactory.models.MapperTable; -import com.azure.resourcemanager.datafactory.models.MapperTargetConnectionsInfo; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ChangeDataCaptureResourceInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ChangeDataCaptureResourceInner model = - BinaryData - .fromString( - "{\"properties\":{\"folder\":{\"name\":\"ehbhb\"},\"description\":\"sziryrandoyp\",\"sourceConnectionsInfo\":[{\"sourceEntities\":[{\"name\":\"ormkfqlwxldyk\",\"properties\":{}}],\"connection\":{\"linkedService\":{\"referenceName\":\"g\",\"parameters\":{\"sibjgs\":\"datanjpnnbmj\",\"yqegx\":\"datajxxahmrnad\",\"inbmh\":\"dataiv\",\"bkezn\":\"databjijkgqxnh\"}},\"linkedServiceType\":\"ujvaannggi\",\"type\":\"linkedservicetype\",\"isInlineDataset\":false,\"commonDslConnectorProperties\":[{},{}]}}],\"targetConnectionsInfo\":[{\"targetEntities\":[{\"name\":\"wfekaumrrqmb\",\"properties\":{}},{\"name\":\"kratbnxwbj\",\"properties\":{}},{\"name\":\"birkfpksokdg\",\"properties\":{}}],\"connection\":{\"linkedService\":{\"referenceName\":\"ijymrhbguzozky\",\"parameters\":{\"zhhh\":\"dataf\",\"mffjkutycyarn\":\"datao\"}},\"linkedServiceType\":\"ohguabz\",\"type\":\"linkedservicetype\",\"isInlineDataset\":true,\"commonDslConnectorProperties\":[{}]},\"dataMapperMappings\":[{\"targetEntityName\":\"z\",\"sourceEntityName\":\"oeocnhzqrott\",\"sourceConnectionReference\":{},\"attributeMappingInfo\":{},\"sourceDenormalizeInfo\":\"datayjzp\"},{\"targetEntityName\":\"rl\",\"sourceEntityName\":\"apqinf\",\"sourceConnectionReference\":{},\"attributeMappingInfo\":{},\"sourceDenormalizeInfo\":\"dataglqdhm\"}],\"relationships\":[\"dataralcxpjbyypsj\",\"dataqcjenkyhf\",\"datazv\",\"dataqxfx\"]},{\"targetEntities\":[{\"name\":\"cmpzqjhhhqx\",\"properties\":{}}],\"connection\":{\"linkedService\":{\"referenceName\":\"cacoyvivbsiz\",\"parameters\":{\"lzijiufehgmvflnw\":\"dataszlbscm\",\"kxrerlniylylyfwx\":\"datav\"}},\"linkedServiceType\":\"tgqztwhghmup\",\"type\":\"linkedservicetype\",\"isInlineDataset\":true,\"commonDslConnectorProperties\":[{}]},\"dataMapperMappings\":[{\"targetEntityName\":\"bb\",\"sourceEntityName\":\"ftabenbbklqp\",\"sourceConnectionReference\":{},\"attributeMappingInfo\":{},\"sourceDenormalizeInfo\":\"dataafeddwwnlza\"}],\"relationships\":[\"datau\"]},{\"targetEntities\":[{\"name\":\"gookrtalvnb\",\"properties\":{}},{\"name\":\"bemeluclvd\",\"properties\":{}},{\"name\":\"kyrdnqodx\",\"properties\":{}},{\"name\":\"xhqf\",\"properties\":{}}],\"connection\":{\"linkedService\":{\"referenceName\":\"zoqgyipemchga\",\"parameters\":{\"xptlghwzho\":\"datazuejd\",\"s\":\"dataewj\",\"vodrrslblxydkxr\":\"dataliuhqawmoaiancz\"}},\"linkedServiceType\":\"vbxiwkgfbqlj\",\"type\":\"linkedservicetype\",\"isInlineDataset\":true,\"commonDslConnectorProperties\":[{},{},{}]},\"dataMapperMappings\":[{\"targetEntityName\":\"okulehurqlrqf\",\"sourceEntityName\":\"weyurkphyjd\",\"sourceConnectionReference\":{},\"attributeMappingInfo\":{},\"sourceDenormalizeInfo\":\"datajuqdbrx\"},{\"targetEntityName\":\"gchbapxkiy\",\"sourceEntityName\":\"j\",\"sourceConnectionReference\":{},\"attributeMappingInfo\":{},\"sourceDenormalizeInfo\":\"databuscgduus\"}],\"relationships\":[\"datacblevpmc\",\"dataujyxkyxlzgsj\",\"datakzzltafhbzf\"]}],\"policy\":{\"mode\":\"vwmbjlzqsczpg\",\"recurrence\":{\"frequency\":\"Hour\",\"interval\":1263601640}},\"allowVNetOverride\":false,\"status\":\"wow\"},\"name\":\"ptnuwjtkschgc\",\"type\":\"y\",\"etag\":\"eseyqr\",\"\":{\"kwiswskukjtas\":\"dataeldotjv\"},\"id\":\"wispkxk\"}") - .toObject(ChangeDataCaptureResourceInner.class); - Assertions.assertEquals("wispkxk", model.id()); - Assertions.assertEquals("ehbhb", model.folder().name()); - Assertions.assertEquals("sziryrandoyp", model.description()); - Assertions.assertEquals("ormkfqlwxldyk", model.sourceConnectionsInfo().get(0).sourceEntities().get(0).name()); - Assertions.assertEquals("g", model.sourceConnectionsInfo().get(0).connection().linkedService().referenceName()); - Assertions.assertEquals("ujvaannggi", model.sourceConnectionsInfo().get(0).connection().linkedServiceType()); - Assertions - .assertEquals(ConnectionType.LINKEDSERVICETYPE, model.sourceConnectionsInfo().get(0).connection().type()); - Assertions.assertEquals(false, model.sourceConnectionsInfo().get(0).connection().isInlineDataset()); - Assertions.assertEquals("wfekaumrrqmb", model.targetConnectionsInfo().get(0).targetEntities().get(0).name()); - Assertions - .assertEquals( - "ijymrhbguzozky", model.targetConnectionsInfo().get(0).connection().linkedService().referenceName()); - Assertions.assertEquals("ohguabz", model.targetConnectionsInfo().get(0).connection().linkedServiceType()); - Assertions - .assertEquals(ConnectionType.LINKEDSERVICETYPE, model.targetConnectionsInfo().get(0).connection().type()); - Assertions.assertEquals(true, model.targetConnectionsInfo().get(0).connection().isInlineDataset()); - Assertions - .assertEquals("z", model.targetConnectionsInfo().get(0).dataMapperMappings().get(0).targetEntityName()); - Assertions - .assertEquals( - "oeocnhzqrott", model.targetConnectionsInfo().get(0).dataMapperMappings().get(0).sourceEntityName()); - Assertions.assertEquals("vwmbjlzqsczpg", model.policy().mode()); - Assertions.assertEquals(FrequencyType.HOUR, model.policy().recurrence().frequency()); - Assertions.assertEquals(1263601640, model.policy().recurrence().interval()); - Assertions.assertEquals(false, model.allowVNetOverride()); - Assertions.assertEquals("wow", model.status()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ChangeDataCaptureResourceInner model = - new ChangeDataCaptureResourceInner() - .withId("wispkxk") - .withFolder(new ChangeDataCaptureFolder().withName("ehbhb")) - .withDescription("sziryrandoyp") - .withSourceConnectionsInfo( - Arrays - .asList( - new MapperSourceConnectionsInfo() - .withSourceEntities(Arrays.asList(new MapperTable().withName("ormkfqlwxldyk"))) - .withConnection( - new MapperConnection() - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("g") - .withParameters( - mapOf( - "sibjgs", - "datanjpnnbmj", - "yqegx", - "datajxxahmrnad", - "inbmh", - "dataiv", - "bkezn", - "databjijkgqxnh"))) - .withLinkedServiceType("ujvaannggi") - .withType(ConnectionType.LINKEDSERVICETYPE) - .withIsInlineDataset(false) - .withCommonDslConnectorProperties( - Arrays - .asList( - new MapperDslConnectorProperties(), - new MapperDslConnectorProperties()))))) - .withTargetConnectionsInfo( - Arrays - .asList( - new MapperTargetConnectionsInfo() - .withTargetEntities( - Arrays - .asList( - new MapperTable().withName("wfekaumrrqmb"), - new MapperTable().withName("kratbnxwbj"), - new MapperTable().withName("birkfpksokdg"))) - .withConnection( - new MapperConnection() - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("ijymrhbguzozky") - .withParameters(mapOf("zhhh", "dataf", "mffjkutycyarn", "datao"))) - .withLinkedServiceType("ohguabz") - .withType(ConnectionType.LINKEDSERVICETYPE) - .withIsInlineDataset(true) - .withCommonDslConnectorProperties( - Arrays.asList(new MapperDslConnectorProperties()))) - .withDataMapperMappings( - Arrays - .asList( - new DataMapperMapping() - .withTargetEntityName("z") - .withSourceEntityName("oeocnhzqrott") - .withSourceConnectionReference(new MapperConnectionReference()) - .withAttributeMappingInfo(new MapperAttributeMappings()) - .withSourceDenormalizeInfo("datayjzp"), - new DataMapperMapping() - .withTargetEntityName("rl") - .withSourceEntityName("apqinf") - .withSourceConnectionReference(new MapperConnectionReference()) - .withAttributeMappingInfo(new MapperAttributeMappings()) - .withSourceDenormalizeInfo("dataglqdhm"))) - .withRelationships( - Arrays.asList("dataralcxpjbyypsj", "dataqcjenkyhf", "datazv", "dataqxfx")), - new MapperTargetConnectionsInfo() - .withTargetEntities(Arrays.asList(new MapperTable().withName("cmpzqjhhhqx"))) - .withConnection( - new MapperConnection() - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("cacoyvivbsiz") - .withParameters( - mapOf( - "lzijiufehgmvflnw", - "dataszlbscm", - "kxrerlniylylyfwx", - "datav"))) - .withLinkedServiceType("tgqztwhghmup") - .withType(ConnectionType.LINKEDSERVICETYPE) - .withIsInlineDataset(true) - .withCommonDslConnectorProperties( - Arrays.asList(new MapperDslConnectorProperties()))) - .withDataMapperMappings( - Arrays - .asList( - new DataMapperMapping() - .withTargetEntityName("bb") - .withSourceEntityName("ftabenbbklqp") - .withSourceConnectionReference(new MapperConnectionReference()) - .withAttributeMappingInfo(new MapperAttributeMappings()) - .withSourceDenormalizeInfo("dataafeddwwnlza"))) - .withRelationships(Arrays.asList("datau")), - new MapperTargetConnectionsInfo() - .withTargetEntities( - Arrays - .asList( - new MapperTable().withName("gookrtalvnb"), - new MapperTable().withName("bemeluclvd"), - new MapperTable().withName("kyrdnqodx"), - new MapperTable().withName("xhqf"))) - .withConnection( - new MapperConnection() - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("zoqgyipemchga") - .withParameters( - mapOf( - "xptlghwzho", - "datazuejd", - "s", - "dataewj", - "vodrrslblxydkxr", - "dataliuhqawmoaiancz"))) - .withLinkedServiceType("vbxiwkgfbqlj") - .withType(ConnectionType.LINKEDSERVICETYPE) - .withIsInlineDataset(true) - .withCommonDslConnectorProperties( - Arrays - .asList( - new MapperDslConnectorProperties(), - new MapperDslConnectorProperties(), - new MapperDslConnectorProperties()))) - .withDataMapperMappings( - Arrays - .asList( - new DataMapperMapping() - .withTargetEntityName("okulehurqlrqf") - .withSourceEntityName("weyurkphyjd") - .withSourceConnectionReference(new MapperConnectionReference()) - .withAttributeMappingInfo(new MapperAttributeMappings()) - .withSourceDenormalizeInfo("datajuqdbrx"), - new DataMapperMapping() - .withTargetEntityName("gchbapxkiy") - .withSourceEntityName("j") - .withSourceConnectionReference(new MapperConnectionReference()) - .withAttributeMappingInfo(new MapperAttributeMappings()) - .withSourceDenormalizeInfo("databuscgduus"))) - .withRelationships( - Arrays.asList("datacblevpmc", "dataujyxkyxlzgsj", "datakzzltafhbzf")))) - .withPolicy( - new MapperPolicy() - .withMode("vwmbjlzqsczpg") - .withRecurrence( - new MapperPolicyRecurrence().withFrequency(FrequencyType.HOUR).withInterval(1263601640))) - .withAllowVNetOverride(false) - .withStatus("wow") - .withAdditionalProperties(mapOf("name", "ptnuwjtkschgc", "etag", "eseyqr", "type", "y")); - model = BinaryData.fromObject(model).toObject(ChangeDataCaptureResourceInner.class); - Assertions.assertEquals("wispkxk", model.id()); - Assertions.assertEquals("ehbhb", model.folder().name()); - Assertions.assertEquals("sziryrandoyp", model.description()); - Assertions.assertEquals("ormkfqlwxldyk", model.sourceConnectionsInfo().get(0).sourceEntities().get(0).name()); - Assertions.assertEquals("g", model.sourceConnectionsInfo().get(0).connection().linkedService().referenceName()); - Assertions.assertEquals("ujvaannggi", model.sourceConnectionsInfo().get(0).connection().linkedServiceType()); - Assertions - .assertEquals(ConnectionType.LINKEDSERVICETYPE, model.sourceConnectionsInfo().get(0).connection().type()); - Assertions.assertEquals(false, model.sourceConnectionsInfo().get(0).connection().isInlineDataset()); - Assertions.assertEquals("wfekaumrrqmb", model.targetConnectionsInfo().get(0).targetEntities().get(0).name()); - Assertions - .assertEquals( - "ijymrhbguzozky", model.targetConnectionsInfo().get(0).connection().linkedService().referenceName()); - Assertions.assertEquals("ohguabz", model.targetConnectionsInfo().get(0).connection().linkedServiceType()); - Assertions - .assertEquals(ConnectionType.LINKEDSERVICETYPE, model.targetConnectionsInfo().get(0).connection().type()); - Assertions.assertEquals(true, model.targetConnectionsInfo().get(0).connection().isInlineDataset()); - Assertions - .assertEquals("z", model.targetConnectionsInfo().get(0).dataMapperMappings().get(0).targetEntityName()); - Assertions - .assertEquals( - "oeocnhzqrott", model.targetConnectionsInfo().get(0).dataMapperMappings().get(0).sourceEntityName()); - Assertions.assertEquals("vwmbjlzqsczpg", model.policy().mode()); - Assertions.assertEquals(FrequencyType.HOUR, model.policy().recurrence().frequency()); - Assertions.assertEquals(1263601640, model.policy().recurrence().interval()); - Assertions.assertEquals(false, model.allowVNetOverride()); - Assertions.assertEquals("wow", model.status()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureTests.java deleted file mode 100644 index 26a6f6e420d9..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureTests.java +++ /dev/null @@ -1,643 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.ChangeDataCapture; -import com.azure.resourcemanager.datafactory.models.ChangeDataCaptureFolder; -import com.azure.resourcemanager.datafactory.models.ConnectionType; -import com.azure.resourcemanager.datafactory.models.DataMapperMapping; -import com.azure.resourcemanager.datafactory.models.FrequencyType; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.MapperAttributeMapping; -import com.azure.resourcemanager.datafactory.models.MapperAttributeMappings; -import com.azure.resourcemanager.datafactory.models.MapperConnection; -import com.azure.resourcemanager.datafactory.models.MapperConnectionReference; -import com.azure.resourcemanager.datafactory.models.MapperDslConnectorProperties; -import com.azure.resourcemanager.datafactory.models.MapperPolicy; -import com.azure.resourcemanager.datafactory.models.MapperPolicyRecurrence; -import com.azure.resourcemanager.datafactory.models.MapperSourceConnectionsInfo; -import com.azure.resourcemanager.datafactory.models.MapperTable; -import com.azure.resourcemanager.datafactory.models.MapperTableSchema; -import com.azure.resourcemanager.datafactory.models.MapperTargetConnectionsInfo; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ChangeDataCaptureTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ChangeDataCapture model = - BinaryData - .fromString( - "{\"folder\":{\"name\":\"fkndl\"},\"description\":\"twknvgm\",\"sourceConnectionsInfo\":[{\"sourceEntities\":[{\"name\":\"yw\",\"properties\":{\"schema\":[{},{}],\"dslConnectorProperties\":[{},{},{},{}]}},{\"name\":\"ueatgroe\",\"properties\":{\"schema\":[{}],\"dslConnectorProperties\":[{},{}]}},{\"name\":\"byfqxkfaoy\",\"properties\":{\"schema\":[{},{}],\"dslConnectorProperties\":[{},{}]}},{\"name\":\"jmvqmtd\",\"properties\":{\"schema\":[{}],\"dslConnectorProperties\":[{},{}]}}],\"connection\":{\"linkedService\":{\"referenceName\":\"jn\",\"parameters\":{\"rreqynkceysfaqe\":\"datajdjusk\",\"ryshwddkvbxgk\":\"datapl\",\"vvlfntymtp\":\"datausybwptdaca\",\"zrsq\":\"dataiwenazero\"}},\"linkedServiceType\":\"sxkdnwqapfgsdpc\",\"type\":\"linkedservicetype\",\"isInlineDataset\":true,\"commonDslConnectorProperties\":[{\"name\":\"h\",\"value\":\"datauipldqq\"},{\"name\":\"ekvalblhtjq\",\"value\":\"datayvwehtaemxh\"},{\"name\":\"ysev\",\"value\":\"dataxivzrrry\"},{\"name\":\"imipskdyzatvfuz\",\"value\":\"dataftjvvruxwigsye\"}]}},{\"sourceEntities\":[{\"name\":\"smjtgrqgdg\",\"properties\":{\"schema\":[{},{},{}],\"dslConnectorProperties\":[{},{}]}},{\"name\":\"kcsmk\",\"properties\":{\"schema\":[{},{},{},{}],\"dslConnectorProperties\":[{},{},{}]}}],\"connection\":{\"linkedService\":{\"referenceName\":\"dorvvmqfloy\",\"parameters\":{\"gdexjd\":\"datagwumgxdgdhpa\",\"wllcolsr\":\"datavjsaqwotm\",\"ljnhvlqj\":\"dataxaptefhexcgjok\"}},\"linkedServiceType\":\"kpeeksnbksdqhj\",\"type\":\"linkedservicetype\",\"isInlineDataset\":false,\"commonDslConnectorProperties\":[{\"name\":\"lkhhu\",\"value\":\"datacpoq\"}]}},{\"sourceEntities\":[{\"name\":\"wqjwgok\",\"properties\":{\"schema\":[{},{},{}],\"dslConnectorProperties\":[{},{}]}},{\"name\":\"xybwfdbkjbzten\",\"properties\":{\"schema\":[{},{},{}],\"dslConnectorProperties\":[{},{}]}}],\"connection\":{\"linkedService\":{\"referenceName\":\"jknsxfwu\",\"parameters\":{\"pkuwxeoioj\":\"datadpkupnqrmgjf\"}},\"linkedServiceType\":\"zfav\",\"type\":\"linkedservicetype\",\"isInlineDataset\":true,\"commonDslConnectorProperties\":[{\"name\":\"yay\",\"value\":\"datamfzsbf\"},{\"name\":\"rzx\",\"value\":\"dataewsrsxkrplbjaze\"},{\"name\":\"w\",\"value\":\"datayoyp\"}]}}],\"targetConnectionsInfo\":[{\"targetEntities\":[{\"name\":\"nnhj\",\"properties\":{\"schema\":[{}],\"dslConnectorProperties\":[{}]}},{\"name\":\"kbiwetpozyc\",\"properties\":{\"schema\":[{},{}],\"dslConnectorProperties\":[{}]}},{\"name\":\"fsetz\",\"properties\":{\"schema\":[{},{},{},{}],\"dslConnectorProperties\":[{},{},{}]}}],\"connection\":{\"linkedService\":{\"referenceName\":\"dynojpziuwfb\",\"parameters\":{\"qsyclj\":\"datadtn\",\"cbevxrhyzdfw\":\"dataelpkpbafvafhlbyl\",\"mairrh\":\"datasofpltd\"}},\"linkedServiceType\":\"fnrac\",\"type\":\"linkedservicetype\",\"isInlineDataset\":true,\"commonDslConnectorProperties\":[{\"name\":\"uuj\",\"value\":\"datauhd\"}]},\"dataMapperMappings\":[{\"targetEntityName\":\"grbjbxsjybvitvqk\",\"sourceEntityName\":\"az\",\"sourceConnectionReference\":{\"connectionName\":\"tggmuwdchozfnkfe\",\"type\":\"linkedservicetype\"},\"attributeMappingInfo\":{\"attributeMappings\":[{},{},{}]},\"sourceDenormalizeInfo\":\"datakizvoa\"}],\"relationships\":[\"dataa\",\"datalnuwiguy\"]},{\"targetEntities\":[{\"name\":\"wphvxz\",\"properties\":{\"schema\":[{},{},{},{}],\"dslConnectorProperties\":[{},{}]}},{\"name\":\"jtlkexaonwivkcqh\",\"properties\":{\"schema\":[{}],\"dslConnectorProperties\":[{},{}]}},{\"name\":\"ccrmmk\",\"properties\":{\"schema\":[{},{},{},{}],\"dslConnectorProperties\":[{},{}]}},{\"name\":\"yqjf\",\"properties\":{\"schema\":[{},{},{},{}],\"dslConnectorProperties\":[{},{},{},{}]}}],\"connection\":{\"linkedService\":{\"referenceName\":\"em\",\"parameters\":{\"dxphlk\":\"datadudxjascowvfdjk\",\"dkz\":\"datasnmgzvyfi\",\"uqwqulsutrjbhxyk\":\"dataqnwsithuqolyah\"}},\"linkedServiceType\":\"y\",\"type\":\"linkedservicetype\",\"isInlineDataset\":true,\"commonDslConnectorProperties\":[{\"name\":\"g\",\"value\":\"dataftbcvexreuquow\"},{\"name\":\"jv\",\"value\":\"datahreagk\"},{\"name\":\"xv\",\"value\":\"datatvbczsulm\"},{\"name\":\"glmep\",\"value\":\"datafs\"}]},\"dataMapperMappings\":[{\"targetEntityName\":\"sa\",\"sourceEntityName\":\"psznga\",\"sourceConnectionReference\":{\"connectionName\":\"ylkvecjuj\",\"type\":\"linkedservicetype\"},\"attributeMappingInfo\":{\"attributeMappings\":[{},{},{}]},\"sourceDenormalizeInfo\":\"dataedmzrgjfoknub\"},{\"targetEntityName\":\"itpkpztrgdg\",\"sourceEntityName\":\"coqra\",\"sourceConnectionReference\":{\"connectionName\":\"gyxpqit\",\"type\":\"linkedservicetype\"},\"attributeMappingInfo\":{\"attributeMappings\":[{},{},{},{}]},\"sourceDenormalizeInfo\":\"dataskbuhzaca\"},{\"targetEntityName\":\"yltcoqcuj\",\"sourceEntityName\":\"sxzakuejkm\",\"sourceConnectionReference\":{\"connectionName\":\"ztjofqcvovjufyc\",\"type\":\"linkedservicetype\"},\"attributeMappingInfo\":{\"attributeMappings\":[{}]},\"sourceDenormalizeInfo\":\"datayeji\"}],\"relationships\":[\"dataxeg\",\"datahortu\",\"dataawlpjfelqerpp\",\"datacbgqnzmnhiil\"]},{\"targetEntities\":[{\"name\":\"cjgckbbcccgzpra\",\"properties\":{\"schema\":[{},{},{}],\"dslConnectorProperties\":[{},{},{}]}},{\"name\":\"a\",\"properties\":{\"schema\":[{},{},{},{}],\"dslConnectorProperties\":[{},{}]}},{\"name\":\"wcxbyubhiqdxyurn\",\"properties\":{\"schema\":[{}],\"dslConnectorProperties\":[{}]}},{\"name\":\"ccnuhiig\",\"properties\":{\"schema\":[{}],\"dslConnectorProperties\":[{},{},{}]}}],\"connection\":{\"linkedService\":{\"referenceName\":\"xvatvcr\",\"parameters\":{\"bqxvhcsyhzlwxae\":\"datab\"}},\"linkedServiceType\":\"vurex\",\"type\":\"linkedservicetype\",\"isInlineDataset\":true,\"commonDslConnectorProperties\":[{\"name\":\"ead\",\"value\":\"datazmwntopagt\"},{\"name\":\"v\",\"value\":\"dataagoaqylkjztji\"}]},\"dataMapperMappings\":[{\"targetEntityName\":\"cgm\",\"sourceEntityName\":\"tpfinzcpdltkr\",\"sourceConnectionReference\":{\"connectionName\":\"mtbdrvcqgu\",\"type\":\"linkedservicetype\"},\"attributeMappingInfo\":{\"attributeMappings\":[{},{}]},\"sourceDenormalizeInfo\":\"dataheqdurelyujlfyou\"}],\"relationships\":[\"datakyeclcdigpta\",\"databrzmqxucycijoclx\",\"datautgjcyz\",\"datazjd\"]}],\"policy\":{\"mode\":\"qjbtxjeaoqaqbzgy\",\"recurrence\":{\"frequency\":\"Minute\",\"interval\":1743289619}},\"allowVNetOverride\":true,\"status\":\"wbqamteuliy\"}") - .toObject(ChangeDataCapture.class); - Assertions.assertEquals("fkndl", model.folder().name()); - Assertions.assertEquals("twknvgm", model.description()); - Assertions.assertEquals("yw", model.sourceConnectionsInfo().get(0).sourceEntities().get(0).name()); - Assertions - .assertEquals("jn", model.sourceConnectionsInfo().get(0).connection().linkedService().referenceName()); - Assertions - .assertEquals("sxkdnwqapfgsdpc", model.sourceConnectionsInfo().get(0).connection().linkedServiceType()); - Assertions - .assertEquals(ConnectionType.LINKEDSERVICETYPE, model.sourceConnectionsInfo().get(0).connection().type()); - Assertions.assertEquals(true, model.sourceConnectionsInfo().get(0).connection().isInlineDataset()); - Assertions - .assertEquals( - "h", model.sourceConnectionsInfo().get(0).connection().commonDslConnectorProperties().get(0).name()); - Assertions.assertEquals("nnhj", model.targetConnectionsInfo().get(0).targetEntities().get(0).name()); - Assertions - .assertEquals( - "dynojpziuwfb", model.targetConnectionsInfo().get(0).connection().linkedService().referenceName()); - Assertions.assertEquals("fnrac", model.targetConnectionsInfo().get(0).connection().linkedServiceType()); - Assertions - .assertEquals(ConnectionType.LINKEDSERVICETYPE, model.targetConnectionsInfo().get(0).connection().type()); - Assertions.assertEquals(true, model.targetConnectionsInfo().get(0).connection().isInlineDataset()); - Assertions - .assertEquals( - "uuj", model.targetConnectionsInfo().get(0).connection().commonDslConnectorProperties().get(0).name()); - Assertions - .assertEquals( - "grbjbxsjybvitvqk", - model.targetConnectionsInfo().get(0).dataMapperMappings().get(0).targetEntityName()); - Assertions - .assertEquals("az", model.targetConnectionsInfo().get(0).dataMapperMappings().get(0).sourceEntityName()); - Assertions - .assertEquals( - "tggmuwdchozfnkfe", - model - .targetConnectionsInfo() - .get(0) - .dataMapperMappings() - .get(0) - .sourceConnectionReference() - .connectionName()); - Assertions - .assertEquals( - ConnectionType.LINKEDSERVICETYPE, - model.targetConnectionsInfo().get(0).dataMapperMappings().get(0).sourceConnectionReference().type()); - Assertions.assertEquals("qjbtxjeaoqaqbzgy", model.policy().mode()); - Assertions.assertEquals(FrequencyType.MINUTE, model.policy().recurrence().frequency()); - Assertions.assertEquals(1743289619, model.policy().recurrence().interval()); - Assertions.assertEquals(true, model.allowVNetOverride()); - Assertions.assertEquals("wbqamteuliy", model.status()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ChangeDataCapture model = - new ChangeDataCapture() - .withFolder(new ChangeDataCaptureFolder().withName("fkndl")) - .withDescription("twknvgm") - .withSourceConnectionsInfo( - Arrays - .asList( - new MapperSourceConnectionsInfo() - .withSourceEntities( - Arrays - .asList( - new MapperTable() - .withName("yw") - .withSchema( - Arrays.asList(new MapperTableSchema(), new MapperTableSchema())) - .withDslConnectorProperties( - Arrays - .asList( - new MapperDslConnectorProperties(), - new MapperDslConnectorProperties(), - new MapperDslConnectorProperties(), - new MapperDslConnectorProperties())), - new MapperTable() - .withName("ueatgroe") - .withSchema(Arrays.asList(new MapperTableSchema())) - .withDslConnectorProperties( - Arrays - .asList( - new MapperDslConnectorProperties(), - new MapperDslConnectorProperties())), - new MapperTable() - .withName("byfqxkfaoy") - .withSchema( - Arrays.asList(new MapperTableSchema(), new MapperTableSchema())) - .withDslConnectorProperties( - Arrays - .asList( - new MapperDslConnectorProperties(), - new MapperDslConnectorProperties())), - new MapperTable() - .withName("jmvqmtd") - .withSchema(Arrays.asList(new MapperTableSchema())) - .withDslConnectorProperties( - Arrays - .asList( - new MapperDslConnectorProperties(), - new MapperDslConnectorProperties())))) - .withConnection( - new MapperConnection() - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("jn") - .withParameters( - mapOf( - "rreqynkceysfaqe", - "datajdjusk", - "ryshwddkvbxgk", - "datapl", - "vvlfntymtp", - "datausybwptdaca", - "zrsq", - "dataiwenazero"))) - .withLinkedServiceType("sxkdnwqapfgsdpc") - .withType(ConnectionType.LINKEDSERVICETYPE) - .withIsInlineDataset(true) - .withCommonDslConnectorProperties( - Arrays - .asList( - new MapperDslConnectorProperties() - .withName("h") - .withValue("datauipldqq"), - new MapperDslConnectorProperties() - .withName("ekvalblhtjq") - .withValue("datayvwehtaemxh"), - new MapperDslConnectorProperties() - .withName("ysev") - .withValue("dataxivzrrry"), - new MapperDslConnectorProperties() - .withName("imipskdyzatvfuz") - .withValue("dataftjvvruxwigsye")))), - new MapperSourceConnectionsInfo() - .withSourceEntities( - Arrays - .asList( - new MapperTable() - .withName("smjtgrqgdg") - .withSchema( - Arrays - .asList( - new MapperTableSchema(), - new MapperTableSchema(), - new MapperTableSchema())) - .withDslConnectorProperties( - Arrays - .asList( - new MapperDslConnectorProperties(), - new MapperDslConnectorProperties())), - new MapperTable() - .withName("kcsmk") - .withSchema( - Arrays - .asList( - new MapperTableSchema(), - new MapperTableSchema(), - new MapperTableSchema(), - new MapperTableSchema())) - .withDslConnectorProperties( - Arrays - .asList( - new MapperDslConnectorProperties(), - new MapperDslConnectorProperties(), - new MapperDslConnectorProperties())))) - .withConnection( - new MapperConnection() - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("dorvvmqfloy") - .withParameters( - mapOf( - "gdexjd", - "datagwumgxdgdhpa", - "wllcolsr", - "datavjsaqwotm", - "ljnhvlqj", - "dataxaptefhexcgjok"))) - .withLinkedServiceType("kpeeksnbksdqhj") - .withType(ConnectionType.LINKEDSERVICETYPE) - .withIsInlineDataset(false) - .withCommonDslConnectorProperties( - Arrays - .asList( - new MapperDslConnectorProperties() - .withName("lkhhu") - .withValue("datacpoq")))), - new MapperSourceConnectionsInfo() - .withSourceEntities( - Arrays - .asList( - new MapperTable() - .withName("wqjwgok") - .withSchema( - Arrays - .asList( - new MapperTableSchema(), - new MapperTableSchema(), - new MapperTableSchema())) - .withDslConnectorProperties( - Arrays - .asList( - new MapperDslConnectorProperties(), - new MapperDslConnectorProperties())), - new MapperTable() - .withName("xybwfdbkjbzten") - .withSchema( - Arrays - .asList( - new MapperTableSchema(), - new MapperTableSchema(), - new MapperTableSchema())) - .withDslConnectorProperties( - Arrays - .asList( - new MapperDslConnectorProperties(), - new MapperDslConnectorProperties())))) - .withConnection( - new MapperConnection() - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("jknsxfwu") - .withParameters(mapOf("pkuwxeoioj", "datadpkupnqrmgjf"))) - .withLinkedServiceType("zfav") - .withType(ConnectionType.LINKEDSERVICETYPE) - .withIsInlineDataset(true) - .withCommonDslConnectorProperties( - Arrays - .asList( - new MapperDslConnectorProperties() - .withName("yay") - .withValue("datamfzsbf"), - new MapperDslConnectorProperties() - .withName("rzx") - .withValue("dataewsrsxkrplbjaze"), - new MapperDslConnectorProperties() - .withName("w") - .withValue("datayoyp")))))) - .withTargetConnectionsInfo( - Arrays - .asList( - new MapperTargetConnectionsInfo() - .withTargetEntities( - Arrays - .asList( - new MapperTable() - .withName("nnhj") - .withSchema(Arrays.asList(new MapperTableSchema())) - .withDslConnectorProperties( - Arrays.asList(new MapperDslConnectorProperties())), - new MapperTable() - .withName("kbiwetpozyc") - .withSchema( - Arrays.asList(new MapperTableSchema(), new MapperTableSchema())) - .withDslConnectorProperties( - Arrays.asList(new MapperDslConnectorProperties())), - new MapperTable() - .withName("fsetz") - .withSchema( - Arrays - .asList( - new MapperTableSchema(), - new MapperTableSchema(), - new MapperTableSchema(), - new MapperTableSchema())) - .withDslConnectorProperties( - Arrays - .asList( - new MapperDslConnectorProperties(), - new MapperDslConnectorProperties(), - new MapperDslConnectorProperties())))) - .withConnection( - new MapperConnection() - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("dynojpziuwfb") - .withParameters( - mapOf( - "qsyclj", - "datadtn", - "cbevxrhyzdfw", - "dataelpkpbafvafhlbyl", - "mairrh", - "datasofpltd"))) - .withLinkedServiceType("fnrac") - .withType(ConnectionType.LINKEDSERVICETYPE) - .withIsInlineDataset(true) - .withCommonDslConnectorProperties( - Arrays - .asList( - new MapperDslConnectorProperties() - .withName("uuj") - .withValue("datauhd")))) - .withDataMapperMappings( - Arrays - .asList( - new DataMapperMapping() - .withTargetEntityName("grbjbxsjybvitvqk") - .withSourceEntityName("az") - .withSourceConnectionReference( - new MapperConnectionReference() - .withConnectionName("tggmuwdchozfnkfe") - .withType(ConnectionType.LINKEDSERVICETYPE)) - .withAttributeMappingInfo( - new MapperAttributeMappings() - .withAttributeMappings( - Arrays - .asList( - new MapperAttributeMapping(), - new MapperAttributeMapping(), - new MapperAttributeMapping()))) - .withSourceDenormalizeInfo("datakizvoa"))) - .withRelationships(Arrays.asList("dataa", "datalnuwiguy")), - new MapperTargetConnectionsInfo() - .withTargetEntities( - Arrays - .asList( - new MapperTable() - .withName("wphvxz") - .withSchema( - Arrays - .asList( - new MapperTableSchema(), - new MapperTableSchema(), - new MapperTableSchema(), - new MapperTableSchema())) - .withDslConnectorProperties( - Arrays - .asList( - new MapperDslConnectorProperties(), - new MapperDslConnectorProperties())), - new MapperTable() - .withName("jtlkexaonwivkcqh") - .withSchema(Arrays.asList(new MapperTableSchema())) - .withDslConnectorProperties( - Arrays - .asList( - new MapperDslConnectorProperties(), - new MapperDslConnectorProperties())), - new MapperTable() - .withName("ccrmmk") - .withSchema( - Arrays - .asList( - new MapperTableSchema(), - new MapperTableSchema(), - new MapperTableSchema(), - new MapperTableSchema())) - .withDslConnectorProperties( - Arrays - .asList( - new MapperDslConnectorProperties(), - new MapperDslConnectorProperties())), - new MapperTable() - .withName("yqjf") - .withSchema( - Arrays - .asList( - new MapperTableSchema(), - new MapperTableSchema(), - new MapperTableSchema(), - new MapperTableSchema())) - .withDslConnectorProperties( - Arrays - .asList( - new MapperDslConnectorProperties(), - new MapperDslConnectorProperties(), - new MapperDslConnectorProperties(), - new MapperDslConnectorProperties())))) - .withConnection( - new MapperConnection() - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("em") - .withParameters( - mapOf( - "dxphlk", - "datadudxjascowvfdjk", - "dkz", - "datasnmgzvyfi", - "uqwqulsutrjbhxyk", - "dataqnwsithuqolyah"))) - .withLinkedServiceType("y") - .withType(ConnectionType.LINKEDSERVICETYPE) - .withIsInlineDataset(true) - .withCommonDslConnectorProperties( - Arrays - .asList( - new MapperDslConnectorProperties() - .withName("g") - .withValue("dataftbcvexreuquow"), - new MapperDslConnectorProperties() - .withName("jv") - .withValue("datahreagk"), - new MapperDslConnectorProperties() - .withName("xv") - .withValue("datatvbczsulm"), - new MapperDslConnectorProperties() - .withName("glmep") - .withValue("datafs")))) - .withDataMapperMappings( - Arrays - .asList( - new DataMapperMapping() - .withTargetEntityName("sa") - .withSourceEntityName("psznga") - .withSourceConnectionReference( - new MapperConnectionReference() - .withConnectionName("ylkvecjuj") - .withType(ConnectionType.LINKEDSERVICETYPE)) - .withAttributeMappingInfo( - new MapperAttributeMappings() - .withAttributeMappings( - Arrays - .asList( - new MapperAttributeMapping(), - new MapperAttributeMapping(), - new MapperAttributeMapping()))) - .withSourceDenormalizeInfo("dataedmzrgjfoknub"), - new DataMapperMapping() - .withTargetEntityName("itpkpztrgdg") - .withSourceEntityName("coqra") - .withSourceConnectionReference( - new MapperConnectionReference() - .withConnectionName("gyxpqit") - .withType(ConnectionType.LINKEDSERVICETYPE)) - .withAttributeMappingInfo( - new MapperAttributeMappings() - .withAttributeMappings( - Arrays - .asList( - new MapperAttributeMapping(), - new MapperAttributeMapping(), - new MapperAttributeMapping(), - new MapperAttributeMapping()))) - .withSourceDenormalizeInfo("dataskbuhzaca"), - new DataMapperMapping() - .withTargetEntityName("yltcoqcuj") - .withSourceEntityName("sxzakuejkm") - .withSourceConnectionReference( - new MapperConnectionReference() - .withConnectionName("ztjofqcvovjufyc") - .withType(ConnectionType.LINKEDSERVICETYPE)) - .withAttributeMappingInfo( - new MapperAttributeMappings() - .withAttributeMappings( - Arrays.asList(new MapperAttributeMapping()))) - .withSourceDenormalizeInfo("datayeji"))) - .withRelationships( - Arrays.asList("dataxeg", "datahortu", "dataawlpjfelqerpp", "datacbgqnzmnhiil")), - new MapperTargetConnectionsInfo() - .withTargetEntities( - Arrays - .asList( - new MapperTable() - .withName("cjgckbbcccgzpra") - .withSchema( - Arrays - .asList( - new MapperTableSchema(), - new MapperTableSchema(), - new MapperTableSchema())) - .withDslConnectorProperties( - Arrays - .asList( - new MapperDslConnectorProperties(), - new MapperDslConnectorProperties(), - new MapperDslConnectorProperties())), - new MapperTable() - .withName("a") - .withSchema( - Arrays - .asList( - new MapperTableSchema(), - new MapperTableSchema(), - new MapperTableSchema(), - new MapperTableSchema())) - .withDslConnectorProperties( - Arrays - .asList( - new MapperDslConnectorProperties(), - new MapperDslConnectorProperties())), - new MapperTable() - .withName("wcxbyubhiqdxyurn") - .withSchema(Arrays.asList(new MapperTableSchema())) - .withDslConnectorProperties( - Arrays.asList(new MapperDslConnectorProperties())), - new MapperTable() - .withName("ccnuhiig") - .withSchema(Arrays.asList(new MapperTableSchema())) - .withDslConnectorProperties( - Arrays - .asList( - new MapperDslConnectorProperties(), - new MapperDslConnectorProperties(), - new MapperDslConnectorProperties())))) - .withConnection( - new MapperConnection() - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("xvatvcr") - .withParameters(mapOf("bqxvhcsyhzlwxae", "datab"))) - .withLinkedServiceType("vurex") - .withType(ConnectionType.LINKEDSERVICETYPE) - .withIsInlineDataset(true) - .withCommonDslConnectorProperties( - Arrays - .asList( - new MapperDslConnectorProperties() - .withName("ead") - .withValue("datazmwntopagt"), - new MapperDslConnectorProperties() - .withName("v") - .withValue("dataagoaqylkjztji")))) - .withDataMapperMappings( - Arrays - .asList( - new DataMapperMapping() - .withTargetEntityName("cgm") - .withSourceEntityName("tpfinzcpdltkr") - .withSourceConnectionReference( - new MapperConnectionReference() - .withConnectionName("mtbdrvcqgu") - .withType(ConnectionType.LINKEDSERVICETYPE)) - .withAttributeMappingInfo( - new MapperAttributeMappings() - .withAttributeMappings( - Arrays - .asList( - new MapperAttributeMapping(), - new MapperAttributeMapping()))) - .withSourceDenormalizeInfo("dataheqdurelyujlfyou"))) - .withRelationships( - Arrays - .asList("datakyeclcdigpta", "databrzmqxucycijoclx", "datautgjcyz", "datazjd")))) - .withPolicy( - new MapperPolicy() - .withMode("qjbtxjeaoqaqbzgy") - .withRecurrence( - new MapperPolicyRecurrence().withFrequency(FrequencyType.MINUTE).withInterval(1743289619))) - .withAllowVNetOverride(true) - .withStatus("wbqamteuliy"); - model = BinaryData.fromObject(model).toObject(ChangeDataCapture.class); - Assertions.assertEquals("fkndl", model.folder().name()); - Assertions.assertEquals("twknvgm", model.description()); - Assertions.assertEquals("yw", model.sourceConnectionsInfo().get(0).sourceEntities().get(0).name()); - Assertions - .assertEquals("jn", model.sourceConnectionsInfo().get(0).connection().linkedService().referenceName()); - Assertions - .assertEquals("sxkdnwqapfgsdpc", model.sourceConnectionsInfo().get(0).connection().linkedServiceType()); - Assertions - .assertEquals(ConnectionType.LINKEDSERVICETYPE, model.sourceConnectionsInfo().get(0).connection().type()); - Assertions.assertEquals(true, model.sourceConnectionsInfo().get(0).connection().isInlineDataset()); - Assertions - .assertEquals( - "h", model.sourceConnectionsInfo().get(0).connection().commonDslConnectorProperties().get(0).name()); - Assertions.assertEquals("nnhj", model.targetConnectionsInfo().get(0).targetEntities().get(0).name()); - Assertions - .assertEquals( - "dynojpziuwfb", model.targetConnectionsInfo().get(0).connection().linkedService().referenceName()); - Assertions.assertEquals("fnrac", model.targetConnectionsInfo().get(0).connection().linkedServiceType()); - Assertions - .assertEquals(ConnectionType.LINKEDSERVICETYPE, model.targetConnectionsInfo().get(0).connection().type()); - Assertions.assertEquals(true, model.targetConnectionsInfo().get(0).connection().isInlineDataset()); - Assertions - .assertEquals( - "uuj", model.targetConnectionsInfo().get(0).connection().commonDslConnectorProperties().get(0).name()); - Assertions - .assertEquals( - "grbjbxsjybvitvqk", - model.targetConnectionsInfo().get(0).dataMapperMappings().get(0).targetEntityName()); - Assertions - .assertEquals("az", model.targetConnectionsInfo().get(0).dataMapperMappings().get(0).sourceEntityName()); - Assertions - .assertEquals( - "tggmuwdchozfnkfe", - model - .targetConnectionsInfo() - .get(0) - .dataMapperMappings() - .get(0) - .sourceConnectionReference() - .connectionName()); - Assertions - .assertEquals( - ConnectionType.LINKEDSERVICETYPE, - model.targetConnectionsInfo().get(0).dataMapperMappings().get(0).sourceConnectionReference().type()); - Assertions.assertEquals("qjbtxjeaoqaqbzgy", model.policy().mode()); - Assertions.assertEquals(FrequencyType.MINUTE, model.policy().recurrence().frequency()); - Assertions.assertEquals(1743289619, model.policy().recurrence().interval()); - Assertions.assertEquals(true, model.allowVNetOverride()); - Assertions.assertEquals("wbqamteuliy", model.status()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCapturesCreateOrUpdateWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCapturesCreateOrUpdateWithResponseMockTests.java deleted file mode 100644 index 462646ad52af..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCapturesCreateOrUpdateWithResponseMockTests.java +++ /dev/null @@ -1,158 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.ChangeDataCaptureFolder; -import com.azure.resourcemanager.datafactory.models.ChangeDataCaptureResource; -import com.azure.resourcemanager.datafactory.models.ConnectionType; -import com.azure.resourcemanager.datafactory.models.DataMapperMapping; -import com.azure.resourcemanager.datafactory.models.FrequencyType; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.MapperConnection; -import com.azure.resourcemanager.datafactory.models.MapperDslConnectorProperties; -import com.azure.resourcemanager.datafactory.models.MapperPolicy; -import com.azure.resourcemanager.datafactory.models.MapperPolicyRecurrence; -import com.azure.resourcemanager.datafactory.models.MapperSourceConnectionsInfo; -import com.azure.resourcemanager.datafactory.models.MapperTable; -import com.azure.resourcemanager.datafactory.models.MapperTargetConnectionsInfo; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class ChangeDataCapturesCreateOrUpdateWithResponseMockTests { - @Test - public void testCreateOrUpdateWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"folder\":{\"name\":\"ydct\"},\"description\":\"xwqs\",\"sourceConnectionsInfo\":[{\"sourceEntities\":[{},{},{},{}],\"connection\":{\"linkedService\":{\"referenceName\":\"gbzmcprtanag\"},\"linkedServiceType\":\"br\",\"type\":\"linkedservicetype\",\"isInlineDataset\":true,\"commonDslConnectorProperties\":[{}]}},{\"sourceEntities\":[{}],\"connection\":{\"linkedService\":{\"referenceName\":\"bydusjlilpiccxe\"},\"linkedServiceType\":\"w\",\"type\":\"linkedservicetype\",\"isInlineDataset\":false,\"commonDslConnectorProperties\":[{},{},{},{}]}},{\"sourceEntities\":[{},{},{},{}],\"connection\":{\"linkedService\":{\"referenceName\":\"rzoafxoyddus\"},\"linkedServiceType\":\"yjhhynlmxzdwpdw\",\"type\":\"linkedservicetype\",\"isInlineDataset\":false,\"commonDslConnectorProperties\":[{},{}]}}],\"targetConnectionsInfo\":[{\"targetEntities\":[{},{}],\"connection\":{\"linkedService\":{\"referenceName\":\"hmfmuxdnckg\"},\"linkedServiceType\":\"s\",\"type\":\"linkedservicetype\",\"isInlineDataset\":true,\"commonDslConnectorProperties\":[{},{},{}]},\"dataMapperMappings\":[{}],\"relationships\":[\"dataazv\",\"datadeqmfzyhikhnw\"]}],\"policy\":{\"mode\":\"ftlj\",\"recurrence\":{\"frequency\":\"Hour\",\"interval\":789801623}},\"allowVNetOverride\":false,\"status\":\"ezaxith\"},\"name\":\"jxtobeqgzcadoq\",\"type\":\"fllqmu\",\"etag\":\"olcgqjtv\",\"\":{\"ojpauiccja\":\"datakmwvgdfutdswjtuq\",\"gebqhbbqodyvvp\":\"dataa\",\"o\":\"dataoiaaagvaecwwdqg\"},\"id\":\"hfrgmpuyfhsk\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - ChangeDataCaptureResource response = - manager - .changeDataCaptures() - .define("ycvc") - .withExistingFactory("fxc", "npyxlc") - .withSourceConnectionsInfo( - Arrays - .asList( - new MapperSourceConnectionsInfo() - .withSourceEntities(Arrays.asList(new MapperTable())) - .withConnection( - new MapperConnection() - .withLinkedService( - new LinkedServiceReference().withReferenceName("utsabuvuuweq")) - .withLinkedServiceType("ygnetuvsqvgj") - .withType(ConnectionType.LINKEDSERVICETYPE) - .withIsInlineDataset(true) - .withCommonDslConnectorProperties( - Arrays - .asList( - new MapperDslConnectorProperties(), - new MapperDslConnectorProperties(), - new MapperDslConnectorProperties()))))) - .withTargetConnectionsInfo( - Arrays - .asList( - new MapperTargetConnectionsInfo() - .withTargetEntities(Arrays.asList(new MapperTable())) - .withConnection( - new MapperConnection() - .withLinkedService(new LinkedServiceReference().withReferenceName("dm")) - .withLinkedServiceType("tl") - .withType(ConnectionType.LINKEDSERVICETYPE) - .withIsInlineDataset(true) - .withCommonDslConnectorProperties( - Arrays - .asList( - new MapperDslConnectorProperties(), - new MapperDslConnectorProperties(), - new MapperDslConnectorProperties(), - new MapperDslConnectorProperties()))) - .withDataMapperMappings( - Arrays - .asList( - new DataMapperMapping(), new DataMapperMapping(), new DataMapperMapping())) - .withRelationships(Arrays.asList("datalflwqdjz", "dataog", "databyks", "dataqxxy")))) - .withPolicy( - new MapperPolicy() - .withMode("rixkobm") - .withRecurrence( - new MapperPolicyRecurrence().withFrequency(FrequencyType.SECOND).withInterval(27520514))) - .withFolder(new ChangeDataCaptureFolder().withName("fxza")) - .withDescription("ioqtafmbxtn") - .withAllowVNetOverride(true) - .withStatus("hkj") - .withIfMatch("jpsbd") - .create(); - - Assertions.assertEquals("hfrgmpuyfhsk", response.id()); - Assertions.assertEquals("ydct", response.folder().name()); - Assertions.assertEquals("xwqs", response.description()); - Assertions - .assertEquals( - "gbzmcprtanag", response.sourceConnectionsInfo().get(0).connection().linkedService().referenceName()); - Assertions.assertEquals("br", response.sourceConnectionsInfo().get(0).connection().linkedServiceType()); - Assertions - .assertEquals( - ConnectionType.LINKEDSERVICETYPE, response.sourceConnectionsInfo().get(0).connection().type()); - Assertions.assertEquals(true, response.sourceConnectionsInfo().get(0).connection().isInlineDataset()); - Assertions - .assertEquals( - "hmfmuxdnckg", response.targetConnectionsInfo().get(0).connection().linkedService().referenceName()); - Assertions.assertEquals("s", response.targetConnectionsInfo().get(0).connection().linkedServiceType()); - Assertions - .assertEquals( - ConnectionType.LINKEDSERVICETYPE, response.targetConnectionsInfo().get(0).connection().type()); - Assertions.assertEquals(true, response.targetConnectionsInfo().get(0).connection().isInlineDataset()); - Assertions.assertEquals("ftlj", response.policy().mode()); - Assertions.assertEquals(FrequencyType.HOUR, response.policy().recurrence().frequency()); - Assertions.assertEquals(789801623, response.policy().recurrence().interval()); - Assertions.assertEquals(false, response.allowVNetOverride()); - Assertions.assertEquals("ezaxith", response.status()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCapturesDeleteWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCapturesDeleteWithResponseMockTests.java deleted file mode 100644 index ca5a8cefd91f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCapturesDeleteWithResponseMockTests.java +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class ChangeDataCapturesDeleteWithResponseMockTests { - @Test - public void testDeleteWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager - .changeDataCaptures() - .deleteWithResponse( - "oohzifbbsncorini", "dlxqjshyyrcr", "wzqsfaurmqpkgwfb", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCapturesGetWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCapturesGetWithResponseMockTests.java deleted file mode 100644 index f571687a07f1..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCapturesGetWithResponseMockTests.java +++ /dev/null @@ -1,95 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.ChangeDataCaptureResource; -import com.azure.resourcemanager.datafactory.models.ConnectionType; -import com.azure.resourcemanager.datafactory.models.FrequencyType; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class ChangeDataCapturesGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"folder\":{\"name\":\"zcnlq\"},\"description\":\"mikbtzt\",\"sourceConnectionsInfo\":[{\"sourceEntities\":[{},{}],\"connection\":{\"linkedService\":{\"referenceName\":\"xarqtkzeopoxd\"},\"linkedServiceType\":\"xpnq\",\"type\":\"linkedservicetype\",\"isInlineDataset\":false,\"commonDslConnectorProperties\":[{},{},{},{}]}},{\"sourceEntities\":[{},{},{},{}],\"connection\":{\"linkedService\":{\"referenceName\":\"fshaqpmly\"},\"linkedServiceType\":\"gotlbflbaxywojtr\",\"type\":\"linkedservicetype\",\"isInlineDataset\":true,\"commonDslConnectorProperties\":[{}]}}],\"targetConnectionsInfo\":[{\"targetEntities\":[{},{},{},{}],\"connection\":{\"linkedService\":{\"referenceName\":\"mfnqwmavgdztdj\"},\"linkedServiceType\":\"wukbcwym\",\"type\":\"linkedservicetype\",\"isInlineDataset\":false,\"commonDslConnectorProperties\":[{},{}]},\"dataMapperMappings\":[{}],\"relationships\":[\"datavuzqsvtcrk\",\"dataswasvey\"]},{\"targetEntities\":[{},{}],\"connection\":{\"linkedService\":{\"referenceName\":\"ffc\"},\"linkedServiceType\":\"yykwwhscubgwzm\",\"type\":\"linkedservicetype\",\"isInlineDataset\":true,\"commonDslConnectorProperties\":[{},{}]},\"dataMapperMappings\":[{},{}],\"relationships\":[\"datahdrvkzzvhfogj\",\"dataocnse\",\"dataqcktqrvz\"]}],\"policy\":{\"mode\":\"beiqopjzzglgxvqd\",\"recurrence\":{\"frequency\":\"Hour\",\"interval\":464187305}},\"allowVNetOverride\":false,\"status\":\"ieeswbpbijtepr\"},\"name\":\"t\",\"type\":\"wapmtyfgswp\",\"etag\":\"nvxtvmbwydqo\",\"\":{\"i\":\"datayjebgveuazwkze\"},\"id\":\"drrgzguupw\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - ChangeDataCaptureResource response = - manager - .changeDataCaptures() - .getWithResponse("kxa", "qgyhgzqkkwz", "g", "wwopssdws", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("drrgzguupw", response.id()); - Assertions.assertEquals("zcnlq", response.folder().name()); - Assertions.assertEquals("mikbtzt", response.description()); - Assertions - .assertEquals( - "xarqtkzeopoxd", response.sourceConnectionsInfo().get(0).connection().linkedService().referenceName()); - Assertions.assertEquals("xpnq", response.sourceConnectionsInfo().get(0).connection().linkedServiceType()); - Assertions - .assertEquals( - ConnectionType.LINKEDSERVICETYPE, response.sourceConnectionsInfo().get(0).connection().type()); - Assertions.assertEquals(false, response.sourceConnectionsInfo().get(0).connection().isInlineDataset()); - Assertions - .assertEquals( - "mfnqwmavgdztdj", response.targetConnectionsInfo().get(0).connection().linkedService().referenceName()); - Assertions.assertEquals("wukbcwym", response.targetConnectionsInfo().get(0).connection().linkedServiceType()); - Assertions - .assertEquals( - ConnectionType.LINKEDSERVICETYPE, response.targetConnectionsInfo().get(0).connection().type()); - Assertions.assertEquals(false, response.targetConnectionsInfo().get(0).connection().isInlineDataset()); - Assertions.assertEquals("beiqopjzzglgxvqd", response.policy().mode()); - Assertions.assertEquals(FrequencyType.HOUR, response.policy().recurrence().frequency()); - Assertions.assertEquals(464187305, response.policy().recurrence().interval()); - Assertions.assertEquals(false, response.allowVNetOverride()); - Assertions.assertEquals("ieeswbpbijtepr", response.status()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCapturesListByFactoryMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCapturesListByFactoryMockTests.java deleted file mode 100644 index 434e3cf09f08..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCapturesListByFactoryMockTests.java +++ /dev/null @@ -1,106 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.ChangeDataCaptureResource; -import com.azure.resourcemanager.datafactory.models.ConnectionType; -import com.azure.resourcemanager.datafactory.models.FrequencyType; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class ChangeDataCapturesListByFactoryMockTests { - @Test - public void testListByFactory() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"properties\":{\"folder\":{\"name\":\"f\"},\"description\":\"nmzaih\",\"sourceConnectionsInfo\":[{\"sourceEntities\":[{},{}],\"connection\":{\"linkedService\":{\"referenceName\":\"euhhfoh\"},\"linkedServiceType\":\"vbwj\",\"type\":\"linkedservicetype\",\"isInlineDataset\":false,\"commonDslConnectorProperties\":[{},{},{}]}}],\"targetConnectionsInfo\":[{\"targetEntities\":[{},{}],\"connection\":{\"linkedService\":{\"referenceName\":\"corydjsaki\"},\"linkedServiceType\":\"lmiglnqrmqefdq\",\"type\":\"linkedservicetype\",\"isInlineDataset\":false,\"commonDslConnectorProperties\":[{},{}]},\"dataMapperMappings\":[{},{},{},{}],\"relationships\":[\"datapdiekylioagvij\"]},{\"targetEntities\":[{},{},{},{}],\"connection\":{\"linkedService\":{\"referenceName\":\"ejljdre\"},\"linkedServiceType\":\"jw\",\"type\":\"linkedservicetype\",\"isInlineDataset\":false,\"commonDslConnectorProperties\":[{},{}]},\"dataMapperMappings\":[{},{}],\"relationships\":[\"datazbddcxfuiz\"]}],\"policy\":{\"mode\":\"zme\",\"recurrence\":{\"frequency\":\"Second\",\"interval\":1878878407}},\"allowVNetOverride\":false,\"status\":\"qot\"},\"name\":\"bi\",\"type\":\"s\",\"etag\":\"vuptretlau\",\"\":{\"egcogyctekaaju\":\"datatstpbinab\",\"cbjsyorsojv\":\"datakxbgfed\"},\"id\":\"qragqcmouxs\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = - manager.changeDataCaptures().listByFactory("da", "dneb", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("qragqcmouxs", response.iterator().next().id()); - Assertions.assertEquals("f", response.iterator().next().folder().name()); - Assertions.assertEquals("nmzaih", response.iterator().next().description()); - Assertions - .assertEquals( - "euhhfoh", - response.iterator().next().sourceConnectionsInfo().get(0).connection().linkedService().referenceName()); - Assertions - .assertEquals( - "vbwj", response.iterator().next().sourceConnectionsInfo().get(0).connection().linkedServiceType()); - Assertions - .assertEquals( - ConnectionType.LINKEDSERVICETYPE, - response.iterator().next().sourceConnectionsInfo().get(0).connection().type()); - Assertions - .assertEquals( - false, response.iterator().next().sourceConnectionsInfo().get(0).connection().isInlineDataset()); - Assertions - .assertEquals( - "corydjsaki", - response.iterator().next().targetConnectionsInfo().get(0).connection().linkedService().referenceName()); - Assertions - .assertEquals( - "lmiglnqrmqefdq", - response.iterator().next().targetConnectionsInfo().get(0).connection().linkedServiceType()); - Assertions - .assertEquals( - ConnectionType.LINKEDSERVICETYPE, - response.iterator().next().targetConnectionsInfo().get(0).connection().type()); - Assertions - .assertEquals( - false, response.iterator().next().targetConnectionsInfo().get(0).connection().isInlineDataset()); - Assertions.assertEquals("zme", response.iterator().next().policy().mode()); - Assertions.assertEquals(FrequencyType.SECOND, response.iterator().next().policy().recurrence().frequency()); - Assertions.assertEquals(1878878407, response.iterator().next().policy().recurrence().interval()); - Assertions.assertEquals(false, response.iterator().next().allowVNetOverride()); - Assertions.assertEquals("qot", response.iterator().next().status()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCapturesStartWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCapturesStartWithResponseMockTests.java deleted file mode 100644 index bc85d270f681..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCapturesStartWithResponseMockTests.java +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class ChangeDataCapturesStartWithResponseMockTests { - @Test - public void testStartWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.changeDataCaptures().startWithResponse("t", "xhmrhhxlibd", "p", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCapturesStatusWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCapturesStatusWithResponseMockTests.java deleted file mode 100644 index bbce6f9d7055..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCapturesStatusWithResponseMockTests.java +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class ChangeDataCapturesStatusWithResponseMockTests { - @Test - public void testStatusWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "\"dv\""; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - String response = - manager - .changeDataCaptures() - .statusWithResponse("qohvcv", "ebxgxgrphoabhkya", "pccwievj", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("dv", response); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCapturesStopWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCapturesStopWithResponseMockTests.java deleted file mode 100644 index fdb43b1571e3..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCapturesStopWithResponseMockTests.java +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class ChangeDataCapturesStopWithResponseMockTests { - @Test - public void testStopWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager - .changeDataCaptures() - .stopWithResponse("amslvpxsy", "nifvwrd", "aauls", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CmkIdentityDefinitionTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CmkIdentityDefinitionTests.java deleted file mode 100644 index b72be33cf412..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CmkIdentityDefinitionTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CmkIdentityDefinition; -import org.junit.jupiter.api.Assertions; - -public final class CmkIdentityDefinitionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CmkIdentityDefinition model = - BinaryData.fromString("{\"userAssignedIdentity\":\"lexxbczwtru\"}").toObject(CmkIdentityDefinition.class); - Assertions.assertEquals("lexxbczwtru", model.userAssignedIdentity()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CmkIdentityDefinition model = new CmkIdentityDefinition().withUserAssignedIdentity("lexxbczwtru"); - model = BinaryData.fromObject(model).toObject(CmkIdentityDefinition.class); - Assertions.assertEquals("lexxbczwtru", model.userAssignedIdentity()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CommonDataServiceForAppsEntityDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CommonDataServiceForAppsEntityDatasetTests.java deleted file mode 100644 index c20eecd7fc2e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CommonDataServiceForAppsEntityDatasetTests.java +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CommonDataServiceForAppsEntityDataset; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class CommonDataServiceForAppsEntityDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CommonDataServiceForAppsEntityDataset model = - BinaryData - .fromString( - "{\"type\":\"CommonDataServiceForAppsEntity\",\"typeProperties\":{\"entityName\":\"datagxnwfmzvztau\"},\"description\":\"pamqxfcssanybz\",\"structure\":\"datahvdfe\",\"schema\":\"datayj\",\"linkedServiceName\":{\"referenceName\":\"v\",\"parameters\":{\"nzxezriwgo\":\"datalywkhookj\"}},\"parameters\":{\"ap\":{\"type\":\"Bool\",\"defaultValue\":\"dataqksa\"},\"benwsdfp\":{\"type\":\"SecureString\",\"defaultValue\":\"datacit\"},\"pmvzpireszya\":{\"type\":\"Int\",\"defaultValue\":\"dataahlfrcqk\"},\"cjjlwkyeahhhut\":{\"type\":\"Float\",\"defaultValue\":\"datamlbmfggeokfe\"}},\"annotations\":[\"datanrfcqu\",\"datam\",\"dataihpinow\"],\"folder\":{\"name\":\"jpxp\"},\"\":{\"lgbbfjmdgjvxlh\":\"datadwyqqidqi\",\"eftyaphqeofytl\":\"datapm\",\"qvjfdgfqpmquxpjh\":\"datanlowmcmcqixuanc\",\"dcio\":\"datafaar\"}}") - .toObject(CommonDataServiceForAppsEntityDataset.class); - Assertions.assertEquals("pamqxfcssanybz", model.description()); - Assertions.assertEquals("v", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("ap").type()); - Assertions.assertEquals("jpxp", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CommonDataServiceForAppsEntityDataset model = - new CommonDataServiceForAppsEntityDataset() - .withDescription("pamqxfcssanybz") - .withStructure("datahvdfe") - .withSchema("datayj") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("v") - .withParameters(mapOf("nzxezriwgo", "datalywkhookj"))) - .withParameters( - mapOf( - "ap", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("dataqksa"), - "benwsdfp", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("datacit"), - "pmvzpireszya", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("dataahlfrcqk"), - "cjjlwkyeahhhut", - new ParameterSpecification() - .withType(ParameterType.FLOAT) - .withDefaultValue("datamlbmfggeokfe"))) - .withAnnotations(Arrays.asList("datanrfcqu", "datam", "dataihpinow")) - .withFolder(new DatasetFolder().withName("jpxp")) - .withEntityName("datagxnwfmzvztau"); - model = BinaryData.fromObject(model).toObject(CommonDataServiceForAppsEntityDataset.class); - Assertions.assertEquals("pamqxfcssanybz", model.description()); - Assertions.assertEquals("v", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("ap").type()); - Assertions.assertEquals("jpxp", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CommonDataServiceForAppsEntityDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CommonDataServiceForAppsEntityDatasetTypePropertiesTests.java deleted file mode 100644 index ee737c9e8d62..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CommonDataServiceForAppsEntityDatasetTypePropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.CommonDataServiceForAppsEntityDatasetTypeProperties; - -public final class CommonDataServiceForAppsEntityDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CommonDataServiceForAppsEntityDatasetTypeProperties model = - BinaryData - .fromString("{\"entityName\":\"dataufzg\"}") - .toObject(CommonDataServiceForAppsEntityDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CommonDataServiceForAppsEntityDatasetTypeProperties model = - new CommonDataServiceForAppsEntityDatasetTypeProperties().withEntityName("dataufzg"); - model = BinaryData.fromObject(model).toObject(CommonDataServiceForAppsEntityDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CommonDataServiceForAppsSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CommonDataServiceForAppsSourceTests.java deleted file mode 100644 index 823a80da46c6..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CommonDataServiceForAppsSourceTests.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CommonDataServiceForAppsSource; - -public final class CommonDataServiceForAppsSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CommonDataServiceForAppsSource model = - BinaryData - .fromString( - "{\"type\":\"CommonDataServiceForAppsSource\",\"query\":\"datanxrjmilogcnzfg\",\"additionalColumns\":\"databbtplrtxhzt\",\"sourceRetryCount\":\"datawyrsfj\",\"sourceRetryWait\":\"dataoyusrbuydeyh\",\"maxConcurrentConnections\":\"datattkdrblehenj\",\"disableMetricsCollection\":\"dataiwdeosbijikjf\",\"\":{\"avfjx\":\"datauwhbpojujpifxtgr\",\"lauhr\":\"dataiwx\",\"r\":\"datachphovu\"}}") - .toObject(CommonDataServiceForAppsSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CommonDataServiceForAppsSource model = - new CommonDataServiceForAppsSource() - .withSourceRetryCount("datawyrsfj") - .withSourceRetryWait("dataoyusrbuydeyh") - .withMaxConcurrentConnections("datattkdrblehenj") - .withDisableMetricsCollection("dataiwdeosbijikjf") - .withQuery("datanxrjmilogcnzfg") - .withAdditionalColumns("databbtplrtxhzt"); - model = BinaryData.fromObject(model).toObject(CommonDataServiceForAppsSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CompressionReadSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CompressionReadSettingsTests.java deleted file mode 100644 index 5f9f437fcf62..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CompressionReadSettingsTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CompressionReadSettings; -import java.util.HashMap; -import java.util.Map; - -public final class CompressionReadSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CompressionReadSettings model = - BinaryData - .fromString( - "{\"type\":\"CompressionReadSettings\",\"\":{\"bc\":\"dataouxpdnlbp\",\"zekg\":\"dataohnroa\"}}") - .toObject(CompressionReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CompressionReadSettings model = - new CompressionReadSettings().withAdditionalProperties(mapOf("type", "CompressionReadSettings")); - model = BinaryData.fromObject(model).toObject(CompressionReadSettings.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ConcurObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ConcurObjectDatasetTests.java deleted file mode 100644 index 6cf408e219f6..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ConcurObjectDatasetTests.java +++ /dev/null @@ -1,78 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ConcurObjectDataset; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ConcurObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ConcurObjectDataset model = - BinaryData - .fromString( - "{\"type\":\"ConcurObject\",\"typeProperties\":{\"tableName\":\"datackfkithue\"},\"description\":\"sg\",\"structure\":\"dataqzgbjw\",\"schema\":\"dataudmpwewpmioleaj\",\"linkedServiceName\":{\"referenceName\":\"b\",\"parameters\":{\"ecmbaaj\":\"datayzwphbjks\"}},\"parameters\":{\"lvzkfekde\":{\"type\":\"SecureString\",\"defaultValue\":\"datak\"},\"b\":{\"type\":\"String\",\"defaultValue\":\"datajqtl\"},\"rqnneqryp\":{\"type\":\"SecureString\",\"defaultValue\":\"datapduibsr\"},\"cxybtdzy\":{\"type\":\"Int\",\"defaultValue\":\"datavshhovtuercpzhb\"}},\"annotations\":[\"dataaoegj\",\"datagpljbnwczsraz\",\"databybicqhxhj\"],\"folder\":{\"name\":\"pasizzfmugykwuy\"},\"\":{\"thdzitjzffph\":\"datatenndz\",\"zmzxvfybxmmrvnu\":\"datarwjqvswtwonad\"}}") - .toObject(ConcurObjectDataset.class); - Assertions.assertEquals("sg", model.description()); - Assertions.assertEquals("b", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("lvzkfekde").type()); - Assertions.assertEquals("pasizzfmugykwuy", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ConcurObjectDataset model = - new ConcurObjectDataset() - .withDescription("sg") - .withStructure("dataqzgbjw") - .withSchema("dataudmpwewpmioleaj") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("b") - .withParameters(mapOf("ecmbaaj", "datayzwphbjks"))) - .withParameters( - mapOf( - "lvzkfekde", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("datak"), - "b", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datajqtl"), - "rqnneqryp", - new ParameterSpecification() - .withType(ParameterType.SECURE_STRING) - .withDefaultValue("datapduibsr"), - "cxybtdzy", - new ParameterSpecification() - .withType(ParameterType.INT) - .withDefaultValue("datavshhovtuercpzhb"))) - .withAnnotations(Arrays.asList("dataaoegj", "datagpljbnwczsraz", "databybicqhxhj")) - .withFolder(new DatasetFolder().withName("pasizzfmugykwuy")) - .withTableName("datackfkithue"); - model = BinaryData.fromObject(model).toObject(ConcurObjectDataset.class); - Assertions.assertEquals("sg", model.description()); - Assertions.assertEquals("b", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("lvzkfekde").type()); - Assertions.assertEquals("pasizzfmugykwuy", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ConcurSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ConcurSourceTests.java deleted file mode 100644 index 8970dcfecf9e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ConcurSourceTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ConcurSource; - -public final class ConcurSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ConcurSource model = - BinaryData - .fromString( - "{\"type\":\"ConcurSource\",\"query\":\"datapyilojwcza\",\"queryTimeout\":\"datawtausk\",\"additionalColumns\":\"datahhmtypgrkdmezaun\",\"sourceRetryCount\":\"datacqtigav\",\"sourceRetryWait\":\"datasnrjhjlploaeppl\",\"maxConcurrentConnections\":\"datakcazuj\",\"disableMetricsCollection\":\"datauuzbsxhivncue\",\"\":{\"rtlnzdk\":\"dataexcn\"}}") - .toObject(ConcurSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ConcurSource model = - new ConcurSource() - .withSourceRetryCount("datacqtigav") - .withSourceRetryWait("datasnrjhjlploaeppl") - .withMaxConcurrentConnections("datakcazuj") - .withDisableMetricsCollection("datauuzbsxhivncue") - .withQueryTimeout("datawtausk") - .withAdditionalColumns("datahhmtypgrkdmezaun") - .withQuery("datapyilojwcza"); - model = BinaryData.fromObject(model).toObject(ConcurSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ConnectionStatePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ConnectionStatePropertiesTests.java deleted file mode 100644 index 172f0e25ba2c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ConnectionStatePropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ConnectionStateProperties; - -public final class ConnectionStatePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ConnectionStateProperties model = - BinaryData - .fromString( - "{\"actionsRequired\":\"ppdbwnupgahxkum\",\"description\":\"jcaacfdmmcpugm\",\"status\":\"qepvufhbzeh\"}") - .toObject(ConnectionStateProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ConnectionStateProperties model = new ConnectionStateProperties(); - model = BinaryData.fromObject(model).toObject(ConnectionStateProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ControlActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ControlActivityTests.java deleted file mode 100644 index 6f161c7a4e04..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ControlActivityTests.java +++ /dev/null @@ -1,78 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.ControlActivity; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ControlActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ControlActivity model = - BinaryData - .fromString( - "{\"type\":\"Container\",\"name\":\"wlojwvrovjvj\",\"description\":\"ypcnbucb\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"f\",\"dependencyConditions\":[\"Succeeded\"],\"\":{\"epylmssdv\":\"datahfuwygssssjcp\",\"mmwkakyxyksde\":\"datavdcciyzrdj\",\"x\":\"datarwqmffvbhtuey\"}}],\"userProperties\":[{\"name\":\"nwcekqsbnca\",\"value\":\"datafapzebjeg\"},{\"name\":\"wgverbywu\",\"value\":\"dataveisjbpzdwhxputk\"},{\"name\":\"j\",\"value\":\"datasrwzvdfeya\"}],\"\":{\"bovtjmdymd\":\"datajqfxfiyjzuqg\",\"xkwwfyevhurklowm\":\"datap\",\"ei\":\"datarvzclilyoix\"}}") - .toObject(ControlActivity.class); - Assertions.assertEquals("wlojwvrovjvj", model.name()); - Assertions.assertEquals("ypcnbucb", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.onInactiveMarkAs()); - Assertions.assertEquals("f", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("nwcekqsbnca", model.userProperties().get(0).name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ControlActivity model = - new ControlActivity() - .withName("wlojwvrovjvj") - .withDescription("ypcnbucb") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("f") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays - .asList( - new UserProperty().withName("nwcekqsbnca").withValue("datafapzebjeg"), - new UserProperty().withName("wgverbywu").withValue("dataveisjbpzdwhxputk"), - new UserProperty().withName("j").withValue("datasrwzvdfeya"))); - model = BinaryData.fromObject(model).toObject(ControlActivity.class); - Assertions.assertEquals("wlojwvrovjvj", model.name()); - Assertions.assertEquals("ypcnbucb", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.onInactiveMarkAs()); - Assertions.assertEquals("f", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("nwcekqsbnca", model.userProperties().get(0).name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CopyActivityLogSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CopyActivityLogSettingsTests.java deleted file mode 100644 index abf906cb0852..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CopyActivityLogSettingsTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CopyActivityLogSettings; - -public final class CopyActivityLogSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CopyActivityLogSettings model = - BinaryData - .fromString("{\"logLevel\":\"datavlyaprjzbx\",\"enableReliableLogging\":\"dataqfrntzbhmxl\"}") - .toObject(CopyActivityLogSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CopyActivityLogSettings model = - new CopyActivityLogSettings().withLogLevel("datavlyaprjzbx").withEnableReliableLogging("dataqfrntzbhmxl"); - model = BinaryData.fromObject(model).toObject(CopyActivityLogSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CopyActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CopyActivityTests.java deleted file mode 100644 index ef47d536cbc2..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CopyActivityTests.java +++ /dev/null @@ -1,256 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityPolicy; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.CopyActivity; -import com.azure.resourcemanager.datafactory.models.CopyActivityLogSettings; -import com.azure.resourcemanager.datafactory.models.CopySink; -import com.azure.resourcemanager.datafactory.models.CopySource; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.LogLocationSettings; -import com.azure.resourcemanager.datafactory.models.LogSettings; -import com.azure.resourcemanager.datafactory.models.LogStorageSettings; -import com.azure.resourcemanager.datafactory.models.RedirectIncompatibleRowSettings; -import com.azure.resourcemanager.datafactory.models.SkipErrorFile; -import com.azure.resourcemanager.datafactory.models.StagingSettings; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class CopyActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CopyActivity model = - BinaryData - .fromString( - "{\"type\":\"Copy\",\"typeProperties\":{\"source\":{\"type\":\"CopySource\",\"sourceRetryCount\":\"dataingadkrkny\",\"sourceRetryWait\":\"datangdfzqcjfqmy\",\"maxConcurrentConnections\":\"datawbuxqzfwgbqsvexz\",\"disableMetricsCollection\":\"datafwiav\",\"\":{\"cbxrskylq\":\"datatgxdlznfo\",\"teikktret\":\"datapp\",\"nvb\":\"datatsygzjplaxxfnrlt\"}},\"sink\":{\"type\":\"CopySink\",\"writeBatchSize\":\"dataotghxkrrpmgdoli\",\"writeBatchTimeout\":\"datazsglavdtttyd\",\"sinkRetryCount\":\"dataomz\",\"sinkRetryWait\":\"datakjq\",\"maxConcurrentConnections\":\"datahbypwmveyrciked\",\"disableMetricsCollection\":\"dataufjuqow\",\"\":{\"sz\":\"datavjy\"}},\"translator\":\"dataeuqxhmri\",\"enableStaging\":\"datakcgusvpvtaulxx\",\"stagingSettings\":{\"linkedServiceName\":{\"referenceName\":\"fxdqqz\",\"parameters\":{\"odhaslpaae\":\"datagwqi\",\"ht\":\"datarzxvffq\",\"epssoqdibyg\":\"datamhrztbyulk\"}},\"path\":\"datacidiwkxi\",\"enableCompression\":\"dataiqxlxoksyypftrdi\",\"\":{\"ccetyyvxkwobb\":\"datarbqgatkliopgwpka\"}},\"parallelCopies\":\"datasdpyirtrlzkpje\",\"dataIntegrationUnits\":\"datazhhfnaqclepc\",\"enableSkipIncompatibleRow\":\"dataowuthfwphnmll\",\"redirectIncompatibleRowSettings\":{\"linkedServiceName\":\"datajehwhxxuo\",\"path\":\"dataeaqahzkvnapxhtqw\",\"\":{\"bziibuabpvdwhvn\":\"dataxaovubfllfke\",\"kgbkzqbo\":\"datacbuzudkqoeoukvi\",\"hclxwede\":\"datafhdyasklmy\",\"pduttqjtszq\":\"dataawljatvfddq\"}},\"logStorageSettings\":{\"linkedServiceName\":{\"referenceName\":\"cqcwbxx\",\"parameters\":{\"lvkdwwqhhlfvmwu\":\"dataekqjdru\",\"fbdanfexlawkeq\":\"dataarswsvtzotmwxq\",\"dyk\":\"datahzbwrtmjskbienjn\"}},\"path\":\"dataounbyvsfqurr\",\"logLevel\":\"dataqbknoxjhe\",\"enableReliableLogging\":\"datahmmwbvr\",\"\":{\"uzkwigifinoy\":\"databiigxxrez\",\"kooa\":\"datadtlpshxjhan\"}},\"logSettings\":{\"enableCopyActivityLog\":\"datakgqsqvfyo\",\"copyActivityLogSettings\":{\"logLevel\":\"datataljiqlxjjltuym\",\"enableReliableLogging\":\"dataaqhscaanddlvc\"},\"logLocationSettings\":{\"linkedServiceName\":{\"referenceName\":\"uv\",\"parameters\":{\"gdjvyclasdprknup\":\"dataflsby\",\"pvqczpk\":\"datateklgs\"}},\"path\":\"dataaolthowcsue\"}},\"preserveRules\":[\"datag\"],\"preserve\":[\"dataimtxmd\",\"dataexar\"],\"validateDataConsistency\":\"datakoir\",\"skipErrorFile\":{\"fileMissing\":\"dataftlbs\",\"dataInconsistency\":\"datanmxa\"}},\"inputs\":[{\"referenceName\":\"uadhi\",\"parameters\":{\"ujliti\":\"dataxstwaazeqjnou\",\"yqxipb\":\"datashmqxgjzslho\"}},{\"referenceName\":\"spvkcnggo\",\"parameters\":{\"itlam\":\"datanjm\",\"wqzsyetbff\":\"databklkhhjx\",\"l\":\"datahqzvwznwcqoapdtj\"}}],\"outputs\":[{\"referenceName\":\"fdpurvz\",\"parameters\":{\"kvq\":\"databesfumedsaa\",\"svivqkyaghfvubl\":\"datab\",\"nymbjrsd\":\"datazsveguxaxij\"}},{\"referenceName\":\"ufqxrlzi\",\"parameters\":{\"newrvjg\":\"datauzegmcmlzmfeti\"}},{\"referenceName\":\"nm\",\"parameters\":{\"orzozf\":\"datagowdavpqyhax\",\"ggoppmxcm\":\"datagkwpbnefabgt\",\"a\":\"dataugddycfyfau\",\"zcxxfwpjpgq\":\"datazqvawkesx\"}},{\"referenceName\":\"brzkmgylmyc\",\"parameters\":{\"cyhjhrkfpt\":\"dataorrecoiqwnqliz\",\"fmbvmajcmpohjdvf\":\"dataiommis\"}}],\"linkedServiceName\":{\"referenceName\":\"b\",\"parameters\":{\"gcjssqpk\":\"dataymahboindiuyqdjk\",\"zqwwttqjyiw\":\"databryhvshkvup\"}},\"policy\":{\"timeout\":\"datar\",\"retry\":\"datavbjvvcogupsho\",\"retryIntervalInSeconds\":1908676159,\"secureInput\":true,\"secureOutput\":true,\"\":{\"uuhbcckbcvtelmd\":\"datajoor\",\"mblnismv\":\"datamasvghphlbkqu\",\"glxljuy\":\"dataaasdexs\",\"npdjomd\":\"datakkpovzespdipdx\"}},\"name\":\"adwosjxywwvilkyh\",\"description\":\"riyhdbbj\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"rpwjenbxtkghrrxa\",\"dependencyConditions\":[\"Completed\"],\"\":{\"jwipfryivpe\":\"datahkizyxoyxnhu\",\"kpdmmowftfrqebr\":\"datazyrpdxygfpqxseme\",\"tefe\":\"dataop\",\"j\":\"datafxm\"}},{\"activity\":\"wwidnrds\",\"dependencyConditions\":[\"Succeeded\",\"Completed\",\"Failed\"],\"\":{\"hwbead\":\"datadyhodisypgapfd\"}}],\"userProperties\":[{\"name\":\"qnkoskflnjaysr\",\"value\":\"dataeevmb\"},{\"name\":\"emrhbzetss\",\"value\":\"datawwexbotbrepef\"},{\"name\":\"lie\",\"value\":\"dataocyarvsfz\"},{\"name\":\"cscootfsgilwis\",\"value\":\"dataxzpz\"}],\"\":{\"gknocshm\":\"datastrtrfv\",\"pxydpamctzmwrh\":\"datacjqtuzbirbrvzhfj\",\"jsgkouenpgkxyr\":\"datacdgunsjssre\"}}") - .toObject(CopyActivity.class); - Assertions.assertEquals("adwosjxywwvilkyh", model.name()); - Assertions.assertEquals("riyhdbbj", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.onInactiveMarkAs()); - Assertions.assertEquals("rpwjenbxtkghrrxa", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("qnkoskflnjaysr", model.userProperties().get(0).name()); - Assertions.assertEquals("b", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1908676159, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - Assertions.assertEquals("uadhi", model.inputs().get(0).referenceName()); - Assertions.assertEquals("fdpurvz", model.outputs().get(0).referenceName()); - Assertions.assertEquals("fxdqqz", model.stagingSettings().linkedServiceName().referenceName()); - Assertions.assertEquals("cqcwbxx", model.logStorageSettings().linkedServiceName().referenceName()); - Assertions.assertEquals("uv", model.logSettings().logLocationSettings().linkedServiceName().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CopyActivity model = - new CopyActivity() - .withName("adwosjxywwvilkyh") - .withDescription("riyhdbbj") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("rpwjenbxtkghrrxa") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("wwidnrds") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.SUCCEEDED, - DependencyCondition.COMPLETED, - DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays - .asList( - new UserProperty().withName("qnkoskflnjaysr").withValue("dataeevmb"), - new UserProperty().withName("emrhbzetss").withValue("datawwexbotbrepef"), - new UserProperty().withName("lie").withValue("dataocyarvsfz"), - new UserProperty().withName("cscootfsgilwis").withValue("dataxzpz"))) - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("b") - .withParameters(mapOf("gcjssqpk", "dataymahboindiuyqdjk", "zqwwttqjyiw", "databryhvshkvup"))) - .withPolicy( - new ActivityPolicy() - .withTimeout("datar") - .withRetry("datavbjvvcogupsho") - .withRetryIntervalInSeconds(1908676159) - .withSecureInput(true) - .withSecureOutput(true) - .withAdditionalProperties(mapOf())) - .withInputs( - Arrays - .asList( - new DatasetReference() - .withReferenceName("uadhi") - .withParameters(mapOf("ujliti", "dataxstwaazeqjnou", "yqxipb", "datashmqxgjzslho")), - new DatasetReference() - .withReferenceName("spvkcnggo") - .withParameters( - mapOf( - "itlam", - "datanjm", - "wqzsyetbff", - "databklkhhjx", - "l", - "datahqzvwznwcqoapdtj")))) - .withOutputs( - Arrays - .asList( - new DatasetReference() - .withReferenceName("fdpurvz") - .withParameters( - mapOf( - "kvq", - "databesfumedsaa", - "svivqkyaghfvubl", - "datab", - "nymbjrsd", - "datazsveguxaxij")), - new DatasetReference() - .withReferenceName("ufqxrlzi") - .withParameters(mapOf("newrvjg", "datauzegmcmlzmfeti")), - new DatasetReference() - .withReferenceName("nm") - .withParameters( - mapOf( - "orzozf", - "datagowdavpqyhax", - "ggoppmxcm", - "datagkwpbnefabgt", - "a", - "dataugddycfyfau", - "zcxxfwpjpgq", - "datazqvawkesx")), - new DatasetReference() - .withReferenceName("brzkmgylmyc") - .withParameters( - mapOf("cyhjhrkfpt", "dataorrecoiqwnqliz", "fmbvmajcmpohjdvf", "dataiommis")))) - .withSource( - new CopySource() - .withSourceRetryCount("dataingadkrkny") - .withSourceRetryWait("datangdfzqcjfqmy") - .withMaxConcurrentConnections("datawbuxqzfwgbqsvexz") - .withDisableMetricsCollection("datafwiav") - .withAdditionalProperties(mapOf("type", "CopySource"))) - .withSink( - new CopySink() - .withWriteBatchSize("dataotghxkrrpmgdoli") - .withWriteBatchTimeout("datazsglavdtttyd") - .withSinkRetryCount("dataomz") - .withSinkRetryWait("datakjq") - .withMaxConcurrentConnections("datahbypwmveyrciked") - .withDisableMetricsCollection("dataufjuqow") - .withAdditionalProperties(mapOf("type", "CopySink"))) - .withTranslator("dataeuqxhmri") - .withEnableStaging("datakcgusvpvtaulxx") - .withStagingSettings( - new StagingSettings() - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("fxdqqz") - .withParameters( - mapOf( - "odhaslpaae", - "datagwqi", - "ht", - "datarzxvffq", - "epssoqdibyg", - "datamhrztbyulk"))) - .withPath("datacidiwkxi") - .withEnableCompression("dataiqxlxoksyypftrdi") - .withAdditionalProperties(mapOf())) - .withParallelCopies("datasdpyirtrlzkpje") - .withDataIntegrationUnits("datazhhfnaqclepc") - .withEnableSkipIncompatibleRow("dataowuthfwphnmll") - .withRedirectIncompatibleRowSettings( - new RedirectIncompatibleRowSettings() - .withLinkedServiceName("datajehwhxxuo") - .withPath("dataeaqahzkvnapxhtqw") - .withAdditionalProperties(mapOf())) - .withLogStorageSettings( - new LogStorageSettings() - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("cqcwbxx") - .withParameters( - mapOf( - "lvkdwwqhhlfvmwu", - "dataekqjdru", - "fbdanfexlawkeq", - "dataarswsvtzotmwxq", - "dyk", - "datahzbwrtmjskbienjn"))) - .withPath("dataounbyvsfqurr") - .withLogLevel("dataqbknoxjhe") - .withEnableReliableLogging("datahmmwbvr") - .withAdditionalProperties(mapOf())) - .withLogSettings( - new LogSettings() - .withEnableCopyActivityLog("datakgqsqvfyo") - .withCopyActivityLogSettings( - new CopyActivityLogSettings() - .withLogLevel("datataljiqlxjjltuym") - .withEnableReliableLogging("dataaqhscaanddlvc")) - .withLogLocationSettings( - new LogLocationSettings() - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("uv") - .withParameters( - mapOf("gdjvyclasdprknup", "dataflsby", "pvqczpk", "datateklgs"))) - .withPath("dataaolthowcsue"))) - .withPreserveRules(Arrays.asList("datag")) - .withPreserve(Arrays.asList("dataimtxmd", "dataexar")) - .withValidateDataConsistency("datakoir") - .withSkipErrorFile(new SkipErrorFile().withFileMissing("dataftlbs").withDataInconsistency("datanmxa")); - model = BinaryData.fromObject(model).toObject(CopyActivity.class); - Assertions.assertEquals("adwosjxywwvilkyh", model.name()); - Assertions.assertEquals("riyhdbbj", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.onInactiveMarkAs()); - Assertions.assertEquals("rpwjenbxtkghrrxa", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("qnkoskflnjaysr", model.userProperties().get(0).name()); - Assertions.assertEquals("b", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1908676159, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - Assertions.assertEquals("uadhi", model.inputs().get(0).referenceName()); - Assertions.assertEquals("fdpurvz", model.outputs().get(0).referenceName()); - Assertions.assertEquals("fxdqqz", model.stagingSettings().linkedServiceName().referenceName()); - Assertions.assertEquals("cqcwbxx", model.logStorageSettings().linkedServiceName().referenceName()); - Assertions.assertEquals("uv", model.logSettings().logLocationSettings().linkedServiceName().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CopyActivityTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CopyActivityTypePropertiesTests.java deleted file mode 100644 index c8d3e31ce8a7..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CopyActivityTypePropertiesTests.java +++ /dev/null @@ -1,134 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.CopyActivityTypeProperties; -import com.azure.resourcemanager.datafactory.models.CopyActivityLogSettings; -import com.azure.resourcemanager.datafactory.models.CopySink; -import com.azure.resourcemanager.datafactory.models.CopySource; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.LogLocationSettings; -import com.azure.resourcemanager.datafactory.models.LogSettings; -import com.azure.resourcemanager.datafactory.models.LogStorageSettings; -import com.azure.resourcemanager.datafactory.models.RedirectIncompatibleRowSettings; -import com.azure.resourcemanager.datafactory.models.SkipErrorFile; -import com.azure.resourcemanager.datafactory.models.StagingSettings; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class CopyActivityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CopyActivityTypeProperties model = - BinaryData - .fromString( - "{\"source\":{\"type\":\"CopySource\",\"sourceRetryCount\":\"datap\",\"sourceRetryWait\":\"datahyekggo\",\"maxConcurrentConnections\":\"datalqvuwsqmwqsg\",\"disableMetricsCollection\":\"dataz\",\"\":{\"ursumbci\":\"datatngxvrpkizjnkgd\",\"uyblo\":\"datakbkqpsvoxshxum\",\"samxyjqhwsoj\":\"datarufvmgblbqx\"}},\"sink\":{\"type\":\"CopySink\",\"writeBatchSize\":\"databbgvmowy\",\"writeBatchTimeout\":\"dataqhuhmldhnzsc\",\"sinkRetryCount\":\"datauzuchotdz\",\"sinkRetryWait\":\"datahqhwpuaermaww\",\"maxConcurrentConnections\":\"datasdazqcemcotwfuo\",\"disableMetricsCollection\":\"dataisxzhik\",\"\":{\"xbupsx\":\"datas\",\"gxcgqkhyvtajwkrx\":\"dataoj\",\"zbomjbyssprkbz\":\"datazlmwfncwlwov\"}},\"translator\":\"dataljwfncsaa\",\"enableStaging\":\"datacpgz\",\"stagingSettings\":{\"linkedServiceName\":{\"referenceName\":\"rgppqajdmju\",\"parameters\":{\"etbzfwfuxdtp\":\"dataqqguhvnwrzimi\",\"quyfftqomb\":\"datacsqkedlclx\",\"djbyfdfuaj\":\"datasgqxaciduobzz\",\"vzznyjqbwxpwjvf\":\"datahpyylekubiwv\"}},\"path\":\"dataloquttkb\",\"enableCompression\":\"datagjupjbdqmnk\",\"\":{\"p\":\"dataqssh\",\"womevqvv\":\"datajttnurkmerqzap\"}},\"parallelCopies\":\"datawdlduvimgtceor\",\"dataIntegrationUnits\":\"datao\",\"enableSkipIncompatibleRow\":\"dataapafbjvbk\",\"redirectIncompatibleRowSettings\":{\"linkedServiceName\":\"datagzkcpt\",\"path\":\"datacipy\",\"\":{\"vpuacajxdrgxpuxp\":\"datajgblskizp\",\"pzrycchqz\":\"dataslmfr\",\"dzgszjhekbmd\":\"datafge\"}},\"logStorageSettings\":{\"linkedServiceName\":{\"referenceName\":\"hioj\",\"parameters\":{\"tyeuvwysbme\":\"datagp\"}},\"path\":\"datag\",\"logLevel\":\"datanlihbku\",\"enableReliableLogging\":\"dataeywyftvy\",\"\":{\"scyzvv\":\"dataqzjfvbnyyjvz\",\"ssgbscq\":\"dataxmy\",\"qiparctshe\":\"dataeixazebmmjaigax\",\"fawhoosrsol\":\"datagtdvhokx\"}},\"logSettings\":{\"enableCopyActivityLog\":\"datamfoe\",\"copyActivityLogSettings\":{\"logLevel\":\"dataiq\",\"enableReliableLogging\":\"datapelnud\"},\"logLocationSettings\":{\"linkedServiceName\":{\"referenceName\":\"fie\",\"parameters\":{\"jllfgmdoaihl\":\"dataorsdvuirqfk\",\"cv\":\"datarsqcivmirybwga\"}},\"path\":\"datay\"}},\"preserveRules\":[\"dataazgtbynxsh\",\"dataawexgeqo\"],\"preserve\":[\"datauzxxkojjphbo\",\"datauovsv\",\"datanpcxdkmtvpa\"],\"validateDataConsistency\":\"dataubnyhm\",\"skipErrorFile\":{\"fileMissing\":\"datadevotucnzbpocum\",\"dataInconsistency\":\"dataftzoemzdnvnoo\"}}") - .toObject(CopyActivityTypeProperties.class); - Assertions.assertEquals("rgppqajdmju", model.stagingSettings().linkedServiceName().referenceName()); - Assertions.assertEquals("hioj", model.logStorageSettings().linkedServiceName().referenceName()); - Assertions.assertEquals("fie", model.logSettings().logLocationSettings().linkedServiceName().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CopyActivityTypeProperties model = - new CopyActivityTypeProperties() - .withSource( - new CopySource() - .withSourceRetryCount("datap") - .withSourceRetryWait("datahyekggo") - .withMaxConcurrentConnections("datalqvuwsqmwqsg") - .withDisableMetricsCollection("dataz") - .withAdditionalProperties(mapOf("type", "CopySource"))) - .withSink( - new CopySink() - .withWriteBatchSize("databbgvmowy") - .withWriteBatchTimeout("dataqhuhmldhnzsc") - .withSinkRetryCount("datauzuchotdz") - .withSinkRetryWait("datahqhwpuaermaww") - .withMaxConcurrentConnections("datasdazqcemcotwfuo") - .withDisableMetricsCollection("dataisxzhik") - .withAdditionalProperties(mapOf("type", "CopySink"))) - .withTranslator("dataljwfncsaa") - .withEnableStaging("datacpgz") - .withStagingSettings( - new StagingSettings() - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("rgppqajdmju") - .withParameters( - mapOf( - "etbzfwfuxdtp", - "dataqqguhvnwrzimi", - "quyfftqomb", - "datacsqkedlclx", - "djbyfdfuaj", - "datasgqxaciduobzz", - "vzznyjqbwxpwjvf", - "datahpyylekubiwv"))) - .withPath("dataloquttkb") - .withEnableCompression("datagjupjbdqmnk") - .withAdditionalProperties(mapOf())) - .withParallelCopies("datawdlduvimgtceor") - .withDataIntegrationUnits("datao") - .withEnableSkipIncompatibleRow("dataapafbjvbk") - .withRedirectIncompatibleRowSettings( - new RedirectIncompatibleRowSettings() - .withLinkedServiceName("datagzkcpt") - .withPath("datacipy") - .withAdditionalProperties(mapOf())) - .withLogStorageSettings( - new LogStorageSettings() - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("hioj") - .withParameters(mapOf("tyeuvwysbme", "datagp"))) - .withPath("datag") - .withLogLevel("datanlihbku") - .withEnableReliableLogging("dataeywyftvy") - .withAdditionalProperties(mapOf())) - .withLogSettings( - new LogSettings() - .withEnableCopyActivityLog("datamfoe") - .withCopyActivityLogSettings( - new CopyActivityLogSettings() - .withLogLevel("dataiq") - .withEnableReliableLogging("datapelnud")) - .withLogLocationSettings( - new LogLocationSettings() - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("fie") - .withParameters( - mapOf("jllfgmdoaihl", "dataorsdvuirqfk", "cv", "datarsqcivmirybwga"))) - .withPath("datay"))) - .withPreserveRules(Arrays.asList("dataazgtbynxsh", "dataawexgeqo")) - .withPreserve(Arrays.asList("datauzxxkojjphbo", "datauovsv", "datanpcxdkmtvpa")) - .withValidateDataConsistency("dataubnyhm") - .withSkipErrorFile( - new SkipErrorFile() - .withFileMissing("datadevotucnzbpocum") - .withDataInconsistency("dataftzoemzdnvnoo")); - model = BinaryData.fromObject(model).toObject(CopyActivityTypeProperties.class); - Assertions.assertEquals("rgppqajdmju", model.stagingSettings().linkedServiceName().referenceName()); - Assertions.assertEquals("hioj", model.logStorageSettings().linkedServiceName().referenceName()); - Assertions.assertEquals("fie", model.logSettings().logLocationSettings().linkedServiceName().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CopyComputeScalePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CopyComputeScalePropertiesTests.java deleted file mode 100644 index 59ce5ebf02bc..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CopyComputeScalePropertiesTests.java +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CopyComputeScaleProperties; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class CopyComputeScalePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CopyComputeScaleProperties model = - BinaryData - .fromString( - "{\"dataIntegrationUnit\":40126306,\"timeToLive\":1891599508,\"\":{\"adohsj\":\"datanssxylsui\",\"qqnzk\":\"dataiehkxgfu\"}}") - .toObject(CopyComputeScaleProperties.class); - Assertions.assertEquals(40126306, model.dataIntegrationUnit()); - Assertions.assertEquals(1891599508, model.timeToLive()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CopyComputeScaleProperties model = - new CopyComputeScaleProperties() - .withDataIntegrationUnit(40126306) - .withTimeToLive(1891599508) - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(CopyComputeScaleProperties.class); - Assertions.assertEquals(40126306, model.dataIntegrationUnit()); - Assertions.assertEquals(1891599508, model.timeToLive()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CopySinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CopySinkTests.java deleted file mode 100644 index 81f0d22f9b3a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CopySinkTests.java +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CopySink; -import java.util.HashMap; -import java.util.Map; - -public final class CopySinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CopySink model = - BinaryData - .fromString( - "{\"type\":\"CopySink\",\"writeBatchSize\":\"datayajkdejpar\",\"writeBatchTimeout\":\"datasbozfjbdyyxhjf\",\"sinkRetryCount\":\"databwmrdl\",\"sinkRetryWait\":\"dataklhwrikrulj\",\"maxConcurrentConnections\":\"datagzffemryoia\",\"disableMetricsCollection\":\"databz\",\"\":{\"umvbhbli\":\"datacc\"}}") - .toObject(CopySink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CopySink model = - new CopySink() - .withWriteBatchSize("datayajkdejpar") - .withWriteBatchTimeout("datasbozfjbdyyxhjf") - .withSinkRetryCount("databwmrdl") - .withSinkRetryWait("dataklhwrikrulj") - .withMaxConcurrentConnections("datagzffemryoia") - .withDisableMetricsCollection("databz") - .withAdditionalProperties(mapOf("type", "CopySink")); - model = BinaryData.fromObject(model).toObject(CopySink.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CopySourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CopySourceTests.java deleted file mode 100644 index f368d311d399..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CopySourceTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CopySource; -import java.util.HashMap; -import java.util.Map; - -public final class CopySourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CopySource model = - BinaryData - .fromString( - "{\"type\":\"CopySource\",\"sourceRetryCount\":\"databrdwfhhwt\",\"sourceRetryWait\":\"datagefaycbvgotbjnx\",\"maxConcurrentConnections\":\"dataiotxnp\",\"disableMetricsCollection\":\"dataflxluvmsgdis\",\"\":{\"uozdvokxuyhhrd\":\"dataxt\",\"ahgsibldxyaqdaa\":\"datakdbq\"}}") - .toObject(CopySource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CopySource model = - new CopySource() - .withSourceRetryCount("databrdwfhhwt") - .withSourceRetryWait("datagefaycbvgotbjnx") - .withMaxConcurrentConnections("dataiotxnp") - .withDisableMetricsCollection("dataflxluvmsgdis") - .withAdditionalProperties(mapOf("type", "CopySource")); - model = BinaryData.fromObject(model).toObject(CopySource.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CopyTranslatorTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CopyTranslatorTests.java deleted file mode 100644 index 4b8695229a57..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CopyTranslatorTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CopyTranslator; -import java.util.HashMap; -import java.util.Map; - -public final class CopyTranslatorTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CopyTranslator model = - BinaryData - .fromString( - "{\"type\":\"CopyTranslator\",\"\":{\"tctnqdcgobkceb\":\"datajmzpyukrwvvhc\",\"nqqiqc\":\"datartputmtjsklkw\",\"n\":\"datamfxldqtm\",\"p\":\"dataejnemrfqjhc\"}}") - .toObject(CopyTranslator.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CopyTranslator model = new CopyTranslator().withAdditionalProperties(mapOf("type", "CopyTranslator")); - model = BinaryData.fromObject(model).toObject(CopyTranslator.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbMongoDbApiCollectionDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbMongoDbApiCollectionDatasetTests.java deleted file mode 100644 index e09be190b08a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbMongoDbApiCollectionDatasetTests.java +++ /dev/null @@ -1,79 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CosmosDbMongoDbApiCollectionDataset; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class CosmosDbMongoDbApiCollectionDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CosmosDbMongoDbApiCollectionDataset model = - BinaryData - .fromString( - "{\"type\":\"CosmosDbMongoDbApiCollection\",\"typeProperties\":{\"collection\":\"datadwhslxebaj\"},\"description\":\"knmstbdoprwkamp\",\"structure\":\"datawpbldz\",\"schema\":\"dataudrcycm\",\"linkedServiceName\":{\"referenceName\":\"huzymhlhihqk\",\"parameters\":{\"aiildcpud\":\"datakmnbzko\",\"drobujnjgy\":\"datahquxsyjofpgv\",\"njgcp\":\"datauxmqxigidul\",\"ghxhkyqzjsdkpvn\":\"datakgrhnytslgsazuqz\"}},\"parameters\":{\"hflyuvbgtz\":{\"type\":\"Array\",\"defaultValue\":\"dataffxsfybntmveh\"}},\"annotations\":[\"dataweuydyb\",\"dataairvhpqsv\"],\"folder\":{\"name\":\"ogeatrcnqnvn\"},\"\":{\"iznzs\":\"datafcsjvjnk\"}}") - .toObject(CosmosDbMongoDbApiCollectionDataset.class); - Assertions.assertEquals("knmstbdoprwkamp", model.description()); - Assertions.assertEquals("huzymhlhihqk", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("hflyuvbgtz").type()); - Assertions.assertEquals("ogeatrcnqnvn", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CosmosDbMongoDbApiCollectionDataset model = - new CosmosDbMongoDbApiCollectionDataset() - .withDescription("knmstbdoprwkamp") - .withStructure("datawpbldz") - .withSchema("dataudrcycm") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("huzymhlhihqk") - .withParameters( - mapOf( - "aiildcpud", - "datakmnbzko", - "drobujnjgy", - "datahquxsyjofpgv", - "njgcp", - "datauxmqxigidul", - "ghxhkyqzjsdkpvn", - "datakgrhnytslgsazuqz"))) - .withParameters( - mapOf( - "hflyuvbgtz", - new ParameterSpecification() - .withType(ParameterType.ARRAY) - .withDefaultValue("dataffxsfybntmveh"))) - .withAnnotations(Arrays.asList("dataweuydyb", "dataairvhpqsv")) - .withFolder(new DatasetFolder().withName("ogeatrcnqnvn")) - .withCollection("datadwhslxebaj"); - model = BinaryData.fromObject(model).toObject(CosmosDbMongoDbApiCollectionDataset.class); - Assertions.assertEquals("knmstbdoprwkamp", model.description()); - Assertions.assertEquals("huzymhlhihqk", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("hflyuvbgtz").type()); - Assertions.assertEquals("ogeatrcnqnvn", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbMongoDbApiCollectionDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbMongoDbApiCollectionDatasetTypePropertiesTests.java deleted file mode 100644 index 6a5dd5cdd930..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbMongoDbApiCollectionDatasetTypePropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.CosmosDbMongoDbApiCollectionDatasetTypeProperties; - -public final class CosmosDbMongoDbApiCollectionDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CosmosDbMongoDbApiCollectionDatasetTypeProperties model = - BinaryData - .fromString("{\"collection\":\"databiba\"}") - .toObject(CosmosDbMongoDbApiCollectionDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CosmosDbMongoDbApiCollectionDatasetTypeProperties model = - new CosmosDbMongoDbApiCollectionDatasetTypeProperties().withCollection("databiba"); - model = BinaryData.fromObject(model).toObject(CosmosDbMongoDbApiCollectionDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbMongoDbApiLinkedServiceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbMongoDbApiLinkedServiceTests.java deleted file mode 100644 index 6b69560965e7..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbMongoDbApiLinkedServiceTests.java +++ /dev/null @@ -1,75 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CosmosDbMongoDbApiLinkedService; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class CosmosDbMongoDbApiLinkedServiceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CosmosDbMongoDbApiLinkedService model = - BinaryData - .fromString( - "{\"type\":\"CosmosDbMongoDbApi\",\"typeProperties\":{\"isServerVersionAbove32\":\"datastkdlyj\",\"connectionString\":\"dataijxefydckffkz\",\"database\":\"datachrkiwpadnhf\"},\"connectVia\":{\"referenceName\":\"nnitrugotfrdl\",\"parameters\":{\"igksni\":\"dataexbrvbdyriyray\",\"dprezqxzxeigydd\":\"datacl\",\"lwvcnm\":\"datafnmbxerzypcr\"}},\"description\":\"izxql\",\"parameters\":{\"mnyuh\":{\"type\":\"String\",\"defaultValue\":\"datacujdzlgyermj\"},\"fcbweabptkmkuquv\":{\"type\":\"Int\",\"defaultValue\":\"databf\"}},\"annotations\":[\"datan\",\"datam\",\"datacldoyohuafuclop\",\"dataemsylwsm\"],\"\":{\"om\":\"datawfrgdmbgbht\",\"tzbkeeohpf\":\"dataustkqywabhlgrrsk\"}}") - .toObject(CosmosDbMongoDbApiLinkedService.class); - Assertions.assertEquals("nnitrugotfrdl", model.connectVia().referenceName()); - Assertions.assertEquals("izxql", model.description()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("mnyuh").type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CosmosDbMongoDbApiLinkedService model = - new CosmosDbMongoDbApiLinkedService() - .withConnectVia( - new IntegrationRuntimeReference() - .withReferenceName("nnitrugotfrdl") - .withParameters( - mapOf( - "igksni", - "dataexbrvbdyriyray", - "dprezqxzxeigydd", - "datacl", - "lwvcnm", - "datafnmbxerzypcr"))) - .withDescription("izxql") - .withParameters( - mapOf( - "mnyuh", - new ParameterSpecification() - .withType(ParameterType.STRING) - .withDefaultValue("datacujdzlgyermj"), - "fcbweabptkmkuquv", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("databf"))) - .withAnnotations(Arrays.asList("datan", "datam", "datacldoyohuafuclop", "dataemsylwsm")) - .withIsServerVersionAbove32("datastkdlyj") - .withConnectionString("dataijxefydckffkz") - .withDatabase("datachrkiwpadnhf"); - model = BinaryData.fromObject(model).toObject(CosmosDbMongoDbApiLinkedService.class); - Assertions.assertEquals("nnitrugotfrdl", model.connectVia().referenceName()); - Assertions.assertEquals("izxql", model.description()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("mnyuh").type()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbMongoDbApiLinkedServiceTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbMongoDbApiLinkedServiceTypePropertiesTests.java deleted file mode 100644 index 34fae50d9a60..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbMongoDbApiLinkedServiceTypePropertiesTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.CosmosDbMongoDbApiLinkedServiceTypeProperties; - -public final class CosmosDbMongoDbApiLinkedServiceTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CosmosDbMongoDbApiLinkedServiceTypeProperties model = - BinaryData - .fromString( - "{\"isServerVersionAbove32\":\"dataxgdjudekmxhw\",\"connectionString\":\"datamehcdfd\",\"database\":\"datathqnztuki\"}") - .toObject(CosmosDbMongoDbApiLinkedServiceTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CosmosDbMongoDbApiLinkedServiceTypeProperties model = - new CosmosDbMongoDbApiLinkedServiceTypeProperties() - .withIsServerVersionAbove32("dataxgdjudekmxhw") - .withConnectionString("datamehcdfd") - .withDatabase("datathqnztuki"); - model = BinaryData.fromObject(model).toObject(CosmosDbMongoDbApiLinkedServiceTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbMongoDbApiSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbMongoDbApiSinkTests.java deleted file mode 100644 index 7d7f8f1e668d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbMongoDbApiSinkTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CosmosDbMongoDbApiSink; - -public final class CosmosDbMongoDbApiSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CosmosDbMongoDbApiSink model = - BinaryData - .fromString( - "{\"type\":\"CosmosDbMongoDbApiSink\",\"writeBehavior\":\"datapk\",\"writeBatchSize\":\"dataxdmbx\",\"writeBatchTimeout\":\"dataxw\",\"sinkRetryCount\":\"dataqvhfyvkxgo\",\"sinkRetryWait\":\"dataveiucuxwnojvcr\",\"maxConcurrentConnections\":\"datambnfvygtt\",\"disableMetricsCollection\":\"datafjalpsycvcksz\",\"\":{\"fth\":\"dataguucpytsxnujw\",\"eoxlbccccrauabd\":\"datazi\",\"xqgsteeksbksvv\":\"datavjrbgc\",\"vvu\":\"datavoi\"}}") - .toObject(CosmosDbMongoDbApiSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CosmosDbMongoDbApiSink model = - new CosmosDbMongoDbApiSink() - .withWriteBatchSize("dataxdmbx") - .withWriteBatchTimeout("dataxw") - .withSinkRetryCount("dataqvhfyvkxgo") - .withSinkRetryWait("dataveiucuxwnojvcr") - .withMaxConcurrentConnections("datambnfvygtt") - .withDisableMetricsCollection("datafjalpsycvcksz") - .withWriteBehavior("datapk"); - model = BinaryData.fromObject(model).toObject(CosmosDbMongoDbApiSink.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbMongoDbApiSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbMongoDbApiSourceTests.java deleted file mode 100644 index d652e1811923..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbMongoDbApiSourceTests.java +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CosmosDbMongoDbApiSource; -import com.azure.resourcemanager.datafactory.models.MongoDbCursorMethodsProperties; -import java.util.HashMap; -import java.util.Map; - -public final class CosmosDbMongoDbApiSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CosmosDbMongoDbApiSource model = - BinaryData - .fromString( - "{\"type\":\"CosmosDbMongoDbApiSource\",\"filter\":\"datagabsfjrjzdq\",\"cursorMethods\":{\"project\":\"dataor\",\"sort\":\"datadibepgfrbijoehh\",\"skip\":\"datawsgqziwooet\",\"limit\":\"datassyazmmbuxqtokck\",\"\":{\"yruh\":\"dataftqk\"}},\"batchSize\":\"datawucmqfurbtbogxly\",\"queryTimeout\":\"databvxjguwtsfi\",\"additionalColumns\":\"dataiznbif\",\"sourceRetryCount\":\"dataix\",\"sourceRetryWait\":\"datakj\",\"maxConcurrentConnections\":\"dataxl\",\"disableMetricsCollection\":\"datamvrblj\",\"\":{\"vhtzidzqrpfhzxk\":\"datasaskullvtsauj\",\"bnmthxcmxqdexnkp\":\"dataygkuidgwdhawjco\",\"pnjgiumuztbcjt\":\"dataoxcmsmzy\",\"ehmvrveurpzrysef\":\"datamcnrgwgcstozrv\"}}") - .toObject(CosmosDbMongoDbApiSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CosmosDbMongoDbApiSource model = - new CosmosDbMongoDbApiSource() - .withSourceRetryCount("dataix") - .withSourceRetryWait("datakj") - .withMaxConcurrentConnections("dataxl") - .withDisableMetricsCollection("datamvrblj") - .withFilter("datagabsfjrjzdq") - .withCursorMethods( - new MongoDbCursorMethodsProperties() - .withProject("dataor") - .withSort("datadibepgfrbijoehh") - .withSkip("datawsgqziwooet") - .withLimit("datassyazmmbuxqtokck") - .withAdditionalProperties(mapOf())) - .withBatchSize("datawucmqfurbtbogxly") - .withQueryTimeout("databvxjguwtsfi") - .withAdditionalColumns("dataiznbif"); - model = BinaryData.fromObject(model).toObject(CosmosDbMongoDbApiSource.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbSqlApiCollectionDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbSqlApiCollectionDatasetTests.java deleted file mode 100644 index 9dc97b7a39cf..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbSqlApiCollectionDatasetTests.java +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CosmosDbSqlApiCollectionDataset; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class CosmosDbSqlApiCollectionDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CosmosDbSqlApiCollectionDataset model = - BinaryData - .fromString( - "{\"type\":\"CosmosDbSqlApiCollection\",\"typeProperties\":{\"collectionName\":\"datalvsmfjihv\"},\"description\":\"cqrttjf\",\"structure\":\"datammfjew\",\"schema\":\"dataq\",\"linkedServiceName\":{\"referenceName\":\"avdostw\",\"parameters\":{\"elvxgwzz\":\"datafm\",\"zvzrbvgwxhlx\":\"datawdtlcjgpvc\"}},\"parameters\":{\"vhhplkhwwdk\":{\"type\":\"Array\",\"defaultValue\":\"datadrwynbgovazoym\"},\"yxryearmhpwbuk\":{\"type\":\"Object\",\"defaultValue\":\"dataeqmgkcswz\"}},\"annotations\":[\"datamfasgtlvhqpoilos\",\"dataaemcezevftmh\",\"datal\"],\"folder\":{\"name\":\"jy\"},\"\":{\"miwtpcflcez\":\"datatm\",\"fpf\":\"datawwvwiftdjtv\"}}") - .toObject(CosmosDbSqlApiCollectionDataset.class); - Assertions.assertEquals("cqrttjf", model.description()); - Assertions.assertEquals("avdostw", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("vhhplkhwwdk").type()); - Assertions.assertEquals("jy", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CosmosDbSqlApiCollectionDataset model = - new CosmosDbSqlApiCollectionDataset() - .withDescription("cqrttjf") - .withStructure("datammfjew") - .withSchema("dataq") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("avdostw") - .withParameters(mapOf("elvxgwzz", "datafm", "zvzrbvgwxhlx", "datawdtlcjgpvc"))) - .withParameters( - mapOf( - "vhhplkhwwdk", - new ParameterSpecification() - .withType(ParameterType.ARRAY) - .withDefaultValue("datadrwynbgovazoym"), - "yxryearmhpwbuk", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("dataeqmgkcswz"))) - .withAnnotations(Arrays.asList("datamfasgtlvhqpoilos", "dataaemcezevftmh", "datal")) - .withFolder(new DatasetFolder().withName("jy")) - .withCollectionName("datalvsmfjihv"); - model = BinaryData.fromObject(model).toObject(CosmosDbSqlApiCollectionDataset.class); - Assertions.assertEquals("cqrttjf", model.description()); - Assertions.assertEquals("avdostw", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("vhhplkhwwdk").type()); - Assertions.assertEquals("jy", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbSqlApiCollectionDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbSqlApiCollectionDatasetTypePropertiesTests.java deleted file mode 100644 index 7a7ad3592a40..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbSqlApiCollectionDatasetTypePropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.CosmosDbSqlApiCollectionDatasetTypeProperties; - -public final class CosmosDbSqlApiCollectionDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CosmosDbSqlApiCollectionDatasetTypeProperties model = - BinaryData - .fromString("{\"collectionName\":\"dataruptsyqcjnq\"}") - .toObject(CosmosDbSqlApiCollectionDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CosmosDbSqlApiCollectionDatasetTypeProperties model = - new CosmosDbSqlApiCollectionDatasetTypeProperties().withCollectionName("dataruptsyqcjnq"); - model = BinaryData.fromObject(model).toObject(CosmosDbSqlApiCollectionDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbSqlApiSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbSqlApiSinkTests.java deleted file mode 100644 index ebd1d1cca72a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbSqlApiSinkTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CosmosDbSqlApiSink; - -public final class CosmosDbSqlApiSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CosmosDbSqlApiSink model = - BinaryData - .fromString( - "{\"type\":\"CosmosDbSqlApiSink\",\"writeBehavior\":\"datahbzbbjxkamitgv\",\"writeBatchSize\":\"datapdv\",\"writeBatchTimeout\":\"datayelrteunkwypu\",\"sinkRetryCount\":\"datafmsygt\",\"sinkRetryWait\":\"dataqlfdml\",\"maxConcurrentConnections\":\"datazdbrw\",\"disableMetricsCollection\":\"datawft\",\"\":{\"jsfgkwrcbgxypr\":\"dataxwi\",\"izabjb\":\"databpywecz\"}}") - .toObject(CosmosDbSqlApiSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CosmosDbSqlApiSink model = - new CosmosDbSqlApiSink() - .withWriteBatchSize("datapdv") - .withWriteBatchTimeout("datayelrteunkwypu") - .withSinkRetryCount("datafmsygt") - .withSinkRetryWait("dataqlfdml") - .withMaxConcurrentConnections("datazdbrw") - .withDisableMetricsCollection("datawft") - .withWriteBehavior("datahbzbbjxkamitgv"); - model = BinaryData.fromObject(model).toObject(CosmosDbSqlApiSink.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbSqlApiSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbSqlApiSourceTests.java deleted file mode 100644 index 0180a8bb828b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbSqlApiSourceTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CosmosDbSqlApiSource; - -public final class CosmosDbSqlApiSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CosmosDbSqlApiSource model = - BinaryData - .fromString( - "{\"type\":\"CosmosDbSqlApiSource\",\"query\":\"datatrgyyjea\",\"pageSize\":\"datavjdunbaets\",\"preferredRegions\":\"datafegbvv\",\"detectDatetime\":\"datazygzrzubdtzs\",\"additionalColumns\":\"datahmhzpurnpkk\",\"sourceRetryCount\":\"datakzcfiosralbx\",\"sourceRetryWait\":\"dataxnluvcwuafbh\",\"maxConcurrentConnections\":\"dataaqf\",\"disableMetricsCollection\":\"datafpk\",\"\":{\"efvnvscyut\":\"databkvqogzawfoqdnxu\"}}") - .toObject(CosmosDbSqlApiSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CosmosDbSqlApiSource model = - new CosmosDbSqlApiSource() - .withSourceRetryCount("datakzcfiosralbx") - .withSourceRetryWait("dataxnluvcwuafbh") - .withMaxConcurrentConnections("dataaqf") - .withDisableMetricsCollection("datafpk") - .withQuery("datatrgyyjea") - .withPageSize("datavjdunbaets") - .withPreferredRegions("datafegbvv") - .withDetectDatetime("datazygzrzubdtzs") - .withAdditionalColumns("datahmhzpurnpkk"); - model = BinaryData.fromObject(model).toObject(CosmosDbSqlApiSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CouchbaseSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CouchbaseSourceTests.java deleted file mode 100644 index e7b9e3e2638d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CouchbaseSourceTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CouchbaseSource; - -public final class CouchbaseSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CouchbaseSource model = - BinaryData - .fromString( - "{\"type\":\"CouchbaseSource\",\"query\":\"datafeavz\",\"queryTimeout\":\"datammzisljxphwy\",\"additionalColumns\":\"datamcpfrakucgjreoac\",\"sourceRetryCount\":\"dataaboozxkdzmtkmn\",\"sourceRetryWait\":\"datafdemrc\",\"maxConcurrentConnections\":\"dataxgpkyetm\",\"disableMetricsCollection\":\"datahihixisdvyflkeqg\",\"\":{\"bwlxoczzzlf\":\"datasbtosiwcveqge\",\"thxswuomjdo\":\"datahwdaj\",\"niob\":\"dataufqhq\"}}") - .toObject(CouchbaseSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CouchbaseSource model = - new CouchbaseSource() - .withSourceRetryCount("dataaboozxkdzmtkmn") - .withSourceRetryWait("datafdemrc") - .withMaxConcurrentConnections("dataxgpkyetm") - .withDisableMetricsCollection("datahihixisdvyflkeqg") - .withQueryTimeout("datammzisljxphwy") - .withAdditionalColumns("datamcpfrakucgjreoac") - .withQuery("datafeavz"); - model = BinaryData.fromObject(model).toObject(CouchbaseSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CouchbaseTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CouchbaseTableDatasetTests.java deleted file mode 100644 index a890e95a0e1f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CouchbaseTableDatasetTests.java +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CouchbaseTableDataset; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class CouchbaseTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CouchbaseTableDataset model = - BinaryData - .fromString( - "{\"type\":\"CouchbaseTable\",\"typeProperties\":{\"tableName\":\"datarrsguogk\"},\"description\":\"rotpyabensjflw\",\"structure\":\"datatvvqtmvifgcvsim\",\"schema\":\"databmticxgosnxajp\",\"linkedServiceName\":{\"referenceName\":\"cdfmzxaoxlhmvjc\",\"parameters\":{\"xh\":\"datasbnuc\",\"nkleldk\":\"dataaqoqbvejoysoxovl\",\"qrykkxakruupti\":\"datadlqqhn\"}},\"parameters\":{\"tjekxsnnb\":{\"type\":\"Object\",\"defaultValue\":\"datazgyxccnpxiemacm\"},\"mocnqbbl\":{\"type\":\"Int\",\"defaultValue\":\"datagkt\"}},\"annotations\":[\"dataofzghfuifwxu\",\"dataynohocqxug\"],\"folder\":{\"name\":\"gdcrrfbpl\"},\"\":{\"qe\":\"datahurosdjlzbdmddg\",\"orservpvesors\":\"datay\",\"zydyvtuqvir\":\"dataegclmexafjqzy\",\"igtvjxsocsvjekej\":\"dataunssky\"}}") - .toObject(CouchbaseTableDataset.class); - Assertions.assertEquals("rotpyabensjflw", model.description()); - Assertions.assertEquals("cdfmzxaoxlhmvjc", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("tjekxsnnb").type()); - Assertions.assertEquals("gdcrrfbpl", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CouchbaseTableDataset model = - new CouchbaseTableDataset() - .withDescription("rotpyabensjflw") - .withStructure("datatvvqtmvifgcvsim") - .withSchema("databmticxgosnxajp") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("cdfmzxaoxlhmvjc") - .withParameters( - mapOf( - "xh", "datasbnuc", "nkleldk", "dataaqoqbvejoysoxovl", "qrykkxakruupti", "datadlqqhn"))) - .withParameters( - mapOf( - "tjekxsnnb", - new ParameterSpecification() - .withType(ParameterType.OBJECT) - .withDefaultValue("datazgyxccnpxiemacm"), - "mocnqbbl", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datagkt"))) - .withAnnotations(Arrays.asList("dataofzghfuifwxu", "dataynohocqxug")) - .withFolder(new DatasetFolder().withName("gdcrrfbpl")) - .withTableName("datarrsguogk"); - model = BinaryData.fromObject(model).toObject(CouchbaseTableDataset.class); - Assertions.assertEquals("rotpyabensjflw", model.description()); - Assertions.assertEquals("cdfmzxaoxlhmvjc", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("tjekxsnnb").type()); - Assertions.assertEquals("gdcrrfbpl", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CreateDataFlowDebugSessionRequestTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CreateDataFlowDebugSessionRequestTests.java deleted file mode 100644 index 31d8dff18df0..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CreateDataFlowDebugSessionRequestTests.java +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CreateDataFlowDebugSessionRequest; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntime; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeDebugResource; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class CreateDataFlowDebugSessionRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CreateDataFlowDebugSessionRequest model = - BinaryData - .fromString( - "{\"computeType\":\"foudor\",\"coreCount\":199814192,\"timeToLive\":1885072328,\"integrationRuntime\":{\"properties\":{\"type\":\"IntegrationRuntime\",\"description\":\"otwypundmb\",\"\":{\"or\":\"datagcmjkavl\",\"jltfvnzcyjtotpv\":\"datamftpmdtz\",\"qwthmky\":\"datapvpbdbzqgqqiheds\",\"gqcwdhohsdtmc\":\"databcysih\"}},\"name\":\"sufco\"}}") - .toObject(CreateDataFlowDebugSessionRequest.class); - Assertions.assertEquals("foudor", model.computeType()); - Assertions.assertEquals(199814192, model.coreCount()); - Assertions.assertEquals(1885072328, model.timeToLive()); - Assertions.assertEquals("sufco", model.integrationRuntime().name()); - Assertions.assertEquals("otwypundmb", model.integrationRuntime().properties().description()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CreateDataFlowDebugSessionRequest model = - new CreateDataFlowDebugSessionRequest() - .withComputeType("foudor") - .withCoreCount(199814192) - .withTimeToLive(1885072328) - .withIntegrationRuntime( - new IntegrationRuntimeDebugResource() - .withName("sufco") - .withProperties( - new IntegrationRuntime() - .withDescription("otwypundmb") - .withAdditionalProperties(mapOf("type", "IntegrationRuntime")))); - model = BinaryData.fromObject(model).toObject(CreateDataFlowDebugSessionRequest.class); - Assertions.assertEquals("foudor", model.computeType()); - Assertions.assertEquals(199814192, model.coreCount()); - Assertions.assertEquals(1885072328, model.timeToLive()); - Assertions.assertEquals("sufco", model.integrationRuntime().name()); - Assertions.assertEquals("otwypundmb", model.integrationRuntime().properties().description()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CreateDataFlowDebugSessionResponseInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CreateDataFlowDebugSessionResponseInnerTests.java deleted file mode 100644 index 01cbced56cf9..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CreateDataFlowDebugSessionResponseInnerTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.CreateDataFlowDebugSessionResponseInner; -import org.junit.jupiter.api.Assertions; - -public final class CreateDataFlowDebugSessionResponseInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CreateDataFlowDebugSessionResponseInner model = - BinaryData - .fromString("{\"status\":\"zvd\",\"sessionId\":\"zdix\"}") - .toObject(CreateDataFlowDebugSessionResponseInner.class); - Assertions.assertEquals("zvd", model.status()); - Assertions.assertEquals("zdix", model.sessionId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CreateDataFlowDebugSessionResponseInner model = - new CreateDataFlowDebugSessionResponseInner().withStatus("zvd").withSessionId("zdix"); - model = BinaryData.fromObject(model).toObject(CreateDataFlowDebugSessionResponseInner.class); - Assertions.assertEquals("zvd", model.status()); - Assertions.assertEquals("zdix", model.sessionId()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CreateLinkedIntegrationRuntimeRequestTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CreateLinkedIntegrationRuntimeRequestTests.java deleted file mode 100644 index 2cd62ba2228b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CreateLinkedIntegrationRuntimeRequestTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CreateLinkedIntegrationRuntimeRequest; -import org.junit.jupiter.api.Assertions; - -public final class CreateLinkedIntegrationRuntimeRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CreateLinkedIntegrationRuntimeRequest model = - BinaryData - .fromString( - "{\"name\":\"ni\",\"subscriptionId\":\"x\",\"dataFactoryName\":\"kpycgklwndnhjd\",\"dataFactoryLocation\":\"whvylw\"}") - .toObject(CreateLinkedIntegrationRuntimeRequest.class); - Assertions.assertEquals("ni", model.name()); - Assertions.assertEquals("x", model.subscriptionId()); - Assertions.assertEquals("kpycgklwndnhjd", model.dataFactoryName()); - Assertions.assertEquals("whvylw", model.dataFactoryLocation()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CreateLinkedIntegrationRuntimeRequest model = - new CreateLinkedIntegrationRuntimeRequest() - .withName("ni") - .withSubscriptionId("x") - .withDataFactoryName("kpycgklwndnhjd") - .withDataFactoryLocation("whvylw"); - model = BinaryData.fromObject(model).toObject(CreateLinkedIntegrationRuntimeRequest.class); - Assertions.assertEquals("ni", model.name()); - Assertions.assertEquals("x", model.subscriptionId()); - Assertions.assertEquals("kpycgklwndnhjd", model.dataFactoryName()); - Assertions.assertEquals("whvylw", model.dataFactoryLocation()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CreateRunResponseInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CreateRunResponseInnerTests.java deleted file mode 100644 index 1dc320f0d49e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CreateRunResponseInnerTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.CreateRunResponseInner; -import org.junit.jupiter.api.Assertions; - -public final class CreateRunResponseInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CreateRunResponseInner model = - BinaryData.fromString("{\"runId\":\"vvhmxtdrj\"}").toObject(CreateRunResponseInner.class); - Assertions.assertEquals("vvhmxtdrj", model.runId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CreateRunResponseInner model = new CreateRunResponseInner().withRunId("vvhmxtdrj"); - model = BinaryData.fromObject(model).toObject(CreateRunResponseInner.class); - Assertions.assertEquals("vvhmxtdrj", model.runId()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CredentialListResponseTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CredentialListResponseTests.java deleted file mode 100644 index e0adbecea722..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CredentialListResponseTests.java +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.ManagedIdentityCredentialResourceInner; -import com.azure.resourcemanager.datafactory.models.CredentialListResponse; -import com.azure.resourcemanager.datafactory.models.ManagedIdentityCredential; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class CredentialListResponseTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CredentialListResponse model = - BinaryData - .fromString( - "{\"value\":[{\"properties\":{\"type\":\"ManagedIdentity\",\"typeProperties\":{\"resourceId\":\"qhnlbqnbld\"},\"description\":\"aclgschorimk\",\"annotations\":[\"datarmoucsofl\"],\"\":{\"mxuq\":\"dataviyfcaabeolhbhlv\",\"owlkjxnqpv\":\"databsxtkcudfbsfarfs\",\"tmhqykiz\":\"datagf\"}},\"name\":\"ksaoafcluqvox\",\"type\":\"cjimryvwgcwwpbmz\",\"etag\":\"esyds\",\"id\":\"efoh\"},{\"properties\":{\"type\":\"ManagedIdentity\",\"typeProperties\":{\"resourceId\":\"vopwndyqleallk\"},\"description\":\"tkhlowkxxpvbr\",\"annotations\":[\"datamzsyzfhotl\",\"dataikcyyc\"],\"\":{\"uic\":\"datasjlpjrtwszhv\",\"ubhvj\":\"datahvtrrmhwrbfdpyf\",\"memhooclutnpq\":\"datalrocuyzlwh\"}},\"name\":\"mczjkm\",\"type\":\"kyujxsglhsrrr\",\"etag\":\"jylmbkzudnigr\",\"id\":\"hotj\"},{\"properties\":{\"type\":\"ManagedIdentity\",\"typeProperties\":{\"resourceId\":\"pxuzzjg\"},\"description\":\"efqyhqotoihiqaky\",\"annotations\":[\"datafb\"],\"\":{\"qaxsipietgbebjf\":\"datapzdqtvhcspod\",\"pnfpubntnbat\":\"datalbmoichd\",\"uhplrvkmjcwmjv\":\"dataviqsowsaaelcattc\"}},\"name\":\"fggc\",\"type\":\"yylizrz\",\"etag\":\"psfxsf\",\"id\":\"tl\"},{\"properties\":{\"type\":\"ManagedIdentity\",\"typeProperties\":{\"resourceId\":\"vagbwidqlvhukove\"},\"description\":\"i\",\"annotations\":[\"datajfnmjmvlwyz\"],\"\":{\"jpu\":\"datalkujrllfojui\",\"vtzejetjklnti\":\"datayjucejikzoeo\",\"zolxrzvhqjwtr\":\"datayjuzkdb\",\"rrkolawjmjs\":\"datatgvgzp\"}},\"name\":\"rokcdxfzzzwyjaf\",\"type\":\"lhguyn\",\"etag\":\"hlgmltxdwhmoz\",\"id\":\"gzvlnsnn\"}],\"nextLink\":\"fpafolpymwamxq\"}") - .toObject(CredentialListResponse.class); - Assertions.assertEquals("efoh", model.value().get(0).id()); - Assertions.assertEquals("aclgschorimk", model.value().get(0).properties().description()); - Assertions.assertEquals("qhnlbqnbld", model.value().get(0).properties().resourceId()); - Assertions.assertEquals("fpafolpymwamxq", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CredentialListResponse model = - new CredentialListResponse() - .withValue( - Arrays - .asList( - new ManagedIdentityCredentialResourceInner() - .withId("efoh") - .withProperties( - new ManagedIdentityCredential() - .withDescription("aclgschorimk") - .withAnnotations(Arrays.asList("datarmoucsofl")) - .withResourceId("qhnlbqnbld")), - new ManagedIdentityCredentialResourceInner() - .withId("hotj") - .withProperties( - new ManagedIdentityCredential() - .withDescription("tkhlowkxxpvbr") - .withAnnotations(Arrays.asList("datamzsyzfhotl", "dataikcyyc")) - .withResourceId("vopwndyqleallk")), - new ManagedIdentityCredentialResourceInner() - .withId("tl") - .withProperties( - new ManagedIdentityCredential() - .withDescription("efqyhqotoihiqaky") - .withAnnotations(Arrays.asList("datafb")) - .withResourceId("pxuzzjg")), - new ManagedIdentityCredentialResourceInner() - .withId("gzvlnsnn") - .withProperties( - new ManagedIdentityCredential() - .withDescription("i") - .withAnnotations(Arrays.asList("datajfnmjmvlwyz")) - .withResourceId("vagbwidqlvhukove")))) - .withNextLink("fpafolpymwamxq"); - model = BinaryData.fromObject(model).toObject(CredentialListResponse.class); - Assertions.assertEquals("efoh", model.value().get(0).id()); - Assertions.assertEquals("aclgschorimk", model.value().get(0).properties().description()); - Assertions.assertEquals("qhnlbqnbld", model.value().get(0).properties().resourceId()); - Assertions.assertEquals("fpafolpymwamxq", model.nextLink()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CredentialOperationsCreateOrUpdateWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CredentialOperationsCreateOrUpdateWithResponseMockTests.java deleted file mode 100644 index 4a16892832cc..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CredentialOperationsCreateOrUpdateWithResponseMockTests.java +++ /dev/null @@ -1,81 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.ManagedIdentityCredential; -import com.azure.resourcemanager.datafactory.models.ManagedIdentityCredentialResource; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class CredentialOperationsCreateOrUpdateWithResponseMockTests { - @Test - public void testCreateOrUpdateWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"type\":\"ManagedIdentity\",\"typeProperties\":{\"resourceId\":\"cpwrgry\"},\"description\":\"lrqeqcdikc\",\"annotations\":[\"datazdtfthnjxid\"],\"\":{\"rrzuegindln\":\"datampyixgxtccmqzku\"}},\"name\":\"oapsz\",\"type\":\"n\",\"etag\":\"vyracqmfjihm\",\"id\":\"zwoijtlhxlsxxra\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - ManagedIdentityCredentialResource response = - manager - .credentialOperations() - .define("kiupgmdsz") - .withExistingFactory("lbqdxvxdfkdwk", "mnoecfjw") - .withProperties( - new ManagedIdentityCredential() - .withDescription("ecr") - .withAnnotations(Arrays.asList("datamzqfisggoap", "datadmxwe")) - .withResourceId("djxltjsm")) - .withIfMatch("dxvl") - .create(); - - Assertions.assertEquals("zwoijtlhxlsxxra", response.id()); - Assertions.assertEquals("lrqeqcdikc", response.properties().description()); - Assertions.assertEquals("cpwrgry", response.properties().resourceId()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CredentialOperationsDeleteWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CredentialOperationsDeleteWithResponseMockTests.java deleted file mode 100644 index 5adfc6cce856..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CredentialOperationsDeleteWithResponseMockTests.java +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class CredentialOperationsDeleteWithResponseMockTests { - @Test - public void testDeleteWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.credentialOperations().deleteWithResponse("ghppy", "ro", "ygtetmpw", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CredentialOperationsGetWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CredentialOperationsGetWithResponseMockTests.java deleted file mode 100644 index 84cef0ea8aee..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CredentialOperationsGetWithResponseMockTests.java +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.ManagedIdentityCredentialResource; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class CredentialOperationsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"type\":\"ManagedIdentity\",\"typeProperties\":{\"resourceId\":\"vaxyitnzpfdoete\"},\"description\":\"skqx\",\"annotations\":[\"datawl\",\"dataodrdnfmxomupdqp\",\"dataxivktdvwmefjpo\"],\"\":{\"trlo\":\"datayvbvxlrltr\",\"yr\":\"datarjvr\",\"trzlvfncph\":\"datahfrsyckqwefmq\",\"zg\":\"datalnbawff\"}},\"name\":\"bzmxzrai\",\"type\":\"zgrojpnxzj\",\"etag\":\"cyysyceyk\",\"id\":\"lxhymc\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - ManagedIdentityCredentialResource response = - manager - .credentialOperations() - .getWithResponse("k", "udxvjr", "dbinqqrkkgawnae", "eui", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("lxhymc", response.id()); - Assertions.assertEquals("skqx", response.properties().description()); - Assertions.assertEquals("vaxyitnzpfdoete", response.properties().resourceId()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CredentialOperationsListByFactoryMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CredentialOperationsListByFactoryMockTests.java deleted file mode 100644 index 49d20363f0eb..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CredentialOperationsListByFactoryMockTests.java +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.ManagedIdentityCredentialResource; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class CredentialOperationsListByFactoryMockTests { - @Test - public void testListByFactory() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"properties\":{\"type\":\"ManagedIdentity\",\"typeProperties\":{\"resourceId\":\"yqgfimllradqwpu\"},\"description\":\"uphizztkl\",\"annotations\":[\"datadeehtjmdefkph\",\"datakkivy\"],\"\":{\"curkf\":\"datapcnnpjulpwwmxwl\",\"vruxmpnugujiwi\":\"datazjazepbjukikd\",\"anxs\":\"dataunsvsjo\"}},\"name\":\"tfgh\",\"type\":\"qxruqrobk\",\"etag\":\"npyb\",\"id\":\"kvjbf\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = - manager - .credentialOperations() - .listByFactory("plhfwqdvd", "cohjwzynbhltrmb", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("kvjbf", response.iterator().next().id()); - Assertions.assertEquals("uphizztkl", response.iterator().next().properties().description()); - Assertions.assertEquals("yqgfimllradqwpu", response.iterator().next().properties().resourceId()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CredentialReferenceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CredentialReferenceTests.java deleted file mode 100644 index 2501c54fa558..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CredentialReferenceTests.java +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CredentialReference; -import com.azure.resourcemanager.datafactory.models.CredentialReferenceType; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class CredentialReferenceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CredentialReference model = - BinaryData - .fromString( - "{\"type\":\"CredentialReference\",\"referenceName\":\"lhdyzmyckzex\",\"\":{\"wymxgaabjk\":\"datakck\",\"ogzvk\":\"datatfohf\"}}") - .toObject(CredentialReference.class); - Assertions.assertEquals(CredentialReferenceType.CREDENTIAL_REFERENCE, model.type()); - Assertions.assertEquals("lhdyzmyckzex", model.referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CredentialReference model = - new CredentialReference() - .withType(CredentialReferenceType.CREDENTIAL_REFERENCE) - .withReferenceName("lhdyzmyckzex") - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(CredentialReference.class); - Assertions.assertEquals(CredentialReferenceType.CREDENTIAL_REFERENCE, model.type()); - Assertions.assertEquals("lhdyzmyckzex", model.referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CredentialTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CredentialTests.java deleted file mode 100644 index d43b9df28de4..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CredentialTests.java +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.Credential; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class CredentialTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - Credential model = - BinaryData - .fromString( - "{\"type\":\"Credential\",\"description\":\"pwpgddei\",\"annotations\":[\"datazovgkkumuikj\",\"datajcazt\"],\"\":{\"wxwcomli\":\"datansq\",\"yfdvlvhbwrnfxtgd\":\"dataytwvczcswkacve\",\"kcoeqswank\":\"datapqthehnmnaoya\"}}") - .toObject(Credential.class); - Assertions.assertEquals("pwpgddei", model.description()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Credential model = - new Credential() - .withDescription("pwpgddei") - .withAnnotations(Arrays.asList("datazovgkkumuikj", "datajcazt")) - .withAdditionalProperties(mapOf("type", "Credential")); - model = BinaryData.fromObject(model).toObject(Credential.class); - Assertions.assertEquals("pwpgddei", model.description()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CustomActivityReferenceObjectTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CustomActivityReferenceObjectTests.java deleted file mode 100644 index cdf27d0d9d75..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CustomActivityReferenceObjectTests.java +++ /dev/null @@ -1,115 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CustomActivityReferenceObject; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class CustomActivityReferenceObjectTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CustomActivityReferenceObject model = - BinaryData - .fromString( - "{\"linkedServices\":[{\"referenceName\":\"ufjfordzwbskfex\",\"parameters\":{\"jzliaqpmowlsrxy\":\"datajwf\",\"pqlonz\":\"dataevzqxpmfheht\",\"qqrmck\":\"datahylzzu\",\"sueutby\":\"datam\"}},{\"referenceName\":\"lzgkzhbnbnjpie\",\"parameters\":{\"hsuhkik\":\"dataivsiwws\",\"znmj\":\"datauvpcjyh\"}},{\"referenceName\":\"anrirrnqloomsy\",\"parameters\":{\"kapgdvknquipi\":\"dataga\",\"y\":\"datagvfchzcp\",\"wzpf\":\"datazbo\"}},{\"referenceName\":\"kslvbrxlsbglbf\",\"parameters\":{\"dbhcfswpdarvca\":\"dataiirneop\",\"xucgvz\":\"datasmr\",\"jd\":\"datawvmhbizi\",\"sfyxdfeqrnawnqya\":\"dataeexdboat\"}}],\"datasets\":[{\"referenceName\":\"acojcaraxorqjb\",\"parameters\":{\"tn\":\"datagxogqvwchynr\",\"qvcjspj\":\"dataptwmawypkpbmid\",\"l\":\"datamtsgvvizaygtb\",\"ijpayvlnzwicqopw\":\"datayycgzvqpnjqpwxfk\"}},{\"referenceName\":\"bdleegwlhanyueiz\",\"parameters\":{\"mxbghxiotlf\":\"dataj\",\"icoaysargqkgaus\":\"databjsvuqkbs\",\"lkxvfejdgoj\":\"dataugdyfyjeex\",\"yyyo\":\"datavqezekkv\"}},{\"referenceName\":\"jpsmnxccasuh\",\"parameters\":{\"fhfjf\":\"datahmkqyfatdd\"}},{\"referenceName\":\"to\",\"parameters\":{\"nmxzu\":\"datawzkxaglwdntj\"}}]}") - .toObject(CustomActivityReferenceObject.class); - Assertions.assertEquals("ufjfordzwbskfex", model.linkedServices().get(0).referenceName()); - Assertions.assertEquals("acojcaraxorqjb", model.datasets().get(0).referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CustomActivityReferenceObject model = - new CustomActivityReferenceObject() - .withLinkedServices( - Arrays - .asList( - new LinkedServiceReference() - .withReferenceName("ufjfordzwbskfex") - .withParameters( - mapOf( - "jzliaqpmowlsrxy", - "datajwf", - "pqlonz", - "dataevzqxpmfheht", - "qqrmck", - "datahylzzu", - "sueutby", - "datam")), - new LinkedServiceReference() - .withReferenceName("lzgkzhbnbnjpie") - .withParameters(mapOf("hsuhkik", "dataivsiwws", "znmj", "datauvpcjyh")), - new LinkedServiceReference() - .withReferenceName("anrirrnqloomsy") - .withParameters( - mapOf("kapgdvknquipi", "dataga", "y", "datagvfchzcp", "wzpf", "datazbo")), - new LinkedServiceReference() - .withReferenceName("kslvbrxlsbglbf") - .withParameters( - mapOf( - "dbhcfswpdarvca", - "dataiirneop", - "xucgvz", - "datasmr", - "jd", - "datawvmhbizi", - "sfyxdfeqrnawnqya", - "dataeexdboat")))) - .withDatasets( - Arrays - .asList( - new DatasetReference() - .withReferenceName("acojcaraxorqjb") - .withParameters( - mapOf( - "tn", - "datagxogqvwchynr", - "qvcjspj", - "dataptwmawypkpbmid", - "l", - "datamtsgvvizaygtb", - "ijpayvlnzwicqopw", - "datayycgzvqpnjqpwxfk")), - new DatasetReference() - .withReferenceName("bdleegwlhanyueiz") - .withParameters( - mapOf( - "mxbghxiotlf", - "dataj", - "icoaysargqkgaus", - "databjsvuqkbs", - "lkxvfejdgoj", - "dataugdyfyjeex", - "yyyo", - "datavqezekkv")), - new DatasetReference() - .withReferenceName("jpsmnxccasuh") - .withParameters(mapOf("fhfjf", "datahmkqyfatdd")), - new DatasetReference() - .withReferenceName("to") - .withParameters(mapOf("nmxzu", "datawzkxaglwdntj")))); - model = BinaryData.fromObject(model).toObject(CustomActivityReferenceObject.class); - Assertions.assertEquals("ufjfordzwbskfex", model.linkedServices().get(0).referenceName()); - Assertions.assertEquals("acojcaraxorqjb", model.datasets().get(0).referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CustomActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CustomActivityTests.java deleted file mode 100644 index f17447590d5f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CustomActivityTests.java +++ /dev/null @@ -1,183 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityPolicy; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.CustomActivity; -import com.azure.resourcemanager.datafactory.models.CustomActivityReferenceObject; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class CustomActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CustomActivity model = - BinaryData - .fromString( - "{\"type\":\"Custom\",\"typeProperties\":{\"command\":\"dataobhltmpay\",\"resourceLinkedService\":{\"referenceName\":\"qgrsytto\",\"parameters\":{\"ca\":\"databbxifacrhpu\",\"wtosuiguoemo\":\"datazpvp\",\"oxwyxodpcgdv\":\"datandbuexr\",\"xdafilaizcd\":\"datatnbk\"}},\"folderPath\":\"datanz\",\"referenceObjects\":{\"linkedServices\":[{\"referenceName\":\"gaykaqwnkxoq\",\"parameters\":{\"vmuewshhq\":\"dataznuqgl\",\"czzjfzjovwizjrak\":\"datajvchliezfb\"}},{\"referenceName\":\"ahwqpuklt\",\"parameters\":{\"bz\":\"dataroxmis\",\"fvqtvukcfesizkn\":\"dataz\",\"xflzhgr\":\"datac\"}}],\"datasets\":[{\"referenceName\":\"ysdmovbvnjyq\",\"parameters\":{\"rggytyvox\":\"datadgzlykczolnd\",\"ukfwmhzarrfttx\":\"datajbyjgobzj\"}},{\"referenceName\":\"ifrjgvhone\",\"parameters\":{\"lmkfvsol\":\"dataab\"}},{\"referenceName\":\"jowvzyoehlj\",\"parameters\":{\"othnucqktuaerg\":\"datag\",\"dlbahmivtuphwwy\":\"datatpriicte\",\"fxfteo\":\"dataxo\",\"qap\":\"datanrziwkcpxgjmyou\"}},{\"referenceName\":\"aypcdikkmyrs\",\"parameters\":{\"gg\":\"datat\",\"sxjzklqkgjukntkn\":\"datapohuv\"}}]},\"extendedProperties\":{\"ehptl\":\"datawgziqcwnef\",\"nes\":\"datawnlauw\",\"mgeuoihtik\":\"datax\",\"xyavcb\":\"dataiwp\"},\"retentionTimeInDays\":\"datauwctvbhcjfgxtljy\",\"autoUserSpecification\":\"datayhpbtwzrziv\"},\"linkedServiceName\":{\"referenceName\":\"kdcjymdoldbuy\",\"parameters\":{\"rsdoxhyiyag\":\"dataephviuexf\",\"uffkmtiuxynkh\":\"datax\"}},\"policy\":{\"timeout\":\"dataqlhzdbbitpgr\",\"retry\":\"datapmsdgmxwfodvzpxm\",\"retryIntervalInSeconds\":83893803,\"secureInput\":false,\"secureOutput\":true,\"\":{\"svjodgplagwvgb\":\"datayevhnqtb\"}},\"name\":\"xmqudnqcbbbhin\",\"description\":\"yszlbfzkvrmd\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"qdnrgnybp\",\"dependencyConditions\":[\"Failed\",\"Completed\",\"Skipped\"],\"\":{\"pmcl\":\"datahxunqrvqticgsd\",\"dabh\":\"datau\",\"y\":\"datadcqrssqwzndzuxlg\"}},{\"activity\":\"ngyqlzozmbapj\",\"dependencyConditions\":[\"Succeeded\",\"Skipped\",\"Succeeded\"],\"\":{\"lzk\":\"datapnt\",\"bp\":\"datamcg\"}},{\"activity\":\"fbgfwjqw\",\"dependencyConditions\":[\"Skipped\"],\"\":{\"xxdrgbnq\":\"datav\",\"mexwg\":\"datahrw\",\"ugxudsmdglq\":\"dataflq\",\"tjd\":\"datak\"}}],\"userProperties\":[{\"name\":\"somxwsflylols\",\"value\":\"dataficzw\"},{\"name\":\"kglmcg\",\"value\":\"datazzeqd\"},{\"name\":\"xurbj\",\"value\":\"datakar\"}],\"\":{\"qxoqnvijhdcol\":\"datauzvtwf\"}}") - .toObject(CustomActivity.class); - Assertions.assertEquals("xmqudnqcbbbhin", model.name()); - Assertions.assertEquals("yszlbfzkvrmd", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.onInactiveMarkAs()); - Assertions.assertEquals("qdnrgnybp", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("somxwsflylols", model.userProperties().get(0).name()); - Assertions.assertEquals("kdcjymdoldbuy", model.linkedServiceName().referenceName()); - Assertions.assertEquals(83893803, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - Assertions.assertEquals("qgrsytto", model.resourceLinkedService().referenceName()); - Assertions.assertEquals("gaykaqwnkxoq", model.referenceObjects().linkedServices().get(0).referenceName()); - Assertions.assertEquals("ysdmovbvnjyq", model.referenceObjects().datasets().get(0).referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CustomActivity model = - new CustomActivity() - .withName("xmqudnqcbbbhin") - .withDescription("yszlbfzkvrmd") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("qdnrgnybp") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.FAILED, - DependencyCondition.COMPLETED, - DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("ngyqlzozmbapj") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.SUCCEEDED, - DependencyCondition.SKIPPED, - DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("fbgfwjqw") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays - .asList( - new UserProperty().withName("somxwsflylols").withValue("dataficzw"), - new UserProperty().withName("kglmcg").withValue("datazzeqd"), - new UserProperty().withName("xurbj").withValue("datakar"))) - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("kdcjymdoldbuy") - .withParameters(mapOf("rsdoxhyiyag", "dataephviuexf", "uffkmtiuxynkh", "datax"))) - .withPolicy( - new ActivityPolicy() - .withTimeout("dataqlhzdbbitpgr") - .withRetry("datapmsdgmxwfodvzpxm") - .withRetryIntervalInSeconds(83893803) - .withSecureInput(false) - .withSecureOutput(true) - .withAdditionalProperties(mapOf())) - .withCommand("dataobhltmpay") - .withResourceLinkedService( - new LinkedServiceReference() - .withReferenceName("qgrsytto") - .withParameters( - mapOf( - "ca", - "databbxifacrhpu", - "wtosuiguoemo", - "datazpvp", - "oxwyxodpcgdv", - "datandbuexr", - "xdafilaizcd", - "datatnbk"))) - .withFolderPath("datanz") - .withReferenceObjects( - new CustomActivityReferenceObject() - .withLinkedServices( - Arrays - .asList( - new LinkedServiceReference() - .withReferenceName("gaykaqwnkxoq") - .withParameters( - mapOf("vmuewshhq", "dataznuqgl", "czzjfzjovwizjrak", "datajvchliezfb")), - new LinkedServiceReference() - .withReferenceName("ahwqpuklt") - .withParameters( - mapOf("bz", "dataroxmis", "fvqtvukcfesizkn", "dataz", "xflzhgr", "datac")))) - .withDatasets( - Arrays - .asList( - new DatasetReference() - .withReferenceName("ysdmovbvnjyq") - .withParameters( - mapOf("rggytyvox", "datadgzlykczolnd", "ukfwmhzarrfttx", "datajbyjgobzj")), - new DatasetReference() - .withReferenceName("ifrjgvhone") - .withParameters(mapOf("lmkfvsol", "dataab")), - new DatasetReference() - .withReferenceName("jowvzyoehlj") - .withParameters( - mapOf( - "othnucqktuaerg", - "datag", - "dlbahmivtuphwwy", - "datatpriicte", - "fxfteo", - "dataxo", - "qap", - "datanrziwkcpxgjmyou")), - new DatasetReference() - .withReferenceName("aypcdikkmyrs") - .withParameters(mapOf("gg", "datat", "sxjzklqkgjukntkn", "datapohuv"))))) - .withExtendedProperties( - mapOf("ehptl", "datawgziqcwnef", "nes", "datawnlauw", "mgeuoihtik", "datax", "xyavcb", "dataiwp")) - .withRetentionTimeInDays("datauwctvbhcjfgxtljy") - .withAutoUserSpecification("datayhpbtwzrziv"); - model = BinaryData.fromObject(model).toObject(CustomActivity.class); - Assertions.assertEquals("xmqudnqcbbbhin", model.name()); - Assertions.assertEquals("yszlbfzkvrmd", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.onInactiveMarkAs()); - Assertions.assertEquals("qdnrgnybp", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("somxwsflylols", model.userProperties().get(0).name()); - Assertions.assertEquals("kdcjymdoldbuy", model.linkedServiceName().referenceName()); - Assertions.assertEquals(83893803, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - Assertions.assertEquals("qgrsytto", model.resourceLinkedService().referenceName()); - Assertions.assertEquals("gaykaqwnkxoq", model.referenceObjects().linkedServices().get(0).referenceName()); - Assertions.assertEquals("ysdmovbvnjyq", model.referenceObjects().datasets().get(0).referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CustomActivityTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CustomActivityTypePropertiesTests.java deleted file mode 100644 index dcefea71450a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CustomActivityTypePropertiesTests.java +++ /dev/null @@ -1,114 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.CustomActivityTypeProperties; -import com.azure.resourcemanager.datafactory.models.CustomActivityReferenceObject; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class CustomActivityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CustomActivityTypeProperties model = - BinaryData - .fromString( - "{\"command\":\"dataxwdppiodnntol\",\"resourceLinkedService\":{\"referenceName\":\"zptngr\",\"parameters\":{\"u\":\"dataimxacxcaczcdkomr\",\"jnxdyskyrhsijxml\":\"dataytjxpdqwy\"}},\"folderPath\":\"dataymfxjsuwmbdt\",\"referenceObjects\":{\"linkedServices\":[{\"referenceName\":\"gzybp\",\"parameters\":{\"vnqszqkrsnxue\":\"datapghloemqa\",\"tmtgk\":\"datawrbqadtvpgu\",\"xxe\":\"dataiv\",\"odvzjkz\":\"dataplphkiyiqpi\"}},{\"referenceName\":\"lvxdpopubbwps\",\"parameters\":{\"w\":\"datab\",\"mmgf\":\"datahjqakacbcbrsnnv\",\"qmty\":\"datat\",\"jkbisjurilqc\":\"dataqut\"}}],\"datasets\":[{\"referenceName\":\"dorbufog\",\"parameters\":{\"qajsuauwojgvp\":\"databiz\",\"nbr\":\"datazvtgwlzqcyvrbg\",\"ubnnmzz\":\"dataekjbljfk\"}},{\"referenceName\":\"bcxbvnh\",\"parameters\":{\"asxak\":\"datadfxxaoyisky\",\"mqkgc\":\"dataqbwjtnfa\",\"s\":\"dataldxuweweeegsz\",\"hfcdhbcr\":\"dataryfap\"}}]},\"extendedProperties\":{\"nfrhbkn\":\"datadszuxhaqlywty\",\"xhfg\":\"dataagpnmcqud\"},\"retentionTimeInDays\":\"datazegm\",\"autoUserSpecification\":\"dataebzoujhijlduuvxk\"}") - .toObject(CustomActivityTypeProperties.class); - Assertions.assertEquals("zptngr", model.resourceLinkedService().referenceName()); - Assertions.assertEquals("gzybp", model.referenceObjects().linkedServices().get(0).referenceName()); - Assertions.assertEquals("dorbufog", model.referenceObjects().datasets().get(0).referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CustomActivityTypeProperties model = - new CustomActivityTypeProperties() - .withCommand("dataxwdppiodnntol") - .withResourceLinkedService( - new LinkedServiceReference() - .withReferenceName("zptngr") - .withParameters(mapOf("u", "dataimxacxcaczcdkomr", "jnxdyskyrhsijxml", "dataytjxpdqwy"))) - .withFolderPath("dataymfxjsuwmbdt") - .withReferenceObjects( - new CustomActivityReferenceObject() - .withLinkedServices( - Arrays - .asList( - new LinkedServiceReference() - .withReferenceName("gzybp") - .withParameters( - mapOf( - "vnqszqkrsnxue", - "datapghloemqa", - "tmtgk", - "datawrbqadtvpgu", - "xxe", - "dataiv", - "odvzjkz", - "dataplphkiyiqpi")), - new LinkedServiceReference() - .withReferenceName("lvxdpopubbwps") - .withParameters( - mapOf( - "w", - "datab", - "mmgf", - "datahjqakacbcbrsnnv", - "qmty", - "datat", - "jkbisjurilqc", - "dataqut")))) - .withDatasets( - Arrays - .asList( - new DatasetReference() - .withReferenceName("dorbufog") - .withParameters( - mapOf( - "qajsuauwojgvp", - "databiz", - "nbr", - "datazvtgwlzqcyvrbg", - "ubnnmzz", - "dataekjbljfk")), - new DatasetReference() - .withReferenceName("bcxbvnh") - .withParameters( - mapOf( - "asxak", - "datadfxxaoyisky", - "mqkgc", - "dataqbwjtnfa", - "s", - "dataldxuweweeegsz", - "hfcdhbcr", - "dataryfap"))))) - .withExtendedProperties(mapOf("nfrhbkn", "datadszuxhaqlywty", "xhfg", "dataagpnmcqud")) - .withRetentionTimeInDays("datazegm") - .withAutoUserSpecification("dataebzoujhijlduuvxk"); - model = BinaryData.fromObject(model).toObject(CustomActivityTypeProperties.class); - Assertions.assertEquals("zptngr", model.resourceLinkedService().referenceName()); - Assertions.assertEquals("gzybp", model.referenceObjects().linkedServices().get(0).referenceName()); - Assertions.assertEquals("dorbufog", model.referenceObjects().datasets().get(0).referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CustomDataSourceLinkedServiceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CustomDataSourceLinkedServiceTests.java deleted file mode 100644 index f61d438e781a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CustomDataSourceLinkedServiceTests.java +++ /dev/null @@ -1,71 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CustomDataSourceLinkedService; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class CustomDataSourceLinkedServiceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CustomDataSourceLinkedService model = - BinaryData - .fromString( - "{\"type\":\"CustomDataSource\",\"typeProperties\":\"datadzpx\",\"connectVia\":{\"referenceName\":\"kqlvbk\",\"parameters\":{\"iviniyoizuwwzc\":\"datayrnww\",\"xajsiueai\":\"dataigbjbelnqalbso\",\"zbwxuypcuri\":\"dataqjb\"}},\"description\":\"lxtclveqdqt\",\"parameters\":{\"iysgh\":{\"type\":\"Bool\",\"defaultValue\":\"datawjxry\"},\"kw\":{\"type\":\"Bool\",\"defaultValue\":\"dataqdl\"}},\"annotations\":[\"datakbv\"],\"\":{\"atpialrqhwcxxccf\":\"datamkaadnxbs\"}}") - .toObject(CustomDataSourceLinkedService.class); - Assertions.assertEquals("kqlvbk", model.connectVia().referenceName()); - Assertions.assertEquals("lxtclveqdqt", model.description()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("iysgh").type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CustomDataSourceLinkedService model = - new CustomDataSourceLinkedService() - .withConnectVia( - new IntegrationRuntimeReference() - .withReferenceName("kqlvbk") - .withParameters( - mapOf( - "iviniyoizuwwzc", - "datayrnww", - "xajsiueai", - "dataigbjbelnqalbso", - "zbwxuypcuri", - "dataqjb"))) - .withDescription("lxtclveqdqt") - .withParameters( - mapOf( - "iysgh", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datawjxry"), - "kw", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("dataqdl"))) - .withAnnotations(Arrays.asList("datakbv")) - .withTypeProperties("datadzpx"); - model = BinaryData.fromObject(model).toObject(CustomDataSourceLinkedService.class); - Assertions.assertEquals("kqlvbk", model.connectVia().referenceName()); - Assertions.assertEquals("lxtclveqdqt", model.description()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("iysgh").type()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CustomDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CustomDatasetTests.java deleted file mode 100644 index e2e837233f5c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CustomDatasetTests.java +++ /dev/null @@ -1,78 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CustomDataset; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class CustomDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CustomDataset model = - BinaryData - .fromString( - "{\"type\":\"CustomDataset\",\"typeProperties\":\"datafgufjnbx\",\"description\":\"mwdukinhl\",\"structure\":\"datagde\",\"schema\":\"datakzou\",\"linkedServiceName\":{\"referenceName\":\"vewwpzrdwcgldo\",\"parameters\":{\"dxfhhht\":\"dataa\",\"qtdn\":\"datast\",\"dshvvf\":\"datackkpl\"}},\"parameters\":{\"zrqnjxm\":{\"type\":\"Int\",\"defaultValue\":\"datayijjimhi\"},\"hqld\":{\"type\":\"String\",\"defaultValue\":\"dataduydwnwgru\"},\"i\":{\"type\":\"Array\",\"defaultValue\":\"datamnswxiexqwqnghx\"},\"qtny\":{\"type\":\"Array\",\"defaultValue\":\"dataujrxgunnqgyp\"}},\"annotations\":[\"datae\",\"dataqmvyumgmmuebsnzn\",\"datagsqufmjxcyo\"],\"folder\":{\"name\":\"cazisvbrqgcyjpg\"},\"\":{\"tbgblxbuibrvjzta\":\"datapkwonrzpghlr\"}}") - .toObject(CustomDataset.class); - Assertions.assertEquals("mwdukinhl", model.description()); - Assertions.assertEquals("vewwpzrdwcgldo", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("zrqnjxm").type()); - Assertions.assertEquals("cazisvbrqgcyjpg", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CustomDataset model = - new CustomDataset() - .withDescription("mwdukinhl") - .withStructure("datagde") - .withSchema("datakzou") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("vewwpzrdwcgldo") - .withParameters(mapOf("dxfhhht", "dataa", "qtdn", "datast", "dshvvf", "datackkpl"))) - .withParameters( - mapOf( - "zrqnjxm", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datayijjimhi"), - "hqld", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("dataduydwnwgru"), - "i", - new ParameterSpecification() - .withType(ParameterType.ARRAY) - .withDefaultValue("datamnswxiexqwqnghx"), - "qtny", - new ParameterSpecification() - .withType(ParameterType.ARRAY) - .withDefaultValue("dataujrxgunnqgyp"))) - .withAnnotations(Arrays.asList("datae", "dataqmvyumgmmuebsnzn", "datagsqufmjxcyo")) - .withFolder(new DatasetFolder().withName("cazisvbrqgcyjpg")) - .withTypeProperties("datafgufjnbx"); - model = BinaryData.fromObject(model).toObject(CustomDataset.class); - Assertions.assertEquals("mwdukinhl", model.description()); - Assertions.assertEquals("vewwpzrdwcgldo", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("zrqnjxm").type()); - Assertions.assertEquals("cazisvbrqgcyjpg", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CustomEventsTriggerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CustomEventsTriggerTests.java deleted file mode 100644 index 453322e821c9..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CustomEventsTriggerTests.java +++ /dev/null @@ -1,69 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CustomEventsTrigger; -import com.azure.resourcemanager.datafactory.models.PipelineReference; -import com.azure.resourcemanager.datafactory.models.TriggerPipelineReference; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class CustomEventsTriggerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CustomEventsTrigger model = - BinaryData - .fromString( - "{\"type\":\"CustomEventsTrigger\",\"typeProperties\":{\"subjectBeginsWith\":\"qdj\",\"subjectEndsWith\":\"u\",\"events\":[\"datayjmjvzpldhbapfrr\",\"datawrmdmrhsybvn\",\"dataaxmipkatjyxh\"],\"scope\":\"jjvsvlmdlysf\"},\"pipelines\":[{\"pipelineReference\":{\"referenceName\":\"floamgnpfiiv\",\"name\":\"snrknikpgjuk\"},\"parameters\":{\"ycl\":\"datayl\"}}],\"description\":\"epashmfbzkfehrs\",\"runtimeState\":\"Disabled\",\"annotations\":[\"datasuwsuroddohn\",\"databbxa\"],\"\":{\"soiekdmnva\":\"dataorsandslrndi\",\"fdextdarnhpxz\":\"databhxujgyzfsswezn\"}}") - .toObject(CustomEventsTrigger.class); - Assertions.assertEquals("epashmfbzkfehrs", model.description()); - Assertions.assertEquals("floamgnpfiiv", model.pipelines().get(0).pipelineReference().referenceName()); - Assertions.assertEquals("snrknikpgjuk", model.pipelines().get(0).pipelineReference().name()); - Assertions.assertEquals("qdj", model.subjectBeginsWith()); - Assertions.assertEquals("u", model.subjectEndsWith()); - Assertions.assertEquals("jjvsvlmdlysf", model.scope()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CustomEventsTrigger model = - new CustomEventsTrigger() - .withDescription("epashmfbzkfehrs") - .withAnnotations(Arrays.asList("datasuwsuroddohn", "databbxa")) - .withPipelines( - Arrays - .asList( - new TriggerPipelineReference() - .withPipelineReference( - new PipelineReference().withReferenceName("floamgnpfiiv").withName("snrknikpgjuk")) - .withParameters(mapOf("ycl", "datayl")))) - .withSubjectBeginsWith("qdj") - .withSubjectEndsWith("u") - .withEvents(Arrays.asList("datayjmjvzpldhbapfrr", "datawrmdmrhsybvn", "dataaxmipkatjyxh")) - .withScope("jjvsvlmdlysf"); - model = BinaryData.fromObject(model).toObject(CustomEventsTrigger.class); - Assertions.assertEquals("epashmfbzkfehrs", model.description()); - Assertions.assertEquals("floamgnpfiiv", model.pipelines().get(0).pipelineReference().referenceName()); - Assertions.assertEquals("snrknikpgjuk", model.pipelines().get(0).pipelineReference().name()); - Assertions.assertEquals("qdj", model.subjectBeginsWith()); - Assertions.assertEquals("u", model.subjectEndsWith()); - Assertions.assertEquals("jjvsvlmdlysf", model.scope()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CustomEventsTriggerTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CustomEventsTriggerTypePropertiesTests.java deleted file mode 100644 index cc91ce504f41..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CustomEventsTriggerTypePropertiesTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.CustomEventsTriggerTypeProperties; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class CustomEventsTriggerTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CustomEventsTriggerTypeProperties model = - BinaryData - .fromString( - "{\"subjectBeginsWith\":\"jbvz\",\"subjectEndsWith\":\"ecisnhtdskenigoh\",\"events\":[\"dataudteowep\"],\"scope\":\"eqgrcnfhcq\"}") - .toObject(CustomEventsTriggerTypeProperties.class); - Assertions.assertEquals("jbvz", model.subjectBeginsWith()); - Assertions.assertEquals("ecisnhtdskenigoh", model.subjectEndsWith()); - Assertions.assertEquals("eqgrcnfhcq", model.scope()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CustomEventsTriggerTypeProperties model = - new CustomEventsTriggerTypeProperties() - .withSubjectBeginsWith("jbvz") - .withSubjectEndsWith("ecisnhtdskenigoh") - .withEvents(Arrays.asList("dataudteowep")) - .withScope("eqgrcnfhcq"); - model = BinaryData.fromObject(model).toObject(CustomEventsTriggerTypeProperties.class); - Assertions.assertEquals("jbvz", model.subjectBeginsWith()); - Assertions.assertEquals("ecisnhtdskenigoh", model.subjectEndsWith()); - Assertions.assertEquals("eqgrcnfhcq", model.scope()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CustomSetupBaseTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CustomSetupBaseTests.java deleted file mode 100644 index a748844197db..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CustomSetupBaseTests.java +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CustomSetupBase; - -public final class CustomSetupBaseTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CustomSetupBase model = BinaryData.fromString("{\"type\":\"CustomSetupBase\"}").toObject(CustomSetupBase.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CustomSetupBase model = new CustomSetupBase(); - model = BinaryData.fromObject(model).toObject(CustomSetupBase.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DWCopyCommandDefaultValueTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DWCopyCommandDefaultValueTests.java deleted file mode 100644 index fc5cfc0bb277..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DWCopyCommandDefaultValueTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DWCopyCommandDefaultValue; - -public final class DWCopyCommandDefaultValueTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DWCopyCommandDefaultValue model = - BinaryData - .fromString("{\"columnName\":\"datasyvryo\",\"defaultValue\":\"dataqikcork\"}") - .toObject(DWCopyCommandDefaultValue.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DWCopyCommandDefaultValue model = - new DWCopyCommandDefaultValue().withColumnName("datasyvryo").withDefaultValue("dataqikcork"); - model = BinaryData.fromObject(model).toObject(DWCopyCommandDefaultValue.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DWCopyCommandSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DWCopyCommandSettingsTests.java deleted file mode 100644 index cf78e6f9370d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DWCopyCommandSettingsTests.java +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DWCopyCommandDefaultValue; -import com.azure.resourcemanager.datafactory.models.DWCopyCommandSettings; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DWCopyCommandSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DWCopyCommandSettings model = - BinaryData - .fromString( - "{\"defaultValues\":[{\"columnName\":\"datamcrhyoes\",\"defaultValue\":\"datalmytnhvy\"},{\"columnName\":\"datafe\",\"defaultValue\":\"dataxgstiawywppq\"},{\"columnName\":\"datajxbdyczplmljcisx\",\"defaultValue\":\"datas\"},{\"columnName\":\"datayt\",\"defaultValue\":\"datamufdynhqlzanta\"}],\"additionalOptions\":{\"oadwiqnsmpfeyjvl\":\"kxsjympsx\"}}") - .toObject(DWCopyCommandSettings.class); - Assertions.assertEquals("kxsjympsx", model.additionalOptions().get("oadwiqnsmpfeyjvl")); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DWCopyCommandSettings model = - new DWCopyCommandSettings() - .withDefaultValues( - Arrays - .asList( - new DWCopyCommandDefaultValue() - .withColumnName("datamcrhyoes") - .withDefaultValue("datalmytnhvy"), - new DWCopyCommandDefaultValue() - .withColumnName("datafe") - .withDefaultValue("dataxgstiawywppq"), - new DWCopyCommandDefaultValue() - .withColumnName("datajxbdyczplmljcisx") - .withDefaultValue("datas"), - new DWCopyCommandDefaultValue() - .withColumnName("datayt") - .withDefaultValue("datamufdynhqlzanta"))) - .withAdditionalOptions(mapOf("oadwiqnsmpfeyjvl", "kxsjympsx")); - model = BinaryData.fromObject(model).toObject(DWCopyCommandSettings.class); - Assertions.assertEquals("kxsjympsx", model.additionalOptions().get("oadwiqnsmpfeyjvl")); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugCommandPayloadTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugCommandPayloadTests.java deleted file mode 100644 index 1b6a9939839f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugCommandPayloadTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DataFlowDebugCommandPayload; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class DataFlowDebugCommandPayloadTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataFlowDebugCommandPayload model = - BinaryData - .fromString( - "{\"streamName\":\"uartvti\",\"rowLimits\":1848545940,\"columns\":[\"chnmna\",\"mnxhkxjqirwrweo\"],\"expression\":\"ffifhx\"}") - .toObject(DataFlowDebugCommandPayload.class); - Assertions.assertEquals("uartvti", model.streamName()); - Assertions.assertEquals(1848545940, model.rowLimits()); - Assertions.assertEquals("chnmna", model.columns().get(0)); - Assertions.assertEquals("ffifhx", model.expression()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataFlowDebugCommandPayload model = - new DataFlowDebugCommandPayload() - .withStreamName("uartvti") - .withRowLimits(1848545940) - .withColumns(Arrays.asList("chnmna", "mnxhkxjqirwrweo")) - .withExpression("ffifhx"); - model = BinaryData.fromObject(model).toObject(DataFlowDebugCommandPayload.class); - Assertions.assertEquals("uartvti", model.streamName()); - Assertions.assertEquals(1848545940, model.rowLimits()); - Assertions.assertEquals("chnmna", model.columns().get(0)); - Assertions.assertEquals("ffifhx", model.expression()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugCommandRequestTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugCommandRequestTests.java deleted file mode 100644 index b74fa0011b9e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugCommandRequestTests.java +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DataFlowDebugCommandPayload; -import com.azure.resourcemanager.datafactory.models.DataFlowDebugCommandRequest; -import com.azure.resourcemanager.datafactory.models.DataFlowDebugCommandType; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class DataFlowDebugCommandRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataFlowDebugCommandRequest model = - BinaryData - .fromString( - "{\"sessionId\":\"fcbahhp\",\"command\":\"executeExpressionQuery\",\"commandPayload\":{\"streamName\":\"o\",\"rowLimits\":2134608057,\"columns\":[\"filkmkkholv\"],\"expression\":\"dviauogp\"}}") - .toObject(DataFlowDebugCommandRequest.class); - Assertions.assertEquals("fcbahhp", model.sessionId()); - Assertions.assertEquals(DataFlowDebugCommandType.EXECUTE_EXPRESSION_QUERY, model.command()); - Assertions.assertEquals("o", model.commandPayload().streamName()); - Assertions.assertEquals(2134608057, model.commandPayload().rowLimits()); - Assertions.assertEquals("filkmkkholv", model.commandPayload().columns().get(0)); - Assertions.assertEquals("dviauogp", model.commandPayload().expression()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataFlowDebugCommandRequest model = - new DataFlowDebugCommandRequest() - .withSessionId("fcbahhp") - .withCommand(DataFlowDebugCommandType.EXECUTE_EXPRESSION_QUERY) - .withCommandPayload( - new DataFlowDebugCommandPayload() - .withStreamName("o") - .withRowLimits(2134608057) - .withColumns(Arrays.asList("filkmkkholv")) - .withExpression("dviauogp")); - model = BinaryData.fromObject(model).toObject(DataFlowDebugCommandRequest.class); - Assertions.assertEquals("fcbahhp", model.sessionId()); - Assertions.assertEquals(DataFlowDebugCommandType.EXECUTE_EXPRESSION_QUERY, model.command()); - Assertions.assertEquals("o", model.commandPayload().streamName()); - Assertions.assertEquals(2134608057, model.commandPayload().rowLimits()); - Assertions.assertEquals("filkmkkholv", model.commandPayload().columns().get(0)); - Assertions.assertEquals("dviauogp", model.commandPayload().expression()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugCommandResponseInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugCommandResponseInnerTests.java deleted file mode 100644 index d4183544aec9..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugCommandResponseInnerTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.DataFlowDebugCommandResponseInner; -import org.junit.jupiter.api.Assertions; - -public final class DataFlowDebugCommandResponseInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataFlowDebugCommandResponseInner model = - BinaryData - .fromString("{\"status\":\"snewmozqvbub\",\"data\":\"amhsycxhxzgazt\"}") - .toObject(DataFlowDebugCommandResponseInner.class); - Assertions.assertEquals("snewmozqvbub", model.status()); - Assertions.assertEquals("amhsycxhxzgazt", model.data()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataFlowDebugCommandResponseInner model = - new DataFlowDebugCommandResponseInner().withStatus("snewmozqvbub").withData("amhsycxhxzgazt"); - model = BinaryData.fromObject(model).toObject(DataFlowDebugCommandResponseInner.class); - Assertions.assertEquals("snewmozqvbub", model.status()); - Assertions.assertEquals("amhsycxhxzgazt", model.data()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugPackageDebugSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugPackageDebugSettingsTests.java deleted file mode 100644 index 5ae625ba11ee..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugPackageDebugSettingsTests.java +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DataFlowDebugPackageDebugSettings; -import com.azure.resourcemanager.datafactory.models.DataFlowSourceSetting; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DataFlowDebugPackageDebugSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataFlowDebugPackageDebugSettings model = - BinaryData - .fromString( - "{\"sourceSettings\":[{\"sourceName\":\"cnqmxqpsw\",\"rowLimit\":2027239261,\"\":{\"gdhbe\":\"datahl\"}},{\"sourceName\":\"qkzszuwiwtglxxh\",\"rowLimit\":1438070602,\"\":{\"pqcbfrmbodthsq\":\"datapicrmnzhrgmqgjsx\",\"fr\":\"datagvriibakclac\"}},{\"sourceName\":\"ousxauzlwvsgmw\",\"rowLimit\":414245170,\"\":{\"mmkjsvthnwpztek\":\"dataizvu\",\"gplucfotangcfhny\":\"datavmribiat\",\"vtxnjmxmcuqud\":\"datazcugswvxwlmzqw\"}}],\"parameters\":{\"dkvgfabuiyjibuzp\":\"dataclxyn\"},\"datasetParameters\":\"dataugneikn\"}") - .toObject(DataFlowDebugPackageDebugSettings.class); - Assertions.assertEquals("cnqmxqpsw", model.sourceSettings().get(0).sourceName()); - Assertions.assertEquals(2027239261, model.sourceSettings().get(0).rowLimit()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataFlowDebugPackageDebugSettings model = - new DataFlowDebugPackageDebugSettings() - .withSourceSettings( - Arrays - .asList( - new DataFlowSourceSetting() - .withSourceName("cnqmxqpsw") - .withRowLimit(2027239261) - .withAdditionalProperties(mapOf()), - new DataFlowSourceSetting() - .withSourceName("qkzszuwiwtglxxh") - .withRowLimit(1438070602) - .withAdditionalProperties(mapOf()), - new DataFlowSourceSetting() - .withSourceName("ousxauzlwvsgmw") - .withRowLimit(414245170) - .withAdditionalProperties(mapOf()))) - .withParameters(mapOf("dkvgfabuiyjibuzp", "dataclxyn")) - .withDatasetParameters("dataugneikn"); - model = BinaryData.fromObject(model).toObject(DataFlowDebugPackageDebugSettings.class); - Assertions.assertEquals("cnqmxqpsw", model.sourceSettings().get(0).sourceName()); - Assertions.assertEquals(2027239261, model.sourceSettings().get(0).rowLimit()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugPackageTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugPackageTests.java deleted file mode 100644 index ad4519dca067..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugPackageTests.java +++ /dev/null @@ -1,222 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DataFlow; -import com.azure.resourcemanager.datafactory.models.DataFlowDebugPackage; -import com.azure.resourcemanager.datafactory.models.DataFlowDebugPackageDebugSettings; -import com.azure.resourcemanager.datafactory.models.DataFlowDebugResource; -import com.azure.resourcemanager.datafactory.models.DataFlowFolder; -import com.azure.resourcemanager.datafactory.models.DataFlowSourceSetting; -import com.azure.resourcemanager.datafactory.models.DataFlowStagingInfo; -import com.azure.resourcemanager.datafactory.models.Dataset; -import com.azure.resourcemanager.datafactory.models.DatasetDebugResource; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeReference; -import com.azure.resourcemanager.datafactory.models.LinkedService; -import com.azure.resourcemanager.datafactory.models.LinkedServiceDebugResource; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DataFlowDebugPackageTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataFlowDebugPackage model = - BinaryData - .fromString( - "{\"sessionId\":\"ryxynqnzrd\",\"dataFlow\":{\"properties\":{\"type\":\"DataFlow\",\"description\":\"vwxzn\",\"annotations\":[\"dataoeiy\",\"datab\",\"databp\",\"datahv\"],\"folder\":{\"name\":\"kvntjlrigjkskyri\"}},\"name\":\"vzidsxwaab\"},\"dataFlows\":[{\"properties\":{\"type\":\"DataFlow\",\"description\":\"rygznmmaxriz\",\"annotations\":[\"databgopxlhslnel\",\"dataieixynllxe\"],\"folder\":{\"name\":\"rojphslhcawjutif\"}},\"name\":\"fmvigorqjbttzh\"},{\"properties\":{\"type\":\"DataFlow\",\"description\":\"glka\",\"annotations\":[\"datan\",\"datajuj\",\"dataickpz\",\"datacpopmxel\"],\"folder\":{\"name\":\"ltyjedexxmlfmk\"}},\"name\":\"cazuaw\"}],\"datasets\":[{\"properties\":{\"type\":\"Dataset\",\"description\":\"puamwabzxr\",\"structure\":\"datacush\",\"schema\":\"datahaivm\",\"linkedServiceName\":{\"referenceName\":\"yasflvgsgzwy\",\"parameters\":{\"knsmjblmljhlnymz\":\"dataoi\"}},\"parameters\":{\"gtayxonsupeujlz\":{\"type\":\"Bool\",\"defaultValue\":\"datayuzcbmqqvxmvw\"},\"nzoibgsxgnx\":{\"type\":\"SecureString\",\"defaultValue\":\"datacvsql\"},\"bxiqxeiiqbimht\":{\"type\":\"Int\",\"defaultValue\":\"dataonmpqoxwdof\"},\"qpofvwbc\":{\"type\":\"Float\",\"defaultValue\":\"datainheh\"}},\"annotations\":[\"datambnkb\",\"datavqvxk\"],\"folder\":{\"name\":\"qihebw\"},\"\":{\"gi\":\"databzuwfmdurag\",\"igkxkbsazga\":\"datavcjfelisdjubggb\",\"apvu\":\"datagacyrcmjdmspo\",\"zjedmstkvnlv\":\"datarylniofrzg\"}},\"name\":\"c\"}],\"linkedServices\":[{\"properties\":{\"type\":\"LinkedService\",\"connectVia\":{\"referenceName\":\"nktwfansnvpdibmi\",\"parameters\":{\"yls\":\"datatbzbkiwbuqnyophz\"}},\"description\":\"rpfbcunezz\",\"parameters\":{\"psihcla\":{\"type\":\"Bool\",\"defaultValue\":\"datafwyfwlwxjwet\"},\"rsqqwztcm\":{\"type\":\"SecureString\",\"defaultValue\":\"dataaylp\"},\"jexfdeqvhp\":{\"type\":\"Array\",\"defaultValue\":\"datachcxwaxfewzj\"}},\"annotations\":[\"datakkshkbffm\",\"datamxzjrgywwpgjx\",\"datanptfujgi\",\"datagaao\"],\"\":{\"swvr\":\"datataqutdewem\",\"kimrt\":\"dataunzzjgehk\",\"jqepqwhi\":\"dataxokffqyin\"}},\"name\":\"onsts\"}],\"staging\":{\"linkedService\":{\"referenceName\":\"xgvelfclduccbird\",\"parameters\":{\"stmninwjizcilng\":\"datawcobie\"}},\"folderPath\":\"datashejjtbxqm\"},\"debugSettings\":{\"sourceSettings\":[{\"sourceName\":\"xqzv\",\"rowLimit\":411885173,\"\":{\"qbsms\":\"dataycucrwnamikzeb\",\"kzruswh\":\"dataziqgfuh\",\"ycjsx\":\"datahczznvf\",\"xqhndvnoamlds\":\"datawwixzvumw\"}},{\"sourceName\":\"aohdjh\",\"rowLimit\":1043529198,\"\":{\"agltsxoa\":\"datakxcoxpelnje\",\"npbs\":\"dataftgz\"}}],\"parameters\":{\"ipgawtxx\":\"datafloccsrmozih\"},\"datasetParameters\":\"datay\"},\"\":{\"pcycilrmcaykg\":\"datacjxgrytf\",\"pndfcpfnznt\":\"datanoxuztrksx\",\"xuzvoamktcqi\":\"datajtwkjaos\",\"rtltla\":\"datasmgbzahgxqdl\"}}") - .toObject(DataFlowDebugPackage.class); - Assertions.assertEquals("ryxynqnzrd", model.sessionId()); - Assertions.assertEquals("vzidsxwaab", model.dataFlow().name()); - Assertions.assertEquals("vwxzn", model.dataFlow().properties().description()); - Assertions.assertEquals("kvntjlrigjkskyri", model.dataFlow().properties().folder().name()); - Assertions.assertEquals("fmvigorqjbttzh", model.dataFlows().get(0).name()); - Assertions.assertEquals("rygznmmaxriz", model.dataFlows().get(0).properties().description()); - Assertions.assertEquals("rojphslhcawjutif", model.dataFlows().get(0).properties().folder().name()); - Assertions.assertEquals("c", model.datasets().get(0).name()); - Assertions.assertEquals("puamwabzxr", model.datasets().get(0).properties().description()); - Assertions - .assertEquals("yasflvgsgzwy", model.datasets().get(0).properties().linkedServiceName().referenceName()); - Assertions - .assertEquals( - ParameterType.BOOL, model.datasets().get(0).properties().parameters().get("gtayxonsupeujlz").type()); - Assertions.assertEquals("qihebw", model.datasets().get(0).properties().folder().name()); - Assertions.assertEquals("onsts", model.linkedServices().get(0).name()); - Assertions - .assertEquals("nktwfansnvpdibmi", model.linkedServices().get(0).properties().connectVia().referenceName()); - Assertions.assertEquals("rpfbcunezz", model.linkedServices().get(0).properties().description()); - Assertions - .assertEquals( - ParameterType.BOOL, model.linkedServices().get(0).properties().parameters().get("psihcla").type()); - Assertions.assertEquals("xgvelfclduccbird", model.staging().linkedService().referenceName()); - Assertions.assertEquals("xqzv", model.debugSettings().sourceSettings().get(0).sourceName()); - Assertions.assertEquals(411885173, model.debugSettings().sourceSettings().get(0).rowLimit()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataFlowDebugPackage model = - new DataFlowDebugPackage() - .withSessionId("ryxynqnzrd") - .withDataFlow( - new DataFlowDebugResource() - .withName("vzidsxwaab") - .withProperties( - new DataFlow() - .withDescription("vwxzn") - .withAnnotations(Arrays.asList("dataoeiy", "datab", "databp", "datahv")) - .withFolder(new DataFlowFolder().withName("kvntjlrigjkskyri")))) - .withDataFlows( - Arrays - .asList( - new DataFlowDebugResource() - .withName("fmvigorqjbttzh") - .withProperties( - new DataFlow() - .withDescription("rygznmmaxriz") - .withAnnotations(Arrays.asList("databgopxlhslnel", "dataieixynllxe")) - .withFolder(new DataFlowFolder().withName("rojphslhcawjutif"))), - new DataFlowDebugResource() - .withName("cazuaw") - .withProperties( - new DataFlow() - .withDescription("glka") - .withAnnotations(Arrays.asList("datan", "datajuj", "dataickpz", "datacpopmxel")) - .withFolder(new DataFlowFolder().withName("ltyjedexxmlfmk"))))) - .withDatasets( - Arrays - .asList( - new DatasetDebugResource() - .withName("c") - .withProperties( - new Dataset() - .withDescription("puamwabzxr") - .withStructure("datacush") - .withSchema("datahaivm") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("yasflvgsgzwy") - .withParameters(mapOf("knsmjblmljhlnymz", "dataoi"))) - .withParameters( - mapOf( - "gtayxonsupeujlz", - new ParameterSpecification() - .withType(ParameterType.BOOL) - .withDefaultValue("datayuzcbmqqvxmvw"), - "nzoibgsxgnx", - new ParameterSpecification() - .withType(ParameterType.SECURE_STRING) - .withDefaultValue("datacvsql"), - "bxiqxeiiqbimht", - new ParameterSpecification() - .withType(ParameterType.INT) - .withDefaultValue("dataonmpqoxwdof"), - "qpofvwbc", - new ParameterSpecification() - .withType(ParameterType.FLOAT) - .withDefaultValue("datainheh"))) - .withAnnotations(Arrays.asList("datambnkb", "datavqvxk")) - .withFolder(new DatasetFolder().withName("qihebw")) - .withAdditionalProperties(mapOf("type", "Dataset"))))) - .withLinkedServices( - Arrays - .asList( - new LinkedServiceDebugResource() - .withName("onsts") - .withProperties( - new LinkedService() - .withConnectVia( - new IntegrationRuntimeReference() - .withReferenceName("nktwfansnvpdibmi") - .withParameters(mapOf("yls", "datatbzbkiwbuqnyophz"))) - .withDescription("rpfbcunezz") - .withParameters( - mapOf( - "psihcla", - new ParameterSpecification() - .withType(ParameterType.BOOL) - .withDefaultValue("datafwyfwlwxjwet"), - "rsqqwztcm", - new ParameterSpecification() - .withType(ParameterType.SECURE_STRING) - .withDefaultValue("dataaylp"), - "jexfdeqvhp", - new ParameterSpecification() - .withType(ParameterType.ARRAY) - .withDefaultValue("datachcxwaxfewzj"))) - .withAnnotations( - Arrays - .asList( - "datakkshkbffm", "datamxzjrgywwpgjx", "datanptfujgi", "datagaao")) - .withAdditionalProperties(mapOf("type", "LinkedService"))))) - .withStaging( - new DataFlowStagingInfo() - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("xgvelfclduccbird") - .withParameters(mapOf("stmninwjizcilng", "datawcobie"))) - .withFolderPath("datashejjtbxqm")) - .withDebugSettings( - new DataFlowDebugPackageDebugSettings() - .withSourceSettings( - Arrays - .asList( - new DataFlowSourceSetting() - .withSourceName("xqzv") - .withRowLimit(411885173) - .withAdditionalProperties(mapOf()), - new DataFlowSourceSetting() - .withSourceName("aohdjh") - .withRowLimit(1043529198) - .withAdditionalProperties(mapOf()))) - .withParameters(mapOf("ipgawtxx", "datafloccsrmozih")) - .withDatasetParameters("datay")) - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(DataFlowDebugPackage.class); - Assertions.assertEquals("ryxynqnzrd", model.sessionId()); - Assertions.assertEquals("vzidsxwaab", model.dataFlow().name()); - Assertions.assertEquals("vwxzn", model.dataFlow().properties().description()); - Assertions.assertEquals("kvntjlrigjkskyri", model.dataFlow().properties().folder().name()); - Assertions.assertEquals("fmvigorqjbttzh", model.dataFlows().get(0).name()); - Assertions.assertEquals("rygznmmaxriz", model.dataFlows().get(0).properties().description()); - Assertions.assertEquals("rojphslhcawjutif", model.dataFlows().get(0).properties().folder().name()); - Assertions.assertEquals("c", model.datasets().get(0).name()); - Assertions.assertEquals("puamwabzxr", model.datasets().get(0).properties().description()); - Assertions - .assertEquals("yasflvgsgzwy", model.datasets().get(0).properties().linkedServiceName().referenceName()); - Assertions - .assertEquals( - ParameterType.BOOL, model.datasets().get(0).properties().parameters().get("gtayxonsupeujlz").type()); - Assertions.assertEquals("qihebw", model.datasets().get(0).properties().folder().name()); - Assertions.assertEquals("onsts", model.linkedServices().get(0).name()); - Assertions - .assertEquals("nktwfansnvpdibmi", model.linkedServices().get(0).properties().connectVia().referenceName()); - Assertions.assertEquals("rpfbcunezz", model.linkedServices().get(0).properties().description()); - Assertions - .assertEquals( - ParameterType.BOOL, model.linkedServices().get(0).properties().parameters().get("psihcla").type()); - Assertions.assertEquals("xgvelfclduccbird", model.staging().linkedService().referenceName()); - Assertions.assertEquals("xqzv", model.debugSettings().sourceSettings().get(0).sourceName()); - Assertions.assertEquals(411885173, model.debugSettings().sourceSettings().get(0).rowLimit()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugResourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugResourceTests.java deleted file mode 100644 index 8e48c7e51243..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugResourceTests.java +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DataFlow; -import com.azure.resourcemanager.datafactory.models.DataFlowDebugResource; -import com.azure.resourcemanager.datafactory.models.DataFlowFolder; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class DataFlowDebugResourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataFlowDebugResource model = - BinaryData - .fromString( - "{\"properties\":{\"type\":\"DataFlow\",\"description\":\"ltzkatbhjmznnb\",\"annotations\":[\"dataeq\",\"datalarvlagunbtg\"],\"folder\":{\"name\":\"wlnbm\"}},\"name\":\"reeudzqavb\"}") - .toObject(DataFlowDebugResource.class); - Assertions.assertEquals("reeudzqavb", model.name()); - Assertions.assertEquals("ltzkatbhjmznnb", model.properties().description()); - Assertions.assertEquals("wlnbm", model.properties().folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataFlowDebugResource model = - new DataFlowDebugResource() - .withName("reeudzqavb") - .withProperties( - new DataFlow() - .withDescription("ltzkatbhjmznnb") - .withAnnotations(Arrays.asList("dataeq", "datalarvlagunbtg")) - .withFolder(new DataFlowFolder().withName("wlnbm"))); - model = BinaryData.fromObject(model).toObject(DataFlowDebugResource.class); - Assertions.assertEquals("reeudzqavb", model.name()); - Assertions.assertEquals("ltzkatbhjmznnb", model.properties().description()); - Assertions.assertEquals("wlnbm", model.properties().folder().name()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionInfoInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionInfoInnerTests.java deleted file mode 100644 index 47dcb8be77f7..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionInfoInnerTests.java +++ /dev/null @@ -1,69 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.DataFlowDebugSessionInfoInner; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DataFlowDebugSessionInfoInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataFlowDebugSessionInfoInner model = - BinaryData - .fromString( - "{\"dataFlowName\":\"bwefqsfapaqtfer\",\"computeType\":\"wexjkmfxapjwogq\",\"coreCount\":211935178,\"nodeCount\":775989398,\"integrationRuntimeName\":\"dcdab\",\"sessionId\":\"wpwyawbz\",\"startTime\":\"qbucljgkyexaoguy\",\"timeToLiveInMinutes\":166467616,\"lastActivityTime\":\"dsdaultxijjumf\",\"\":{\"nqnm\":\"dataz\",\"qdqx\":\"datajng\",\"zsvtuikzhajqgl\":\"databjwgnyfus\",\"l\":\"datafh\"}}") - .toObject(DataFlowDebugSessionInfoInner.class); - Assertions.assertEquals("bwefqsfapaqtfer", model.dataFlowName()); - Assertions.assertEquals("wexjkmfxapjwogq", model.computeType()); - Assertions.assertEquals(211935178, model.coreCount()); - Assertions.assertEquals(775989398, model.nodeCount()); - Assertions.assertEquals("dcdab", model.integrationRuntimeName()); - Assertions.assertEquals("wpwyawbz", model.sessionId()); - Assertions.assertEquals("qbucljgkyexaoguy", model.startTime()); - Assertions.assertEquals(166467616, model.timeToLiveInMinutes()); - Assertions.assertEquals("dsdaultxijjumf", model.lastActivityTime()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataFlowDebugSessionInfoInner model = - new DataFlowDebugSessionInfoInner() - .withDataFlowName("bwefqsfapaqtfer") - .withComputeType("wexjkmfxapjwogq") - .withCoreCount(211935178) - .withNodeCount(775989398) - .withIntegrationRuntimeName("dcdab") - .withSessionId("wpwyawbz") - .withStartTime("qbucljgkyexaoguy") - .withTimeToLiveInMinutes(166467616) - .withLastActivityTime("dsdaultxijjumf") - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(DataFlowDebugSessionInfoInner.class); - Assertions.assertEquals("bwefqsfapaqtfer", model.dataFlowName()); - Assertions.assertEquals("wexjkmfxapjwogq", model.computeType()); - Assertions.assertEquals(211935178, model.coreCount()); - Assertions.assertEquals(775989398, model.nodeCount()); - Assertions.assertEquals("dcdab", model.integrationRuntimeName()); - Assertions.assertEquals("wpwyawbz", model.sessionId()); - Assertions.assertEquals("qbucljgkyexaoguy", model.startTime()); - Assertions.assertEquals(166467616, model.timeToLiveInMinutes()); - Assertions.assertEquals("dsdaultxijjumf", model.lastActivityTime()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionsAddDataFlowWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionsAddDataFlowWithResponseMockTests.java deleted file mode 100644 index a9f89f6a7d4f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionsAddDataFlowWithResponseMockTests.java +++ /dev/null @@ -1,285 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.AddDataFlowToDebugSessionResponse; -import com.azure.resourcemanager.datafactory.models.DataFlow; -import com.azure.resourcemanager.datafactory.models.DataFlowDebugPackage; -import com.azure.resourcemanager.datafactory.models.DataFlowDebugPackageDebugSettings; -import com.azure.resourcemanager.datafactory.models.DataFlowDebugResource; -import com.azure.resourcemanager.datafactory.models.DataFlowFolder; -import com.azure.resourcemanager.datafactory.models.DataFlowSourceSetting; -import com.azure.resourcemanager.datafactory.models.DataFlowStagingInfo; -import com.azure.resourcemanager.datafactory.models.Dataset; -import com.azure.resourcemanager.datafactory.models.DatasetDebugResource; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeReference; -import com.azure.resourcemanager.datafactory.models.LinkedService; -import com.azure.resourcemanager.datafactory.models.LinkedServiceDebugResource; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class DataFlowDebugSessionsAddDataFlowWithResponseMockTests { - @Test - public void testAddDataFlowWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{\"jobVersion\":\"ssghafzdzdfxud\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - AddDataFlowToDebugSessionResponse response = - manager - .dataFlowDebugSessions() - .addDataFlowWithResponse( - "ewqwdglmfsjpl", - "dhzltmywy", - new DataFlowDebugPackage() - .withSessionId("uovkgqtzghtj") - .withDataFlow( - new DataFlowDebugResource() - .withName("squfsyih") - .withProperties( - new DataFlow() - .withDescription("ywoq") - .withAnnotations(Arrays.asList("datavx", "dataioasvykthxud")) - .withFolder(new DataFlowFolder().withName("wltegqzqdc")))) - .withDataFlows( - Arrays - .asList( - new DataFlowDebugResource() - .withName("v") - .withProperties( - new DataFlow() - .withDescription("joxu") - .withAnnotations( - Arrays - .asList( - "dataakexjzalhunbm", "datagstvnkshau", "dataltvlylboqyin")) - .withFolder(new DataFlowFolder().withName("xncoaiy"))), - new DataFlowDebugResource() - .withName("odselbcudxqlr") - .withProperties( - new DataFlow() - .withDescription("djz") - .withAnnotations(Arrays.asList("dataocxakuqyei")) - .withFolder(new DataFlowFolder().withName("nxli"))), - new DataFlowDebugResource() - .withName("vdqfkjg") - .withProperties( - new DataFlow() - .withDescription("mukxk") - .withAnnotations( - Arrays.asList("datasf", "datakjfrtaufrxxvz", "dataineqmjodvknxjt")) - .withFolder(new DataFlowFolder().withName("hmhqucasfqod"))), - new DataFlowDebugResource() - .withName("nzemisqunx") - .withProperties( - new DataFlow() - .withDescription("cfoaabltv") - .withAnnotations( - Arrays - .asList( - "dataoplxbxfrliy", - "datakcnlbehxoyoxjqy", - "datafejddiogwck")) - .withFolder(new DataFlowFolder().withName("lihfga"))))) - .withDatasets( - Arrays - .asList( - new DatasetDebugResource() - .withName("s") - .withProperties( - new Dataset() - .withDescription("nchrouvtbptdeum") - .withStructure("dataszx") - .withSchema("dataabknkeodg") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("qdcr") - .withParameters( - mapOf("hvwcsgczvuiprn", "datantowohtuiwsnccmu"))) - .withParameters( - mapOf( - "m", - new ParameterSpecification().withType(ParameterType.ARRAY), - "dayzfuvbnelm", - new ParameterSpecification().withType(ParameterType.STRING), - "mccevbpr", - new ParameterSpecification().withType(ParameterType.OBJECT), - "geregf", - new ParameterSpecification() - .withType(ParameterType.SECURE_STRING))) - .withAnnotations( - Arrays - .asList( - "datajmznp", - "dataevafczgi", - "dataegdeiynlcdqx", - "datawnbjkwgkgo")) - .withFolder(new DatasetFolder().withName("zmwrxsfej")) - .withAdditionalProperties(mapOf("type", "Dataset"))), - new DatasetDebugResource() - .withName("omuapyskwi") - .withProperties( - new Dataset() - .withDescription("dtme") - .withStructure("datadocqaptwkbis") - .withSchema("datanwhazalftta") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("z") - .withParameters( - mapOf( - "rduq", - "dataep", - "fibzvxqhzpjdbzhl", - "datarlltfecxxzh"))) - .withParameters( - mapOf( - "sydjr", - new ParameterSpecification().withType(ParameterType.OBJECT), - "j", - new ParameterSpecification().withType(ParameterType.INT), - "fuj", - new ParameterSpecification().withType(ParameterType.FLOAT), - "vrpearoohppupuc", - new ParameterSpecification().withType(ParameterType.INT))) - .withAnnotations(Arrays.asList("dataravelcbmmrhog")) - .withFolder(new DatasetFolder().withName("eaexweeifogvzm")) - .withAdditionalProperties(mapOf("type", "Dataset"))))) - .withLinkedServices( - Arrays - .asList( - new LinkedServiceDebugResource() - .withName("kuemotgkyfh") - .withProperties( - new LinkedService() - .withConnectVia( - new IntegrationRuntimeReference() - .withReferenceName("qvul") - .withParameters( - mapOf("vxfyqsfy", "datajdbcypv", "ql", "dataafhbfpzf"))) - .withDescription("pckxlcslmy") - .withParameters( - mapOf( - "qpjbar", - new ParameterSpecification().withType(ParameterType.FLOAT), - "xd", - new ParameterSpecification().withType(ParameterType.BOOL))) - .withAnnotations(Arrays.asList("datafulvmvalvcahy", "dataphdhtcopz")) - .withAdditionalProperties(mapOf("type", "LinkedService"))), - new LinkedServiceDebugResource() - .withName("dlhnkvipjinjik") - .withProperties( - new LinkedService() - .withConnectVia( - new IntegrationRuntimeReference() - .withReferenceName("mwqkfsvzczisiqns") - .withParameters( - mapOf( - "qbatdnufvzxosrst", "datajfu", "bmdoj", "datavdtssa"))) - .withDescription("faagpjslrf") - .withParameters( - mapOf( - "tfbhs", - new ParameterSpecification().withType(ParameterType.STRING), - "nfcbxta", - new ParameterSpecification() - .withType(ParameterType.SECURE_STRING))) - .withAnnotations(Arrays.asList("datakboyqescvcvu")) - .withAdditionalProperties(mapOf("type", "LinkedService"))))) - .withStaging( - new DataFlowStagingInfo() - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("fmkcn") - .withParameters( - mapOf("ztxix", "dataezonrltewths", "vefldfwqnb", "datagweuxyc"))) - .withFolderPath("dataznlscfbwkh")) - .withDebugSettings( - new DataFlowDebugPackageDebugSettings() - .withSourceSettings( - Arrays - .asList( - new DataFlowSourceSetting() - .withSourceName("boprgxdcnbzpc") - .withRowLimit(1456979529) - .withAdditionalProperties(mapOf()))) - .withParameters( - mapOf( - "bptvvwfamhljhi", - "datalipoequjkhummrxx", - "bczwd", - "datamhccwmrckv", - "ohxmzpfptt", - "dataydbsrjofxoktokms")) - .withDatasetParameters("datawqrbtadsdkbndkof")) - .withAdditionalProperties(mapOf()), - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("ssghafzdzdfxud", response.jobVersion()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionsCreateMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionsCreateMockTests.java deleted file mode 100644 index 056ca3b566ba..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionsCreateMockTests.java +++ /dev/null @@ -1,100 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.CreateDataFlowDebugSessionRequest; -import com.azure.resourcemanager.datafactory.models.CreateDataFlowDebugSessionResponse; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntime; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeDebugResource; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class DataFlowDebugSessionsCreateMockTests { - @Test - public void testCreate() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{\"status\":\"ygecly\",\"sessionId\":\"oshkzibbjbzdnkg\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - CreateDataFlowDebugSessionResponse response = - manager - .dataFlowDebugSessions() - .create( - "acurmmbunazlivvn", - "zcnqwisuh", - new CreateDataFlowDebugSessionRequest() - .withComputeType("eqyiadv") - .withCoreCount(1802611604) - .withTimeToLive(902558442) - .withIntegrationRuntime( - new IntegrationRuntimeDebugResource() - .withName("siflf") - .withProperties( - new IntegrationRuntime() - .withDescription("lpnlpnyyu") - .withAdditionalProperties(mapOf("type", "IntegrationRuntime")))), - com.azure.core.util.Context.NONE); - - Assertions.assertEquals("ygecly", response.status()); - Assertions.assertEquals("oshkzibbjbzdnkg", response.sessionId()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionsDeleteWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionsDeleteWithResponseMockTests.java deleted file mode 100644 index 457f12d189c6..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionsDeleteWithResponseMockTests.java +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.DeleteDataFlowDebugSessionRequest; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class DataFlowDebugSessionsDeleteWithResponseMockTests { - @Test - public void testDeleteWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager - .dataFlowDebugSessions() - .deleteWithResponse( - "iutzuriqlks", - "ay", - new DeleteDataFlowDebugSessionRequest().withSessionId("tiqzjrxhelqh"), - com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionsExecuteCommandMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionsExecuteCommandMockTests.java deleted file mode 100644 index b57d3fc8187d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionsExecuteCommandMockTests.java +++ /dev/null @@ -1,85 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.DataFlowDebugCommandPayload; -import com.azure.resourcemanager.datafactory.models.DataFlowDebugCommandRequest; -import com.azure.resourcemanager.datafactory.models.DataFlowDebugCommandResponse; -import com.azure.resourcemanager.datafactory.models.DataFlowDebugCommandType; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class DataFlowDebugSessionsExecuteCommandMockTests { - @Test - public void testExecuteCommand() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{\"status\":\"mdcoqwdmegkhjeu\",\"data\":\"vnwcvlmyr\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - DataFlowDebugCommandResponse response = - manager - .dataFlowDebugSessions() - .executeCommand( - "qzdxdal", - "tetg", - new DataFlowDebugCommandRequest() - .withSessionId("dywjzqmb") - .withCommand(DataFlowDebugCommandType.EXECUTE_STATISTICS_QUERY) - .withCommandPayload( - new DataFlowDebugCommandPayload() - .withStreamName("dnkgrxhpxsbhua") - .withRowLimits(1354403890) - .withColumns(Arrays.asList("uoweamnxzduydnv")) - .withExpression("o")), - com.azure.core.util.Context.NONE); - - Assertions.assertEquals("mdcoqwdmegkhjeu", response.status()); - Assertions.assertEquals("vnwcvlmyr", response.data()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionsQueryByFactoryMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionsQueryByFactoryMockTests.java deleted file mode 100644 index fd370bb4df2c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionsQueryByFactoryMockTests.java +++ /dev/null @@ -1,78 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.DataFlowDebugSessionInfo; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class DataFlowDebugSessionsQueryByFactoryMockTests { - @Test - public void testQueryByFactory() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"dataFlowName\":\"nnmpnnq\",\"computeType\":\"ghpx\",\"coreCount\":672334852,\"nodeCount\":1025060148,\"integrationRuntimeName\":\"qugo\",\"sessionId\":\"ddxlrbs\",\"startTime\":\"rgjejabqvg\",\"timeToLiveInMinutes\":835453727,\"lastActivityTime\":\"yazpxlya\",\"\":{\"jfwurhkuxphbwmbg\":\"datazgs\",\"glnsnkylqdsyg\":\"datagm\",\"ufr\":\"dataz\"}}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = - manager - .dataFlowDebugSessions() - .queryByFactory("vbvicwfrybvhg", "ltjghdfusphokcc", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("nnmpnnq", response.iterator().next().dataFlowName()); - Assertions.assertEquals("ghpx", response.iterator().next().computeType()); - Assertions.assertEquals(672334852, response.iterator().next().coreCount()); - Assertions.assertEquals(1025060148, response.iterator().next().nodeCount()); - Assertions.assertEquals("qugo", response.iterator().next().integrationRuntimeName()); - Assertions.assertEquals("ddxlrbs", response.iterator().next().sessionId()); - Assertions.assertEquals("rgjejabqvg", response.iterator().next().startTime()); - Assertions.assertEquals(835453727, response.iterator().next().timeToLiveInMinutes()); - Assertions.assertEquals("yazpxlya", response.iterator().next().lastActivityTime()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowFolderTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowFolderTests.java deleted file mode 100644 index 75447220b605..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowFolderTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DataFlowFolder; -import org.junit.jupiter.api.Assertions; - -public final class DataFlowFolderTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataFlowFolder model = BinaryData.fromString("{\"name\":\"nmfpp\"}").toObject(DataFlowFolder.class); - Assertions.assertEquals("nmfpp", model.name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataFlowFolder model = new DataFlowFolder().withName("nmfpp"); - model = BinaryData.fromObject(model).toObject(DataFlowFolder.class); - Assertions.assertEquals("nmfpp", model.name()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowListResponseTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowListResponseTests.java deleted file mode 100644 index c64f6517a833..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowListResponseTests.java +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.DataFlowResourceInner; -import com.azure.resourcemanager.datafactory.models.DataFlow; -import com.azure.resourcemanager.datafactory.models.DataFlowFolder; -import com.azure.resourcemanager.datafactory.models.DataFlowListResponse; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class DataFlowListResponseTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataFlowListResponse model = - BinaryData - .fromString( - "{\"value\":[{\"properties\":{\"type\":\"DataFlow\",\"description\":\"eevy\",\"annotations\":[\"datasgzfczbg\"],\"folder\":{\"name\":\"gbeglqgleo\"}},\"name\":\"betnluankrrfxee\",\"type\":\"tijv\",\"etag\":\"vbmqzbqq\",\"id\":\"aj\"},{\"properties\":{\"type\":\"DataFlow\",\"description\":\"wxacevehj\",\"annotations\":[\"dataxoafgaoqltfae\",\"datalinmfgv\"],\"folder\":{\"name\":\"pghriypoqeyhl\"}},\"name\":\"ykprlpyznu\",\"type\":\"qdsmexiit\",\"etag\":\"uxtyasiibmi\",\"id\":\"nnust\"}],\"nextLink\":\"ljhnmgixhcmav\"}") - .toObject(DataFlowListResponse.class); - Assertions.assertEquals("aj", model.value().get(0).id()); - Assertions.assertEquals("eevy", model.value().get(0).properties().description()); - Assertions.assertEquals("gbeglqgleo", model.value().get(0).properties().folder().name()); - Assertions.assertEquals("ljhnmgixhcmav", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataFlowListResponse model = - new DataFlowListResponse() - .withValue( - Arrays - .asList( - new DataFlowResourceInner() - .withId("aj") - .withProperties( - new DataFlow() - .withDescription("eevy") - .withAnnotations(Arrays.asList("datasgzfczbg")) - .withFolder(new DataFlowFolder().withName("gbeglqgleo"))), - new DataFlowResourceInner() - .withId("nnust") - .withProperties( - new DataFlow() - .withDescription("wxacevehj") - .withAnnotations(Arrays.asList("dataxoafgaoqltfae", "datalinmfgv")) - .withFolder(new DataFlowFolder().withName("pghriypoqeyhl"))))) - .withNextLink("ljhnmgixhcmav"); - model = BinaryData.fromObject(model).toObject(DataFlowListResponse.class); - Assertions.assertEquals("aj", model.value().get(0).id()); - Assertions.assertEquals("eevy", model.value().get(0).properties().description()); - Assertions.assertEquals("gbeglqgleo", model.value().get(0).properties().folder().name()); - Assertions.assertEquals("ljhnmgixhcmav", model.nextLink()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowReferenceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowReferenceTests.java deleted file mode 100644 index 682c8f264a36..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowReferenceTests.java +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DataFlowReference; -import com.azure.resourcemanager.datafactory.models.DataFlowReferenceType; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DataFlowReferenceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataFlowReference model = - BinaryData - .fromString( - "{\"type\":\"DataFlowReference\",\"referenceName\":\"sbede\",\"datasetParameters\":\"dataexkxbhx\",\"parameters\":{\"mnhjevdyzn\":\"datanul\",\"kmq\":\"dataajsvk\",\"iizjixlqfhefkwa\":\"datazzkivyhjr\",\"nlqxsjxtele\":\"datasolronqqlm\"},\"\":{\"oolzqocarkuzl\":\"datauqbo\",\"t\":\"datacnn\"}}") - .toObject(DataFlowReference.class); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.type()); - Assertions.assertEquals("sbede", model.referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataFlowReference model = - new DataFlowReference() - .withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("sbede") - .withDatasetParameters("dataexkxbhx") - .withParameters( - mapOf( - "mnhjevdyzn", - "datanul", - "kmq", - "dataajsvk", - "iizjixlqfhefkwa", - "datazzkivyhjr", - "nlqxsjxtele", - "datasolronqqlm")) - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(DataFlowReference.class); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.type()); - Assertions.assertEquals("sbede", model.referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowResourceInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowResourceInnerTests.java deleted file mode 100644 index d314df772005..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowResourceInnerTests.java +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.DataFlowResourceInner; -import com.azure.resourcemanager.datafactory.models.DataFlow; -import com.azure.resourcemanager.datafactory.models.DataFlowFolder; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class DataFlowResourceInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataFlowResourceInner model = - BinaryData - .fromString( - "{\"properties\":{\"type\":\"DataFlow\",\"description\":\"qspkcdqzhlctd\",\"annotations\":[\"dataqn\",\"datayfp\",\"datahrqbnjjrcg\",\"datagydcw\"],\"folder\":{\"name\":\"jumvqqolihrraio\"}},\"name\":\"ubrjtl\",\"type\":\"xfuojrn\",\"etag\":\"flrzpas\",\"id\":\"biuimzdlyjdfq\"}") - .toObject(DataFlowResourceInner.class); - Assertions.assertEquals("biuimzdlyjdfq", model.id()); - Assertions.assertEquals("qspkcdqzhlctd", model.properties().description()); - Assertions.assertEquals("jumvqqolihrraio", model.properties().folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataFlowResourceInner model = - new DataFlowResourceInner() - .withId("biuimzdlyjdfq") - .withProperties( - new DataFlow() - .withDescription("qspkcdqzhlctd") - .withAnnotations(Arrays.asList("dataqn", "datayfp", "datahrqbnjjrcg", "datagydcw")) - .withFolder(new DataFlowFolder().withName("jumvqqolihrraio"))); - model = BinaryData.fromObject(model).toObject(DataFlowResourceInner.class); - Assertions.assertEquals("biuimzdlyjdfq", model.id()); - Assertions.assertEquals("qspkcdqzhlctd", model.properties().description()); - Assertions.assertEquals("jumvqqolihrraio", model.properties().folder().name()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowSinkTests.java deleted file mode 100644 index 8720217d479c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowSinkTests.java +++ /dev/null @@ -1,105 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DataFlowReference; -import com.azure.resourcemanager.datafactory.models.DataFlowReferenceType; -import com.azure.resourcemanager.datafactory.models.DataFlowSink; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DataFlowSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataFlowSink model = - BinaryData - .fromString( - "{\"schemaLinkedService\":{\"referenceName\":\"trqrejda\",\"parameters\":{\"lfxlmuifmuadj\":\"dataqimlda\",\"skiioshjgczetybn\":\"datafsn\",\"j\":\"datagztlcgc\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"fjvmy\",\"parameters\":{\"cljkxpyl\":\"dataebecuvlbefv\",\"eypdvrbk\":\"datawoxzgwpsyxji\"}},\"name\":\"rdkdkgaw\",\"description\":\"jxildfkcef\",\"dataset\":{\"referenceName\":\"gzqpjoi\",\"parameters\":{\"entq\":\"datanaybdjnxu\",\"towlhlsycoyb\":\"datantwhymxymulwiv\",\"j\":\"datajasqubf\",\"htfxcpupuki\":\"dataywhjqwmchq\"}},\"linkedService\":{\"referenceName\":\"j\",\"parameters\":{\"osaonhqnamppu\":\"datadlvwtiws\",\"eajbkajlcyizyddc\":\"datatassaekewna\",\"krvfsxxbydes\":\"dataxo\",\"nm\":\"datalvgecpwgoljtz\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"obygoo\",\"datasetParameters\":\"dataqa\",\"parameters\":{\"jfucsaodjnosdkv\":\"datavaz\"},\"\":{\"cd\":\"dataasgmatrnzpd\",\"jktzboimyfpq\":\"dataakt\"}}}") - .toObject(DataFlowSink.class); - Assertions.assertEquals("rdkdkgaw", model.name()); - Assertions.assertEquals("jxildfkcef", model.description()); - Assertions.assertEquals("gzqpjoi", model.dataset().referenceName()); - Assertions.assertEquals("j", model.linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.flowlet().type()); - Assertions.assertEquals("obygoo", model.flowlet().referenceName()); - Assertions.assertEquals("trqrejda", model.schemaLinkedService().referenceName()); - Assertions.assertEquals("fjvmy", model.rejectedDataLinkedService().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataFlowSink model = - new DataFlowSink() - .withName("rdkdkgaw") - .withDescription("jxildfkcef") - .withDataset( - new DatasetReference() - .withReferenceName("gzqpjoi") - .withParameters( - mapOf( - "entq", - "datanaybdjnxu", - "towlhlsycoyb", - "datantwhymxymulwiv", - "j", - "datajasqubf", - "htfxcpupuki", - "dataywhjqwmchq"))) - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("j") - .withParameters( - mapOf( - "osaonhqnamppu", - "datadlvwtiws", - "eajbkajlcyizyddc", - "datatassaekewna", - "krvfsxxbydes", - "dataxo", - "nm", - "datalvgecpwgoljtz"))) - .withFlowlet( - new DataFlowReference() - .withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("obygoo") - .withDatasetParameters("dataqa") - .withParameters(mapOf("jfucsaodjnosdkv", "datavaz")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService( - new LinkedServiceReference() - .withReferenceName("trqrejda") - .withParameters( - mapOf("lfxlmuifmuadj", "dataqimlda", "skiioshjgczetybn", "datafsn", "j", "datagztlcgc"))) - .withRejectedDataLinkedService( - new LinkedServiceReference() - .withReferenceName("fjvmy") - .withParameters(mapOf("cljkxpyl", "dataebecuvlbefv", "eypdvrbk", "datawoxzgwpsyxji"))); - model = BinaryData.fromObject(model).toObject(DataFlowSink.class); - Assertions.assertEquals("rdkdkgaw", model.name()); - Assertions.assertEquals("jxildfkcef", model.description()); - Assertions.assertEquals("gzqpjoi", model.dataset().referenceName()); - Assertions.assertEquals("j", model.linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.flowlet().type()); - Assertions.assertEquals("obygoo", model.flowlet().referenceName()); - Assertions.assertEquals("trqrejda", model.schemaLinkedService().referenceName()); - Assertions.assertEquals("fjvmy", model.rejectedDataLinkedService().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowSourceSettingTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowSourceSettingTests.java deleted file mode 100644 index 6b0700834590..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowSourceSettingTests.java +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DataFlowSourceSetting; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DataFlowSourceSettingTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataFlowSourceSetting model = - BinaryData - .fromString( - "{\"sourceName\":\"oxgjiuqhibt\",\"rowLimit\":645359051,\"\":{\"ktvqylkmqpzoy\":\"datawjedmurrxxgew\"}}") - .toObject(DataFlowSourceSetting.class); - Assertions.assertEquals("oxgjiuqhibt", model.sourceName()); - Assertions.assertEquals(645359051, model.rowLimit()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataFlowSourceSetting model = - new DataFlowSourceSetting() - .withSourceName("oxgjiuqhibt") - .withRowLimit(645359051) - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(DataFlowSourceSetting.class); - Assertions.assertEquals("oxgjiuqhibt", model.sourceName()); - Assertions.assertEquals(645359051, model.rowLimit()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowSourceTests.java deleted file mode 100644 index e314d56c8ecb..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowSourceTests.java +++ /dev/null @@ -1,105 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DataFlowReference; -import com.azure.resourcemanager.datafactory.models.DataFlowReferenceType; -import com.azure.resourcemanager.datafactory.models.DataFlowSource; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DataFlowSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataFlowSource model = - BinaryData - .fromString( - "{\"schemaLinkedService\":{\"referenceName\":\"zlpzbtzuyky\",\"parameters\":{\"fp\":\"datafsdyepfnocmbeza\"}},\"name\":\"tga\",\"description\":\"yqejga\",\"dataset\":{\"referenceName\":\"kctgkp\",\"parameters\":{\"fngdyfcixr\":\"dataqzkcyzm\",\"mkahpqha\":\"datalcqvhoejgoiutgw\",\"mip\":\"datayntacihnco\"}},\"linkedService\":{\"referenceName\":\"liqmvlbhikeaq\",\"parameters\":{\"dtsdfjy\":\"datagpomxpu\",\"mpyzgleo\":\"dataesocwiqbuou\",\"bwwzvdajf\":\"datajsb\",\"lwixvtbou\":\"datanncfmaciqgjjrlhi\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"tnd\",\"datasetParameters\":\"datagjttbasualapdlnd\",\"parameters\":{\"ixv\":\"dataqb\",\"spugzfeuzjljmph\":\"datalwynpbbfqvzfj\",\"zolgjzmicuydocc\":\"dataky\",\"iadhbatec\":\"dataxshanzb\"},\"\":{\"iucbda\":\"datasdohz\",\"pow\":\"datambwiinjdllwktl\",\"g\":\"datavvqxua\",\"si\":\"dataqwulynkgfcfdru\"}}}") - .toObject(DataFlowSource.class); - Assertions.assertEquals("tga", model.name()); - Assertions.assertEquals("yqejga", model.description()); - Assertions.assertEquals("kctgkp", model.dataset().referenceName()); - Assertions.assertEquals("liqmvlbhikeaq", model.linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.flowlet().type()); - Assertions.assertEquals("tnd", model.flowlet().referenceName()); - Assertions.assertEquals("zlpzbtzuyky", model.schemaLinkedService().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataFlowSource model = - new DataFlowSource() - .withName("tga") - .withDescription("yqejga") - .withDataset( - new DatasetReference() - .withReferenceName("kctgkp") - .withParameters( - mapOf( - "fngdyfcixr", - "dataqzkcyzm", - "mkahpqha", - "datalcqvhoejgoiutgw", - "mip", - "datayntacihnco"))) - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("liqmvlbhikeaq") - .withParameters( - mapOf( - "dtsdfjy", - "datagpomxpu", - "mpyzgleo", - "dataesocwiqbuou", - "bwwzvdajf", - "datajsb", - "lwixvtbou", - "datanncfmaciqgjjrlhi"))) - .withFlowlet( - new DataFlowReference() - .withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("tnd") - .withDatasetParameters("datagjttbasualapdlnd") - .withParameters( - mapOf( - "ixv", - "dataqb", - "spugzfeuzjljmph", - "datalwynpbbfqvzfj", - "zolgjzmicuydocc", - "dataky", - "iadhbatec", - "dataxshanzb")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService( - new LinkedServiceReference() - .withReferenceName("zlpzbtzuyky") - .withParameters(mapOf("fp", "datafsdyepfnocmbeza"))); - model = BinaryData.fromObject(model).toObject(DataFlowSource.class); - Assertions.assertEquals("tga", model.name()); - Assertions.assertEquals("yqejga", model.description()); - Assertions.assertEquals("kctgkp", model.dataset().referenceName()); - Assertions.assertEquals("liqmvlbhikeaq", model.linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.flowlet().type()); - Assertions.assertEquals("tnd", model.flowlet().referenceName()); - Assertions.assertEquals("zlpzbtzuyky", model.schemaLinkedService().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowStagingInfoTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowStagingInfoTests.java deleted file mode 100644 index 7dd44c6463b3..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowStagingInfoTests.java +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DataFlowStagingInfo; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DataFlowStagingInfoTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataFlowStagingInfo model = - BinaryData - .fromString( - "{\"linkedService\":{\"referenceName\":\"cpzgpxtiv\",\"parameters\":{\"n\":\"datanidibgqjxg\",\"kqmhhaowjr\":\"datahgovfgp\"}},\"folderPath\":\"datavuporqzdfuydzv\"}") - .toObject(DataFlowStagingInfo.class); - Assertions.assertEquals("cpzgpxtiv", model.linkedService().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataFlowStagingInfo model = - new DataFlowStagingInfo() - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("cpzgpxtiv") - .withParameters(mapOf("n", "datanidibgqjxg", "kqmhhaowjr", "datahgovfgp"))) - .withFolderPath("datavuporqzdfuydzv"); - model = BinaryData.fromObject(model).toObject(DataFlowStagingInfo.class); - Assertions.assertEquals("cpzgpxtiv", model.linkedService().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowTests.java deleted file mode 100644 index fea1a18dad91..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DataFlow; -import com.azure.resourcemanager.datafactory.models.DataFlowFolder; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class DataFlowTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataFlow model = - BinaryData - .fromString( - "{\"type\":\"DataFlow\",\"description\":\"kyoqufdv\",\"annotations\":[\"dataslzojh\",\"datactfnmdxotng\"],\"folder\":{\"name\":\"ugeyzihgrkyuiza\"}}") - .toObject(DataFlow.class); - Assertions.assertEquals("kyoqufdv", model.description()); - Assertions.assertEquals("ugeyzihgrkyuiza", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataFlow model = - new DataFlow() - .withDescription("kyoqufdv") - .withAnnotations(Arrays.asList("dataslzojh", "datactfnmdxotng")) - .withFolder(new DataFlowFolder().withName("ugeyzihgrkyuiza")); - model = BinaryData.fromObject(model).toObject(DataFlow.class); - Assertions.assertEquals("kyoqufdv", model.description()); - Assertions.assertEquals("ugeyzihgrkyuiza", model.folder().name()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowsCreateOrUpdateWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowsCreateOrUpdateWithResponseMockTests.java deleted file mode 100644 index 6ddd4b527982..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowsCreateOrUpdateWithResponseMockTests.java +++ /dev/null @@ -1,82 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.DataFlow; -import com.azure.resourcemanager.datafactory.models.DataFlowFolder; -import com.azure.resourcemanager.datafactory.models.DataFlowResource; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class DataFlowsCreateOrUpdateWithResponseMockTests { - @Test - public void testCreateOrUpdateWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"type\":\"DataFlow\",\"description\":\"ieyyfqhndjbyo\",\"annotations\":[\"dataxccrajxfhsgpymzr\",\"datasdj\"],\"folder\":{\"name\":\"p\"}},\"name\":\"bnnu\",\"type\":\"zyhoiufrqsmjgdd\",\"etag\":\"nxuf\",\"id\":\"aqsfphgdw\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - DataFlowResource response = - manager - .dataFlows() - .define("wuqgaa") - .withExistingFactory("udrclzro", "xirtt") - .withProperties( - new DataFlow() - .withDescription("fkdf") - .withAnnotations(Arrays.asList("databekmeeow")) - .withFolder(new DataFlowFolder().withName("pjaqfebt"))) - .withIfMatch("iwgrj") - .create(); - - Assertions.assertEquals("aqsfphgdw", response.id()); - Assertions.assertEquals("ieyyfqhndjbyo", response.properties().description()); - Assertions.assertEquals("p", response.properties().folder().name()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowsDeleteWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowsDeleteWithResponseMockTests.java deleted file mode 100644 index aa3316f4d674..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowsDeleteWithResponseMockTests.java +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class DataFlowsDeleteWithResponseMockTests { - @Test - public void testDeleteWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.dataFlows().deleteWithResponse("nfy", "xkeavbezzpfldd", "vcwhodfwv", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowsGetWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowsGetWithResponseMockTests.java deleted file mode 100644 index 0fef13cad147..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowsGetWithResponseMockTests.java +++ /dev/null @@ -1,77 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.DataFlowResource; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class DataFlowsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"type\":\"DataFlow\",\"description\":\"cglfe\",\"annotations\":[\"datasyskivlz\"],\"folder\":{\"name\":\"qvlgcppnsiynz\"}},\"name\":\"dkurwgtypnj\",\"type\":\"ol\",\"etag\":\"sdgm\",\"id\":\"sktejcmhttiq\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - DataFlowResource response = - manager - .dataFlows() - .getWithResponse( - "dfreyrgrgft", - "ehxddmaevcjtrw", - "cnwqeixyjlfobj", - "betsvnloduvcq", - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("sktejcmhttiq", response.id()); - Assertions.assertEquals("cglfe", response.properties().description()); - Assertions.assertEquals("qvlgcppnsiynz", response.properties().folder().name()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowsListByFactoryMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowsListByFactoryMockTests.java deleted file mode 100644 index 70240a6acdf1..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowsListByFactoryMockTests.java +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.DataFlowResource; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class DataFlowsListByFactoryMockTests { - @Test - public void testListByFactory() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"properties\":{\"type\":\"DataFlow\",\"description\":\"ktlofgpnswvcsekw\",\"annotations\":[\"datafpoqbekkqsaby\"],\"folder\":{\"name\":\"rwprbzfbdsncy\"}},\"name\":\"gtqrowtazqexwkk\",\"type\":\"cj\",\"etag\":\"nkeai\",\"id\":\"hzj\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = - manager.dataFlows().listByFactory("xrfr", "x", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("hzj", response.iterator().next().id()); - Assertions.assertEquals("ktlofgpnswvcsekw", response.iterator().next().properties().description()); - Assertions.assertEquals("rwprbzfbdsncy", response.iterator().next().properties().folder().name()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataLakeAnalyticsUsqlActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataLakeAnalyticsUsqlActivityTests.java deleted file mode 100644 index 063e835ccfc5..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataLakeAnalyticsUsqlActivityTests.java +++ /dev/null @@ -1,147 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityPolicy; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DataLakeAnalyticsUsqlActivity; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DataLakeAnalyticsUsqlActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataLakeAnalyticsUsqlActivity model = - BinaryData - .fromString( - "{\"type\":\"DataLakeAnalyticsU-SQL\",\"typeProperties\":{\"scriptPath\":\"datarq\",\"scriptLinkedService\":{\"referenceName\":\"elmsxnxhkzcdnip\",\"parameters\":{\"mknzotm\":\"datauvsvgydtdt\"}},\"degreeOfParallelism\":\"datazkwpooaskflrqwf\",\"priority\":\"datakks\",\"parameters\":{\"fix\":\"datazvnouthbvvcbwudi\",\"rqivqzqcmrxh\":\"dataw\",\"fhijcetcystrs\":\"datalozg\",\"qoyoerlrqtqnx\":\"datayttxspaafs\"},\"runtimeVersion\":\"datalgt\",\"compilationMode\":\"datae\"},\"linkedServiceName\":{\"referenceName\":\"wbmqpbfjbsoljq\",\"parameters\":{\"xbkckam\":\"datajzbxmg\",\"bkmxohmrbjhyl\":\"datadoqfe\",\"f\":\"dataxnwcejczi\"}},\"policy\":{\"timeout\":\"dataqwnkj\",\"retry\":\"datayymb\",\"retryIntervalInSeconds\":1488637221,\"secureInput\":false,\"secureOutput\":true,\"\":{\"huvuokrkib\":\"datagryo\",\"jaxkby\":\"dataonuocmxt\"}},\"name\":\"v\",\"description\":\"pmyvasn\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"yz\",\"dependencyConditions\":[\"Succeeded\",\"Succeeded\",\"Failed\"],\"\":{\"lmfvqvyzacjxczj\":\"datapy\"}},{\"activity\":\"sixterpbjkhtmm\",\"dependencyConditions\":[\"Completed\",\"Succeeded\",\"Failed\"],\"\":{\"mziwxwwpi\":\"datatrqhncscaynh\"}},{\"activity\":\"wl\",\"dependencyConditions\":[\"Succeeded\",\"Completed\",\"Succeeded\",\"Failed\"],\"\":{\"txfzhvxqotwcfbqz\":\"datahotbsgkliu\",\"hyxxftrfwmxwjc\":\"datazchpjh\"}}],\"userProperties\":[{\"name\":\"kmona\",\"value\":\"dataleof\"},{\"name\":\"xznopk\",\"value\":\"dataoffeutvqgnugiiyc\"},{\"name\":\"jf\",\"value\":\"datakntdynbrf\"},{\"name\":\"crabrqdbxhg\",\"value\":\"datalz\"}],\"\":{\"fziixyxntuz\":\"datavnlubkb\",\"pcmnpo\":\"dataceuz\",\"fayophpudccaqhb\":\"datasqilmvx\",\"rgvzjtvjrrk\":\"datavbutesxufrwiive\"}}") - .toObject(DataLakeAnalyticsUsqlActivity.class); - Assertions.assertEquals("v", model.name()); - Assertions.assertEquals("pmyvasn", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("yz", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("kmona", model.userProperties().get(0).name()); - Assertions.assertEquals("wbmqpbfjbsoljq", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1488637221, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - Assertions.assertEquals("elmsxnxhkzcdnip", model.scriptLinkedService().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataLakeAnalyticsUsqlActivity model = - new DataLakeAnalyticsUsqlActivity() - .withName("v") - .withDescription("pmyvasn") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("yz") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.SUCCEEDED, - DependencyCondition.SUCCEEDED, - DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("sixterpbjkhtmm") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.COMPLETED, - DependencyCondition.SUCCEEDED, - DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("wl") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.SUCCEEDED, - DependencyCondition.COMPLETED, - DependencyCondition.SUCCEEDED, - DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays - .asList( - new UserProperty().withName("kmona").withValue("dataleof"), - new UserProperty().withName("xznopk").withValue("dataoffeutvqgnugiiyc"), - new UserProperty().withName("jf").withValue("datakntdynbrf"), - new UserProperty().withName("crabrqdbxhg").withValue("datalz"))) - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("wbmqpbfjbsoljq") - .withParameters( - mapOf("xbkckam", "datajzbxmg", "bkmxohmrbjhyl", "datadoqfe", "f", "dataxnwcejczi"))) - .withPolicy( - new ActivityPolicy() - .withTimeout("dataqwnkj") - .withRetry("datayymb") - .withRetryIntervalInSeconds(1488637221) - .withSecureInput(false) - .withSecureOutput(true) - .withAdditionalProperties(mapOf())) - .withScriptPath("datarq") - .withScriptLinkedService( - new LinkedServiceReference() - .withReferenceName("elmsxnxhkzcdnip") - .withParameters(mapOf("mknzotm", "datauvsvgydtdt"))) - .withDegreeOfParallelism("datazkwpooaskflrqwf") - .withPriority("datakks") - .withParameters( - mapOf( - "fix", - "datazvnouthbvvcbwudi", - "rqivqzqcmrxh", - "dataw", - "fhijcetcystrs", - "datalozg", - "qoyoerlrqtqnx", - "datayttxspaafs")) - .withRuntimeVersion("datalgt") - .withCompilationMode("datae"); - model = BinaryData.fromObject(model).toObject(DataLakeAnalyticsUsqlActivity.class); - Assertions.assertEquals("v", model.name()); - Assertions.assertEquals("pmyvasn", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("yz", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("kmona", model.userProperties().get(0).name()); - Assertions.assertEquals("wbmqpbfjbsoljq", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1488637221, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - Assertions.assertEquals("elmsxnxhkzcdnip", model.scriptLinkedService().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataLakeAnalyticsUsqlActivityTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataLakeAnalyticsUsqlActivityTypePropertiesTests.java deleted file mode 100644 index effd48232624..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataLakeAnalyticsUsqlActivityTypePropertiesTests.java +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.DataLakeAnalyticsUsqlActivityTypeProperties; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DataLakeAnalyticsUsqlActivityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataLakeAnalyticsUsqlActivityTypeProperties model = - BinaryData - .fromString( - "{\"scriptPath\":\"datalweozccdo\",\"scriptLinkedService\":{\"referenceName\":\"tjnktheh\",\"parameters\":{\"ciklbnroxgwqgbv\":\"datajraeiavdh\"}},\"degreeOfParallelism\":\"datatcbmn\",\"priority\":\"dataozvxdbztwkzfpuw\",\"parameters\":{\"kuviuxtyvpvegxdz\":\"datauixb\",\"zn\":\"datapfkzjxjn\",\"ntqvlktqsb\":\"dataxcjkteu\",\"jiktwfjyl\":\"dataurblbtvsxnaothlr\"},\"runtimeVersion\":\"datamibao\",\"compilationMode\":\"datalbznwegy\"}") - .toObject(DataLakeAnalyticsUsqlActivityTypeProperties.class); - Assertions.assertEquals("tjnktheh", model.scriptLinkedService().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataLakeAnalyticsUsqlActivityTypeProperties model = - new DataLakeAnalyticsUsqlActivityTypeProperties() - .withScriptPath("datalweozccdo") - .withScriptLinkedService( - new LinkedServiceReference() - .withReferenceName("tjnktheh") - .withParameters(mapOf("ciklbnroxgwqgbv", "datajraeiavdh"))) - .withDegreeOfParallelism("datatcbmn") - .withPriority("dataozvxdbztwkzfpuw") - .withParameters( - mapOf( - "kuviuxtyvpvegxdz", - "datauixb", - "zn", - "datapfkzjxjn", - "ntqvlktqsb", - "dataxcjkteu", - "jiktwfjyl", - "dataurblbtvsxnaothlr")) - .withRuntimeVersion("datamibao") - .withCompilationMode("datalbznwegy"); - model = BinaryData.fromObject(model).toObject(DataLakeAnalyticsUsqlActivityTypeProperties.class); - Assertions.assertEquals("tjnktheh", model.scriptLinkedService().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataMapperMappingTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataMapperMappingTests.java deleted file mode 100644 index 17e4cb09fa96..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataMapperMappingTests.java +++ /dev/null @@ -1,178 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ConnectionType; -import com.azure.resourcemanager.datafactory.models.DataMapperMapping; -import com.azure.resourcemanager.datafactory.models.MapperAttributeMapping; -import com.azure.resourcemanager.datafactory.models.MapperAttributeMappings; -import com.azure.resourcemanager.datafactory.models.MapperAttributeReference; -import com.azure.resourcemanager.datafactory.models.MapperConnectionReference; -import com.azure.resourcemanager.datafactory.models.MappingType; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class DataMapperMappingTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataMapperMapping model = - BinaryData - .fromString( - "{\"targetEntityName\":\"mhklbnl\",\"sourceEntityName\":\"vcb\",\"sourceConnectionReference\":{\"connectionName\":\"zyqu\",\"type\":\"linkedservicetype\"},\"attributeMappingInfo\":{\"attributeMappings\":[{\"name\":\"rp\",\"type\":\"Aggregate\",\"functionName\":\"yuuatvlmbjwcolbm\",\"expression\":\"b\",\"attributeReference\":{\"name\":\"pcpahprzrvxhmtf\",\"entity\":\"cnxzcmj\",\"entityConnectionReference\":{\"connectionName\":\"xnoqrxtdisn\",\"type\":\"linkedservicetype\"}},\"attributeReferences\":[{\"name\":\"mydidwhepfw\",\"entity\":\"jfdoesxxhm\",\"entityConnectionReference\":{}}]},{\"name\":\"bckyoikxk\",\"type\":\"Direct\",\"functionName\":\"gknjzr\",\"expression\":\"t\",\"attributeReference\":{\"name\":\"lvukaobrlb\",\"entity\":\"snbagnchjhg\",\"entityConnectionReference\":{\"connectionName\":\"owa\",\"type\":\"linkedservicetype\"}},\"attributeReferences\":[{\"name\":\"jymxcgqt\",\"entity\":\"drclssoljome\",\"entityConnectionReference\":{}},{\"name\":\"ycnlbvgjcodk\",\"entity\":\"ji\",\"entityConnectionReference\":{}}]}]},\"sourceDenormalizeInfo\":\"datas\"}") - .toObject(DataMapperMapping.class); - Assertions.assertEquals("mhklbnl", model.targetEntityName()); - Assertions.assertEquals("vcb", model.sourceEntityName()); - Assertions.assertEquals("zyqu", model.sourceConnectionReference().connectionName()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, model.sourceConnectionReference().type()); - Assertions.assertEquals("rp", model.attributeMappingInfo().attributeMappings().get(0).name()); - Assertions.assertEquals(MappingType.AGGREGATE, model.attributeMappingInfo().attributeMappings().get(0).type()); - Assertions - .assertEquals("yuuatvlmbjwcolbm", model.attributeMappingInfo().attributeMappings().get(0).functionName()); - Assertions.assertEquals("b", model.attributeMappingInfo().attributeMappings().get(0).expression()); - Assertions - .assertEquals( - "pcpahprzrvxhmtf", model.attributeMappingInfo().attributeMappings().get(0).attributeReference().name()); - Assertions - .assertEquals( - "cnxzcmj", model.attributeMappingInfo().attributeMappings().get(0).attributeReference().entity()); - Assertions - .assertEquals( - "xnoqrxtdisn", - model - .attributeMappingInfo() - .attributeMappings() - .get(0) - .attributeReference() - .entityConnectionReference() - .connectionName()); - Assertions - .assertEquals( - ConnectionType.LINKEDSERVICETYPE, - model - .attributeMappingInfo() - .attributeMappings() - .get(0) - .attributeReference() - .entityConnectionReference() - .type()); - Assertions - .assertEquals( - "mydidwhepfw", - model.attributeMappingInfo().attributeMappings().get(0).attributeReferences().get(0).name()); - Assertions - .assertEquals( - "jfdoesxxhm", - model.attributeMappingInfo().attributeMappings().get(0).attributeReferences().get(0).entity()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataMapperMapping model = - new DataMapperMapping() - .withTargetEntityName("mhklbnl") - .withSourceEntityName("vcb") - .withSourceConnectionReference( - new MapperConnectionReference() - .withConnectionName("zyqu") - .withType(ConnectionType.LINKEDSERVICETYPE)) - .withAttributeMappingInfo( - new MapperAttributeMappings() - .withAttributeMappings( - Arrays - .asList( - new MapperAttributeMapping() - .withName("rp") - .withType(MappingType.AGGREGATE) - .withFunctionName("yuuatvlmbjwcolbm") - .withExpression("b") - .withAttributeReference( - new MapperAttributeReference() - .withName("pcpahprzrvxhmtf") - .withEntity("cnxzcmj") - .withEntityConnectionReference( - new MapperConnectionReference() - .withConnectionName("xnoqrxtdisn") - .withType(ConnectionType.LINKEDSERVICETYPE))) - .withAttributeReferences( - Arrays - .asList( - new MapperAttributeReference() - .withName("mydidwhepfw") - .withEntity("jfdoesxxhm") - .withEntityConnectionReference( - new MapperConnectionReference()))), - new MapperAttributeMapping() - .withName("bckyoikxk") - .withType(MappingType.DIRECT) - .withFunctionName("gknjzr") - .withExpression("t") - .withAttributeReference( - new MapperAttributeReference() - .withName("lvukaobrlb") - .withEntity("snbagnchjhg") - .withEntityConnectionReference( - new MapperConnectionReference() - .withConnectionName("owa") - .withType(ConnectionType.LINKEDSERVICETYPE))) - .withAttributeReferences( - Arrays - .asList( - new MapperAttributeReference() - .withName("jymxcgqt") - .withEntity("drclssoljome") - .withEntityConnectionReference(new MapperConnectionReference()), - new MapperAttributeReference() - .withName("ycnlbvgjcodk") - .withEntity("ji") - .withEntityConnectionReference( - new MapperConnectionReference())))))) - .withSourceDenormalizeInfo("datas"); - model = BinaryData.fromObject(model).toObject(DataMapperMapping.class); - Assertions.assertEquals("mhklbnl", model.targetEntityName()); - Assertions.assertEquals("vcb", model.sourceEntityName()); - Assertions.assertEquals("zyqu", model.sourceConnectionReference().connectionName()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, model.sourceConnectionReference().type()); - Assertions.assertEquals("rp", model.attributeMappingInfo().attributeMappings().get(0).name()); - Assertions.assertEquals(MappingType.AGGREGATE, model.attributeMappingInfo().attributeMappings().get(0).type()); - Assertions - .assertEquals("yuuatvlmbjwcolbm", model.attributeMappingInfo().attributeMappings().get(0).functionName()); - Assertions.assertEquals("b", model.attributeMappingInfo().attributeMappings().get(0).expression()); - Assertions - .assertEquals( - "pcpahprzrvxhmtf", model.attributeMappingInfo().attributeMappings().get(0).attributeReference().name()); - Assertions - .assertEquals( - "cnxzcmj", model.attributeMappingInfo().attributeMappings().get(0).attributeReference().entity()); - Assertions - .assertEquals( - "xnoqrxtdisn", - model - .attributeMappingInfo() - .attributeMappings() - .get(0) - .attributeReference() - .entityConnectionReference() - .connectionName()); - Assertions - .assertEquals( - ConnectionType.LINKEDSERVICETYPE, - model - .attributeMappingInfo() - .attributeMappings() - .get(0) - .attributeReference() - .entityConnectionReference() - .type()); - Assertions - .assertEquals( - "mydidwhepfw", - model.attributeMappingInfo().attributeMappings().get(0).attributeReferences().get(0).name()); - Assertions - .assertEquals( - "jfdoesxxhm", - model.attributeMappingInfo().attributeMappings().get(0).attributeReferences().get(0).entity()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatabricksNotebookActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatabricksNotebookActivityTests.java deleted file mode 100644 index caa9bdeea6b9..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatabricksNotebookActivityTests.java +++ /dev/null @@ -1,153 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityPolicy; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DatabricksNotebookActivity; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DatabricksNotebookActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DatabricksNotebookActivity model = - BinaryData - .fromString( - "{\"type\":\"DatabricksNotebook\",\"typeProperties\":{\"notebookPath\":\"datakheh\",\"baseParameters\":{\"hhhexgxnmfo\":\"dataaxgemspnzq\",\"tycfostzdxb\":\"dataxiyzvfo\",\"ihtxgj\":\"datapglcbhahxsjxurrh\"},\"libraries\":[{\"mz\":\"datahujgrb\",\"scrfbdttcfwjzquw\":\"datagxjoimozsef\",\"uorzb\":\"datagfihlol\",\"yajijzrt\":\"datafefxvggkjbhsnyy\"},{\"el\":\"datangonhmblk\",\"emneu\":\"datajk\",\"kqvcf\":\"datapynenca\",\"pmvxcrzpdqw\":\"datargwxgczwxyghs\"},{\"fiwbtfki\":\"datahygbe\",\"zsxjrafhdf\":\"datalmfh\",\"nqijphh\":\"dataukaaw\",\"gwgqh\":\"datavf\"}]},\"linkedServiceName\":{\"referenceName\":\"easmk\",\"parameters\":{\"pwqbotlvcpcxxp\":\"dataodou\",\"fqfvrqruympo\":\"datartajlyd\"}},\"policy\":{\"timeout\":\"databqdwbjhgjzv\",\"retry\":\"datayxvfoyuykrdgg\",\"retryIntervalInSeconds\":1801534087,\"secureInput\":true,\"secureOutput\":true,\"\":{\"bkblopemorfzuhvy\":\"datahndbutptyabd\",\"zmzsfv\":\"datadnd\",\"vkmkbtp\":\"dataiskplnddpqcqi\"}},\"name\":\"wthzmqab\",\"description\":\"bg\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"mbxshrae\",\"dependencyConditions\":[\"Failed\",\"Skipped\",\"Failed\"],\"\":{\"uuoluldjeq\":\"datagqtzhrzeib\",\"mcy\":\"datamo\"}},{\"activity\":\"aqkeuraylygclwb\",\"dependencyConditions\":[\"Skipped\",\"Completed\",\"Succeeded\",\"Skipped\"],\"\":{\"dll\":\"dataexqvthfnhzgt\",\"azyhhcqjahhc\":\"dataunoelknyopglgk\"}}],\"userProperties\":[{\"name\":\"aryhcxmf\",\"value\":\"datagmqlcooyxfrrdbd\"},{\"name\":\"h\",\"value\":\"datafmycgucccb\"}],\"\":{\"chqigjamozlh\":\"datadbxlturlnbmj\",\"tegxnguvjryfcxsc\":\"datat\"}}") - .toObject(DatabricksNotebookActivity.class); - Assertions.assertEquals("wthzmqab", model.name()); - Assertions.assertEquals("bg", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("mbxshrae", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("aryhcxmf", model.userProperties().get(0).name()); - Assertions.assertEquals("easmk", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1801534087, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DatabricksNotebookActivity model = - new DatabricksNotebookActivity() - .withName("wthzmqab") - .withDescription("bg") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("mbxshrae") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.FAILED, - DependencyCondition.SKIPPED, - DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("aqkeuraylygclwb") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.SKIPPED, - DependencyCondition.COMPLETED, - DependencyCondition.SUCCEEDED, - DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays - .asList( - new UserProperty().withName("aryhcxmf").withValue("datagmqlcooyxfrrdbd"), - new UserProperty().withName("h").withValue("datafmycgucccb"))) - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("easmk") - .withParameters(mapOf("pwqbotlvcpcxxp", "dataodou", "fqfvrqruympo", "datartajlyd"))) - .withPolicy( - new ActivityPolicy() - .withTimeout("databqdwbjhgjzv") - .withRetry("datayxvfoyuykrdgg") - .withRetryIntervalInSeconds(1801534087) - .withSecureInput(true) - .withSecureOutput(true) - .withAdditionalProperties(mapOf())) - .withNotebookPath("datakheh") - .withBaseParameters( - mapOf( - "hhhexgxnmfo", - "dataaxgemspnzq", - "tycfostzdxb", - "dataxiyzvfo", - "ihtxgj", - "datapglcbhahxsjxurrh")) - .withLibraries( - Arrays - .asList( - mapOf( - "mz", - "datahujgrb", - "scrfbdttcfwjzquw", - "datagxjoimozsef", - "uorzb", - "datagfihlol", - "yajijzrt", - "datafefxvggkjbhsnyy"), - mapOf( - "el", - "datangonhmblk", - "emneu", - "datajk", - "kqvcf", - "datapynenca", - "pmvxcrzpdqw", - "datargwxgczwxyghs"), - mapOf( - "fiwbtfki", - "datahygbe", - "zsxjrafhdf", - "datalmfh", - "nqijphh", - "dataukaaw", - "gwgqh", - "datavf"))); - model = BinaryData.fromObject(model).toObject(DatabricksNotebookActivity.class); - Assertions.assertEquals("wthzmqab", model.name()); - Assertions.assertEquals("bg", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("mbxshrae", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("aryhcxmf", model.userProperties().get(0).name()); - Assertions.assertEquals("easmk", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1801534087, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatabricksNotebookActivityTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatabricksNotebookActivityTypePropertiesTests.java deleted file mode 100644 index 454de92bad51..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatabricksNotebookActivityTypePropertiesTests.java +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.DatabricksNotebookActivityTypeProperties; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; - -public final class DatabricksNotebookActivityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DatabricksNotebookActivityTypeProperties model = - BinaryData - .fromString( - "{\"notebookPath\":\"dataswytnoirie\",\"baseParameters\":{\"q\":\"datam\",\"svweu\":\"dataimnfgfsjptb\",\"fnhmrawmchcdegw\":\"datatoe\"},\"libraries\":[{\"thpg\":\"dataiewfjwfkw\",\"xf\":\"datamtahnimkndujyw\"},{\"slytmttjducosxc\":\"dataymuwa\",\"wpmpapwmpdsvkiwj\":\"datahtovtn\"},{\"lkj\":\"datafz\"}]}") - .toObject(DatabricksNotebookActivityTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DatabricksNotebookActivityTypeProperties model = - new DatabricksNotebookActivityTypeProperties() - .withNotebookPath("dataswytnoirie") - .withBaseParameters(mapOf("q", "datam", "svweu", "dataimnfgfsjptb", "fnhmrawmchcdegw", "datatoe")) - .withLibraries( - Arrays - .asList( - mapOf("thpg", "dataiewfjwfkw", "xf", "datamtahnimkndujyw"), - mapOf("slytmttjducosxc", "dataymuwa", "wpmpapwmpdsvkiwj", "datahtovtn"), - mapOf("lkj", "datafz"))); - model = BinaryData.fromObject(model).toObject(DatabricksNotebookActivityTypeProperties.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatabricksSparkJarActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatabricksSparkJarActivityTests.java deleted file mode 100644 index 8587da3e883a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatabricksSparkJarActivityTests.java +++ /dev/null @@ -1,148 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityPolicy; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DatabricksSparkJarActivity; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DatabricksSparkJarActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DatabricksSparkJarActivity model = - BinaryData - .fromString( - "{\"type\":\"DatabricksSparkJar\",\"typeProperties\":{\"mainClassName\":\"datavudigwky\",\"parameters\":[\"dataedgapraa\"],\"libraries\":[{\"upjgebnsuiklnc\":\"dataojt\",\"xyfpcvbl\":\"dataoyghrbabxywoj\",\"u\":\"dataeoynthxkqczm\"},{\"hvmez\":\"dataupifgizkvokkhr\",\"drtokw\":\"dataf\",\"wxctdpjuwujxxs\":\"datambonureklgunpajw\",\"ulnntji\":\"dataookhobzisqpst\"},{\"niac\":\"datan\",\"llk\":\"datattdyvifltvwebzf\",\"cerqhp\":\"datanwinqywlvxuxztj\"},{\"ayhp\":\"datakxjlyjlkjhmug\",\"soi\":\"datastlsdgiqgeeqcgu\",\"wkkykaz\":\"dataevrglzx\"}]},\"linkedServiceName\":{\"referenceName\":\"aqxnkdqsy\",\"parameters\":{\"gvhwkw\":\"dataktwk\",\"wikqkxduhydxahj\":\"dataxjezystirrhbkzz\",\"lwofo\":\"datadazmmgsx\",\"wlwhtpykfcccaujg\":\"datamyludflf\"}},\"policy\":{\"timeout\":\"datakjqupjxdbgmgxbv\",\"retry\":\"datamblntdy\",\"retryIntervalInSeconds\":349718519,\"secureInput\":false,\"secureOutput\":true,\"\":{\"vliqgawen\":\"datafscsrwliuteusu\",\"q\":\"datatmvzzs\",\"oc\":\"datavwgizvvtdr\",\"qdostvx\":\"datazgfnphfppjzmpxam\"}},\"name\":\"kfnmnfndrbkkoocp\",\"description\":\"s\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"paivkgdrqkvnp\",\"dependencyConditions\":[\"Succeeded\",\"Skipped\",\"Failed\",\"Skipped\"],\"\":{\"xwzixmv\":\"datafwslvsparvhzfyn\",\"gigepfokslcnsxh\":\"datakuvbesrawzxnwxsj\",\"hdjarfdfnq\":\"dataqeyzzydpvvc\"}},{\"activity\":\"vrs\",\"dependencyConditions\":[\"Failed\",\"Skipped\",\"Succeeded\"],\"\":{\"edfpub\":\"datavbdqmj\",\"ybbor\":\"dataxoohyesmlscvhra\",\"dkufqzuduq\":\"datadxhkdy\",\"u\":\"datadeigxtplpgft\"}},{\"activity\":\"kfa\",\"dependencyConditions\":[\"Failed\",\"Completed\"],\"\":{\"jvvtead\":\"datalibszcvceglvzh\",\"azaoytkubmv\":\"datac\",\"kjrqsp\":\"datanumvorosqesspwu\"}},{\"activity\":\"siitzbyue\",\"dependencyConditions\":[\"Skipped\",\"Failed\"],\"\":{\"lmwduisrv\":\"datarovps\",\"e\":\"dataunyqe\"}}],\"userProperties\":[{\"name\":\"zthcfnrlesg\",\"value\":\"datahcfqzmjm\"}],\"\":{\"kmtrrc\":\"datazz\",\"dprqjsmh\":\"dataulvauxkgklqucxew\",\"qydllhimvnvx\":\"dataqzvarq\",\"k\":\"dataxzabxhmdorxbuap\"}}") - .toObject(DatabricksSparkJarActivity.class); - Assertions.assertEquals("kfnmnfndrbkkoocp", model.name()); - Assertions.assertEquals("s", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("paivkgdrqkvnp", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("zthcfnrlesg", model.userProperties().get(0).name()); - Assertions.assertEquals("aqxnkdqsy", model.linkedServiceName().referenceName()); - Assertions.assertEquals(349718519, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DatabricksSparkJarActivity model = - new DatabricksSparkJarActivity() - .withName("kfnmnfndrbkkoocp") - .withDescription("s") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("paivkgdrqkvnp") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.SUCCEEDED, - DependencyCondition.SKIPPED, - DependencyCondition.FAILED, - DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("vrs") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.FAILED, - DependencyCondition.SKIPPED, - DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("kfa") - .withDependencyConditions( - Arrays.asList(DependencyCondition.FAILED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("siitzbyue") - .withDependencyConditions( - Arrays.asList(DependencyCondition.SKIPPED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("zthcfnrlesg").withValue("datahcfqzmjm"))) - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("aqxnkdqsy") - .withParameters( - mapOf( - "gvhwkw", - "dataktwk", - "wikqkxduhydxahj", - "dataxjezystirrhbkzz", - "lwofo", - "datadazmmgsx", - "wlwhtpykfcccaujg", - "datamyludflf"))) - .withPolicy( - new ActivityPolicy() - .withTimeout("datakjqupjxdbgmgxbv") - .withRetry("datamblntdy") - .withRetryIntervalInSeconds(349718519) - .withSecureInput(false) - .withSecureOutput(true) - .withAdditionalProperties(mapOf())) - .withMainClassName("datavudigwky") - .withParameters(Arrays.asList("dataedgapraa")) - .withLibraries( - Arrays - .asList( - mapOf( - "upjgebnsuiklnc", "dataojt", "xyfpcvbl", "dataoyghrbabxywoj", "u", "dataeoynthxkqczm"), - mapOf( - "hvmez", - "dataupifgizkvokkhr", - "drtokw", - "dataf", - "wxctdpjuwujxxs", - "datambonureklgunpajw", - "ulnntji", - "dataookhobzisqpst"), - mapOf("niac", "datan", "llk", "datattdyvifltvwebzf", "cerqhp", "datanwinqywlvxuxztj"), - mapOf( - "ayhp", "datakxjlyjlkjhmug", "soi", "datastlsdgiqgeeqcgu", "wkkykaz", "dataevrglzx"))); - model = BinaryData.fromObject(model).toObject(DatabricksSparkJarActivity.class); - Assertions.assertEquals("kfnmnfndrbkkoocp", model.name()); - Assertions.assertEquals("s", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("paivkgdrqkvnp", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("zthcfnrlesg", model.userProperties().get(0).name()); - Assertions.assertEquals("aqxnkdqsy", model.linkedServiceName().referenceName()); - Assertions.assertEquals(349718519, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatabricksSparkJarActivityTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatabricksSparkJarActivityTypePropertiesTests.java deleted file mode 100644 index fe49907f42ef..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatabricksSparkJarActivityTypePropertiesTests.java +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.DatabricksSparkJarActivityTypeProperties; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; - -public final class DatabricksSparkJarActivityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DatabricksSparkJarActivityTypeProperties model = - BinaryData - .fromString( - "{\"mainClassName\":\"dataoe\",\"parameters\":[\"datart\",\"databadrcy\",\"dataxbjaktg\",\"dataw\"],\"libraries\":[{\"ragqcwcdbtopuyi\":\"datahghorgji\",\"imhjbxwr\":\"databqdsuaazkouvvgcw\",\"z\":\"datagaofwo\"},{\"bnx\":\"datap\"},{\"uxjh\":\"datalysfsh\"}]}") - .toObject(DatabricksSparkJarActivityTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DatabricksSparkJarActivityTypeProperties model = - new DatabricksSparkJarActivityTypeProperties() - .withMainClassName("dataoe") - .withParameters(Arrays.asList("datart", "databadrcy", "dataxbjaktg", "dataw")) - .withLibraries( - Arrays - .asList( - mapOf( - "ragqcwcdbtopuyi", - "datahghorgji", - "imhjbxwr", - "databqdsuaazkouvvgcw", - "z", - "datagaofwo"), - mapOf("bnx", "datap"), - mapOf("uxjh", "datalysfsh"))); - model = BinaryData.fromObject(model).toObject(DatabricksSparkJarActivityTypeProperties.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatabricksSparkPythonActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatabricksSparkPythonActivityTests.java deleted file mode 100644 index 0ce272004952..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatabricksSparkPythonActivityTests.java +++ /dev/null @@ -1,128 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityPolicy; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DatabricksSparkPythonActivity; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DatabricksSparkPythonActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DatabricksSparkPythonActivity model = - BinaryData - .fromString( - "{\"type\":\"DatabricksSparkPython\",\"typeProperties\":{\"pythonFile\":\"datauzirhcghnclfahr\",\"parameters\":[\"datateuegrd\"],\"libraries\":[{\"miwoisqlsxzfycnp\":\"datatpqoajgg\"},{\"uaxfjuzgslqpzdx\":\"datanjzaaoxwcptoihoy\",\"zzscepoggzppufu\":\"datadanlgczvf\"},{\"uhjqdwlxabtlms\":\"dataaiecexy\",\"ipfqn\":\"dataqaud\"}]},\"linkedServiceName\":{\"referenceName\":\"kopivszejbptr\",\"parameters\":{\"vlo\":\"databzjem\",\"nbqsjzncg\":\"datauca\"}},\"policy\":{\"timeout\":\"dataqgivyxoj\",\"retry\":\"dataussvurslwdx\",\"retryIntervalInSeconds\":304981374,\"secureInput\":false,\"secureOutput\":true,\"\":{\"ksoqrhwl\":\"dataaq\"}},\"name\":\"nwhtwsxliwpzu\",\"description\":\"tzissrvt\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"ubh\",\"dependencyConditions\":[\"Skipped\",\"Skipped\",\"Completed\"],\"\":{\"ehyvq\":\"datagpzyqivu\",\"jtuoy\":\"datajbqfclijec\",\"xn\":\"datadlzxuakbavpk\",\"vsgx\":\"datarbckfzb\"}},{\"activity\":\"ijnvsjgnbdhhqs\",\"dependencyConditions\":[\"Failed\",\"Failed\"],\"\":{\"fjmi\":\"dataaxdyxjicikzmvdd\"}},{\"activity\":\"b\",\"dependencyConditions\":[\"Skipped\",\"Failed\"],\"\":{\"ymrfpqyxlncwagia\":\"dataisvpfspfdf\"}},{\"activity\":\"hzotko\",\"dependencyConditions\":[\"Succeeded\"],\"\":{\"zyl\":\"datar\",\"emsl\":\"datawymrmuioepi\"}}],\"userProperties\":[{\"name\":\"vryszqzve\",\"value\":\"datawnewmpwj\"},{\"name\":\"gryolbqcftrywdg\",\"value\":\"dataskdl\"},{\"name\":\"cfzyijnxvmcx\",\"value\":\"datajlpyhdxvdj\"},{\"name\":\"cuewtnqbqgfqivm\",\"value\":\"dataxwevdjmxvvtuky\"}],\"\":{\"moidinbfbkwyvw\":\"dataj\"}}") - .toObject(DatabricksSparkPythonActivity.class); - Assertions.assertEquals("nwhtwsxliwpzu", model.name()); - Assertions.assertEquals("tzissrvt", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.onInactiveMarkAs()); - Assertions.assertEquals("ubh", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SKIPPED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("vryszqzve", model.userProperties().get(0).name()); - Assertions.assertEquals("kopivszejbptr", model.linkedServiceName().referenceName()); - Assertions.assertEquals(304981374, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DatabricksSparkPythonActivity model = - new DatabricksSparkPythonActivity() - .withName("nwhtwsxliwpzu") - .withDescription("tzissrvt") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("ubh") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.SKIPPED, - DependencyCondition.SKIPPED, - DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("ijnvsjgnbdhhqs") - .withDependencyConditions( - Arrays.asList(DependencyCondition.FAILED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("b") - .withDependencyConditions( - Arrays.asList(DependencyCondition.SKIPPED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("hzotko") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays - .asList( - new UserProperty().withName("vryszqzve").withValue("datawnewmpwj"), - new UserProperty().withName("gryolbqcftrywdg").withValue("dataskdl"), - new UserProperty().withName("cfzyijnxvmcx").withValue("datajlpyhdxvdj"), - new UserProperty().withName("cuewtnqbqgfqivm").withValue("dataxwevdjmxvvtuky"))) - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("kopivszejbptr") - .withParameters(mapOf("vlo", "databzjem", "nbqsjzncg", "datauca"))) - .withPolicy( - new ActivityPolicy() - .withTimeout("dataqgivyxoj") - .withRetry("dataussvurslwdx") - .withRetryIntervalInSeconds(304981374) - .withSecureInput(false) - .withSecureOutput(true) - .withAdditionalProperties(mapOf())) - .withPythonFile("datauzirhcghnclfahr") - .withParameters(Arrays.asList("datateuegrd")) - .withLibraries( - Arrays - .asList( - mapOf("miwoisqlsxzfycnp", "datatpqoajgg"), - mapOf("uaxfjuzgslqpzdx", "datanjzaaoxwcptoihoy", "zzscepoggzppufu", "datadanlgczvf"), - mapOf("uhjqdwlxabtlms", "dataaiecexy", "ipfqn", "dataqaud"))); - model = BinaryData.fromObject(model).toObject(DatabricksSparkPythonActivity.class); - Assertions.assertEquals("nwhtwsxliwpzu", model.name()); - Assertions.assertEquals("tzissrvt", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.onInactiveMarkAs()); - Assertions.assertEquals("ubh", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SKIPPED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("vryszqzve", model.userProperties().get(0).name()); - Assertions.assertEquals("kopivszejbptr", model.linkedServiceName().referenceName()); - Assertions.assertEquals(304981374, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatabricksSparkPythonActivityTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatabricksSparkPythonActivityTypePropertiesTests.java deleted file mode 100644 index e3994aba65f5..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatabricksSparkPythonActivityTypePropertiesTests.java +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.DatabricksSparkPythonActivityTypeProperties; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; - -public final class DatabricksSparkPythonActivityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DatabricksSparkPythonActivityTypeProperties model = - BinaryData - .fromString( - "{\"pythonFile\":\"datacgmfklqswwdbs\",\"parameters\":[\"dataysedqrbevobqrwng\"],\"libraries\":[{\"ycou\":\"dataquzxmtmsyi\",\"sdjkrosq\":\"dataks\",\"jgyjoklngjsglz\":\"datavffrncsw\",\"wsqdnasjup\":\"datai\"},{\"zbdtvrg\":\"dataakks\",\"iotvfcbgffd\":\"dataebvqslikeuqv\"},{\"lixhapvwacwrc\":\"dataffatyqawtfyzqop\"}]}") - .toObject(DatabricksSparkPythonActivityTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DatabricksSparkPythonActivityTypeProperties model = - new DatabricksSparkPythonActivityTypeProperties() - .withPythonFile("datacgmfklqswwdbs") - .withParameters(Arrays.asList("dataysedqrbevobqrwng")) - .withLibraries( - Arrays - .asList( - mapOf( - "ycou", - "dataquzxmtmsyi", - "sdjkrosq", - "dataks", - "jgyjoklngjsglz", - "datavffrncsw", - "wsqdnasjup", - "datai"), - mapOf("zbdtvrg", "dataakks", "iotvfcbgffd", "dataebvqslikeuqv"), - mapOf("lixhapvwacwrc", "dataffatyqawtfyzqop"))); - model = BinaryData.fromObject(model).toObject(DatabricksSparkPythonActivityTypeProperties.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetCompressionTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetCompressionTests.java deleted file mode 100644 index 38fa205aa298..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetCompressionTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetCompression; -import java.util.HashMap; -import java.util.Map; - -public final class DatasetCompressionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DatasetCompression model = - BinaryData - .fromString( - "{\"type\":\"datalweeprne\",\"level\":\"datal\",\"\":{\"bduxapgrcq\":\"dataszfjsxs\",\"dls\":\"databmvrdjomlnwsbv\"}}") - .toObject(DatasetCompression.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DatasetCompression model = - new DatasetCompression().withType("datalweeprne").withLevel("datal").withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(DatasetCompression.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetDebugResourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetDebugResourceTests.java deleted file mode 100644 index 12332d702e8c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetDebugResourceTests.java +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.Dataset; -import com.azure.resourcemanager.datafactory.models.DatasetDebugResource; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DatasetDebugResourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DatasetDebugResource model = - BinaryData - .fromString( - "{\"properties\":{\"type\":\"Dataset\",\"description\":\"qmjxlyyzglgouwtl\",\"structure\":\"datajyuojqtobaxkjeyt\",\"schema\":\"datalbfjkwr\",\"linkedServiceName\":{\"referenceName\":\"snkq\",\"parameters\":{\"qunjqh\":\"datay\"}},\"parameters\":{\"ifmjnn\":{\"type\":\"Float\",\"defaultValue\":\"dataulkpakd\"},\"yirdhlisngwflqq\":{\"type\":\"String\",\"defaultValue\":\"dataqabpxuckpggqow\"}},\"annotations\":[\"datazruwn\",\"dataqxpxiwfcngjsaa\",\"dataiixtmkzj\",\"datakv\"],\"folder\":{\"name\":\"hgfgrwsd\"},\"\":{\"bglbyvict\":\"dataatzv\"}},\"name\":\"brxkjzwr\"}") - .toObject(DatasetDebugResource.class); - Assertions.assertEquals("brxkjzwr", model.name()); - Assertions.assertEquals("qmjxlyyzglgouwtl", model.properties().description()); - Assertions.assertEquals("snkq", model.properties().linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.properties().parameters().get("ifmjnn").type()); - Assertions.assertEquals("hgfgrwsd", model.properties().folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DatasetDebugResource model = - new DatasetDebugResource() - .withName("brxkjzwr") - .withProperties( - new Dataset() - .withDescription("qmjxlyyzglgouwtl") - .withStructure("datajyuojqtobaxkjeyt") - .withSchema("datalbfjkwr") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("snkq") - .withParameters(mapOf("qunjqh", "datay"))) - .withParameters( - mapOf( - "ifmjnn", - new ParameterSpecification() - .withType(ParameterType.FLOAT) - .withDefaultValue("dataulkpakd"), - "yirdhlisngwflqq", - new ParameterSpecification() - .withType(ParameterType.STRING) - .withDefaultValue("dataqabpxuckpggqow"))) - .withAnnotations(Arrays.asList("datazruwn", "dataqxpxiwfcngjsaa", "dataiixtmkzj", "datakv")) - .withFolder(new DatasetFolder().withName("hgfgrwsd")) - .withAdditionalProperties(mapOf("type", "Dataset"))); - model = BinaryData.fromObject(model).toObject(DatasetDebugResource.class); - Assertions.assertEquals("brxkjzwr", model.name()); - Assertions.assertEquals("qmjxlyyzglgouwtl", model.properties().description()); - Assertions.assertEquals("snkq", model.properties().linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.properties().parameters().get("ifmjnn").type()); - Assertions.assertEquals("hgfgrwsd", model.properties().folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetFolderTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetFolderTests.java deleted file mode 100644 index 9a1b172e92b5..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetFolderTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import org.junit.jupiter.api.Assertions; - -public final class DatasetFolderTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DatasetFolder model = BinaryData.fromString("{\"name\":\"eyvpnqicvinvkj\"}").toObject(DatasetFolder.class); - Assertions.assertEquals("eyvpnqicvinvkj", model.name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DatasetFolder model = new DatasetFolder().withName("eyvpnqicvinvkj"); - model = BinaryData.fromObject(model).toObject(DatasetFolder.class); - Assertions.assertEquals("eyvpnqicvinvkj", model.name()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetListResponseTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetListResponseTests.java deleted file mode 100644 index e671c9d82915..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetListResponseTests.java +++ /dev/null @@ -1,152 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.DatasetResourceInner; -import com.azure.resourcemanager.datafactory.models.Dataset; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.DatasetListResponse; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DatasetListResponseTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DatasetListResponse model = - BinaryData - .fromString( - "{\"value\":[{\"properties\":{\"type\":\"Dataset\",\"description\":\"uxvypomgkopkwh\",\"structure\":\"datav\",\"schema\":\"datajqg\",\"linkedServiceName\":{\"referenceName\":\"ysmocmbqfqvmkcxo\",\"parameters\":{\"kcbcue\":\"datavhelxprglyatdd\",\"hos\":\"datarjxgciqib\",\"ibahwflus\":\"datasdqrhzoymibmrq\"}},\"parameters\":{\"piexpbtgiw\":{\"type\":\"Object\",\"defaultValue\":\"datarkwofyyvoqa\"},\"tdtkcn\":{\"type\":\"Object\",\"defaultValue\":\"dataenwash\"},\"i\":{\"type\":\"Float\",\"defaultValue\":\"databpokulpiujwaasip\"},\"rpqlp\":{\"type\":\"Int\",\"defaultValue\":\"datayuq\"}},\"annotations\":[\"dataciuqgbdb\",\"datat\",\"datauvfbtkuwh\",\"datamhykojoxafnndl\"],\"folder\":{\"name\":\"hkoymkcdyhbp\"},\"\":{\"xywsuws\":\"datawdreqnovvqfovl\",\"aeneqnzarrwl\":\"datarsndsytgadgvra\",\"jfqka\":\"datauu\"}},\"name\":\"wiipfpub\",\"type\":\"bwwift\",\"etag\":\"qkvpuvksgplsakn\",\"id\":\"fsynljphuop\"},{\"properties\":{\"type\":\"Dataset\",\"description\":\"dlqiyntorzih\",\"structure\":\"dataosjswsr\",\"schema\":\"datalyzrpzbchckqqzqi\",\"linkedServiceName\":{\"referenceName\":\"xiy\",\"parameters\":{\"ynkedyatrwyhqmib\":\"datai\",\"mnzgmwznmabi\":\"datayhwitsmypyynpcdp\",\"wwrlkdmtncv\":\"datansorgjhxbldt\",\"xdy\":\"datakotl\"}},\"parameters\":{\"hadoocrk\":{\"type\":\"Array\",\"defaultValue\":\"datacogjltdtbn\"},\"gxqquezik\":{\"type\":\"Object\",\"defaultValue\":\"datakhnvpam\"},\"lla\":{\"type\":\"Int\",\"defaultValue\":\"datagxk\"},\"ccjzkzivgvv\":{\"type\":\"Bool\",\"defaultValue\":\"datalwuip\"}},\"annotations\":[\"datay\",\"datahyrnxxmu\"],\"folder\":{\"name\":\"ndrdvstkwq\"},\"\":{\"ygdvwv\":\"datahealmfmtda\"}},\"name\":\"iohgwxrtfud\",\"type\":\"pxgy\",\"etag\":\"gvr\",\"id\":\"npkukghimdblx\"}],\"nextLink\":\"imfnjhfjx\"}") - .toObject(DatasetListResponse.class); - Assertions.assertEquals("fsynljphuop", model.value().get(0).id()); - Assertions.assertEquals("uxvypomgkopkwh", model.value().get(0).properties().description()); - Assertions - .assertEquals("ysmocmbqfqvmkcxo", model.value().get(0).properties().linkedServiceName().referenceName()); - Assertions - .assertEquals( - ParameterType.OBJECT, model.value().get(0).properties().parameters().get("piexpbtgiw").type()); - Assertions.assertEquals("hkoymkcdyhbp", model.value().get(0).properties().folder().name()); - Assertions.assertEquals("imfnjhfjx", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DatasetListResponse model = - new DatasetListResponse() - .withValue( - Arrays - .asList( - new DatasetResourceInner() - .withId("fsynljphuop") - .withProperties( - new Dataset() - .withDescription("uxvypomgkopkwh") - .withStructure("datav") - .withSchema("datajqg") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("ysmocmbqfqvmkcxo") - .withParameters( - mapOf( - "kcbcue", - "datavhelxprglyatdd", - "hos", - "datarjxgciqib", - "ibahwflus", - "datasdqrhzoymibmrq"))) - .withParameters( - mapOf( - "piexpbtgiw", - new ParameterSpecification() - .withType(ParameterType.OBJECT) - .withDefaultValue("datarkwofyyvoqa"), - "tdtkcn", - new ParameterSpecification() - .withType(ParameterType.OBJECT) - .withDefaultValue("dataenwash"), - "i", - new ParameterSpecification() - .withType(ParameterType.FLOAT) - .withDefaultValue("databpokulpiujwaasip"), - "rpqlp", - new ParameterSpecification() - .withType(ParameterType.INT) - .withDefaultValue("datayuq"))) - .withAnnotations( - Arrays - .asList("dataciuqgbdb", "datat", "datauvfbtkuwh", "datamhykojoxafnndl")) - .withFolder(new DatasetFolder().withName("hkoymkcdyhbp")) - .withAdditionalProperties(mapOf("type", "Dataset"))), - new DatasetResourceInner() - .withId("npkukghimdblx") - .withProperties( - new Dataset() - .withDescription("dlqiyntorzih") - .withStructure("dataosjswsr") - .withSchema("datalyzrpzbchckqqzqi") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("xiy") - .withParameters( - mapOf( - "ynkedyatrwyhqmib", - "datai", - "mnzgmwznmabi", - "datayhwitsmypyynpcdp", - "wwrlkdmtncv", - "datansorgjhxbldt", - "xdy", - "datakotl"))) - .withParameters( - mapOf( - "hadoocrk", - new ParameterSpecification() - .withType(ParameterType.ARRAY) - .withDefaultValue("datacogjltdtbn"), - "gxqquezik", - new ParameterSpecification() - .withType(ParameterType.OBJECT) - .withDefaultValue("datakhnvpam"), - "lla", - new ParameterSpecification() - .withType(ParameterType.INT) - .withDefaultValue("datagxk"), - "ccjzkzivgvv", - new ParameterSpecification() - .withType(ParameterType.BOOL) - .withDefaultValue("datalwuip"))) - .withAnnotations(Arrays.asList("datay", "datahyrnxxmu")) - .withFolder(new DatasetFolder().withName("ndrdvstkwq")) - .withAdditionalProperties(mapOf("type", "Dataset"))))) - .withNextLink("imfnjhfjx"); - model = BinaryData.fromObject(model).toObject(DatasetListResponse.class); - Assertions.assertEquals("fsynljphuop", model.value().get(0).id()); - Assertions.assertEquals("uxvypomgkopkwh", model.value().get(0).properties().description()); - Assertions - .assertEquals("ysmocmbqfqvmkcxo", model.value().get(0).properties().linkedServiceName().referenceName()); - Assertions - .assertEquals( - ParameterType.OBJECT, model.value().get(0).properties().parameters().get("piexpbtgiw").type()); - Assertions.assertEquals("hkoymkcdyhbp", model.value().get(0).properties().folder().name()); - Assertions.assertEquals("imfnjhfjx", model.nextLink()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetLocationTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetLocationTests.java deleted file mode 100644 index 06a466daf90e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetLocationTests.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetLocation; -import java.util.HashMap; -import java.util.Map; - -public final class DatasetLocationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DatasetLocation model = - BinaryData - .fromString( - "{\"type\":\"DatasetLocation\",\"folderPath\":\"datasx\",\"fileName\":\"dataofuworimmovzwde\",\"\":{\"elgwewi\":\"datamvhzfovanyrvaprt\",\"j\":\"datafyaqandmymnqo\"}}") - .toObject(DatasetLocation.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DatasetLocation model = - new DatasetLocation() - .withFolderPath("datasx") - .withFileName("dataofuworimmovzwde") - .withAdditionalProperties(mapOf("type", "DatasetLocation")); - model = BinaryData.fromObject(model).toObject(DatasetLocation.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetReferenceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetReferenceTests.java deleted file mode 100644 index 204e62f697ef..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetReferenceTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DatasetReferenceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DatasetReference model = - BinaryData - .fromString( - "{\"referenceName\":\"ezxlhdjzqdca\",\"parameters\":{\"iybmrzoep\":\"datapsozjiihj\",\"gv\":\"dataxwdvwnj\",\"ursqf\":\"datanmx\"}}") - .toObject(DatasetReference.class); - Assertions.assertEquals("ezxlhdjzqdca", model.referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DatasetReference model = - new DatasetReference() - .withReferenceName("ezxlhdjzqdca") - .withParameters(mapOf("iybmrzoep", "datapsozjiihj", "gv", "dataxwdvwnj", "ursqf", "datanmx")); - model = BinaryData.fromObject(model).toObject(DatasetReference.class); - Assertions.assertEquals("ezxlhdjzqdca", model.referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetResourceInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetResourceInnerTests.java deleted file mode 100644 index 4a8123493af1..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetResourceInnerTests.java +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.DatasetResourceInner; -import com.azure.resourcemanager.datafactory.models.Dataset; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DatasetResourceInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DatasetResourceInner model = - BinaryData - .fromString( - "{\"properties\":{\"type\":\"Dataset\",\"description\":\"szkkfoqre\",\"structure\":\"datakzikfjawneaivxwc\",\"schema\":\"datalpcirelsf\",\"linkedServiceName\":{\"referenceName\":\"aenwabf\",\"parameters\":{\"nozj\":\"datalddxbjhwua\"}},\"parameters\":{\"ag\":{\"type\":\"Array\",\"defaultValue\":\"dataoulpjrv\"}},\"annotations\":[\"dataimjwosyt\",\"dataitc\"],\"folder\":{\"name\":\"cktqumiekkezzi\"},\"\":{\"hdgqggeb\":\"datayf\"}},\"name\":\"nyga\",\"type\":\"idb\",\"etag\":\"atpxl\",\"id\":\"xcyjmoadsuvarmy\"}") - .toObject(DatasetResourceInner.class); - Assertions.assertEquals("xcyjmoadsuvarmy", model.id()); - Assertions.assertEquals("szkkfoqre", model.properties().description()); - Assertions.assertEquals("aenwabf", model.properties().linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.properties().parameters().get("ag").type()); - Assertions.assertEquals("cktqumiekkezzi", model.properties().folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DatasetResourceInner model = - new DatasetResourceInner() - .withId("xcyjmoadsuvarmy") - .withProperties( - new Dataset() - .withDescription("szkkfoqre") - .withStructure("datakzikfjawneaivxwc") - .withSchema("datalpcirelsf") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("aenwabf") - .withParameters(mapOf("nozj", "datalddxbjhwua"))) - .withParameters( - mapOf( - "ag", - new ParameterSpecification() - .withType(ParameterType.ARRAY) - .withDefaultValue("dataoulpjrv"))) - .withAnnotations(Arrays.asList("dataimjwosyt", "dataitc")) - .withFolder(new DatasetFolder().withName("cktqumiekkezzi")) - .withAdditionalProperties(mapOf("type", "Dataset"))); - model = BinaryData.fromObject(model).toObject(DatasetResourceInner.class); - Assertions.assertEquals("xcyjmoadsuvarmy", model.id()); - Assertions.assertEquals("szkkfoqre", model.properties().description()); - Assertions.assertEquals("aenwabf", model.properties().linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.properties().parameters().get("ag").type()); - Assertions.assertEquals("cktqumiekkezzi", model.properties().folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetSchemaDataElementTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetSchemaDataElementTests.java deleted file mode 100644 index 37215445a55b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetSchemaDataElementTests.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetSchemaDataElement; -import java.util.HashMap; -import java.util.Map; - -public final class DatasetSchemaDataElementTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DatasetSchemaDataElement model = - BinaryData - .fromString( - "{\"name\":\"datadivznl\",\"type\":\"dataslkskhjqjpvbai\",\"\":{\"ywbqgroigbsfsgs\":\"datatgzgta\",\"fmhl\":\"dataenwl\",\"tryldsxebuhsxr\":\"dataqlxspmrj\"}}") - .toObject(DatasetSchemaDataElement.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DatasetSchemaDataElement model = - new DatasetSchemaDataElement() - .withName("datadivznl") - .withType("dataslkskhjqjpvbai") - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(DatasetSchemaDataElement.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetStorageFormatTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetStorageFormatTests.java deleted file mode 100644 index 987dda71b3e3..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetStorageFormatTests.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetStorageFormat; -import java.util.HashMap; -import java.util.Map; - -public final class DatasetStorageFormatTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DatasetStorageFormat model = - BinaryData - .fromString( - "{\"type\":\"DatasetStorageFormat\",\"serializer\":\"datamgsdaluyckhefrbh\",\"deserializer\":\"datauerbgpxebjl\",\"\":{\"tnsewou\":\"dataaytujraxdtpryjm\",\"s\":\"dataly\",\"lmpctwj\":\"datavyljurkeposehqq\",\"erxxxoteehkhowgo\":\"datadsdlzmk\"}}") - .toObject(DatasetStorageFormat.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DatasetStorageFormat model = - new DatasetStorageFormat() - .withSerializer("datamgsdaluyckhefrbh") - .withDeserializer("datauerbgpxebjl") - .withAdditionalProperties(mapOf("type", "DatasetStorageFormat")); - model = BinaryData.fromObject(model).toObject(DatasetStorageFormat.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetTests.java deleted file mode 100644 index 376708f5af65..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetTests.java +++ /dev/null @@ -1,78 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.Dataset; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - Dataset model = - BinaryData - .fromString( - "{\"type\":\"Dataset\",\"description\":\"mjsjqb\",\"structure\":\"datahyxxrwlycoduhpk\",\"schema\":\"datagymare\",\"linkedServiceName\":{\"referenceName\":\"n\",\"parameters\":{\"dgssofwqmzqal\":\"dataqugjhkycube\",\"cqqudf\":\"datarmnjijpx\",\"ayffim\":\"databyxbaaabjy\",\"gsexne\":\"datazrtuzq\"}},\"parameters\":{\"ewzsyyceuzsoib\":{\"type\":\"Int\",\"defaultValue\":\"datanw\"}},\"annotations\":[\"datapfrxtrthzvay\",\"datadwkqbrq\",\"databpaxhexiilivpdt\",\"datairqtdqoa\"],\"folder\":{\"name\":\"uzf\"},\"\":{\"zwl\":\"datauyfxrxxleptramxj\",\"tdooaoj\":\"datanwxuqlcvydyp\"}}") - .toObject(Dataset.class); - Assertions.assertEquals("mjsjqb", model.description()); - Assertions.assertEquals("n", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("ewzsyyceuzsoib").type()); - Assertions.assertEquals("uzf", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Dataset model = - new Dataset() - .withDescription("mjsjqb") - .withStructure("datahyxxrwlycoduhpk") - .withSchema("datagymare") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("n") - .withParameters( - mapOf( - "dgssofwqmzqal", - "dataqugjhkycube", - "cqqudf", - "datarmnjijpx", - "ayffim", - "databyxbaaabjy", - "gsexne", - "datazrtuzq"))) - .withParameters( - mapOf( - "ewzsyyceuzsoib", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datanw"))) - .withAnnotations( - Arrays.asList("datapfrxtrthzvay", "datadwkqbrq", "databpaxhexiilivpdt", "datairqtdqoa")) - .withFolder(new DatasetFolder().withName("uzf")) - .withAdditionalProperties(mapOf("type", "Dataset")); - model = BinaryData.fromObject(model).toObject(Dataset.class); - Assertions.assertEquals("mjsjqb", model.description()); - Assertions.assertEquals("n", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("ewzsyyceuzsoib").type()); - Assertions.assertEquals("uzf", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetsCreateOrUpdateWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetsCreateOrUpdateWithResponseMockTests.java deleted file mode 100644 index 7e247b8fbc38..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetsCreateOrUpdateWithResponseMockTests.java +++ /dev/null @@ -1,133 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.Dataset; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.DatasetResource; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class DatasetsCreateOrUpdateWithResponseMockTests { - @Test - public void testCreateOrUpdateWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"type\":\"Dataset\",\"description\":\"eaotaakcyfsxosnb\",\"structure\":\"datacnfosjndbww\",\"schema\":\"datagaoubtehdccghdzq\",\"linkedServiceName\":{\"referenceName\":\"wlixh\",\"parameters\":{\"s\":\"dataqsprnhlsfhfjwa\",\"dj\":\"dataqytfvjvmjhuvuad\"}},\"parameters\":{\"w\":{\"type\":\"Bool\",\"defaultValue\":\"dataeij\"},\"kfslm\":{\"type\":\"Float\",\"defaultValue\":\"datauwaqiomdlp\"},\"vywbobgwvhd\":{\"type\":\"Float\",\"defaultValue\":\"datawmwrnkuwgr\"}},\"annotations\":[\"datavyyppayca\",\"datac\",\"datahf\",\"dataidkdywp\"],\"folder\":{\"name\":\"ssvmdoxxcvug\"},\"\":{\"yuukhssretugorc\":\"datak\",\"dwktogmcblwh\":\"datakcsevq\",\"kc\":\"datavnisin\"}},\"name\":\"pukabjaja\",\"type\":\"gaczggfiaqmupt\",\"etag\":\"uybtmt\",\"id\":\"ohyozxotwraln\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - DatasetResource response = - manager - .datasets() - .define("bzzyqbw") - .withExistingFactory("hzem", "jast") - .withProperties( - new Dataset() - .withDescription("zjhmg") - .withStructure("dataalgrakmwy") - .withSchema("datakfimonreukcrcsda") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("pnhpovrt") - .withParameters( - mapOf( - "rrlzdnc", - "databybcx", - "ikoiujsjngsfv", - "dataxtqqpfgjnynu", - "puclqtd", - "datav", - "jkczkcd", - "dataasjnzeckpg"))) - .withParameters( - mapOf( - "kzspwvlqinl", - new ParameterSpecification() - .withType(ParameterType.FLOAT) - .withDefaultValue("datatwanabzycxvi"), - "vkwxbb", - new ParameterSpecification() - .withType(ParameterType.STRING) - .withDefaultValue("dataeevzelmmwmdhm"), - "no", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datakpn"), - "zrfonqjnpkofj", - new ParameterSpecification() - .withType(ParameterType.STRING) - .withDefaultValue("dataztpwujmuntvyeyeb"))) - .withAnnotations(Arrays.asList("dataneyuirr", "dataxrftfamozyv")) - .withFolder(new DatasetFolder().withName("cflp")) - .withAdditionalProperties(mapOf("type", "Dataset"))) - .withIfMatch("tmxyrsnmwiy") - .create(); - - Assertions.assertEquals("ohyozxotwraln", response.id()); - Assertions.assertEquals("eaotaakcyfsxosnb", response.properties().description()); - Assertions.assertEquals("wlixh", response.properties().linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, response.properties().parameters().get("w").type()); - Assertions.assertEquals("ssvmdoxxcvug", response.properties().folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetsDeleteWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetsDeleteWithResponseMockTests.java deleted file mode 100644 index 889f206c0615..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetsDeleteWithResponseMockTests.java +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class DatasetsDeleteWithResponseMockTests { - @Test - public void testDeleteWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager - .datasets() - .deleteWithResponse("wntrqvlcun", "baijobcpruommt", "cazgrlvkda", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetsGetWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetsGetWithResponseMockTests.java deleted file mode 100644 index e3f81c6448a7..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetsGetWithResponseMockTests.java +++ /dev/null @@ -1,75 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.DatasetResource; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class DatasetsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"type\":\"Dataset\",\"description\":\"om\",\"structure\":\"dataioatzmr\",\"schema\":\"datasrjjajlr\",\"linkedServiceName\":{\"referenceName\":\"lmj\",\"parameters\":{\"pytfdzkbkyt\":\"datawqpnmcwes\",\"dkrmpljzrzvl\":\"dataztwwkvwpbdo\"}},\"parameters\":{\"rlug\":{\"type\":\"Bool\",\"defaultValue\":\"datalygy\"}},\"annotations\":[\"datawh\",\"dataeqzlvjlsyzzk\"],\"folder\":{\"name\":\"eydjagyks\"},\"\":{\"jbxh\":\"datagiwaaz\",\"lx\":\"dataahgbloeaewidum\",\"majirnqcbhviqwfc\":\"datacgbyx\"}},\"name\":\"y\",\"type\":\"afoor\",\"etag\":\"ktdgbombn\",\"id\":\"nxkcp\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - DatasetResource response = - manager - .datasets() - .getWithResponse("ccnubynr", "encgfz", "btzuddqt", "hxtbcqjvyzotxkhy", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("nxkcp", response.id()); - Assertions.assertEquals("om", response.properties().description()); - Assertions.assertEquals("lmj", response.properties().linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, response.properties().parameters().get("rlug").type()); - Assertions.assertEquals("eydjagyks", response.properties().folder().name()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetsListByFactoryMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetsListByFactoryMockTests.java deleted file mode 100644 index bb75bb88c8e8..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetsListByFactoryMockTests.java +++ /dev/null @@ -1,77 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.DatasetResource; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class DatasetsListByFactoryMockTests { - @Test - public void testListByFactory() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"properties\":{\"type\":\"Dataset\",\"description\":\"mhewdfualgkfo\",\"structure\":\"dataqm\",\"schema\":\"datauyim\",\"linkedServiceName\":{\"referenceName\":\"oprkpdghqsatbebx\",\"parameters\":{\"xxvlss\":\"datayyengnhoxbpqzqaa\",\"vqtogkxdevkn\":\"dataptxdrajihqwfrt\"}},\"parameters\":{\"uizvvwyhs\":{\"type\":\"Bool\",\"defaultValue\":\"datasqobrentjyamijg\"},\"ibwkiwyt\":{\"type\":\"Bool\",\"defaultValue\":\"datahzaiu\"},\"xlhdindcttiq\":{\"type\":\"Array\",\"defaultValue\":\"databrejvwwbx\"}},\"annotations\":[\"datay\",\"datajli\"],\"folder\":{\"name\":\"xrevw\"},\"\":{\"ufzna\":\"datatfohcylvj\",\"dphyxlxvo\":\"datadzyuxrufwdbimj\",\"aufabtpcbnt\":\"datacuwdesytt\"}},\"name\":\"nkvsnsi\",\"type\":\"llwcedzodv\",\"etag\":\"xtzgxdxq\",\"id\":\"uzubntuimi\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = - manager.datasets().listByFactory("ahe", "lmiuprfqyrwtdnr", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("uzubntuimi", response.iterator().next().id()); - Assertions.assertEquals("mhewdfualgkfo", response.iterator().next().properties().description()); - Assertions - .assertEquals( - "oprkpdghqsatbebx", response.iterator().next().properties().linkedServiceName().referenceName()); - Assertions - .assertEquals( - ParameterType.BOOL, response.iterator().next().properties().parameters().get("uizvvwyhs").type()); - Assertions.assertEquals("xrevw", response.iterator().next().properties().folder().name()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/Db2SourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/Db2SourceTests.java deleted file mode 100644 index f7f5abe7702d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/Db2SourceTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.Db2Source; - -public final class Db2SourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - Db2Source model = - BinaryData - .fromString( - "{\"type\":\"Db2Source\",\"query\":\"dataz\",\"queryTimeout\":\"datanniarjezj\",\"additionalColumns\":\"dataxiqfoqwesqykqfs\",\"sourceRetryCount\":\"datalsaipshhet\",\"sourceRetryWait\":\"datawmzgvnojgmobkali\",\"maxConcurrentConnections\":\"dataikkehpdssvlubd\",\"disableMetricsCollection\":\"dataowxsxbxd\",\"\":{\"tghmtb\":\"dataxurcekcqmjqqau\",\"shlhe\":\"datafkcnkghkrbi\"}}") - .toObject(Db2Source.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Db2Source model = - new Db2Source() - .withSourceRetryCount("datalsaipshhet") - .withSourceRetryWait("datawmzgvnojgmobkali") - .withMaxConcurrentConnections("dataikkehpdssvlubd") - .withDisableMetricsCollection("dataowxsxbxd") - .withQueryTimeout("datanniarjezj") - .withAdditionalColumns("dataxiqfoqwesqykqfs") - .withQuery("dataz"); - model = BinaryData.fromObject(model).toObject(Db2Source.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/Db2TableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/Db2TableDatasetTests.java deleted file mode 100644 index 8bd085a4cc76..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/Db2TableDatasetTests.java +++ /dev/null @@ -1,85 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.Db2TableDataset; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class Db2TableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - Db2TableDataset model = - BinaryData - .fromString( - "{\"type\":\"Db2Table\",\"typeProperties\":{\"tableName\":\"dataefeclflxcj\",\"schema\":\"datazwncvdefxonz\",\"table\":\"datacjptnn\"},\"description\":\"rcjqpzj\",\"structure\":\"datapjrrhpgsjbioag\",\"schema\":\"datai\",\"linkedServiceName\":{\"referenceName\":\"ehmdqvaolidxd\",\"parameters\":{\"rsvxphtjnhptj\":\"datavkjcim\",\"yzhimm\":\"datarkd\",\"izuzjd\":\"datadtdtft\",\"kqoyimxpggk\":\"datargyzcslazp\"}},\"parameters\":{\"deylpbyb\":{\"type\":\"Bool\",\"defaultValue\":\"databgacnqpjuytv\"},\"ifm\":{\"type\":\"Int\",\"defaultValue\":\"datab\"},\"au\":{\"type\":\"Array\",\"defaultValue\":\"datapwdj\"},\"aaaxx\":{\"type\":\"Int\",\"defaultValue\":\"datahznurttu\"}},\"annotations\":[\"datajmdkqtxfrm\",\"dataecxstowa\",\"dataehxuihwes\"],\"folder\":{\"name\":\"aqgblkkncyp\"},\"\":{\"piobnhrfbrjokjwq\":\"datavspsaneyvae\",\"zwfwlrfdjwlzseod\":\"datamraqnilppqcaig\",\"zy\":\"dataqfdrs\"}}") - .toObject(Db2TableDataset.class); - Assertions.assertEquals("rcjqpzj", model.description()); - Assertions.assertEquals("ehmdqvaolidxd", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("deylpbyb").type()); - Assertions.assertEquals("aqgblkkncyp", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Db2TableDataset model = - new Db2TableDataset() - .withDescription("rcjqpzj") - .withStructure("datapjrrhpgsjbioag") - .withSchema("datai") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("ehmdqvaolidxd") - .withParameters( - mapOf( - "rsvxphtjnhptj", - "datavkjcim", - "yzhimm", - "datarkd", - "izuzjd", - "datadtdtft", - "kqoyimxpggk", - "datargyzcslazp"))) - .withParameters( - mapOf( - "deylpbyb", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("databgacnqpjuytv"), - "ifm", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datab"), - "au", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datapwdj"), - "aaaxx", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datahznurttu"))) - .withAnnotations(Arrays.asList("datajmdkqtxfrm", "dataecxstowa", "dataehxuihwes")) - .withFolder(new DatasetFolder().withName("aqgblkkncyp")) - .withTableName("dataefeclflxcj") - .withSchemaTypePropertiesSchema("datazwncvdefxonz") - .withTable("datacjptnn"); - model = BinaryData.fromObject(model).toObject(Db2TableDataset.class); - Assertions.assertEquals("rcjqpzj", model.description()); - Assertions.assertEquals("ehmdqvaolidxd", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("deylpbyb").type()); - Assertions.assertEquals("aqgblkkncyp", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/Db2TableDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/Db2TableDatasetTypePropertiesTests.java deleted file mode 100644 index 9136b9ab3662..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/Db2TableDatasetTypePropertiesTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.Db2TableDatasetTypeProperties; - -public final class Db2TableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - Db2TableDatasetTypeProperties model = - BinaryData - .fromString("{\"tableName\":\"dataxserw\",\"schema\":\"datauhytjwgetfi\",\"table\":\"datan\"}") - .toObject(Db2TableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Db2TableDatasetTypeProperties model = - new Db2TableDatasetTypeProperties() - .withTableName("dataxserw") - .withSchema("datauhytjwgetfi") - .withTable("datan"); - model = BinaryData.fromObject(model).toObject(Db2TableDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DeleteActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DeleteActivityTests.java deleted file mode 100644 index dd7124f3214f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DeleteActivityTests.java +++ /dev/null @@ -1,150 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityPolicy; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import com.azure.resourcemanager.datafactory.models.DeleteActivity; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.LogStorageSettings; -import com.azure.resourcemanager.datafactory.models.StoreReadSettings; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DeleteActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DeleteActivity model = - BinaryData - .fromString( - "{\"type\":\"Delete\",\"typeProperties\":{\"recursive\":\"datajfkj\",\"maxConcurrentConnections\":1126063384,\"enableLogging\":\"datag\",\"logStorageSettings\":{\"linkedServiceName\":{\"referenceName\":\"ztcxyphdkxwst\",\"parameters\":{\"dgwezc\":\"dataejopvegmtgoeayho\",\"wqgkfxcdt\":\"datassmbdjzcfdpx\"}},\"path\":\"datayevvuddnwj\",\"logLevel\":\"datacsflemxbma\",\"enableReliableLogging\":\"datavopft\",\"\":{\"o\":\"dataevh\",\"sis\":\"datajpumpqlugzydylf\"}},\"dataset\":{\"referenceName\":\"dmfo\",\"parameters\":{\"tkprbm\":\"datasvfnxxkmrfz\"}},\"storeSettings\":{\"type\":\"StoreReadSettings\",\"maxConcurrentConnections\":\"datarfhfjwikva\",\"disableMetricsCollection\":\"dataxd\",\"\":{\"fardjqwdrooooobs\":\"datailvajctpwlf\",\"qcme\":\"datadqv\"}}},\"linkedServiceName\":{\"referenceName\":\"ajjzxcqnlsxe\",\"parameters\":{\"adyelwol\":\"dataw\"}},\"policy\":{\"timeout\":\"datauhanfjrdca\",\"retry\":\"datazqldakbijcxctn\",\"retryIntervalInSeconds\":1648895814,\"secureInput\":true,\"secureOutput\":true,\"\":{\"lnuhocbbeoxoewp\":\"datawsidnqiavoyhno\",\"yuasstokzhmyayb\":\"datatzofcurnhujcu\",\"xksph\":\"datamcenjctcxamup\"}},\"name\":\"yubytslfmajswrf\",\"description\":\"tgvkqzul\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"hejualugyuxc\",\"dependencyConditions\":[\"Completed\",\"Completed\",\"Succeeded\",\"Succeeded\"],\"\":{\"jdmesoxjkp\":\"datassyzwtzdyzufgnns\",\"pbiou\":\"databgfhjwchv\"}},{\"activity\":\"qoxbxtwsreadg\",\"dependencyConditions\":[\"Skipped\",\"Succeeded\",\"Succeeded\"],\"\":{\"onnfjg\":\"dataqzmheimsi\"}},{\"activity\":\"tkegrtvwffvbvuxp\",\"dependencyConditions\":[\"Succeeded\",\"Skipped\",\"Failed\",\"Completed\"],\"\":{\"djkanizd\":\"databzykk\",\"frm\":\"datajxgzpmwx\"}}],\"userProperties\":[{\"name\":\"wbahi\",\"value\":\"datafosbr\"}],\"\":{\"hucawmhbqjllyzbq\":\"datawhlqydhhypu\"}}") - .toObject(DeleteActivity.class); - Assertions.assertEquals("yubytslfmajswrf", model.name()); - Assertions.assertEquals("tgvkqzul", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.onInactiveMarkAs()); - Assertions.assertEquals("hejualugyuxc", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("wbahi", model.userProperties().get(0).name()); - Assertions.assertEquals("ajjzxcqnlsxe", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1648895814, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - Assertions.assertEquals(1126063384, model.maxConcurrentConnections()); - Assertions.assertEquals("ztcxyphdkxwst", model.logStorageSettings().linkedServiceName().referenceName()); - Assertions.assertEquals("dmfo", model.dataset().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DeleteActivity model = - new DeleteActivity() - .withName("yubytslfmajswrf") - .withDescription("tgvkqzul") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("hejualugyuxc") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.COMPLETED, - DependencyCondition.COMPLETED, - DependencyCondition.SUCCEEDED, - DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("qoxbxtwsreadg") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.SKIPPED, - DependencyCondition.SUCCEEDED, - DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("tkegrtvwffvbvuxp") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.SUCCEEDED, - DependencyCondition.SKIPPED, - DependencyCondition.FAILED, - DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("wbahi").withValue("datafosbr"))) - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("ajjzxcqnlsxe") - .withParameters(mapOf("adyelwol", "dataw"))) - .withPolicy( - new ActivityPolicy() - .withTimeout("datauhanfjrdca") - .withRetry("datazqldakbijcxctn") - .withRetryIntervalInSeconds(1648895814) - .withSecureInput(true) - .withSecureOutput(true) - .withAdditionalProperties(mapOf())) - .withRecursive("datajfkj") - .withMaxConcurrentConnections(1126063384) - .withEnableLogging("datag") - .withLogStorageSettings( - new LogStorageSettings() - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("ztcxyphdkxwst") - .withParameters( - mapOf("dgwezc", "dataejopvegmtgoeayho", "wqgkfxcdt", "datassmbdjzcfdpx"))) - .withPath("datayevvuddnwj") - .withLogLevel("datacsflemxbma") - .withEnableReliableLogging("datavopft") - .withAdditionalProperties(mapOf())) - .withDataset( - new DatasetReference().withReferenceName("dmfo").withParameters(mapOf("tkprbm", "datasvfnxxkmrfz"))) - .withStoreSettings( - new StoreReadSettings() - .withMaxConcurrentConnections("datarfhfjwikva") - .withDisableMetricsCollection("dataxd") - .withAdditionalProperties(mapOf("type", "StoreReadSettings"))); - model = BinaryData.fromObject(model).toObject(DeleteActivity.class); - Assertions.assertEquals("yubytslfmajswrf", model.name()); - Assertions.assertEquals("tgvkqzul", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.onInactiveMarkAs()); - Assertions.assertEquals("hejualugyuxc", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("wbahi", model.userProperties().get(0).name()); - Assertions.assertEquals("ajjzxcqnlsxe", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1648895814, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - Assertions.assertEquals(1126063384, model.maxConcurrentConnections()); - Assertions.assertEquals("ztcxyphdkxwst", model.logStorageSettings().linkedServiceName().referenceName()); - Assertions.assertEquals("dmfo", model.dataset().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DeleteActivityTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DeleteActivityTypePropertiesTests.java deleted file mode 100644 index 4ade9a3155be..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DeleteActivityTypePropertiesTests.java +++ /dev/null @@ -1,75 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.DeleteActivityTypeProperties; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.LogStorageSettings; -import com.azure.resourcemanager.datafactory.models.StoreReadSettings; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DeleteActivityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DeleteActivityTypeProperties model = - BinaryData - .fromString( - "{\"recursive\":\"databxgkudioumgv\",\"maxConcurrentConnections\":2061944926,\"enableLogging\":\"datazheqvzwumm\",\"logStorageSettings\":{\"linkedServiceName\":{\"referenceName\":\"ax\",\"parameters\":{\"iwkqr\":\"dataihgcdujhz\",\"l\":\"datatrmi\"}},\"path\":\"datazdukamt\",\"logLevel\":\"dataufvabci\",\"enableReliableLogging\":\"databyfs\",\"\":{\"sfrajpyuw\":\"datawgkozl\",\"lsungzvytbq\":\"dataggfgl\",\"qhugjeaetgmmf\":\"datamxkuyyrcqs\",\"upkpyzaenarfy\":\"datafdqoepwyy\"}},\"dataset\":{\"referenceName\":\"lqiykhoygfgchlc\",\"parameters\":{\"kl\":\"datacsskgug\",\"fawfeeatvnmm\":\"datahmymkcccl\",\"wtcllzwaz\":\"datagowfqrykikhf\"}},\"storeSettings\":{\"type\":\"StoreReadSettings\",\"maxConcurrentConnections\":\"datah\",\"disableMetricsCollection\":\"datamkfy\",\"\":{\"znf\":\"dataavfsehbxbqionnq\",\"pvxcqj\":\"dataiboyexjcrwwdtey\",\"mv\":\"datawtiasfbp\"}}}") - .toObject(DeleteActivityTypeProperties.class); - Assertions.assertEquals(2061944926, model.maxConcurrentConnections()); - Assertions.assertEquals("ax", model.logStorageSettings().linkedServiceName().referenceName()); - Assertions.assertEquals("lqiykhoygfgchlc", model.dataset().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DeleteActivityTypeProperties model = - new DeleteActivityTypeProperties() - .withRecursive("databxgkudioumgv") - .withMaxConcurrentConnections(2061944926) - .withEnableLogging("datazheqvzwumm") - .withLogStorageSettings( - new LogStorageSettings() - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("ax") - .withParameters(mapOf("iwkqr", "dataihgcdujhz", "l", "datatrmi"))) - .withPath("datazdukamt") - .withLogLevel("dataufvabci") - .withEnableReliableLogging("databyfs") - .withAdditionalProperties(mapOf())) - .withDataset( - new DatasetReference() - .withReferenceName("lqiykhoygfgchlc") - .withParameters( - mapOf( - "kl", "datacsskgug", "fawfeeatvnmm", "datahmymkcccl", "wtcllzwaz", "datagowfqrykikhf"))) - .withStoreSettings( - new StoreReadSettings() - .withMaxConcurrentConnections("datah") - .withDisableMetricsCollection("datamkfy") - .withAdditionalProperties(mapOf("type", "StoreReadSettings"))); - model = BinaryData.fromObject(model).toObject(DeleteActivityTypeProperties.class); - Assertions.assertEquals(2061944926, model.maxConcurrentConnections()); - Assertions.assertEquals("ax", model.logStorageSettings().linkedServiceName().referenceName()); - Assertions.assertEquals("lqiykhoygfgchlc", model.dataset().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DeleteDataFlowDebugSessionRequestTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DeleteDataFlowDebugSessionRequestTests.java deleted file mode 100644 index b72189cf1b84..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DeleteDataFlowDebugSessionRequestTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DeleteDataFlowDebugSessionRequest; -import org.junit.jupiter.api.Assertions; - -public final class DeleteDataFlowDebugSessionRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DeleteDataFlowDebugSessionRequest model = - BinaryData.fromString("{\"sessionId\":\"pnwjfujq\"}").toObject(DeleteDataFlowDebugSessionRequest.class); - Assertions.assertEquals("pnwjfujq", model.sessionId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DeleteDataFlowDebugSessionRequest model = new DeleteDataFlowDebugSessionRequest().withSessionId("pnwjfujq"); - model = BinaryData.fromObject(model).toObject(DeleteDataFlowDebugSessionRequest.class); - Assertions.assertEquals("pnwjfujq", model.sessionId()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DelimitedTextReadSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DelimitedTextReadSettingsTests.java deleted file mode 100644 index af2b42839bac..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DelimitedTextReadSettingsTests.java +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CompressionReadSettings; -import com.azure.resourcemanager.datafactory.models.DelimitedTextReadSettings; -import java.util.HashMap; -import java.util.Map; - -public final class DelimitedTextReadSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DelimitedTextReadSettings model = - BinaryData - .fromString( - "{\"type\":\"DelimitedTextReadSettings\",\"skipLineCount\":\"datahfuxu\",\"compressionProperties\":{\"type\":\"CompressionReadSettings\",\"\":{\"dshhhdixn\":\"dataebok\",\"ywspajakjhv\":\"dataapzibmstvzzkzv\",\"srvsbkn\":\"dataktbnmhxtmzzpau\",\"nwichjkwctlsoh\":\"dataouytsajjgvu\"}},\"\":{\"btegiw\":\"datapvv\"}}") - .toObject(DelimitedTextReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DelimitedTextReadSettings model = - new DelimitedTextReadSettings() - .withSkipLineCount("datahfuxu") - .withCompressionProperties( - new CompressionReadSettings().withAdditionalProperties(mapOf("type", "CompressionReadSettings"))); - model = BinaryData.fromObject(model).toObject(DelimitedTextReadSettings.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DelimitedTextSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DelimitedTextSinkTests.java deleted file mode 100644 index f97383bba187..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DelimitedTextSinkTests.java +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DelimitedTextSink; -import com.azure.resourcemanager.datafactory.models.DelimitedTextWriteSettings; -import com.azure.resourcemanager.datafactory.models.StoreWriteSettings; -import java.util.HashMap; -import java.util.Map; - -public final class DelimitedTextSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DelimitedTextSink model = - BinaryData - .fromString( - "{\"type\":\"DelimitedTextSink\",\"storeSettings\":{\"type\":\"StoreWriteSettings\",\"maxConcurrentConnections\":\"dataagzmyxsoxqarjt\",\"disableMetricsCollection\":\"datalllmtiyguuhylzbd\",\"copyBehavior\":\"datatdohjxfqyyu\",\"\":{\"znxhbttkkicxjxu\":\"datal\",\"jvkqj\":\"datailix\"}},\"formatSettings\":{\"type\":\"DelimitedTextWriteSettings\",\"quoteAllText\":\"datalhcmxxxp\",\"fileExtension\":\"datakxclj\",\"maxRowsPerFile\":\"datamsfsquxxqcimnchv\",\"fileNamePrefix\":\"datawrivagc\",\"\":{\"ysfjdcokbpbpq\":\"datatepsybdgtfo\",\"tnbyvbgrdrumu\":\"datalmszobtne\",\"wecdsybiazfvx\":\"datau\",\"eqly\":\"datakwv\"}},\"writeBatchSize\":\"datayqqonkre\",\"writeBatchTimeout\":\"dataojusmdod\",\"sinkRetryCount\":\"datak\",\"sinkRetryWait\":\"datantaovlyyk\",\"maxConcurrentConnections\":\"datafpkdsldyw\",\"disableMetricsCollection\":\"datavswlhj\",\"\":{\"kqzfwl\":\"dataqygszhpnatltj\",\"ayyuqecwrtr\":\"datayrnmgsbubz\",\"smvvfpkymqnvvwfa\":\"dataderzsnfgmohhcgh\",\"armtuprqtcxqkoh\":\"datarulboawzplwghfgq\"}}") - .toObject(DelimitedTextSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DelimitedTextSink model = - new DelimitedTextSink() - .withWriteBatchSize("datayqqonkre") - .withWriteBatchTimeout("dataojusmdod") - .withSinkRetryCount("datak") - .withSinkRetryWait("datantaovlyyk") - .withMaxConcurrentConnections("datafpkdsldyw") - .withDisableMetricsCollection("datavswlhj") - .withStoreSettings( - new StoreWriteSettings() - .withMaxConcurrentConnections("dataagzmyxsoxqarjt") - .withDisableMetricsCollection("datalllmtiyguuhylzbd") - .withCopyBehavior("datatdohjxfqyyu") - .withAdditionalProperties(mapOf("type", "StoreWriteSettings"))) - .withFormatSettings( - new DelimitedTextWriteSettings() - .withQuoteAllText("datalhcmxxxp") - .withFileExtension("datakxclj") - .withMaxRowsPerFile("datamsfsquxxqcimnchv") - .withFileNamePrefix("datawrivagc")); - model = BinaryData.fromObject(model).toObject(DelimitedTextSink.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DelimitedTextSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DelimitedTextSourceTests.java deleted file mode 100644 index 32d3f0baacca..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DelimitedTextSourceTests.java +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CompressionReadSettings; -import com.azure.resourcemanager.datafactory.models.DelimitedTextReadSettings; -import com.azure.resourcemanager.datafactory.models.DelimitedTextSource; -import com.azure.resourcemanager.datafactory.models.StoreReadSettings; -import java.util.HashMap; -import java.util.Map; - -public final class DelimitedTextSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DelimitedTextSource model = - BinaryData - .fromString( - "{\"type\":\"DelimitedTextSource\",\"storeSettings\":{\"type\":\"StoreReadSettings\",\"maxConcurrentConnections\":\"datayrwfh\",\"disableMetricsCollection\":\"dataoyxxszpa\",\"\":{\"veekhsmulv\":\"dataurfsofshfmgiixu\",\"iuwhcyckekm\":\"dataywoefkpuuu\",\"oycpotmaosongtbh\":\"datafipygt\",\"nrvwjxmwalh\":\"datahsqvubwwqgiyu\"}},\"formatSettings\":{\"type\":\"DelimitedTextReadSettings\",\"skipLineCount\":\"datansnbpiuvqhod\",\"compressionProperties\":{\"type\":\"CompressionReadSettings\",\"\":{\"zfbjucgbgzjyrd\":\"datatrsnpbsungnjkkm\",\"qvpjydwmaq\":\"dataiwhmrhz\",\"pqupdcsvzugiur\":\"dataytjpua\"}},\"\":{\"tnqbkpobjufksdd\":\"datalvlbjzscr\",\"wxlylxfpvoylf\":\"datakg\",\"ime\":\"datalsrguecbthauivg\",\"uvckpdpdcnrjqs\":\"dataedqgyrvulz\"}},\"additionalColumns\":\"datakqdqiybqtl\",\"sourceRetryCount\":\"datafjjsetiz\",\"sourceRetryWait\":\"datanadn\",\"maxConcurrentConnections\":\"datasbpxlserqgxnh\",\"disableMetricsCollection\":\"dataccd\",\"\":{\"jbhmpmeglo\":\"datayb\"}}") - .toObject(DelimitedTextSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DelimitedTextSource model = - new DelimitedTextSource() - .withSourceRetryCount("datafjjsetiz") - .withSourceRetryWait("datanadn") - .withMaxConcurrentConnections("datasbpxlserqgxnh") - .withDisableMetricsCollection("dataccd") - .withStoreSettings( - new StoreReadSettings() - .withMaxConcurrentConnections("datayrwfh") - .withDisableMetricsCollection("dataoyxxszpa") - .withAdditionalProperties(mapOf("type", "StoreReadSettings"))) - .withFormatSettings( - new DelimitedTextReadSettings() - .withSkipLineCount("datansnbpiuvqhod") - .withCompressionProperties( - new CompressionReadSettings() - .withAdditionalProperties(mapOf("type", "CompressionReadSettings")))) - .withAdditionalColumns("datakqdqiybqtl"); - model = BinaryData.fromObject(model).toObject(DelimitedTextSource.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DelimitedTextWriteSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DelimitedTextWriteSettingsTests.java deleted file mode 100644 index c09e983cc97c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DelimitedTextWriteSettingsTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DelimitedTextWriteSettings; - -public final class DelimitedTextWriteSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DelimitedTextWriteSettings model = - BinaryData - .fromString( - "{\"type\":\"DelimitedTextWriteSettings\",\"quoteAllText\":\"dataxoign\",\"fileExtension\":\"dataumjmpgze\",\"maxRowsPerFile\":\"datavf\",\"fileNamePrefix\":\"dataijpmeptn\",\"\":{\"rvjwbeeol\":\"datapafksp\"}}") - .toObject(DelimitedTextWriteSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DelimitedTextWriteSettings model = - new DelimitedTextWriteSettings() - .withQuoteAllText("dataxoign") - .withFileExtension("dataumjmpgze") - .withMaxRowsPerFile("datavf") - .withFileNamePrefix("dataijpmeptn"); - model = BinaryData.fromObject(model).toObject(DelimitedTextWriteSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DependencyReferenceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DependencyReferenceTests.java deleted file mode 100644 index 080ead797f76..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DependencyReferenceTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DependencyReference; - -public final class DependencyReferenceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DependencyReference model = - BinaryData.fromString("{\"type\":\"DependencyReference\"}").toObject(DependencyReference.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DependencyReference model = new DependencyReference(); - model = BinaryData.fromObject(model).toObject(DependencyReference.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DistcpSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DistcpSettingsTests.java deleted file mode 100644 index 2d683bb80cdc..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DistcpSettingsTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DistcpSettings; - -public final class DistcpSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DistcpSettings model = - BinaryData - .fromString( - "{\"resourceManagerEndpoint\":\"datae\",\"tempScriptPath\":\"datayiwzou\",\"distcpOptions\":\"dataamdgff\"}") - .toObject(DistcpSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DistcpSettings model = - new DistcpSettings() - .withResourceManagerEndpoint("datae") - .withTempScriptPath("datayiwzou") - .withDistcpOptions("dataamdgff"); - model = BinaryData.fromObject(model).toObject(DistcpSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DocumentDbCollectionDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DocumentDbCollectionDatasetTests.java deleted file mode 100644 index 021c5bcdfd85..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DocumentDbCollectionDatasetTests.java +++ /dev/null @@ -1,79 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.DocumentDbCollectionDataset; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DocumentDbCollectionDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DocumentDbCollectionDataset model = - BinaryData - .fromString( - "{\"type\":\"DocumentDbCollection\",\"typeProperties\":{\"collectionName\":\"datawxdowum\"},\"description\":\"ukrcdiohcl\",\"structure\":\"datadnhfknebwedd\",\"schema\":\"datayzcwy\",\"linkedServiceName\":{\"referenceName\":\"smkaqldqab\",\"parameters\":{\"qbqxfbbigcfd\":\"datap\",\"bmjyyrqaedwovoc\":\"dataofxn\",\"ayokrwfmihw\":\"datatjgo\"}},\"parameters\":{\"vothmkhjaoz\":{\"type\":\"Array\",\"defaultValue\":\"datadbfobdc\"},\"rhjvszfqbokndwpp\":{\"type\":\"Bool\",\"defaultValue\":\"datafcnjhbpoelhscmy\"},\"lynzlyvap\":{\"type\":\"SecureString\",\"defaultValue\":\"dataojoevzzufytdx\"},\"lcuhaizi\":{\"type\":\"Bool\",\"defaultValue\":\"databuoggtdl\"}},\"annotations\":[\"dataylzeohlpsftq\",\"datarvmhvbvvcpwt\",\"datasuspnhmzy\"],\"folder\":{\"name\":\"etevrntfknwacy\"},\"\":{\"atvcsxr\":\"dataotctkhfhf\",\"cubleh\":\"datahnmizhvprhqq\"}}") - .toObject(DocumentDbCollectionDataset.class); - Assertions.assertEquals("ukrcdiohcl", model.description()); - Assertions.assertEquals("smkaqldqab", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("vothmkhjaoz").type()); - Assertions.assertEquals("etevrntfknwacy", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DocumentDbCollectionDataset model = - new DocumentDbCollectionDataset() - .withDescription("ukrcdiohcl") - .withStructure("datadnhfknebwedd") - .withSchema("datayzcwy") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("smkaqldqab") - .withParameters( - mapOf("qbqxfbbigcfd", "datap", "bmjyyrqaedwovoc", "dataofxn", "ayokrwfmihw", "datatjgo"))) - .withParameters( - mapOf( - "vothmkhjaoz", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datadbfobdc"), - "rhjvszfqbokndwpp", - new ParameterSpecification() - .withType(ParameterType.BOOL) - .withDefaultValue("datafcnjhbpoelhscmy"), - "lynzlyvap", - new ParameterSpecification() - .withType(ParameterType.SECURE_STRING) - .withDefaultValue("dataojoevzzufytdx"), - "lcuhaizi", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("databuoggtdl"))) - .withAnnotations(Arrays.asList("dataylzeohlpsftq", "datarvmhvbvvcpwt", "datasuspnhmzy")) - .withFolder(new DatasetFolder().withName("etevrntfknwacy")) - .withCollectionName("datawxdowum"); - model = BinaryData.fromObject(model).toObject(DocumentDbCollectionDataset.class); - Assertions.assertEquals("ukrcdiohcl", model.description()); - Assertions.assertEquals("smkaqldqab", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("vothmkhjaoz").type()); - Assertions.assertEquals("etevrntfknwacy", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DocumentDbCollectionDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DocumentDbCollectionDatasetTypePropertiesTests.java deleted file mode 100644 index 544dfd295297..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DocumentDbCollectionDatasetTypePropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.DocumentDbCollectionDatasetTypeProperties; - -public final class DocumentDbCollectionDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DocumentDbCollectionDatasetTypeProperties model = - BinaryData - .fromString("{\"collectionName\":\"datakplobzgottaksadz\"}") - .toObject(DocumentDbCollectionDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DocumentDbCollectionDatasetTypeProperties model = - new DocumentDbCollectionDatasetTypeProperties().withCollectionName("datakplobzgottaksadz"); - model = BinaryData.fromObject(model).toObject(DocumentDbCollectionDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DocumentDbCollectionSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DocumentDbCollectionSinkTests.java deleted file mode 100644 index bfdfec68c28c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DocumentDbCollectionSinkTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DocumentDbCollectionSink; - -public final class DocumentDbCollectionSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DocumentDbCollectionSink model = - BinaryData - .fromString( - "{\"type\":\"DocumentDbCollectionSink\",\"nestingSeparator\":\"datadtq\",\"writeBehavior\":\"datajbxol\",\"writeBatchSize\":\"datahquqihgibog\",\"writeBatchTimeout\":\"datajupenoupcolxc\",\"sinkRetryCount\":\"dataszwadesisd\",\"sinkRetryWait\":\"datauhqts\",\"maxConcurrentConnections\":\"datab\",\"disableMetricsCollection\":\"dataeeeucvvnbymrgel\",\"\":{\"vkqt\":\"datauexxfddfrze\",\"kaqracvcbrtlt\":\"datatqpwqzvqtnozwp\"}}") - .toObject(DocumentDbCollectionSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DocumentDbCollectionSink model = - new DocumentDbCollectionSink() - .withWriteBatchSize("datahquqihgibog") - .withWriteBatchTimeout("datajupenoupcolxc") - .withSinkRetryCount("dataszwadesisd") - .withSinkRetryWait("datauhqts") - .withMaxConcurrentConnections("datab") - .withDisableMetricsCollection("dataeeeucvvnbymrgel") - .withNestingSeparator("datadtq") - .withWriteBehavior("datajbxol"); - model = BinaryData.fromObject(model).toObject(DocumentDbCollectionSink.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DocumentDbCollectionSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DocumentDbCollectionSourceTests.java deleted file mode 100644 index abe8042f9c3a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DocumentDbCollectionSourceTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DocumentDbCollectionSource; - -public final class DocumentDbCollectionSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DocumentDbCollectionSource model = - BinaryData - .fromString( - "{\"type\":\"DocumentDbCollectionSource\",\"query\":\"dataolfensibq\",\"nestingSeparator\":\"databpyjzvye\",\"queryTimeout\":\"dataf\",\"additionalColumns\":\"datavz\",\"sourceRetryCount\":\"datavvwroug\",\"sourceRetryWait\":\"dataywgqrevbobheyx\",\"maxConcurrentConnections\":\"datacsktvkwb\",\"disableMetricsCollection\":\"datakfvvxiikrja\",\"\":{\"gv\":\"datavnm\",\"mhksgouzvegtnph\":\"dataypuotmkbofu\"}}") - .toObject(DocumentDbCollectionSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DocumentDbCollectionSource model = - new DocumentDbCollectionSource() - .withSourceRetryCount("datavvwroug") - .withSourceRetryWait("dataywgqrevbobheyx") - .withMaxConcurrentConnections("datacsktvkwb") - .withDisableMetricsCollection("datakfvvxiikrja") - .withQuery("dataolfensibq") - .withNestingSeparator("databpyjzvye") - .withQueryTimeout("dataf") - .withAdditionalColumns("datavz"); - model = BinaryData.fromObject(model).toObject(DocumentDbCollectionSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DrillDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DrillDatasetTypePropertiesTests.java deleted file mode 100644 index 017871b5e245..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DrillDatasetTypePropertiesTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.DrillDatasetTypeProperties; - -public final class DrillDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DrillDatasetTypeProperties model = - BinaryData - .fromString( - "{\"tableName\":\"dataoqejexfd\",\"table\":\"datauhdk\",\"schema\":\"datagywadrklpdyehjr\"}") - .toObject(DrillDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DrillDatasetTypeProperties model = - new DrillDatasetTypeProperties() - .withTableName("dataoqejexfd") - .withTable("datauhdk") - .withSchema("datagywadrklpdyehjr"); - model = BinaryData.fromObject(model).toObject(DrillDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DrillSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DrillSourceTests.java deleted file mode 100644 index a00719625fcc..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DrillSourceTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DrillSource; - -public final class DrillSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DrillSource model = - BinaryData - .fromString( - "{\"type\":\"DrillSource\",\"query\":\"dataxxbneiobub\",\"queryTimeout\":\"datayemppwkryz\",\"additionalColumns\":\"dataqpk\",\"sourceRetryCount\":\"datauv\",\"sourceRetryWait\":\"datai\",\"maxConcurrentConnections\":\"datazbhmyhjg\",\"disableMetricsCollection\":\"datayernckggwiquka\",\"\":{\"fttmjomuwl\":\"datakeolzizfbunzmx\",\"fzgpvdlx\":\"datavjwkpznsfbit\",\"clcuxzl\":\"datayo\",\"ggjeq\":\"datanwmgqc\"}}") - .toObject(DrillSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DrillSource model = - new DrillSource() - .withSourceRetryCount("datauv") - .withSourceRetryWait("datai") - .withMaxConcurrentConnections("datazbhmyhjg") - .withDisableMetricsCollection("datayernckggwiquka") - .withQueryTimeout("datayemppwkryz") - .withAdditionalColumns("dataqpk") - .withQuery("dataxxbneiobub"); - model = BinaryData.fromObject(model).toObject(DrillSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DrillTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DrillTableDatasetTests.java deleted file mode 100644 index 7ba5ebdaf081..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DrillTableDatasetTests.java +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.DrillTableDataset; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DrillTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DrillTableDataset model = - BinaryData - .fromString( - "{\"type\":\"DrillTable\",\"typeProperties\":{\"tableName\":\"datazjdcwuzscyf\",\"table\":\"dataxecmasjnfgngxaoj\",\"schema\":\"datayvfx\"},\"description\":\"ckmoaljaxvwxt\",\"structure\":\"datazhvojyffwflbk\",\"schema\":\"datadzuiygtcyzcjef\",\"linkedServiceName\":{\"referenceName\":\"ubaldjcgldryvlr\",\"parameters\":{\"jbfomfbozpjyxe\":\"datahzirmxca\",\"jthp\":\"datappqcwdnn\"}},\"parameters\":{\"nsebcxnouspdyzs\":{\"type\":\"Float\",\"defaultValue\":\"dataycympohxubnn\"},\"jvgspj\":{\"type\":\"Object\",\"defaultValue\":\"datamykdy\"},\"ngwqxcrbcrgyoim\":{\"type\":\"Float\",\"defaultValue\":\"datah\"}},\"annotations\":[\"dataz\",\"datacctvkog\"],\"folder\":{\"name\":\"v\"},\"\":{\"jdkjvdr\":\"datannwcnvpnyl\",\"xhnrjl\":\"dataknkxi\"}}") - .toObject(DrillTableDataset.class); - Assertions.assertEquals("ckmoaljaxvwxt", model.description()); - Assertions.assertEquals("ubaldjcgldryvlr", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("nsebcxnouspdyzs").type()); - Assertions.assertEquals("v", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DrillTableDataset model = - new DrillTableDataset() - .withDescription("ckmoaljaxvwxt") - .withStructure("datazhvojyffwflbk") - .withSchema("datadzuiygtcyzcjef") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("ubaldjcgldryvlr") - .withParameters(mapOf("jbfomfbozpjyxe", "datahzirmxca", "jthp", "datappqcwdnn"))) - .withParameters( - mapOf( - "nsebcxnouspdyzs", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("dataycympohxubnn"), - "jvgspj", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datamykdy"), - "ngwqxcrbcrgyoim", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datah"))) - .withAnnotations(Arrays.asList("dataz", "datacctvkog")) - .withFolder(new DatasetFolder().withName("v")) - .withTableName("datazjdcwuzscyf") - .withTable("dataxecmasjnfgngxaoj") - .withSchemaTypePropertiesSchema("datayvfx"); - model = BinaryData.fromObject(model).toObject(DrillTableDataset.class); - Assertions.assertEquals("ckmoaljaxvwxt", model.description()); - Assertions.assertEquals("ubaldjcgldryvlr", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("nsebcxnouspdyzs").type()); - Assertions.assertEquals("v", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsAXResourceDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsAXResourceDatasetTests.java deleted file mode 100644 index 82b81ee502dc..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsAXResourceDatasetTests.java +++ /dev/null @@ -1,83 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.DynamicsAXResourceDataset; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DynamicsAXResourceDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DynamicsAXResourceDataset model = - BinaryData - .fromString( - "{\"type\":\"DynamicsAXResource\",\"typeProperties\":{\"path\":\"datahrau\"},\"description\":\"ovlx\",\"structure\":\"datavm\",\"schema\":\"datapniqwxmrgmnkgtlh\",\"linkedServiceName\":{\"referenceName\":\"krazkioiyecz\",\"parameters\":{\"qzhehgvmmnoyzg\":\"datamsvzngh\",\"pluzypkf\":\"databn\",\"xilzvxot\":\"datadf\",\"ytsqmbwcacwaaqa\":\"dataoilqcdvhyefqh\"}},\"parameters\":{\"qlreqbrcmmdts\":{\"type\":\"Int\",\"defaultValue\":\"dataaxxra\"},\"cznbabow\":{\"type\":\"Bool\",\"defaultValue\":\"datamx\"},\"ejh\":{\"type\":\"Int\",\"defaultValue\":\"datarnmjwkowxqzkkag\"}},\"annotations\":[\"dataphr\"],\"folder\":{\"name\":\"peajzzy\"},\"\":{\"eyrftxytjayp\":\"dataamzmzfnt\"}}") - .toObject(DynamicsAXResourceDataset.class); - Assertions.assertEquals("ovlx", model.description()); - Assertions.assertEquals("krazkioiyecz", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("qlreqbrcmmdts").type()); - Assertions.assertEquals("peajzzy", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DynamicsAXResourceDataset model = - new DynamicsAXResourceDataset() - .withDescription("ovlx") - .withStructure("datavm") - .withSchema("datapniqwxmrgmnkgtlh") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("krazkioiyecz") - .withParameters( - mapOf( - "qzhehgvmmnoyzg", - "datamsvzngh", - "pluzypkf", - "databn", - "xilzvxot", - "datadf", - "ytsqmbwcacwaaqa", - "dataoilqcdvhyefqh"))) - .withParameters( - mapOf( - "qlreqbrcmmdts", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("dataaxxra"), - "cznbabow", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datamx"), - "ejh", - new ParameterSpecification() - .withType(ParameterType.INT) - .withDefaultValue("datarnmjwkowxqzkkag"))) - .withAnnotations(Arrays.asList("dataphr")) - .withFolder(new DatasetFolder().withName("peajzzy")) - .withPath("datahrau"); - model = BinaryData.fromObject(model).toObject(DynamicsAXResourceDataset.class); - Assertions.assertEquals("ovlx", model.description()); - Assertions.assertEquals("krazkioiyecz", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("qlreqbrcmmdts").type()); - Assertions.assertEquals("peajzzy", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsAXResourceDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsAXResourceDatasetTypePropertiesTests.java deleted file mode 100644 index f8f4ff363c66..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsAXResourceDatasetTypePropertiesTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.DynamicsAXResourceDatasetTypeProperties; - -public final class DynamicsAXResourceDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DynamicsAXResourceDatasetTypeProperties model = - BinaryData.fromString("{\"path\":\"datadrj\"}").toObject(DynamicsAXResourceDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DynamicsAXResourceDatasetTypeProperties model = - new DynamicsAXResourceDatasetTypeProperties().withPath("datadrj"); - model = BinaryData.fromObject(model).toObject(DynamicsAXResourceDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsAXSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsAXSourceTests.java deleted file mode 100644 index 2b99bc475ab5..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsAXSourceTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DynamicsAXSource; - -public final class DynamicsAXSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DynamicsAXSource model = - BinaryData - .fromString( - "{\"type\":\"DynamicsAXSource\",\"query\":\"dataxjlvvvzpjj\",\"httpRequestTimeout\":\"dataintgkveogeld\",\"queryTimeout\":\"datab\",\"additionalColumns\":\"databii\",\"sourceRetryCount\":\"databkxiujaagfeiwuux\",\"sourceRetryWait\":\"datamzmsivqeg\",\"maxConcurrentConnections\":\"datafzbrha\",\"disableMetricsCollection\":\"dataptkr\",\"\":{\"yxyoyjasqdhbftt\":\"datapziievcttszca\"}}") - .toObject(DynamicsAXSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DynamicsAXSource model = - new DynamicsAXSource() - .withSourceRetryCount("databkxiujaagfeiwuux") - .withSourceRetryWait("datamzmsivqeg") - .withMaxConcurrentConnections("datafzbrha") - .withDisableMetricsCollection("dataptkr") - .withQueryTimeout("datab") - .withAdditionalColumns("databii") - .withQuery("dataxjlvvvzpjj") - .withHttpRequestTimeout("dataintgkveogeld"); - model = BinaryData.fromObject(model).toObject(DynamicsAXSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsCrmEntityDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsCrmEntityDatasetTests.java deleted file mode 100644 index f2168e9d8667..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsCrmEntityDatasetTests.java +++ /dev/null @@ -1,83 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.DynamicsCrmEntityDataset; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DynamicsCrmEntityDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DynamicsCrmEntityDataset model = - BinaryData - .fromString( - "{\"type\":\"DynamicsCrmEntity\",\"typeProperties\":{\"entityName\":\"dataiwh\"},\"description\":\"cfjnc\",\"structure\":\"datadilo\",\"schema\":\"dataajwjuriarsbcll\",\"linkedServiceName\":{\"referenceName\":\"nhzcknjxizb\",\"parameters\":{\"mlxppdndzkfevuii\":\"dataygzkztxfexwacyy\",\"kcj\":\"dataiib\",\"nopm\":\"datatqdcizeqqfop\",\"xqlyoazyfbkmvl\":\"datatdsfh\"}},\"parameters\":{\"kvhyejth\":{\"type\":\"Bool\",\"defaultValue\":\"datajzsvmaigb\"},\"ergwlckihbam\":{\"type\":\"Float\",\"defaultValue\":\"datacb\"},\"zjwdizcr\":{\"type\":\"Array\",\"defaultValue\":\"dataokknpu\"},\"c\":{\"type\":\"Object\",\"defaultValue\":\"dataiujz\"}},\"annotations\":[\"datagkr\",\"dataw\",\"datasykkbxktxbbwl\",\"datanwzoknvu\"],\"folder\":{\"name\":\"lggbqaolgzub\"},\"\":{\"kmixwewzls\":\"datalkvggcmfnsffet\",\"bthhxmoevvude\":\"datagsmepnqvxgvoh\",\"nvwxqhpjhubohxv\":\"datapfhga\"}}") - .toObject(DynamicsCrmEntityDataset.class); - Assertions.assertEquals("cfjnc", model.description()); - Assertions.assertEquals("nhzcknjxizb", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("kvhyejth").type()); - Assertions.assertEquals("lggbqaolgzub", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DynamicsCrmEntityDataset model = - new DynamicsCrmEntityDataset() - .withDescription("cfjnc") - .withStructure("datadilo") - .withSchema("dataajwjuriarsbcll") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("nhzcknjxizb") - .withParameters( - mapOf( - "mlxppdndzkfevuii", - "dataygzkztxfexwacyy", - "kcj", - "dataiib", - "nopm", - "datatqdcizeqqfop", - "xqlyoazyfbkmvl", - "datatdsfh"))) - .withParameters( - mapOf( - "kvhyejth", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datajzsvmaigb"), - "ergwlckihbam", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datacb"), - "zjwdizcr", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("dataokknpu"), - "c", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("dataiujz"))) - .withAnnotations(Arrays.asList("datagkr", "dataw", "datasykkbxktxbbwl", "datanwzoknvu")) - .withFolder(new DatasetFolder().withName("lggbqaolgzub")) - .withEntityName("dataiwh"); - model = BinaryData.fromObject(model).toObject(DynamicsCrmEntityDataset.class); - Assertions.assertEquals("cfjnc", model.description()); - Assertions.assertEquals("nhzcknjxizb", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("kvhyejth").type()); - Assertions.assertEquals("lggbqaolgzub", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsCrmEntityDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsCrmEntityDatasetTypePropertiesTests.java deleted file mode 100644 index fc9cc46f36bc..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsCrmEntityDatasetTypePropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.DynamicsCrmEntityDatasetTypeProperties; - -public final class DynamicsCrmEntityDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DynamicsCrmEntityDatasetTypeProperties model = - BinaryData - .fromString("{\"entityName\":\"dataaybvrhho\"}") - .toObject(DynamicsCrmEntityDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DynamicsCrmEntityDatasetTypeProperties model = - new DynamicsCrmEntityDatasetTypeProperties().withEntityName("dataaybvrhho"); - model = BinaryData.fromObject(model).toObject(DynamicsCrmEntityDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsCrmSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsCrmSourceTests.java deleted file mode 100644 index 40c88ea9c8d7..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsCrmSourceTests.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DynamicsCrmSource; - -public final class DynamicsCrmSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DynamicsCrmSource model = - BinaryData - .fromString( - "{\"type\":\"DynamicsCrmSource\",\"query\":\"datakd\",\"additionalColumns\":\"datakdpn\",\"sourceRetryCount\":\"datadwcxjv\",\"sourceRetryWait\":\"datal\",\"maxConcurrentConnections\":\"dataxcmcccotqocnryyp\",\"disableMetricsCollection\":\"dataduldsolbz\",\"\":{\"pvaagrdfwvglqds\":\"dataufkeyl\",\"ucryhuohthzfotfr\":\"datahvo\",\"op\":\"datahrjkahdofshgmqx\",\"aittbmobrxhwpg\":\"datanitrmzvnrfkzn\"}}") - .toObject(DynamicsCrmSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DynamicsCrmSource model = - new DynamicsCrmSource() - .withSourceRetryCount("datadwcxjv") - .withSourceRetryWait("datal") - .withMaxConcurrentConnections("dataxcmcccotqocnryyp") - .withDisableMetricsCollection("dataduldsolbz") - .withQuery("datakd") - .withAdditionalColumns("datakdpn"); - model = BinaryData.fromObject(model).toObject(DynamicsCrmSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsEntityDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsEntityDatasetTests.java deleted file mode 100644 index e5135da78938..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsEntityDatasetTests.java +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.DynamicsEntityDataset; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DynamicsEntityDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DynamicsEntityDataset model = - BinaryData - .fromString( - "{\"type\":\"DynamicsEntity\",\"typeProperties\":{\"entityName\":\"datammtbt\"},\"description\":\"u\",\"structure\":\"datavvraabeurdeewlsu\",\"schema\":\"datacbwkdwjyj\",\"linkedServiceName\":{\"referenceName\":\"zni\",\"parameters\":{\"cr\":\"dataofmftasp\"}},\"parameters\":{\"nuwqxungro\":{\"type\":\"Float\",\"defaultValue\":\"datatrnighm\"}},\"annotations\":[\"datafmsxjwdy\",\"datawxm\"],\"folder\":{\"name\":\"ow\"},\"\":{\"chy\":\"dataeerclbltbhpw\",\"gpruccwme\":\"dataurjwmvwryvdifkii\"}}") - .toObject(DynamicsEntityDataset.class); - Assertions.assertEquals("u", model.description()); - Assertions.assertEquals("zni", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("nuwqxungro").type()); - Assertions.assertEquals("ow", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DynamicsEntityDataset model = - new DynamicsEntityDataset() - .withDescription("u") - .withStructure("datavvraabeurdeewlsu") - .withSchema("datacbwkdwjyj") - .withLinkedServiceName( - new LinkedServiceReference().withReferenceName("zni").withParameters(mapOf("cr", "dataofmftasp"))) - .withParameters( - mapOf( - "nuwqxungro", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datatrnighm"))) - .withAnnotations(Arrays.asList("datafmsxjwdy", "datawxm")) - .withFolder(new DatasetFolder().withName("ow")) - .withEntityName("datammtbt"); - model = BinaryData.fromObject(model).toObject(DynamicsEntityDataset.class); - Assertions.assertEquals("u", model.description()); - Assertions.assertEquals("zni", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("nuwqxungro").type()); - Assertions.assertEquals("ow", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsEntityDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsEntityDatasetTypePropertiesTests.java deleted file mode 100644 index aa480f749761..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsEntityDatasetTypePropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.DynamicsEntityDatasetTypeProperties; - -public final class DynamicsEntityDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DynamicsEntityDatasetTypeProperties model = - BinaryData - .fromString("{\"entityName\":\"datatxsytrtexegwmrq\"}") - .toObject(DynamicsEntityDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DynamicsEntityDatasetTypeProperties model = - new DynamicsEntityDatasetTypeProperties().withEntityName("datatxsytrtexegwmrq"); - model = BinaryData.fromObject(model).toObject(DynamicsEntityDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsSourceTests.java deleted file mode 100644 index 875dfd0cc98e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsSourceTests.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DynamicsSource; - -public final class DynamicsSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DynamicsSource model = - BinaryData - .fromString( - "{\"type\":\"DynamicsSource\",\"query\":\"datasyntc\",\"additionalColumns\":\"dataluqaqnlygfvbfej\",\"sourceRetryCount\":\"datazklgpifv\",\"sourceRetryWait\":\"datamvk\",\"maxConcurrentConnections\":\"datauw\",\"disableMetricsCollection\":\"datanplqf\",\"\":{\"ov\":\"datafqmdjz\",\"rjkmpaxoe\":\"datakp\",\"mqzagrqcqhwfs\":\"datalpofaog\"}}") - .toObject(DynamicsSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DynamicsSource model = - new DynamicsSource() - .withSourceRetryCount("datazklgpifv") - .withSourceRetryWait("datamvk") - .withMaxConcurrentConnections("datauw") - .withDisableMetricsCollection("datanplqf") - .withQuery("datasyntc") - .withAdditionalColumns("dataluqaqnlygfvbfej"); - model = BinaryData.fromObject(model).toObject(DynamicsSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/EloquaObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/EloquaObjectDatasetTests.java deleted file mode 100644 index f522136799a8..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/EloquaObjectDatasetTests.java +++ /dev/null @@ -1,84 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.EloquaObjectDataset; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class EloquaObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - EloquaObjectDataset model = - BinaryData - .fromString( - "{\"type\":\"EloquaObject\",\"typeProperties\":{\"tableName\":\"datalvxboc\"},\"description\":\"wmfvuhzmolhveoln\",\"structure\":\"datafm\",\"schema\":\"datadxqupyml\",\"linkedServiceName\":{\"referenceName\":\"klmnjqzmqynhitr\",\"parameters\":{\"nrjocogwf\":\"datagqrbthbfpi\",\"pkhuvnlmdcnut\":\"datakywzrqeiad\",\"ioynctfqhhvv\":\"dataexmizunzbq\"}},\"parameters\":{\"vavlyaqtlocnwme\":{\"type\":\"Array\",\"defaultValue\":\"dataaaaiaib\"},\"v\":{\"type\":\"Int\",\"defaultValue\":\"datazuzqcrlko\"},\"ozf\":{\"type\":\"Bool\",\"defaultValue\":\"datayhenfsfyqncowmh\"},\"agwaakktbjort\":{\"type\":\"Float\",\"defaultValue\":\"datajiaaosla\"}},\"annotations\":[\"dataajqhsnsejplis\",\"dataxyljzbkdw\",\"datafjwxgvtkjctvrpea\",\"datazzkvfc\"],\"folder\":{\"name\":\"vq\"},\"\":{\"tgcptctxpoeg\":\"datahtraitrmsukxtu\"}}") - .toObject(EloquaObjectDataset.class); - Assertions.assertEquals("wmfvuhzmolhveoln", model.description()); - Assertions.assertEquals("klmnjqzmqynhitr", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("vavlyaqtlocnwme").type()); - Assertions.assertEquals("vq", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - EloquaObjectDataset model = - new EloquaObjectDataset() - .withDescription("wmfvuhzmolhveoln") - .withStructure("datafm") - .withSchema("datadxqupyml") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("klmnjqzmqynhitr") - .withParameters( - mapOf( - "nrjocogwf", - "datagqrbthbfpi", - "pkhuvnlmdcnut", - "datakywzrqeiad", - "ioynctfqhhvv", - "dataexmizunzbq"))) - .withParameters( - mapOf( - "vavlyaqtlocnwme", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("dataaaaiaib"), - "v", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datazuzqcrlko"), - "ozf", - new ParameterSpecification() - .withType(ParameterType.BOOL) - .withDefaultValue("datayhenfsfyqncowmh"), - "agwaakktbjort", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datajiaaosla"))) - .withAnnotations( - Arrays.asList("dataajqhsnsejplis", "dataxyljzbkdw", "datafjwxgvtkjctvrpea", "datazzkvfc")) - .withFolder(new DatasetFolder().withName("vq")) - .withTableName("datalvxboc"); - model = BinaryData.fromObject(model).toObject(EloquaObjectDataset.class); - Assertions.assertEquals("wmfvuhzmolhveoln", model.description()); - Assertions.assertEquals("klmnjqzmqynhitr", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("vavlyaqtlocnwme").type()); - Assertions.assertEquals("vq", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/EloquaSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/EloquaSourceTests.java deleted file mode 100644 index b86eb0b342fa..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/EloquaSourceTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.EloquaSource; - -public final class EloquaSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - EloquaSource model = - BinaryData - .fromString( - "{\"type\":\"EloquaSource\",\"query\":\"dataxmpgfspwhfhdgu\",\"queryTimeout\":\"datagav\",\"additionalColumns\":\"datavdfytqzx\",\"sourceRetryCount\":\"dataqnwpwrfe\",\"sourceRetryWait\":\"dataggrm\",\"maxConcurrentConnections\":\"datafhkoe\",\"disableMetricsCollection\":\"datarjmicha\",\"\":{\"pxydi\":\"datantaqjvddeiqvrjh\"}}") - .toObject(EloquaSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - EloquaSource model = - new EloquaSource() - .withSourceRetryCount("dataqnwpwrfe") - .withSourceRetryWait("dataggrm") - .withMaxConcurrentConnections("datafhkoe") - .withDisableMetricsCollection("datarjmicha") - .withQueryTimeout("datagav") - .withAdditionalColumns("datavdfytqzx") - .withQuery("dataxmpgfspwhfhdgu"); - model = BinaryData.fromObject(model).toObject(EloquaSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/EntityReferenceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/EntityReferenceTests.java deleted file mode 100644 index ac10d7bb774d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/EntityReferenceTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.EntityReference; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeEntityReferenceType; -import org.junit.jupiter.api.Assertions; - -public final class EntityReferenceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - EntityReference model = - BinaryData - .fromString("{\"type\":\"IntegrationRuntimeReference\",\"referenceName\":\"azlycx\"}") - .toObject(EntityReference.class); - Assertions.assertEquals(IntegrationRuntimeEntityReferenceType.INTEGRATION_RUNTIME_REFERENCE, model.type()); - Assertions.assertEquals("azlycx", model.referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - EntityReference model = - new EntityReference() - .withType(IntegrationRuntimeEntityReferenceType.INTEGRATION_RUNTIME_REFERENCE) - .withReferenceName("azlycx"); - model = BinaryData.fromObject(model).toObject(EntityReference.class); - Assertions.assertEquals(IntegrationRuntimeEntityReferenceType.INTEGRATION_RUNTIME_REFERENCE, model.type()); - Assertions.assertEquals("azlycx", model.referenceName()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/EnvironmentVariableSetupTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/EnvironmentVariableSetupTests.java deleted file mode 100644 index 041f9f4eefe3..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/EnvironmentVariableSetupTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.EnvironmentVariableSetup; -import org.junit.jupiter.api.Assertions; - -public final class EnvironmentVariableSetupTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - EnvironmentVariableSetup model = - BinaryData - .fromString( - "{\"type\":\"EnvironmentVariableSetup\",\"typeProperties\":{\"variableName\":\"fgefvwgwp\",\"variableValue\":\"wxiavwmixaqgfpu\"}}") - .toObject(EnvironmentVariableSetup.class); - Assertions.assertEquals("fgefvwgwp", model.variableName()); - Assertions.assertEquals("wxiavwmixaqgfpu", model.variableValue()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - EnvironmentVariableSetup model = - new EnvironmentVariableSetup().withVariableName("fgefvwgwp").withVariableValue("wxiavwmixaqgfpu"); - model = BinaryData.fromObject(model).toObject(EnvironmentVariableSetup.class); - Assertions.assertEquals("fgefvwgwp", model.variableName()); - Assertions.assertEquals("wxiavwmixaqgfpu", model.variableValue()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/EnvironmentVariableSetupTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/EnvironmentVariableSetupTypePropertiesTests.java deleted file mode 100644 index 1d895c98b368..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/EnvironmentVariableSetupTypePropertiesTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.EnvironmentVariableSetupTypeProperties; -import org.junit.jupiter.api.Assertions; - -public final class EnvironmentVariableSetupTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - EnvironmentVariableSetupTypeProperties model = - BinaryData - .fromString("{\"variableName\":\"hzwrsjumlkjsvkbt\",\"variableValue\":\"lixa\"}") - .toObject(EnvironmentVariableSetupTypeProperties.class); - Assertions.assertEquals("hzwrsjumlkjsvkbt", model.variableName()); - Assertions.assertEquals("lixa", model.variableValue()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - EnvironmentVariableSetupTypeProperties model = - new EnvironmentVariableSetupTypeProperties().withVariableName("hzwrsjumlkjsvkbt").withVariableValue("lixa"); - model = BinaryData.fromObject(model).toObject(EnvironmentVariableSetupTypeProperties.class); - Assertions.assertEquals("hzwrsjumlkjsvkbt", model.variableName()); - Assertions.assertEquals("lixa", model.variableValue()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExcelDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExcelDatasetTests.java deleted file mode 100644 index aa5c3e88dfd3..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExcelDatasetTests.java +++ /dev/null @@ -1,104 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetCompression; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.DatasetLocation; -import com.azure.resourcemanager.datafactory.models.ExcelDataset; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ExcelDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ExcelDataset model = - BinaryData - .fromString( - "{\"type\":\"Excel\",\"typeProperties\":{\"location\":{\"type\":\"DatasetLocation\",\"folderPath\":\"datarqpfzlp\",\"fileName\":\"datatznxlu\",\"\":{\"kbpjzobdwbcpra\":\"datajqbbgsimwejlw\",\"dtnaczkf\":\"datawkuh\",\"dwgtqcumecsaa\":\"datafatgawphnski\",\"iuycsbskowk\":\"datagoqb\"}},\"sheetName\":\"datahzhrbkhtm\",\"sheetIndex\":\"datawiuasfg\",\"range\":\"dataucyhfaimq\",\"firstRowAsHeader\":\"dataruozkgyfp\",\"compression\":{\"type\":\"datae\",\"level\":\"datafm\",\"\":{\"xvlzjxplhpevasyn\":\"datakk\"}},\"nullValue\":\"datazjyielbqrvv\"},\"description\":\"vknmpecqxgiqas\",\"structure\":\"dataubnsnstlpwq\",\"schema\":\"datanxjkhtupsvyouw\",\"linkedServiceName\":{\"referenceName\":\"uiyxfwkztsmsfb\",\"parameters\":{\"kqytkztadopgfzdg\":\"datallznf\",\"yhigqkzjuqwqaj\":\"datafcycrsvlo\",\"xhyoip\":\"datauzxp\",\"bgsosc\":\"dataf\"}},\"parameters\":{\"ekwwnthropmdudsy\":{\"type\":\"SecureString\",\"defaultValue\":\"datafvbennmfkbpjnr\"},\"youergaghp\":{\"type\":\"Float\",\"defaultValue\":\"dataztvktjhffecqko\"},\"yedzfzq\":{\"type\":\"String\",\"defaultValue\":\"datakpyehhfdyldh\"},\"jlwyxedzn\":{\"type\":\"Int\",\"defaultValue\":\"dataqhtdereunokakzwh\"}},\"annotations\":[\"datafomckewv\"],\"folder\":{\"name\":\"fopxf\"},\"\":{\"pt\":\"datapdyzoutx\",\"dgaaqwvkgjpy\":\"datafhgnuywezygv\",\"nogehlufbort\":\"datapmpv\",\"xyji\":\"datanukkfaxzsvb\"}}") - .toObject(ExcelDataset.class); - Assertions.assertEquals("vknmpecqxgiqas", model.description()); - Assertions.assertEquals("uiyxfwkztsmsfb", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("ekwwnthropmdudsy").type()); - Assertions.assertEquals("fopxf", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ExcelDataset model = - new ExcelDataset() - .withDescription("vknmpecqxgiqas") - .withStructure("dataubnsnstlpwq") - .withSchema("datanxjkhtupsvyouw") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("uiyxfwkztsmsfb") - .withParameters( - mapOf( - "kqytkztadopgfzdg", - "datallznf", - "yhigqkzjuqwqaj", - "datafcycrsvlo", - "xhyoip", - "datauzxp", - "bgsosc", - "dataf"))) - .withParameters( - mapOf( - "ekwwnthropmdudsy", - new ParameterSpecification() - .withType(ParameterType.SECURE_STRING) - .withDefaultValue("datafvbennmfkbpjnr"), - "youergaghp", - new ParameterSpecification() - .withType(ParameterType.FLOAT) - .withDefaultValue("dataztvktjhffecqko"), - "yedzfzq", - new ParameterSpecification() - .withType(ParameterType.STRING) - .withDefaultValue("datakpyehhfdyldh"), - "jlwyxedzn", - new ParameterSpecification() - .withType(ParameterType.INT) - .withDefaultValue("dataqhtdereunokakzwh"))) - .withAnnotations(Arrays.asList("datafomckewv")) - .withFolder(new DatasetFolder().withName("fopxf")) - .withLocation( - new DatasetLocation() - .withFolderPath("datarqpfzlp") - .withFileName("datatznxlu") - .withAdditionalProperties(mapOf("type", "DatasetLocation"))) - .withSheetName("datahzhrbkhtm") - .withSheetIndex("datawiuasfg") - .withRange("dataucyhfaimq") - .withFirstRowAsHeader("dataruozkgyfp") - .withCompression( - new DatasetCompression().withType("datae").withLevel("datafm").withAdditionalProperties(mapOf())) - .withNullValue("datazjyielbqrvv"); - model = BinaryData.fromObject(model).toObject(ExcelDataset.class); - Assertions.assertEquals("vknmpecqxgiqas", model.description()); - Assertions.assertEquals("uiyxfwkztsmsfb", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("ekwwnthropmdudsy").type()); - Assertions.assertEquals("fopxf", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExcelDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExcelDatasetTypePropertiesTests.java deleted file mode 100644 index 8924192fe760..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExcelDatasetTypePropertiesTests.java +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.ExcelDatasetTypeProperties; -import com.azure.resourcemanager.datafactory.models.DatasetCompression; -import com.azure.resourcemanager.datafactory.models.DatasetLocation; -import java.util.HashMap; -import java.util.Map; - -public final class ExcelDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ExcelDatasetTypeProperties model = - BinaryData - .fromString( - "{\"location\":{\"type\":\"DatasetLocation\",\"folderPath\":\"datakobqoclflioe\",\"fileName\":\"datahxessmvrk\",\"\":{\"bdxmd\":\"dataqeq\"}},\"sheetName\":\"datasbrujbjpppktlpdi\",\"sheetIndex\":\"datamthieatnejrnmin\",\"range\":\"dataplgtkihonikzsrzf\",\"firstRowAsHeader\":\"datajilzfbpntogke\",\"compression\":{\"type\":\"datack\",\"level\":\"datamcarm\",\"\":{\"ykhkg\":\"dataxxkwykuqdndx\",\"t\":\"dataapvd\",\"rnrnjrcufmbgacnr\":\"datapeerscd\",\"eubkqiqmlf\":\"datafdtncmspsanma\"}},\"nullValue\":\"datalqcskkqjmxptueip\"}") - .toObject(ExcelDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ExcelDatasetTypeProperties model = - new ExcelDatasetTypeProperties() - .withLocation( - new DatasetLocation() - .withFolderPath("datakobqoclflioe") - .withFileName("datahxessmvrk") - .withAdditionalProperties(mapOf("type", "DatasetLocation"))) - .withSheetName("datasbrujbjpppktlpdi") - .withSheetIndex("datamthieatnejrnmin") - .withRange("dataplgtkihonikzsrzf") - .withFirstRowAsHeader("datajilzfbpntogke") - .withCompression( - new DatasetCompression() - .withType("datack") - .withLevel("datamcarm") - .withAdditionalProperties(mapOf())) - .withNullValue("datalqcskkqjmxptueip"); - model = BinaryData.fromObject(model).toObject(ExcelDatasetTypeProperties.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExcelSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExcelSourceTests.java deleted file mode 100644 index 6b97bda076d7..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExcelSourceTests.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ExcelSource; -import com.azure.resourcemanager.datafactory.models.StoreReadSettings; -import java.util.HashMap; -import java.util.Map; - -public final class ExcelSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ExcelSource model = - BinaryData - .fromString( - "{\"type\":\"ExcelSource\",\"storeSettings\":{\"type\":\"StoreReadSettings\",\"maxConcurrentConnections\":\"dataaxzfhhhgyxk\",\"disableMetricsCollection\":\"dataryalkfdxauih\",\"\":{\"u\":\"datadhkdwyehqn\"}},\"additionalColumns\":\"datag\",\"sourceRetryCount\":\"datanmin\",\"sourceRetryWait\":\"datadkqigpp\",\"maxConcurrentConnections\":\"datasqsapweaxt\",\"disableMetricsCollection\":\"datahuruouqyota\",\"\":{\"qjpcuzexoymfku\":\"datakdb\",\"qzpgrv\":\"databysg\"}}") - .toObject(ExcelSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ExcelSource model = - new ExcelSource() - .withSourceRetryCount("datanmin") - .withSourceRetryWait("datadkqigpp") - .withMaxConcurrentConnections("datasqsapweaxt") - .withDisableMetricsCollection("datahuruouqyota") - .withStoreSettings( - new StoreReadSettings() - .withMaxConcurrentConnections("dataaxzfhhhgyxk") - .withDisableMetricsCollection("dataryalkfdxauih") - .withAdditionalProperties(mapOf("type", "StoreReadSettings"))) - .withAdditionalColumns("datag"); - model = BinaryData.fromObject(model).toObject(ExcelSource.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExecuteDataFlowActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExecuteDataFlowActivityTests.java deleted file mode 100644 index e1aa5f13a161..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExecuteDataFlowActivityTests.java +++ /dev/null @@ -1,183 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityPolicy; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DataFlowReference; -import com.azure.resourcemanager.datafactory.models.DataFlowReferenceType; -import com.azure.resourcemanager.datafactory.models.DataFlowStagingInfo; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.ExecuteDataFlowActivity; -import com.azure.resourcemanager.datafactory.models.ExecuteDataFlowActivityTypePropertiesCompute; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeReference; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ExecuteDataFlowActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ExecuteDataFlowActivity model = - BinaryData - .fromString( - "{\"type\":\"ExecuteDataFlow\",\"typeProperties\":{\"dataFlow\":{\"type\":\"DataFlowReference\",\"referenceName\":\"pidb\",\"datasetParameters\":\"dataviplcowbxpvmnd\",\"parameters\":{\"dono\":\"datacgq\",\"whvqkeuiy\":\"dataw\",\"pvusigw\":\"dataeaahnkntldddk\"},\"\":{\"oodqnouwxkeqlbm\":\"datanxrrjihgigcozk\",\"udfixhxl\":\"dataoyapxnq\"}},\"staging\":{\"linkedService\":{\"referenceName\":\"qhtgtadtootkgxx\",\"parameters\":{\"petwgtmpytom\":\"datanlqwxskltz\",\"g\":\"datatubhvb\",\"zdazxfz\":\"datavpyjpaih\",\"sjnlekotqhd\":\"datallihwpsrdaoixgqt\"}},\"folderPath\":\"dataxknchyoimtfkjcdj\"},\"integrationRuntime\":{\"referenceName\":\"xe\",\"parameters\":{\"cxuntghwcb\":\"datav\",\"yfcbcakcq\":\"dataclg\",\"xbo\":\"datahwzeukumln\",\"ywzgvcmui\":\"datavgwa\"}},\"compute\":{\"computeType\":\"datajsznxze\",\"coreCount\":\"datanqmxirsp\"},\"traceLevel\":\"dataakrbew\",\"continueOnError\":\"datais\",\"runConcurrently\":\"databourw\",\"sourceStagingConcurrency\":\"datansdluq\"},\"linkedServiceName\":{\"referenceName\":\"xgmzyqftlafeco\",\"parameters\":{\"ynusqzai\":\"datax\",\"w\":\"dataz\",\"kwbwxcjf\":\"datay\",\"weguqzlmhpuqlsd\":\"datauzw\"}},\"policy\":{\"timeout\":\"datajxlzyyylyxujqp\",\"retry\":\"datapvychobshogja\",\"retryIntervalInSeconds\":1088491927,\"secureInput\":true,\"secureOutput\":false,\"\":{\"ujtnnd\":\"datafrwym\",\"yc\":\"datas\"}},\"name\":\"pljyt\",\"description\":\"btijybpfwg\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"xh\",\"dependencyConditions\":[\"Failed\",\"Failed\",\"Completed\"],\"\":{\"burrevuz\":\"datafaqgzakisipjgvm\"}},{\"activity\":\"xuubwjopkldubqfb\",\"dependencyConditions\":[\"Succeeded\",\"Skipped\",\"Succeeded\",\"Skipped\"],\"\":{\"tnm\":\"dataydgnxsgy\"}},{\"activity\":\"lankosd\",\"dependencyConditions\":[\"Succeeded\",\"Succeeded\",\"Skipped\"],\"\":{\"ybdivxvxw\":\"dataefkhki\",\"czco\":\"datafmqzndlgqtuq\"}},{\"activity\":\"ctcwtxa\",\"dependencyConditions\":[\"Failed\"],\"\":{\"rzsninkhbm\":\"datahmsdod\",\"yt\":\"datalfo\"}}],\"userProperties\":[{\"name\":\"hzxmcpsep\",\"value\":\"datardgerqzxkpxr\"}],\"\":{\"jmel\":\"dataqhhmndbbpjdg\"}}") - .toObject(ExecuteDataFlowActivity.class); - Assertions.assertEquals("pljyt", model.name()); - Assertions.assertEquals("btijybpfwg", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("xh", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("hzxmcpsep", model.userProperties().get(0).name()); - Assertions.assertEquals("xgmzyqftlafeco", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1088491927, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.dataFlow().type()); - Assertions.assertEquals("pidb", model.dataFlow().referenceName()); - Assertions.assertEquals("qhtgtadtootkgxx", model.staging().linkedService().referenceName()); - Assertions.assertEquals("xe", model.integrationRuntime().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ExecuteDataFlowActivity model = - new ExecuteDataFlowActivity() - .withName("pljyt") - .withDescription("btijybpfwg") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("xh") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.FAILED, - DependencyCondition.FAILED, - DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("xuubwjopkldubqfb") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.SUCCEEDED, - DependencyCondition.SKIPPED, - DependencyCondition.SUCCEEDED, - DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("lankosd") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.SUCCEEDED, - DependencyCondition.SUCCEEDED, - DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("ctcwtxa") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("hzxmcpsep").withValue("datardgerqzxkpxr"))) - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("xgmzyqftlafeco") - .withParameters( - mapOf( - "ynusqzai", "datax", "w", "dataz", "kwbwxcjf", "datay", "weguqzlmhpuqlsd", "datauzw"))) - .withPolicy( - new ActivityPolicy() - .withTimeout("datajxlzyyylyxujqp") - .withRetry("datapvychobshogja") - .withRetryIntervalInSeconds(1088491927) - .withSecureInput(true) - .withSecureOutput(false) - .withAdditionalProperties(mapOf())) - .withDataFlow( - new DataFlowReference() - .withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("pidb") - .withDatasetParameters("dataviplcowbxpvmnd") - .withParameters(mapOf("dono", "datacgq", "whvqkeuiy", "dataw", "pvusigw", "dataeaahnkntldddk")) - .withAdditionalProperties(mapOf())) - .withStaging( - new DataFlowStagingInfo() - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("qhtgtadtootkgxx") - .withParameters( - mapOf( - "petwgtmpytom", - "datanlqwxskltz", - "g", - "datatubhvb", - "zdazxfz", - "datavpyjpaih", - "sjnlekotqhd", - "datallihwpsrdaoixgqt"))) - .withFolderPath("dataxknchyoimtfkjcdj")) - .withIntegrationRuntime( - new IntegrationRuntimeReference() - .withReferenceName("xe") - .withParameters( - mapOf( - "cxuntghwcb", - "datav", - "yfcbcakcq", - "dataclg", - "xbo", - "datahwzeukumln", - "ywzgvcmui", - "datavgwa"))) - .withCompute( - new ExecuteDataFlowActivityTypePropertiesCompute() - .withComputeType("datajsznxze") - .withCoreCount("datanqmxirsp")) - .withTraceLevel("dataakrbew") - .withContinueOnError("datais") - .withRunConcurrently("databourw") - .withSourceStagingConcurrency("datansdluq"); - model = BinaryData.fromObject(model).toObject(ExecuteDataFlowActivity.class); - Assertions.assertEquals("pljyt", model.name()); - Assertions.assertEquals("btijybpfwg", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("xh", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("hzxmcpsep", model.userProperties().get(0).name()); - Assertions.assertEquals("xgmzyqftlafeco", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1088491927, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.dataFlow().type()); - Assertions.assertEquals("pidb", model.dataFlow().referenceName()); - Assertions.assertEquals("qhtgtadtootkgxx", model.staging().linkedService().referenceName()); - Assertions.assertEquals("xe", model.integrationRuntime().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExecuteDataFlowActivityTypePropertiesComputeTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExecuteDataFlowActivityTypePropertiesComputeTests.java deleted file mode 100644 index d310acfe83b6..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExecuteDataFlowActivityTypePropertiesComputeTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ExecuteDataFlowActivityTypePropertiesCompute; - -public final class ExecuteDataFlowActivityTypePropertiesComputeTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ExecuteDataFlowActivityTypePropertiesCompute model = - BinaryData - .fromString("{\"computeType\":\"datagnxepapm\",\"coreCount\":\"datakxshkyluqxndmtas\"}") - .toObject(ExecuteDataFlowActivityTypePropertiesCompute.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ExecuteDataFlowActivityTypePropertiesCompute model = - new ExecuteDataFlowActivityTypePropertiesCompute() - .withComputeType("datagnxepapm") - .withCoreCount("datakxshkyluqxndmtas"); - model = BinaryData.fromObject(model).toObject(ExecuteDataFlowActivityTypePropertiesCompute.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExecuteDataFlowActivityTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExecuteDataFlowActivityTypePropertiesTests.java deleted file mode 100644 index a9b84ed911d4..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExecuteDataFlowActivityTypePropertiesTests.java +++ /dev/null @@ -1,81 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.ExecuteDataFlowActivityTypeProperties; -import com.azure.resourcemanager.datafactory.models.DataFlowReference; -import com.azure.resourcemanager.datafactory.models.DataFlowReferenceType; -import com.azure.resourcemanager.datafactory.models.DataFlowStagingInfo; -import com.azure.resourcemanager.datafactory.models.ExecuteDataFlowActivityTypePropertiesCompute; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeReference; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ExecuteDataFlowActivityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ExecuteDataFlowActivityTypeProperties model = - BinaryData - .fromString( - "{\"dataFlow\":{\"type\":\"DataFlowReference\",\"referenceName\":\"zmfmgboyliop\",\"datasetParameters\":\"dataogfaiy\",\"parameters\":{\"summysrxnneq\":\"datafe\",\"rskosbzvclzutvqk\":\"datasdupmrickuhgbrv\"},\"\":{\"fskqwjlohkaffyny\":\"datamv\"}},\"staging\":{\"linkedService\":{\"referenceName\":\"qbyty\",\"parameters\":{\"egiufjnjgupj\":\"datakucxpqpaxkayv\",\"wbdmunuv\":\"datappbalcft\"}},\"folderPath\":\"datamxxgocpzqrbtyz\"},\"integrationRuntime\":{\"referenceName\":\"wrufiouafxp\",\"parameters\":{\"oogixgnpl\":\"datamw\"}},\"compute\":{\"computeType\":\"datavpuigtnjye\",\"coreCount\":\"datavvitxoitnqmiwlri\"},\"traceLevel\":\"datax\",\"continueOnError\":\"datayyvebpykzhrq\",\"runConcurrently\":\"databt\",\"sourceStagingConcurrency\":\"datav\"}") - .toObject(ExecuteDataFlowActivityTypeProperties.class); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.dataFlow().type()); - Assertions.assertEquals("zmfmgboyliop", model.dataFlow().referenceName()); - Assertions.assertEquals("qbyty", model.staging().linkedService().referenceName()); - Assertions.assertEquals("wrufiouafxp", model.integrationRuntime().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ExecuteDataFlowActivityTypeProperties model = - new ExecuteDataFlowActivityTypeProperties() - .withDataFlow( - new DataFlowReference() - .withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("zmfmgboyliop") - .withDatasetParameters("dataogfaiy") - .withParameters(mapOf("summysrxnneq", "datafe", "rskosbzvclzutvqk", "datasdupmrickuhgbrv")) - .withAdditionalProperties(mapOf())) - .withStaging( - new DataFlowStagingInfo() - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("qbyty") - .withParameters(mapOf("egiufjnjgupj", "datakucxpqpaxkayv", "wbdmunuv", "datappbalcft"))) - .withFolderPath("datamxxgocpzqrbtyz")) - .withIntegrationRuntime( - new IntegrationRuntimeReference() - .withReferenceName("wrufiouafxp") - .withParameters(mapOf("oogixgnpl", "datamw"))) - .withCompute( - new ExecuteDataFlowActivityTypePropertiesCompute() - .withComputeType("datavpuigtnjye") - .withCoreCount("datavvitxoitnqmiwlri")) - .withTraceLevel("datax") - .withContinueOnError("datayyvebpykzhrq") - .withRunConcurrently("databt") - .withSourceStagingConcurrency("datav"); - model = BinaryData.fromObject(model).toObject(ExecuteDataFlowActivityTypeProperties.class); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.dataFlow().type()); - Assertions.assertEquals("zmfmgboyliop", model.dataFlow().referenceName()); - Assertions.assertEquals("qbyty", model.staging().linkedService().referenceName()); - Assertions.assertEquals("wrufiouafxp", model.integrationRuntime().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExecutePipelineActivityPolicyTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExecutePipelineActivityPolicyTests.java deleted file mode 100644 index f480ae2e5139..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExecutePipelineActivityPolicyTests.java +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ExecutePipelineActivityPolicy; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ExecutePipelineActivityPolicyTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ExecutePipelineActivityPolicy model = - BinaryData - .fromString("{\"secureInput\":true,\"\":{\"q\":\"datadhrgw\"}}") - .toObject(ExecutePipelineActivityPolicy.class); - Assertions.assertEquals(true, model.secureInput()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ExecutePipelineActivityPolicy model = - new ExecutePipelineActivityPolicy().withSecureInput(true).withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(ExecutePipelineActivityPolicy.class); - Assertions.assertEquals(true, model.secureInput()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExecutePipelineActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExecutePipelineActivityTests.java deleted file mode 100644 index 38c0dfc15528..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExecutePipelineActivityTests.java +++ /dev/null @@ -1,105 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.ExecutePipelineActivity; -import com.azure.resourcemanager.datafactory.models.ExecutePipelineActivityPolicy; -import com.azure.resourcemanager.datafactory.models.PipelineReference; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ExecutePipelineActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ExecutePipelineActivity model = - BinaryData - .fromString( - "{\"type\":\"ExecutePipeline\",\"policy\":{\"secureInput\":true,\"\":{\"xr\":\"datadixoflxvsu\",\"rwbcycwasmrfbwsi\":\"datatcozfjsfrbjrbqcb\",\"gd\":\"datamhhvbovblxfyle\",\"ezszlr\":\"dataiurfemnykfzsouo\"}},\"typeProperties\":{\"pipeline\":{\"referenceName\":\"z\",\"name\":\"dgiijnpkxprb\"},\"parameters\":{\"hbvlljkql\":\"datajfh\",\"btgm\":\"datauhhkkbfgrmscbmd\",\"qjyrqouyfcfdedeu\":\"datapdredcvwsbsdy\",\"elksghsowm\":\"datahgnfaanubjeb\"},\"waitOnCompletion\":false},\"name\":\"jdhw\",\"description\":\"b\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"c\",\"dependencyConditions\":[\"Skipped\"],\"\":{\"ovrsrtldijgrbit\":\"dataavdopecj\",\"hcjtwhwgbaj\":\"datadwuoxirziluzokx\"}},{\"activity\":\"gctwamjjwvmugis\",\"dependencyConditions\":[\"Completed\",\"Completed\",\"Completed\"],\"\":{\"tdyxzg\":\"dataopedmk\",\"rvkqxhkhj\":\"dataqtgfbmocvb\",\"yrqtu\":\"datarcqpxaajt\",\"ssbvlj\":\"datatzmubxngspazm\"}}],\"userProperties\":[{\"name\":\"be\",\"value\":\"datauhwcakkewgzao\"}],\"\":{\"vahqjdi\":\"datalqtjjewezcknpm\",\"ehudicxolmmhfd\":\"datajoldwa\",\"jqvmpzcjvogr\":\"datavxoiwb\",\"ydespwwkdmsnez\":\"dataipop\"}}") - .toObject(ExecutePipelineActivity.class); - Assertions.assertEquals("jdhw", model.name()); - Assertions.assertEquals("b", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("c", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SKIPPED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("be", model.userProperties().get(0).name()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals("z", model.pipeline().referenceName()); - Assertions.assertEquals("dgiijnpkxprb", model.pipeline().name()); - Assertions.assertEquals(false, model.waitOnCompletion()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ExecutePipelineActivity model = - new ExecutePipelineActivity() - .withName("jdhw") - .withDescription("b") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("c") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("gctwamjjwvmugis") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.COMPLETED, - DependencyCondition.COMPLETED, - DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("be").withValue("datauhwcakkewgzao"))) - .withPolicy(new ExecutePipelineActivityPolicy().withSecureInput(true).withAdditionalProperties(mapOf())) - .withPipeline(new PipelineReference().withReferenceName("z").withName("dgiijnpkxprb")) - .withParameters( - mapOf( - "hbvlljkql", - "datajfh", - "btgm", - "datauhhkkbfgrmscbmd", - "qjyrqouyfcfdedeu", - "datapdredcvwsbsdy", - "elksghsowm", - "datahgnfaanubjeb")) - .withWaitOnCompletion(false); - model = BinaryData.fromObject(model).toObject(ExecutePipelineActivity.class); - Assertions.assertEquals("jdhw", model.name()); - Assertions.assertEquals("b", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("c", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SKIPPED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("be", model.userProperties().get(0).name()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals("z", model.pipeline().referenceName()); - Assertions.assertEquals("dgiijnpkxprb", model.pipeline().name()); - Assertions.assertEquals(false, model.waitOnCompletion()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExecutePipelineActivityTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExecutePipelineActivityTypePropertiesTests.java deleted file mode 100644 index 649a56cc8064..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExecutePipelineActivityTypePropertiesTests.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.ExecutePipelineActivityTypeProperties; -import com.azure.resourcemanager.datafactory.models.PipelineReference; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ExecutePipelineActivityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ExecutePipelineActivityTypeProperties model = - BinaryData - .fromString( - "{\"pipeline\":{\"referenceName\":\"qmelm\",\"name\":\"bepi\"},\"parameters\":{\"er\":\"datave\",\"brnlbfnuppwqks\":\"datau\"},\"waitOnCompletion\":true}") - .toObject(ExecutePipelineActivityTypeProperties.class); - Assertions.assertEquals("qmelm", model.pipeline().referenceName()); - Assertions.assertEquals("bepi", model.pipeline().name()); - Assertions.assertEquals(true, model.waitOnCompletion()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ExecutePipelineActivityTypeProperties model = - new ExecutePipelineActivityTypeProperties() - .withPipeline(new PipelineReference().withReferenceName("qmelm").withName("bepi")) - .withParameters(mapOf("er", "datave", "brnlbfnuppwqks", "datau")) - .withWaitOnCompletion(true); - model = BinaryData.fromObject(model).toObject(ExecutePipelineActivityTypeProperties.class); - Assertions.assertEquals("qmelm", model.pipeline().referenceName()); - Assertions.assertEquals("bepi", model.pipeline().name()); - Assertions.assertEquals(true, model.waitOnCompletion()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExecutePowerQueryActivityTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExecutePowerQueryActivityTypePropertiesTests.java deleted file mode 100644 index e8150fd7e9c9..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExecutePowerQueryActivityTypePropertiesTests.java +++ /dev/null @@ -1,596 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.ExecutePowerQueryActivityTypeProperties; -import com.azure.resourcemanager.datafactory.models.DataFlowReference; -import com.azure.resourcemanager.datafactory.models.DataFlowReferenceType; -import com.azure.resourcemanager.datafactory.models.DataFlowStagingInfo; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import com.azure.resourcemanager.datafactory.models.ExecuteDataFlowActivityTypePropertiesCompute; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeReference; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.PowerQuerySink; -import com.azure.resourcemanager.datafactory.models.PowerQuerySinkMapping; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ExecutePowerQueryActivityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ExecutePowerQueryActivityTypeProperties model = - BinaryData - .fromString( - "{\"sinks\":{\"fbweuazxtsgs\":{\"script\":\"abnwsgauwepojmx\",\"schemaLinkedService\":{\"referenceName\":\"viykwrffxo\",\"parameters\":{\"dyuoz\":\"datahcxpzjewoyqlcv\",\"npuquyatvsnkrxh\":\"datatsj\",\"ldtjzi\":\"dataegwvblrgrzlrnuy\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"wzpauwhfh\",\"parameters\":{\"wgsyi\":\"dataolojcaybukj\",\"ekxvlejh\":\"dataqlghrcctvlnnkvdr\",\"u\":\"databqzxqid\"}},\"name\":\"wrwjbanteeu\",\"description\":\"icaikfvj\",\"dataset\":{\"referenceName\":\"fpob\",\"parameters\":{\"dlp\":\"datarqjiol\",\"f\":\"datayksqnsrvgh\",\"wtucv\":\"datadrqmcgeqybord\",\"orsgc\":\"dataviymvgnqqfnv\"}},\"linkedService\":{\"referenceName\":\"kn\",\"parameters\":{\"bbzfcjmhp\":\"datacnezdplcbq\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"jpdyztqpszbt\",\"datasetParameters\":\"dataymbyltdnr\",\"parameters\":{\"iz\":\"datahxo\",\"jiyl\":\"datawihadcotfo\"},\"\":{\"bzs\":\"databco\",\"okwaxehxswe\":\"datage\",\"xffttfqlcxymcmo\":\"dataga\"}}},\"pfisyydoy\":{\"script\":\"adsbacemwn\",\"schemaLinkedService\":{\"referenceName\":\"dgimsbump\",\"parameters\":{\"w\":\"datacarcyrftcjxzmx\",\"vxrcmrdmyjcou\":\"datahdlrfyonnb\",\"zirkyxhqwoxm\":\"datazodolehchimzrc\",\"lwhpqnzpfpsppkq\":\"dataobuanybfm\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"dmgmfy\",\"parameters\":{\"fx\":\"datafkfgrdrilh\",\"gz\":\"datarqpickn\"}},\"name\":\"rdicwmueavawyw\",\"description\":\"gcc\",\"dataset\":{\"referenceName\":\"hjvvrrxclf\",\"parameters\":{\"wxxfkfthwxoss\":\"dataifqwyiuhhuftnuig\",\"stgsmeijgjbevts\":\"datakafym\",\"ywal\":\"datacsyjxdwvdklgw\",\"eelbcsyaohizfysa\":\"datafmenbaj\"}},\"linkedService\":{\"referenceName\":\"bupftkddohxvcso\",\"parameters\":{\"ywttdanu\":\"datadcqp\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"tkhcmoccgtmfu\",\"datasetParameters\":\"datakhmbks\",\"parameters\":{\"xdsnmhndcr\":\"datazt\"},\"\":{\"bahuu\":\"dataccmqenf\",\"kolfiigoxohjy\":\"datathden\"}}},\"btmh\":{\"script\":\"cwvcfayll\",\"schemaLinkedService\":{\"referenceName\":\"hqvmilpgxeaqwogp\",\"parameters\":{\"edfmc\":\"datamyfg\",\"ti\":\"datar\",\"voqsudtmkmg\":\"datadkypckhqooqni\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"pv\",\"parameters\":{\"kghugfdugqhmo\":\"datagvpsukkk\",\"tjtiidozfrgvqurr\":\"dataekoxylcbp\"}},\"name\":\"nijdr\",\"description\":\"ohjgdoi\",\"dataset\":{\"referenceName\":\"rylzsgpoi\",\"parameters\":{\"ja\":\"datazqko\",\"zkq\":\"datadm\"}},\"linkedService\":{\"referenceName\":\"zytazqsu\",\"parameters\":{\"osdizpgcq\":\"datapvtwgbf\",\"gwvvenmuenoq\":\"dataglzfgepblhe\",\"oixiduzrdvhgyj\":\"dataamrytrny\",\"fwlxkxlru\":\"datambj\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"olxlxlezzy\",\"datasetParameters\":\"datazz\",\"parameters\":{\"jiaycgxwacuu\":\"datadelmxbxbyx\",\"jbhuzybms\":\"datanygtsjafvzd\",\"uvbnmzjwhybsgz\":\"dataz\"},\"\":{\"qmwmwoggbxiasfi\":\"datafhkznl\",\"lfedwhvhlzpvpix\":\"dataucnp\",\"vc\":\"datajvycodfubnvdibb\"}}},\"plwyluvqp\":{\"script\":\"mpt\",\"schemaLinkedService\":{\"referenceName\":\"r\",\"parameters\":{\"gvksoxyk\":\"dataypauqyaisdiwo\",\"enl\":\"datama\",\"ebg\":\"datavahjlvbnl\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"opsgedsyykueifm\",\"parameters\":{\"b\":\"datatlfdiqzvazffz\"}},\"name\":\"el\",\"description\":\"lrdgpudbimehdx\",\"dataset\":{\"referenceName\":\"tyfhwkb\",\"parameters\":{\"ei\":\"datafnyoautebehjrmfe\",\"pyirngfujv\":\"datanhwgzunbcvfz\",\"rsxxcaxgr\":\"dataafrqqfgudobutkq\",\"wpuas\":\"dataikiuxvdnchrvsfnl\"}},\"linkedService\":{\"referenceName\":\"cblv\",\"parameters\":{\"xxt\":\"datadi\",\"iwvznffmxtmq\":\"datavoasdhd\",\"xpmtztvxfglil\":\"datartpdyhbpfxmr\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"owrzqy\",\"datasetParameters\":\"datajxsgrtnit\",\"parameters\":{\"ffexzzi\":\"datapgenyvpxpcjnb\"},\"\":{\"ewniwt\":\"datat\"}}}},\"queries\":[{\"queryName\":\"yqsnttwlxvezoald\",\"dataflowSinks\":[{\"script\":\"xcqto\",\"schemaLinkedService\":{\"referenceName\":\"anxinlmi\",\"parameters\":{\"uivzsjf\":\"datau\",\"ayk\":\"datanenhyhdu\",\"tzsltsxmdace\":\"datajhwybbdaedq\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"mapfieaumqjxd\",\"parameters\":{\"uiamr\":\"datac\",\"fpwjjtdzfyivv\":\"datalhfxjcq\",\"zfvysvudbj\":\"dataxqpemqogto\"}},\"name\":\"ihtxvmnyslpdqd\",\"description\":\"j\",\"dataset\":{\"referenceName\":\"blnervt\",\"parameters\":{\"si\":\"datadtnjxvtvyy\"}},\"linkedService\":{\"referenceName\":\"bqygnfxgzzq\",\"parameters\":{\"jsugkdv\":\"datavjhmqpjbk\",\"efdsgfztmhvu\":\"datagpeitfbgyznsh\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"poookhcurwgbjzz\",\"datasetParameters\":\"datajwqwyhh\",\"parameters\":{\"ywzpcxnbb\":\"datatseejtfnjrrxfb\",\"ywdckvcofstceehq\":\"datajgvalowmmhhu\",\"fujpo\":\"dataah\",\"edruumldunalog\":\"datatakijwk\"},\"\":{\"e\":\"datakfqc\",\"dvhqecqqiulwfz\":\"datansszu\"}}},{\"script\":\"z\",\"schemaLinkedService\":{\"referenceName\":\"gtwaquiuzsnjjgnm\",\"parameters\":{\"wt\":\"datasjfvdajmczlvcxm\",\"b\":\"datarpd\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"xzxwjzleeupqlszc\",\"parameters\":{\"fxnxtiwinn\":\"dataayraatrjpar\",\"zgmfnpeluvxs\":\"dataowihsgt\"}},\"name\":\"c\",\"description\":\"ukupngorw\",\"dataset\":{\"referenceName\":\"yrguxfjjgcfqfwgr\",\"parameters\":{\"rujdskkkz\":\"datafhkbjgxkrppxj\",\"zdakfxzhapcwhj\":\"dataladibsjirhaqedfu\",\"bdxsjceyyebgfffn\":\"datamjfr\",\"yfugk\":\"datarbnvwhqctq\"}},\"linkedService\":{\"referenceName\":\"xvevudywny\",\"parameters\":{\"xagtiyvdslrrtv\":\"datanaynlxwukpqcf\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"zmzbaqrxz\",\"datasetParameters\":\"dataxtmedoykekbdwqwh\",\"parameters\":{\"eisqkotbmhryri\":\"datayrfjzyiniuua\"},\"\":{\"rswnfakcchc\":\"datayavhesqnvsqte\",\"u\":\"datamzvh\",\"chgvwggylbmfrxof\":\"dataigadpq\"}}},{\"script\":\"yscwv\",\"schemaLinkedService\":{\"referenceName\":\"zfgdxyrpp\",\"parameters\":{\"tbpaircnupmz\":\"datadohiotgf\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"tziejoebzofmmce\",\"parameters\":{\"kpqnpdlcyjse\":\"datafhjrsxrmlxszx\",\"umlfdxetqknzev\":\"datadfhnhbktobeonl\"}},\"name\":\"y\",\"description\":\"nqneo\",\"dataset\":{\"referenceName\":\"crmng\",\"parameters\":{\"cxrxduxct\":\"datainl\",\"gm\":\"datajxtkmd\",\"ipabturkmk\":\"datavfuylpctlbuo\",\"zzsohcaet\":\"datacsqktgko\"}},\"linkedService\":{\"referenceName\":\"pm\",\"parameters\":{\"li\":\"dataqxlkya\",\"ubtykyz\":\"dataoodn\",\"tgbsdaruwv\":\"datargiyqzuhnbazd\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"oozyhucadeqslhz\",\"datasetParameters\":\"dataimqazolroqusrlkp\",\"parameters\":{\"mkbpdpk\":\"dataqydrnwsfa\",\"slqikocgzjmjdoq\":\"datalh\"},\"\":{\"ekbb\":\"datadc\",\"azhr\":\"datatcoxddgjdpyhe\"}}},{\"script\":\"jtjc\",\"schemaLinkedService\":{\"referenceName\":\"ynbs\",\"parameters\":{\"lgfecsreojs\":\"datareqvxzlwgaius\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"kxbbzi\",\"parameters\":{\"yg\":\"datavvgjxbmgheyamoe\"}},\"name\":\"vyiti\",\"description\":\"zxseyjqklaihqrbr\",\"dataset\":{\"referenceName\":\"hljqqbue\",\"parameters\":{\"tifbvcveomdl\":\"datadjsu\"}},\"linkedService\":{\"referenceName\":\"jguwdfn\",\"parameters\":{\"ojmynlvovjs\":\"datauqufaowuibujj\",\"h\":\"dataxewfqvlhjawm\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"zlrnfmmef\",\"datasetParameters\":\"datajxtgffwq\",\"parameters\":{\"t\":\"datagfgirrzyngdvdr\",\"kqaqfbimfpnpmkdg\":\"dataqfrxggvstyxv\",\"jeffpidwqr\":\"datandwtdorvxdwgpu\"},\"\":{\"gaupplcoqbouetf\":\"datajmj\",\"ldlok\":\"datazaja\"}}}]},{\"queryName\":\"mzfltxqpozqd\",\"dataflowSinks\":[{\"script\":\"fe\",\"schemaLinkedService\":{\"referenceName\":\"gjkkjwjn\",\"parameters\":{\"b\":\"dataswmwv\",\"sph\":\"dataazjmfq\",\"ifj\":\"datavthkgjaaqhd\",\"nquj\":\"datafrg\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"wpjpka\",\"parameters\":{\"btlmnrdkiqs\":\"dataafhvuy\"}},\"name\":\"bdv\",\"description\":\"qsmk\",\"dataset\":{\"referenceName\":\"qljxnkpdimexro\",\"parameters\":{\"wovl\":\"datadptsdlcsrhttmhj\"}},\"linkedService\":{\"referenceName\":\"zquckrcw\",\"parameters\":{\"sjawbnxcizeuifnd\":\"dataqqkknulrqpacusm\",\"nzjyghq\":\"datar\",\"ln\":\"datafs\",\"ems\":\"datavgec\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"rkgt\",\"datasetParameters\":\"dataxlaywkbuvedw\",\"parameters\":{\"dgtwx\":\"dataeyfdgnaoirru\"},\"\":{\"eeqelmrp\":\"datarhvgphfzdgs\"}}}]}],\"dataFlow\":{\"type\":\"DataFlowReference\",\"referenceName\":\"gxrgqskdk\",\"datasetParameters\":\"dataobegdxjxkxvgod\",\"parameters\":{\"nulrfeqefqdvooqj\":\"dataefa\"},\"\":{\"gadjllhz\":\"datan\"}},\"staging\":{\"linkedService\":{\"referenceName\":\"vr\",\"parameters\":{\"ttpvomxtosdbvu\":\"datag\",\"oheebzewbif\":\"dataoi\",\"vvuewrhkjmphfhm\":\"datayptlbadhdlrr\",\"uulhfdggsr\":\"dataao\"}},\"folderPath\":\"datalhhlg\"},\"integrationRuntime\":{\"referenceName\":\"bj\",\"parameters\":{\"hocrphzdkikjy\":\"datatgelfkhmgs\",\"lupmyq\":\"dataaqk\"}},\"compute\":{\"computeType\":\"dataararevvmmjwmldg\",\"coreCount\":\"dataglm\"},\"traceLevel\":\"dataatyry\",\"continueOnError\":\"dataon\",\"runConcurrently\":\"datanm\",\"sourceStagingConcurrency\":\"databgpgvliinueltcoi\"}") - .toObject(ExecutePowerQueryActivityTypeProperties.class); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.dataFlow().type()); - Assertions.assertEquals("gxrgqskdk", model.dataFlow().referenceName()); - Assertions.assertEquals("vr", model.staging().linkedService().referenceName()); - Assertions.assertEquals("bj", model.integrationRuntime().referenceName()); - Assertions.assertEquals("wrwjbanteeu", model.sinks().get("fbweuazxtsgs").name()); - Assertions.assertEquals("icaikfvj", model.sinks().get("fbweuazxtsgs").description()); - Assertions.assertEquals("fpob", model.sinks().get("fbweuazxtsgs").dataset().referenceName()); - Assertions.assertEquals("kn", model.sinks().get("fbweuazxtsgs").linkedService().referenceName()); - Assertions - .assertEquals( - DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sinks().get("fbweuazxtsgs").flowlet().type()); - Assertions.assertEquals("jpdyztqpszbt", model.sinks().get("fbweuazxtsgs").flowlet().referenceName()); - Assertions.assertEquals("viykwrffxo", model.sinks().get("fbweuazxtsgs").schemaLinkedService().referenceName()); - Assertions - .assertEquals("wzpauwhfh", model.sinks().get("fbweuazxtsgs").rejectedDataLinkedService().referenceName()); - Assertions.assertEquals("abnwsgauwepojmx", model.sinks().get("fbweuazxtsgs").script()); - Assertions.assertEquals("yqsnttwlxvezoald", model.queries().get(0).queryName()); - Assertions.assertEquals("ihtxvmnyslpdqd", model.queries().get(0).dataflowSinks().get(0).name()); - Assertions.assertEquals("j", model.queries().get(0).dataflowSinks().get(0).description()); - Assertions.assertEquals("blnervt", model.queries().get(0).dataflowSinks().get(0).dataset().referenceName()); - Assertions - .assertEquals("bqygnfxgzzq", model.queries().get(0).dataflowSinks().get(0).linkedService().referenceName()); - Assertions - .assertEquals( - DataFlowReferenceType.DATA_FLOW_REFERENCE, - model.queries().get(0).dataflowSinks().get(0).flowlet().type()); - Assertions - .assertEquals("poookhcurwgbjzz", model.queries().get(0).dataflowSinks().get(0).flowlet().referenceName()); - Assertions - .assertEquals( - "anxinlmi", model.queries().get(0).dataflowSinks().get(0).schemaLinkedService().referenceName()); - Assertions - .assertEquals( - "mapfieaumqjxd", - model.queries().get(0).dataflowSinks().get(0).rejectedDataLinkedService().referenceName()); - Assertions.assertEquals("xcqto", model.queries().get(0).dataflowSinks().get(0).script()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ExecutePowerQueryActivityTypeProperties model = - new ExecutePowerQueryActivityTypeProperties() - .withDataFlow( - new DataFlowReference() - .withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("gxrgqskdk") - .withDatasetParameters("dataobegdxjxkxvgod") - .withParameters(mapOf("nulrfeqefqdvooqj", "dataefa")) - .withAdditionalProperties(mapOf())) - .withStaging( - new DataFlowStagingInfo() - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("vr") - .withParameters( - mapOf( - "ttpvomxtosdbvu", - "datag", - "oheebzewbif", - "dataoi", - "vvuewrhkjmphfhm", - "datayptlbadhdlrr", - "uulhfdggsr", - "dataao"))) - .withFolderPath("datalhhlg")) - .withIntegrationRuntime( - new IntegrationRuntimeReference() - .withReferenceName("bj") - .withParameters(mapOf("hocrphzdkikjy", "datatgelfkhmgs", "lupmyq", "dataaqk"))) - .withCompute( - new ExecuteDataFlowActivityTypePropertiesCompute() - .withComputeType("dataararevvmmjwmldg") - .withCoreCount("dataglm")) - .withTraceLevel("dataatyry") - .withContinueOnError("dataon") - .withRunConcurrently("datanm") - .withSourceStagingConcurrency("databgpgvliinueltcoi") - .withSinks( - mapOf( - "fbweuazxtsgs", - new PowerQuerySink() - .withName("wrwjbanteeu") - .withDescription("icaikfvj") - .withDataset( - new DatasetReference() - .withReferenceName("fpob") - .withParameters( - mapOf( - "dlp", - "datarqjiol", - "f", - "datayksqnsrvgh", - "wtucv", - "datadrqmcgeqybord", - "orsgc", - "dataviymvgnqqfnv"))) - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("kn") - .withParameters(mapOf("bbzfcjmhp", "datacnezdplcbq"))) - .withFlowlet( - new DataFlowReference() - .withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("jpdyztqpszbt") - .withDatasetParameters("dataymbyltdnr") - .withParameters(mapOf("iz", "datahxo", "jiyl", "datawihadcotfo")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService( - new LinkedServiceReference() - .withReferenceName("viykwrffxo") - .withParameters( - mapOf( - "dyuoz", - "datahcxpzjewoyqlcv", - "npuquyatvsnkrxh", - "datatsj", - "ldtjzi", - "dataegwvblrgrzlrnuy"))) - .withRejectedDataLinkedService( - new LinkedServiceReference() - .withReferenceName("wzpauwhfh") - .withParameters( - mapOf( - "wgsyi", - "dataolojcaybukj", - "ekxvlejh", - "dataqlghrcctvlnnkvdr", - "u", - "databqzxqid"))) - .withScript("abnwsgauwepojmx"), - "pfisyydoy", - new PowerQuerySink() - .withName("rdicwmueavawyw") - .withDescription("gcc") - .withDataset( - new DatasetReference() - .withReferenceName("hjvvrrxclf") - .withParameters( - mapOf( - "wxxfkfthwxoss", - "dataifqwyiuhhuftnuig", - "stgsmeijgjbevts", - "datakafym", - "ywal", - "datacsyjxdwvdklgw", - "eelbcsyaohizfysa", - "datafmenbaj"))) - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("bupftkddohxvcso") - .withParameters(mapOf("ywttdanu", "datadcqp"))) - .withFlowlet( - new DataFlowReference() - .withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("tkhcmoccgtmfu") - .withDatasetParameters("datakhmbks") - .withParameters(mapOf("xdsnmhndcr", "datazt")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService( - new LinkedServiceReference() - .withReferenceName("dgimsbump") - .withParameters( - mapOf( - "w", - "datacarcyrftcjxzmx", - "vxrcmrdmyjcou", - "datahdlrfyonnb", - "zirkyxhqwoxm", - "datazodolehchimzrc", - "lwhpqnzpfpsppkq", - "dataobuanybfm"))) - .withRejectedDataLinkedService( - new LinkedServiceReference() - .withReferenceName("dmgmfy") - .withParameters(mapOf("fx", "datafkfgrdrilh", "gz", "datarqpickn"))) - .withScript("adsbacemwn"), - "btmh", - new PowerQuerySink() - .withName("nijdr") - .withDescription("ohjgdoi") - .withDataset( - new DatasetReference() - .withReferenceName("rylzsgpoi") - .withParameters(mapOf("ja", "datazqko", "zkq", "datadm"))) - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("zytazqsu") - .withParameters( - mapOf( - "osdizpgcq", - "datapvtwgbf", - "gwvvenmuenoq", - "dataglzfgepblhe", - "oixiduzrdvhgyj", - "dataamrytrny", - "fwlxkxlru", - "datambj"))) - .withFlowlet( - new DataFlowReference() - .withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("olxlxlezzy") - .withDatasetParameters("datazz") - .withParameters( - mapOf( - "jiaycgxwacuu", - "datadelmxbxbyx", - "jbhuzybms", - "datanygtsjafvzd", - "uvbnmzjwhybsgz", - "dataz")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService( - new LinkedServiceReference() - .withReferenceName("hqvmilpgxeaqwogp") - .withParameters( - mapOf("edfmc", "datamyfg", "ti", "datar", "voqsudtmkmg", "datadkypckhqooqni"))) - .withRejectedDataLinkedService( - new LinkedServiceReference() - .withReferenceName("pv") - .withParameters( - mapOf("kghugfdugqhmo", "datagvpsukkk", "tjtiidozfrgvqurr", "dataekoxylcbp"))) - .withScript("cwvcfayll"), - "plwyluvqp", - new PowerQuerySink() - .withName("el") - .withDescription("lrdgpudbimehdx") - .withDataset( - new DatasetReference() - .withReferenceName("tyfhwkb") - .withParameters( - mapOf( - "ei", - "datafnyoautebehjrmfe", - "pyirngfujv", - "datanhwgzunbcvfz", - "rsxxcaxgr", - "dataafrqqfgudobutkq", - "wpuas", - "dataikiuxvdnchrvsfnl"))) - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("cblv") - .withParameters( - mapOf( - "xxt", - "datadi", - "iwvznffmxtmq", - "datavoasdhd", - "xpmtztvxfglil", - "datartpdyhbpfxmr"))) - .withFlowlet( - new DataFlowReference() - .withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("owrzqy") - .withDatasetParameters("datajxsgrtnit") - .withParameters(mapOf("ffexzzi", "datapgenyvpxpcjnb")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService( - new LinkedServiceReference() - .withReferenceName("r") - .withParameters( - mapOf( - "gvksoxyk", "dataypauqyaisdiwo", "enl", "datama", "ebg", "datavahjlvbnl"))) - .withRejectedDataLinkedService( - new LinkedServiceReference() - .withReferenceName("opsgedsyykueifm") - .withParameters(mapOf("b", "datatlfdiqzvazffz"))) - .withScript("mpt"))) - .withQueries( - Arrays - .asList( - new PowerQuerySinkMapping() - .withQueryName("yqsnttwlxvezoald") - .withDataflowSinks( - Arrays - .asList( - new PowerQuerySink() - .withName("ihtxvmnyslpdqd") - .withDescription("j") - .withDataset( - new DatasetReference() - .withReferenceName("blnervt") - .withParameters(mapOf("si", "datadtnjxvtvyy"))) - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("bqygnfxgzzq") - .withParameters( - mapOf( - "jsugkdv", - "datavjhmqpjbk", - "efdsgfztmhvu", - "datagpeitfbgyznsh"))) - .withFlowlet( - new DataFlowReference() - .withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("poookhcurwgbjzz") - .withDatasetParameters("datajwqwyhh") - .withParameters( - mapOf( - "ywzpcxnbb", - "datatseejtfnjrrxfb", - "ywdckvcofstceehq", - "datajgvalowmmhhu", - "fujpo", - "dataah", - "edruumldunalog", - "datatakijwk")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService( - new LinkedServiceReference() - .withReferenceName("anxinlmi") - .withParameters( - mapOf( - "uivzsjf", - "datau", - "ayk", - "datanenhyhdu", - "tzsltsxmdace", - "datajhwybbdaedq"))) - .withRejectedDataLinkedService( - new LinkedServiceReference() - .withReferenceName("mapfieaumqjxd") - .withParameters( - mapOf( - "uiamr", - "datac", - "fpwjjtdzfyivv", - "datalhfxjcq", - "zfvysvudbj", - "dataxqpemqogto"))) - .withScript("xcqto"), - new PowerQuerySink() - .withName("c") - .withDescription("ukupngorw") - .withDataset( - new DatasetReference() - .withReferenceName("yrguxfjjgcfqfwgr") - .withParameters( - mapOf( - "rujdskkkz", - "datafhkbjgxkrppxj", - "zdakfxzhapcwhj", - "dataladibsjirhaqedfu", - "bdxsjceyyebgfffn", - "datamjfr", - "yfugk", - "datarbnvwhqctq"))) - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("xvevudywny") - .withParameters(mapOf("xagtiyvdslrrtv", "datanaynlxwukpqcf"))) - .withFlowlet( - new DataFlowReference() - .withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("zmzbaqrxz") - .withDatasetParameters("dataxtmedoykekbdwqwh") - .withParameters(mapOf("eisqkotbmhryri", "datayrfjzyiniuua")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService( - new LinkedServiceReference() - .withReferenceName("gtwaquiuzsnjjgnm") - .withParameters( - mapOf("wt", "datasjfvdajmczlvcxm", "b", "datarpd"))) - .withRejectedDataLinkedService( - new LinkedServiceReference() - .withReferenceName("xzxwjzleeupqlszc") - .withParameters( - mapOf( - "fxnxtiwinn", - "dataayraatrjpar", - "zgmfnpeluvxs", - "dataowihsgt"))) - .withScript("z"), - new PowerQuerySink() - .withName("y") - .withDescription("nqneo") - .withDataset( - new DatasetReference() - .withReferenceName("crmng") - .withParameters( - mapOf( - "cxrxduxct", - "datainl", - "gm", - "datajxtkmd", - "ipabturkmk", - "datavfuylpctlbuo", - "zzsohcaet", - "datacsqktgko"))) - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("pm") - .withParameters( - mapOf( - "li", - "dataqxlkya", - "ubtykyz", - "dataoodn", - "tgbsdaruwv", - "datargiyqzuhnbazd"))) - .withFlowlet( - new DataFlowReference() - .withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("oozyhucadeqslhz") - .withDatasetParameters("dataimqazolroqusrlkp") - .withParameters( - mapOf( - "mkbpdpk", - "dataqydrnwsfa", - "slqikocgzjmjdoq", - "datalh")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService( - new LinkedServiceReference() - .withReferenceName("zfgdxyrpp") - .withParameters(mapOf("tbpaircnupmz", "datadohiotgf"))) - .withRejectedDataLinkedService( - new LinkedServiceReference() - .withReferenceName("tziejoebzofmmce") - .withParameters( - mapOf( - "kpqnpdlcyjse", - "datafhjrsxrmlxszx", - "umlfdxetqknzev", - "datadfhnhbktobeonl"))) - .withScript("yscwv"), - new PowerQuerySink() - .withName("vyiti") - .withDescription("zxseyjqklaihqrbr") - .withDataset( - new DatasetReference() - .withReferenceName("hljqqbue") - .withParameters(mapOf("tifbvcveomdl", "datadjsu"))) - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("jguwdfn") - .withParameters( - mapOf( - "ojmynlvovjs", - "datauqufaowuibujj", - "h", - "dataxewfqvlhjawm"))) - .withFlowlet( - new DataFlowReference() - .withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("zlrnfmmef") - .withDatasetParameters("datajxtgffwq") - .withParameters( - mapOf( - "t", - "datagfgirrzyngdvdr", - "kqaqfbimfpnpmkdg", - "dataqfrxggvstyxv", - "jeffpidwqr", - "datandwtdorvxdwgpu")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService( - new LinkedServiceReference() - .withReferenceName("ynbs") - .withParameters(mapOf("lgfecsreojs", "datareqvxzlwgaius"))) - .withRejectedDataLinkedService( - new LinkedServiceReference() - .withReferenceName("kxbbzi") - .withParameters(mapOf("yg", "datavvgjxbmgheyamoe"))) - .withScript("jtjc"))), - new PowerQuerySinkMapping() - .withQueryName("mzfltxqpozqd") - .withDataflowSinks( - Arrays - .asList( - new PowerQuerySink() - .withName("bdv") - .withDescription("qsmk") - .withDataset( - new DatasetReference() - .withReferenceName("qljxnkpdimexro") - .withParameters(mapOf("wovl", "datadptsdlcsrhttmhj"))) - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("zquckrcw") - .withParameters( - mapOf( - "sjawbnxcizeuifnd", - "dataqqkknulrqpacusm", - "nzjyghq", - "datar", - "ln", - "datafs", - "ems", - "datavgec"))) - .withFlowlet( - new DataFlowReference() - .withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("rkgt") - .withDatasetParameters("dataxlaywkbuvedw") - .withParameters(mapOf("dgtwx", "dataeyfdgnaoirru")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService( - new LinkedServiceReference() - .withReferenceName("gjkkjwjn") - .withParameters( - mapOf( - "b", - "dataswmwv", - "sph", - "dataazjmfq", - "ifj", - "datavthkgjaaqhd", - "nquj", - "datafrg"))) - .withRejectedDataLinkedService( - new LinkedServiceReference() - .withReferenceName("wpjpka") - .withParameters(mapOf("btlmnrdkiqs", "dataafhvuy"))) - .withScript("fe"))))); - model = BinaryData.fromObject(model).toObject(ExecutePowerQueryActivityTypeProperties.class); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.dataFlow().type()); - Assertions.assertEquals("gxrgqskdk", model.dataFlow().referenceName()); - Assertions.assertEquals("vr", model.staging().linkedService().referenceName()); - Assertions.assertEquals("bj", model.integrationRuntime().referenceName()); - Assertions.assertEquals("wrwjbanteeu", model.sinks().get("fbweuazxtsgs").name()); - Assertions.assertEquals("icaikfvj", model.sinks().get("fbweuazxtsgs").description()); - Assertions.assertEquals("fpob", model.sinks().get("fbweuazxtsgs").dataset().referenceName()); - Assertions.assertEquals("kn", model.sinks().get("fbweuazxtsgs").linkedService().referenceName()); - Assertions - .assertEquals( - DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sinks().get("fbweuazxtsgs").flowlet().type()); - Assertions.assertEquals("jpdyztqpszbt", model.sinks().get("fbweuazxtsgs").flowlet().referenceName()); - Assertions.assertEquals("viykwrffxo", model.sinks().get("fbweuazxtsgs").schemaLinkedService().referenceName()); - Assertions - .assertEquals("wzpauwhfh", model.sinks().get("fbweuazxtsgs").rejectedDataLinkedService().referenceName()); - Assertions.assertEquals("abnwsgauwepojmx", model.sinks().get("fbweuazxtsgs").script()); - Assertions.assertEquals("yqsnttwlxvezoald", model.queries().get(0).queryName()); - Assertions.assertEquals("ihtxvmnyslpdqd", model.queries().get(0).dataflowSinks().get(0).name()); - Assertions.assertEquals("j", model.queries().get(0).dataflowSinks().get(0).description()); - Assertions.assertEquals("blnervt", model.queries().get(0).dataflowSinks().get(0).dataset().referenceName()); - Assertions - .assertEquals("bqygnfxgzzq", model.queries().get(0).dataflowSinks().get(0).linkedService().referenceName()); - Assertions - .assertEquals( - DataFlowReferenceType.DATA_FLOW_REFERENCE, - model.queries().get(0).dataflowSinks().get(0).flowlet().type()); - Assertions - .assertEquals("poookhcurwgbjzz", model.queries().get(0).dataflowSinks().get(0).flowlet().referenceName()); - Assertions - .assertEquals( - "anxinlmi", model.queries().get(0).dataflowSinks().get(0).schemaLinkedService().referenceName()); - Assertions - .assertEquals( - "mapfieaumqjxd", - model.queries().get(0).dataflowSinks().get(0).rejectedDataLinkedService().referenceName()); - Assertions.assertEquals("xcqto", model.queries().get(0).dataflowSinks().get(0).script()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExecuteWranglingDataflowActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExecuteWranglingDataflowActivityTests.java deleted file mode 100644 index 8a6dc4bd31cc..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExecuteWranglingDataflowActivityTests.java +++ /dev/null @@ -1,440 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityPolicy; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DataFlowReference; -import com.azure.resourcemanager.datafactory.models.DataFlowReferenceType; -import com.azure.resourcemanager.datafactory.models.DataFlowStagingInfo; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.ExecuteDataFlowActivityTypePropertiesCompute; -import com.azure.resourcemanager.datafactory.models.ExecuteWranglingDataflowActivity; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeReference; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.PowerQuerySink; -import com.azure.resourcemanager.datafactory.models.PowerQuerySinkMapping; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ExecuteWranglingDataflowActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ExecuteWranglingDataflowActivity model = - BinaryData - .fromString( - "{\"type\":\"ExecuteWranglingDataflow\",\"typeProperties\":{\"sinks\":{\"bsx\":{\"script\":\"ttefbbrklofkvsh\",\"schemaLinkedService\":{\"referenceName\":\"j\",\"parameters\":{\"acb\":\"datawvdohocsgktfzst\",\"exlhlkpie\":\"datakcxevitvbzy\",\"sibtdmg\":\"datacrtvdcbzpyned\",\"aawehxshamzfx\":\"dataxo\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"uvjbpyvoswgkbzrm\",\"parameters\":{\"uiags\":\"datagvfu\"}},\"name\":\"vzghnq\",\"description\":\"eykvgfhu\",\"dataset\":{\"referenceName\":\"otzygqdcai\",\"parameters\":{\"ynunrajtbumaid\":\"datarytkmfhbpcr\"}},\"linkedService\":{\"referenceName\":\"nyvyutcv\",\"parameters\":{\"j\":\"datagt\",\"xkdqqombiaoaqwwo\":\"datacgtlttnjpgxuxkce\",\"frau\":\"dataxnu\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"tjhtqb\",\"datasetParameters\":\"datadpnzqqti\",\"parameters\":{\"qfkiguk\":\"dataeanakk\",\"nwaymrlvhl\":\"dataximw\"},\"\":{\"aubi\":\"dataiqendtyccnghsz\",\"bqe\":\"dataizjbwufjogsw\",\"etaydhfgxyd\":\"databpypwrvnv\"}}},\"ywdtgz\":{\"script\":\"js\",\"schemaLinkedService\":{\"referenceName\":\"u\",\"parameters\":{\"rtgofpsrhou\":\"datafzyvx\",\"ksehtyxtgsurfnkt\":\"datakcpyerfsngtrijbo\",\"ltc\":\"datahtzrzdqqoydr\",\"kqwffcvahknvnfp\":\"datattjibognhuq\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"obhkqgbijzoixu\",\"parameters\":{\"vajbgpu\":\"datalscnknkukempa\"}},\"name\":\"kstkankzyqizxujl\",\"description\":\"htrgybfumo\",\"dataset\":{\"referenceName\":\"qrut\",\"parameters\":{\"pyrzazkalj\":\"dataynwwml\",\"oaepbfntg\":\"datavmknwlbz\"}},\"linkedService\":{\"referenceName\":\"ungueggphwgix\",\"parameters\":{\"vkoynjucmyjblafv\":\"datavwmvafhriuaaqg\",\"qenbgymgjneoh\":\"datandkvbc\",\"bhg\":\"datakis\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"jodskqyjsdxgefk\",\"datasetParameters\":\"datafihetor\",\"parameters\":{\"rqagpjociunndgp\":\"datafuw\"},\"\":{\"iqzagfkk\":\"datakwyzqnlqzymivjka\"}}},\"xnafojtqqqc\":{\"script\":\"qflpuxy\",\"schemaLinkedService\":{\"referenceName\":\"ofrsoeshqttkq\",\"parameters\":{\"smnyfahidlscdow\":\"datalootceit\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"rniyjqzjtdk\",\"parameters\":{\"odcopirgdsqcbxkw\":\"datax\",\"hyqj\":\"datanqsybwjvifgjztzh\",\"rbirv\":\"dataga\"}},\"name\":\"xubbnb\",\"description\":\"yeggaauubkr\",\"dataset\":{\"referenceName\":\"hkwwibxjpyt\",\"parameters\":{\"elujwcy\":\"datahva\"}},\"linkedService\":{\"referenceName\":\"xbqu\",\"parameters\":{\"c\":\"datarfxir\",\"hfzuraqpcs\":\"dataggwzvdqpxicpoz\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"rdkdomyqbeasbvz\",\"datasetParameters\":\"datakzu\",\"parameters\":{\"wbmfq\":\"dataudqgf\"},\"\":{\"ovqtvbusyqyfit\":\"dataaqltoxhfphaw\",\"ikdcjmbwrhpw\":\"dataprbmmfqteox\",\"dsrwhjhivgeran\":\"dataudegykzdspbjks\"}}}},\"queries\":[{\"queryName\":\"duspxijrr\",\"dataflowSinks\":[{\"script\":\"qcgyvzpvzsdu\",\"schemaLinkedService\":{\"referenceName\":\"ybjucfs\"},\"rejectedDataLinkedService\":{\"referenceName\":\"kq\"},\"name\":\"gfyjwxwpoywymt\",\"description\":\"zdgbgcxyzrzh\",\"dataset\":{\"referenceName\":\"mwcgiahrftpgqx\"},\"linkedService\":{\"referenceName\":\"oak\"},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"lzalsujezgzsekb\"}},{\"script\":\"dbmfejt\",\"schemaLinkedService\":{\"referenceName\":\"oacnyacjyp\"},\"rejectedDataLinkedService\":{\"referenceName\":\"hf\"},\"name\":\"ypykjorlrj\",\"description\":\"zxaamibhkaqz\",\"dataset\":{\"referenceName\":\"jqslshceyhalbxr\"},\"linkedService\":{\"referenceName\":\"snffcoatsupa\"},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"thojrtcdavlrifm\"}},{\"script\":\"ewez\",\"schemaLinkedService\":{\"referenceName\":\"parjrxi\"},\"rejectedDataLinkedService\":{\"referenceName\":\"v\"},\"name\":\"oze\",\"description\":\"zkcigykea\",\"dataset\":{\"referenceName\":\"umhzgdsjbla\"},\"linkedService\":{\"referenceName\":\"shdubqhafxl\"},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"wnkhiwqiq\"}}]},{\"queryName\":\"wbormfnntpocf\",\"dataflowSinks\":[{\"script\":\"sfdohytkhq\",\"schemaLinkedService\":{\"referenceName\":\"dyz\"},\"rejectedDataLinkedService\":{\"referenceName\":\"hqmttswpeaivbz\"},\"name\":\"msoe\",\"description\":\"wjimrzavcif\",\"dataset\":{\"referenceName\":\"ameccuqko\"},\"linkedService\":{\"referenceName\":\"fiomdiecrbcv\"},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"dsyxabddjbzoh\"}},{\"script\":\"qtxluqpzwlbccxj\",\"schemaLinkedService\":{\"referenceName\":\"loihj\"},\"rejectedDataLinkedService\":{\"referenceName\":\"nfvpav\"},\"name\":\"aeeiboqc\",\"description\":\"nxuiiprfijmilo\",\"dataset\":{\"referenceName\":\"dxsphfjzxeswzg\"},\"linkedService\":{\"referenceName\":\"lgggjt\"},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"olxbggojoemtwehv\"}},{\"script\":\"tngatglarczzguar\",\"schemaLinkedService\":{\"referenceName\":\"fab\"},\"rejectedDataLinkedService\":{\"referenceName\":\"eahypjqag\"},\"name\":\"eujuclff\",\"description\":\"djfwsib\",\"dataset\":{\"referenceName\":\"btmwaexybrh\"},\"linkedService\":{\"referenceName\":\"cxh\"},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"abnpdnbtymhheu\"}}]}],\"dataFlow\":{\"type\":\"DataFlowReference\",\"referenceName\":\"mwixyrvrpu\",\"datasetParameters\":\"datau\",\"parameters\":{\"gteihmvxupqfaww\":\"datay\",\"snynvgf\":\"dataxqjhmfyvgmdwv\"},\"\":{\"ndekpzgdr\":\"dataoki\",\"ot\":\"dataddzkkik\",\"tqoxethrxlpgrvtz\":\"datavxyeqdinwqse\"}},\"staging\":{\"linkedService\":{\"referenceName\":\"ns\",\"parameters\":{\"smhoviear\":\"dataqwylh\",\"ben\":\"datakdaomxyx\"}},\"folderPath\":\"datatxhx\"},\"integrationRuntime\":{\"referenceName\":\"knmrcel\",\"parameters\":{\"lfniislohftmf\":\"datadxwywdyqpkwbwo\"}},\"compute\":{\"computeType\":\"datax\",\"coreCount\":\"dataaicyvtsgopmatub\"},\"traceLevel\":\"datajipqynrlnq\",\"continueOnError\":\"dataoelqfsfxthcdzeu\",\"runConcurrently\":\"dataqkvfthbni\",\"sourceStagingConcurrency\":\"dataybrsofpwqmt\"},\"policy\":{\"timeout\":\"datakubymiszoxmzvl\",\"retry\":\"datazdnv\",\"retryIntervalInSeconds\":219796390,\"secureInput\":true,\"secureOutput\":true,\"\":{\"xtxgrh\":\"dataafcxpvxrqegkw\",\"sb\":\"dataqbstodeu\"}},\"name\":\"dcoqm\",\"description\":\"feqlwkpv\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"xccnfykn\",\"dependencyConditions\":[\"Skipped\",\"Failed\",\"Completed\"],\"\":{\"kqmlldeksgejmpkq\":\"dataeqse\",\"qhpkaamoovrb\":\"datajacnbep\",\"gxvkzhqpkckwaaf\":\"databuoqbclhnlqxuxr\"}},{\"activity\":\"yscjawqhpijur\",\"dependencyConditions\":[\"Completed\",\"Failed\"],\"\":{\"j\":\"databjivm\",\"jjzsijmsa\":\"datakvfur\",\"mnvukovxfkxnevc\":\"datacnbluxomzgq\"}}],\"userProperties\":[{\"name\":\"iopgyunfmoc\",\"value\":\"dataycgdkikpqmdi\"},{\"name\":\"hmpmfakinode\",\"value\":\"datappcpwcxfn\"},{\"name\":\"ys\",\"value\":\"datavxaymxldorqp\"},{\"name\":\"jevu\",\"value\":\"datayzglssogze\"}],\"\":{\"bguewtcq\":\"datavir\"}}") - .toObject(ExecuteWranglingDataflowActivity.class); - Assertions.assertEquals("dcoqm", model.name()); - Assertions.assertEquals("feqlwkpv", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("xccnfykn", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SKIPPED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("iopgyunfmoc", model.userProperties().get(0).name()); - Assertions.assertEquals(219796390, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - Assertions.assertEquals("vzghnq", model.sinks().get("bsx").name()); - Assertions.assertEquals("eykvgfhu", model.sinks().get("bsx").description()); - Assertions.assertEquals("otzygqdcai", model.sinks().get("bsx").dataset().referenceName()); - Assertions.assertEquals("nyvyutcv", model.sinks().get("bsx").linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sinks().get("bsx").flowlet().type()); - Assertions.assertEquals("tjhtqb", model.sinks().get("bsx").flowlet().referenceName()); - Assertions.assertEquals("j", model.sinks().get("bsx").schemaLinkedService().referenceName()); - Assertions - .assertEquals("uvjbpyvoswgkbzrm", model.sinks().get("bsx").rejectedDataLinkedService().referenceName()); - Assertions.assertEquals("ttefbbrklofkvsh", model.sinks().get("bsx").script()); - Assertions.assertEquals("duspxijrr", model.queries().get(0).queryName()); - Assertions.assertEquals("gfyjwxwpoywymt", model.queries().get(0).dataflowSinks().get(0).name()); - Assertions.assertEquals("zdgbgcxyzrzh", model.queries().get(0).dataflowSinks().get(0).description()); - Assertions - .assertEquals("mwcgiahrftpgqx", model.queries().get(0).dataflowSinks().get(0).dataset().referenceName()); - Assertions.assertEquals("oak", model.queries().get(0).dataflowSinks().get(0).linkedService().referenceName()); - Assertions - .assertEquals( - DataFlowReferenceType.DATA_FLOW_REFERENCE, - model.queries().get(0).dataflowSinks().get(0).flowlet().type()); - Assertions - .assertEquals("lzalsujezgzsekb", model.queries().get(0).dataflowSinks().get(0).flowlet().referenceName()); - Assertions - .assertEquals( - "ybjucfs", model.queries().get(0).dataflowSinks().get(0).schemaLinkedService().referenceName()); - Assertions - .assertEquals( - "kq", model.queries().get(0).dataflowSinks().get(0).rejectedDataLinkedService().referenceName()); - Assertions.assertEquals("qcgyvzpvzsdu", model.queries().get(0).dataflowSinks().get(0).script()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.dataFlow().type()); - Assertions.assertEquals("mwixyrvrpu", model.dataFlow().referenceName()); - Assertions.assertEquals("ns", model.staging().linkedService().referenceName()); - Assertions.assertEquals("knmrcel", model.integrationRuntime().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ExecuteWranglingDataflowActivity model = - new ExecuteWranglingDataflowActivity() - .withName("dcoqm") - .withDescription("feqlwkpv") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("xccnfykn") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.SKIPPED, - DependencyCondition.FAILED, - DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("yscjawqhpijur") - .withDependencyConditions( - Arrays.asList(DependencyCondition.COMPLETED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays - .asList( - new UserProperty().withName("iopgyunfmoc").withValue("dataycgdkikpqmdi"), - new UserProperty().withName("hmpmfakinode").withValue("datappcpwcxfn"), - new UserProperty().withName("ys").withValue("datavxaymxldorqp"), - new UserProperty().withName("jevu").withValue("datayzglssogze"))) - .withPolicy( - new ActivityPolicy() - .withTimeout("datakubymiszoxmzvl") - .withRetry("datazdnv") - .withRetryIntervalInSeconds(219796390) - .withSecureInput(true) - .withSecureOutput(true) - .withAdditionalProperties(mapOf())) - .withSinks( - mapOf( - "bsx", - new PowerQuerySink() - .withName("vzghnq") - .withDescription("eykvgfhu") - .withDataset( - new DatasetReference() - .withReferenceName("otzygqdcai") - .withParameters(mapOf("ynunrajtbumaid", "datarytkmfhbpcr"))) - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("nyvyutcv") - .withParameters( - mapOf( - "j", - "datagt", - "xkdqqombiaoaqwwo", - "datacgtlttnjpgxuxkce", - "frau", - "dataxnu"))) - .withFlowlet( - new DataFlowReference() - .withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("tjhtqb") - .withDatasetParameters("datadpnzqqti") - .withParameters(mapOf("qfkiguk", "dataeanakk", "nwaymrlvhl", "dataximw")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService( - new LinkedServiceReference() - .withReferenceName("j") - .withParameters( - mapOf( - "acb", - "datawvdohocsgktfzst", - "exlhlkpie", - "datakcxevitvbzy", - "sibtdmg", - "datacrtvdcbzpyned", - "aawehxshamzfx", - "dataxo"))) - .withRejectedDataLinkedService( - new LinkedServiceReference() - .withReferenceName("uvjbpyvoswgkbzrm") - .withParameters(mapOf("uiags", "datagvfu"))) - .withScript("ttefbbrklofkvsh"), - "ywdtgz", - new PowerQuerySink() - .withName("kstkankzyqizxujl") - .withDescription("htrgybfumo") - .withDataset( - new DatasetReference() - .withReferenceName("qrut") - .withParameters(mapOf("pyrzazkalj", "dataynwwml", "oaepbfntg", "datavmknwlbz"))) - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("ungueggphwgix") - .withParameters( - mapOf( - "vkoynjucmyjblafv", - "datavwmvafhriuaaqg", - "qenbgymgjneoh", - "datandkvbc", - "bhg", - "datakis"))) - .withFlowlet( - new DataFlowReference() - .withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("jodskqyjsdxgefk") - .withDatasetParameters("datafihetor") - .withParameters(mapOf("rqagpjociunndgp", "datafuw")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService( - new LinkedServiceReference() - .withReferenceName("u") - .withParameters( - mapOf( - "rtgofpsrhou", - "datafzyvx", - "ksehtyxtgsurfnkt", - "datakcpyerfsngtrijbo", - "ltc", - "datahtzrzdqqoydr", - "kqwffcvahknvnfp", - "datattjibognhuq"))) - .withRejectedDataLinkedService( - new LinkedServiceReference() - .withReferenceName("obhkqgbijzoixu") - .withParameters(mapOf("vajbgpu", "datalscnknkukempa"))) - .withScript("js"), - "xnafojtqqqc", - new PowerQuerySink() - .withName("xubbnb") - .withDescription("yeggaauubkr") - .withDataset( - new DatasetReference() - .withReferenceName("hkwwibxjpyt") - .withParameters(mapOf("elujwcy", "datahva"))) - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("xbqu") - .withParameters(mapOf("c", "datarfxir", "hfzuraqpcs", "dataggwzvdqpxicpoz"))) - .withFlowlet( - new DataFlowReference() - .withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("rdkdomyqbeasbvz") - .withDatasetParameters("datakzu") - .withParameters(mapOf("wbmfq", "dataudqgf")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService( - new LinkedServiceReference() - .withReferenceName("ofrsoeshqttkq") - .withParameters(mapOf("smnyfahidlscdow", "datalootceit"))) - .withRejectedDataLinkedService( - new LinkedServiceReference() - .withReferenceName("rniyjqzjtdk") - .withParameters( - mapOf( - "odcopirgdsqcbxkw", - "datax", - "hyqj", - "datanqsybwjvifgjztzh", - "rbirv", - "dataga"))) - .withScript("qflpuxy"))) - .withQueries( - Arrays - .asList( - new PowerQuerySinkMapping() - .withQueryName("duspxijrr") - .withDataflowSinks( - Arrays - .asList( - new PowerQuerySink() - .withName("gfyjwxwpoywymt") - .withDescription("zdgbgcxyzrzh") - .withDataset(new DatasetReference().withReferenceName("mwcgiahrftpgqx")) - .withLinkedService( - new LinkedServiceReference().withReferenceName("oak")) - .withFlowlet( - new DataFlowReference() - .withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("lzalsujezgzsekb") - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService( - new LinkedServiceReference().withReferenceName("ybjucfs")) - .withRejectedDataLinkedService( - new LinkedServiceReference().withReferenceName("kq")) - .withScript("qcgyvzpvzsdu"), - new PowerQuerySink() - .withName("ypykjorlrj") - .withDescription("zxaamibhkaqz") - .withDataset( - new DatasetReference().withReferenceName("jqslshceyhalbxr")) - .withLinkedService( - new LinkedServiceReference().withReferenceName("snffcoatsupa")) - .withFlowlet( - new DataFlowReference() - .withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("thojrtcdavlrifm") - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService( - new LinkedServiceReference().withReferenceName("oacnyacjyp")) - .withRejectedDataLinkedService( - new LinkedServiceReference().withReferenceName("hf")) - .withScript("dbmfejt"), - new PowerQuerySink() - .withName("oze") - .withDescription("zkcigykea") - .withDataset(new DatasetReference().withReferenceName("umhzgdsjbla")) - .withLinkedService( - new LinkedServiceReference().withReferenceName("shdubqhafxl")) - .withFlowlet( - new DataFlowReference() - .withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("wnkhiwqiq") - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService( - new LinkedServiceReference().withReferenceName("parjrxi")) - .withRejectedDataLinkedService( - new LinkedServiceReference().withReferenceName("v")) - .withScript("ewez"))), - new PowerQuerySinkMapping() - .withQueryName("wbormfnntpocf") - .withDataflowSinks( - Arrays - .asList( - new PowerQuerySink() - .withName("msoe") - .withDescription("wjimrzavcif") - .withDataset(new DatasetReference().withReferenceName("ameccuqko")) - .withLinkedService( - new LinkedServiceReference().withReferenceName("fiomdiecrbcv")) - .withFlowlet( - new DataFlowReference() - .withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("dsyxabddjbzoh") - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService( - new LinkedServiceReference().withReferenceName("dyz")) - .withRejectedDataLinkedService( - new LinkedServiceReference().withReferenceName("hqmttswpeaivbz")) - .withScript("sfdohytkhq"), - new PowerQuerySink() - .withName("aeeiboqc") - .withDescription("nxuiiprfijmilo") - .withDataset(new DatasetReference().withReferenceName("dxsphfjzxeswzg")) - .withLinkedService( - new LinkedServiceReference().withReferenceName("lgggjt")) - .withFlowlet( - new DataFlowReference() - .withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("olxbggojoemtwehv") - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService( - new LinkedServiceReference().withReferenceName("loihj")) - .withRejectedDataLinkedService( - new LinkedServiceReference().withReferenceName("nfvpav")) - .withScript("qtxluqpzwlbccxj"), - new PowerQuerySink() - .withName("eujuclff") - .withDescription("djfwsib") - .withDataset(new DatasetReference().withReferenceName("btmwaexybrh")) - .withLinkedService( - new LinkedServiceReference().withReferenceName("cxh")) - .withFlowlet( - new DataFlowReference() - .withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("abnpdnbtymhheu") - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService( - new LinkedServiceReference().withReferenceName("fab")) - .withRejectedDataLinkedService( - new LinkedServiceReference().withReferenceName("eahypjqag")) - .withScript("tngatglarczzguar"))))) - .withDataFlow( - new DataFlowReference() - .withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("mwixyrvrpu") - .withDatasetParameters("datau") - .withParameters(mapOf("gteihmvxupqfaww", "datay", "snynvgf", "dataxqjhmfyvgmdwv")) - .withAdditionalProperties(mapOf())) - .withStaging( - new DataFlowStagingInfo() - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("ns") - .withParameters(mapOf("smhoviear", "dataqwylh", "ben", "datakdaomxyx"))) - .withFolderPath("datatxhx")) - .withIntegrationRuntime( - new IntegrationRuntimeReference() - .withReferenceName("knmrcel") - .withParameters(mapOf("lfniislohftmf", "datadxwywdyqpkwbwo"))) - .withCompute( - new ExecuteDataFlowActivityTypePropertiesCompute() - .withComputeType("datax") - .withCoreCount("dataaicyvtsgopmatub")) - .withTraceLevel("datajipqynrlnq") - .withContinueOnError("dataoelqfsfxthcdzeu") - .withRunConcurrently("dataqkvfthbni") - .withSourceStagingConcurrency("dataybrsofpwqmt"); - model = BinaryData.fromObject(model).toObject(ExecuteWranglingDataflowActivity.class); - Assertions.assertEquals("dcoqm", model.name()); - Assertions.assertEquals("feqlwkpv", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("xccnfykn", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SKIPPED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("iopgyunfmoc", model.userProperties().get(0).name()); - Assertions.assertEquals(219796390, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - Assertions.assertEquals("vzghnq", model.sinks().get("bsx").name()); - Assertions.assertEquals("eykvgfhu", model.sinks().get("bsx").description()); - Assertions.assertEquals("otzygqdcai", model.sinks().get("bsx").dataset().referenceName()); - Assertions.assertEquals("nyvyutcv", model.sinks().get("bsx").linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sinks().get("bsx").flowlet().type()); - Assertions.assertEquals("tjhtqb", model.sinks().get("bsx").flowlet().referenceName()); - Assertions.assertEquals("j", model.sinks().get("bsx").schemaLinkedService().referenceName()); - Assertions - .assertEquals("uvjbpyvoswgkbzrm", model.sinks().get("bsx").rejectedDataLinkedService().referenceName()); - Assertions.assertEquals("ttefbbrklofkvsh", model.sinks().get("bsx").script()); - Assertions.assertEquals("duspxijrr", model.queries().get(0).queryName()); - Assertions.assertEquals("gfyjwxwpoywymt", model.queries().get(0).dataflowSinks().get(0).name()); - Assertions.assertEquals("zdgbgcxyzrzh", model.queries().get(0).dataflowSinks().get(0).description()); - Assertions - .assertEquals("mwcgiahrftpgqx", model.queries().get(0).dataflowSinks().get(0).dataset().referenceName()); - Assertions.assertEquals("oak", model.queries().get(0).dataflowSinks().get(0).linkedService().referenceName()); - Assertions - .assertEquals( - DataFlowReferenceType.DATA_FLOW_REFERENCE, - model.queries().get(0).dataflowSinks().get(0).flowlet().type()); - Assertions - .assertEquals("lzalsujezgzsekb", model.queries().get(0).dataflowSinks().get(0).flowlet().referenceName()); - Assertions - .assertEquals( - "ybjucfs", model.queries().get(0).dataflowSinks().get(0).schemaLinkedService().referenceName()); - Assertions - .assertEquals( - "kq", model.queries().get(0).dataflowSinks().get(0).rejectedDataLinkedService().referenceName()); - Assertions.assertEquals("qcgyvzpvzsdu", model.queries().get(0).dataflowSinks().get(0).script()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.dataFlow().type()); - Assertions.assertEquals("mwixyrvrpu", model.dataFlow().referenceName()); - Assertions.assertEquals("ns", model.staging().linkedService().referenceName()); - Assertions.assertEquals("knmrcel", model.integrationRuntime().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExecutionActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExecutionActivityTests.java deleted file mode 100644 index 5fce2f64ec4c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExecutionActivityTests.java +++ /dev/null @@ -1,109 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityPolicy; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.ExecutionActivity; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ExecutionActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ExecutionActivity model = - BinaryData - .fromString( - "{\"type\":\"Execution\",\"linkedServiceName\":{\"referenceName\":\"qizvsihsmtx\",\"parameters\":{\"ubodgouxkianpgu\":\"datajhsjuqqtzr\"}},\"policy\":{\"timeout\":\"dataxxdlgorvu\",\"retry\":\"datanb\",\"retryIntervalInSeconds\":958282428,\"secureInput\":false,\"secureOutput\":true,\"\":{\"kd\":\"datakprxypxti\",\"omev\":\"dataebafiq\",\"butytoainig\":\"dataetamdvncxt\",\"lack\":\"dataxhzqgbaqvqe\"}},\"name\":\"bkr\",\"description\":\"yfnbxw\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"xothfyifju\",\"dependencyConditions\":[\"Failed\"],\"\":{\"uzyycqsxy\":\"datajsmtghm\"}},{\"activity\":\"ywdez\",\"dependencyConditions\":[\"Skipped\",\"Failed\"],\"\":{\"pwwykfytjkzt\":\"datajgyamoc\",\"wqvckhmoudmca\":\"datac\",\"yvibnoeb\":\"datacojfuvmjtxwa\",\"zrkhptyh\":\"datafkgfiydlrjmwaa\"}},{\"activity\":\"iqeoajnaotavwmr\",\"dependencyConditions\":[\"Skipped\",\"Succeeded\"],\"\":{\"yrwvo\":\"datafecjue\"}}],\"userProperties\":[{\"name\":\"cwxba\",\"value\":\"datazypslfqgfwo\"},{\"name\":\"btgpe\",\"value\":\"datazuzxoeouf\"}],\"\":{\"cwlcfcpzajgq\":\"datawgfhdfom\",\"ewfbllegezvwuwi\":\"databfgmeqhtngrxfqwo\"}}") - .toObject(ExecutionActivity.class); - Assertions.assertEquals("bkr", model.name()); - Assertions.assertEquals("yfnbxw", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("xothfyifju", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("cwxba", model.userProperties().get(0).name()); - Assertions.assertEquals("qizvsihsmtx", model.linkedServiceName().referenceName()); - Assertions.assertEquals(958282428, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ExecutionActivity model = - new ExecutionActivity() - .withName("bkr") - .withDescription("yfnbxw") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("xothfyifju") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("ywdez") - .withDependencyConditions( - Arrays.asList(DependencyCondition.SKIPPED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("iqeoajnaotavwmr") - .withDependencyConditions( - Arrays.asList(DependencyCondition.SKIPPED, DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays - .asList( - new UserProperty().withName("cwxba").withValue("datazypslfqgfwo"), - new UserProperty().withName("btgpe").withValue("datazuzxoeouf"))) - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("qizvsihsmtx") - .withParameters(mapOf("ubodgouxkianpgu", "datajhsjuqqtzr"))) - .withPolicy( - new ActivityPolicy() - .withTimeout("dataxxdlgorvu") - .withRetry("datanb") - .withRetryIntervalInSeconds(958282428) - .withSecureInput(false) - .withSecureOutput(true) - .withAdditionalProperties(mapOf())); - model = BinaryData.fromObject(model).toObject(ExecutionActivity.class); - Assertions.assertEquals("bkr", model.name()); - Assertions.assertEquals("yfnbxw", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("xothfyifju", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("cwxba", model.userProperties().get(0).name()); - Assertions.assertEquals("qizvsihsmtx", model.linkedServiceName().referenceName()); - Assertions.assertEquals(958282428, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExportSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExportSettingsTests.java deleted file mode 100644 index d1a73ae4eabb..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExportSettingsTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ExportSettings; -import java.util.HashMap; -import java.util.Map; - -public final class ExportSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ExportSettings model = - BinaryData - .fromString( - "{\"type\":\"ExportSettings\",\"\":{\"l\":\"datani\",\"gyvwxubgul\":\"datadsdmacydqa\",\"pprohuabdufh\":\"datazjkas\",\"npuaptpuwek\":\"dataso\"}}") - .toObject(ExportSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ExportSettings model = new ExportSettings().withAdditionalProperties(mapOf("type", "ExportSettings")); - model = BinaryData.fromObject(model).toObject(ExportSettings.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExposureControlBatchRequestTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExposureControlBatchRequestTests.java deleted file mode 100644 index f601dbf3e572..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExposureControlBatchRequestTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ExposureControlBatchRequest; -import com.azure.resourcemanager.datafactory.models.ExposureControlRequest; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ExposureControlBatchRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ExposureControlBatchRequest model = - BinaryData - .fromString( - "{\"exposureControlRequests\":[{\"featureName\":\"fbuhfmvfaxkffe\",\"featureType\":\"th\"}]}") - .toObject(ExposureControlBatchRequest.class); - Assertions.assertEquals("fbuhfmvfaxkffe", model.exposureControlRequests().get(0).featureName()); - Assertions.assertEquals("th", model.exposureControlRequests().get(0).featureType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ExposureControlBatchRequest model = - new ExposureControlBatchRequest() - .withExposureControlRequests( - Arrays - .asList(new ExposureControlRequest().withFeatureName("fbuhfmvfaxkffe").withFeatureType("th"))); - model = BinaryData.fromObject(model).toObject(ExposureControlBatchRequest.class); - Assertions.assertEquals("fbuhfmvfaxkffe", model.exposureControlRequests().get(0).featureName()); - Assertions.assertEquals("th", model.exposureControlRequests().get(0).featureType()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExposureControlBatchResponseInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExposureControlBatchResponseInnerTests.java deleted file mode 100644 index 87fb8d9add27..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExposureControlBatchResponseInnerTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.ExposureControlBatchResponseInner; -import com.azure.resourcemanager.datafactory.fluent.models.ExposureControlResponseInner; -import java.util.Arrays; - -public final class ExposureControlBatchResponseInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ExposureControlBatchResponseInner model = - BinaryData - .fromString( - "{\"exposureControlResponses\":[{\"featureName\":\"ez\",\"value\":\"shxmzsbbzoggigrx\"},{\"featureName\":\"ur\",\"value\":\"xxjnspydptk\"}]}") - .toObject(ExposureControlBatchResponseInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ExposureControlBatchResponseInner model = - new ExposureControlBatchResponseInner() - .withExposureControlResponses( - Arrays.asList(new ExposureControlResponseInner(), new ExposureControlResponseInner())); - model = BinaryData.fromObject(model).toObject(ExposureControlBatchResponseInner.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExposureControlRequestTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExposureControlRequestTests.java deleted file mode 100644 index b86ea51e2489..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExposureControlRequestTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ExposureControlRequest; -import org.junit.jupiter.api.Assertions; - -public final class ExposureControlRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ExposureControlRequest model = - BinaryData - .fromString("{\"featureName\":\"mvxi\",\"featureType\":\"uugidyjrrfby\"}") - .toObject(ExposureControlRequest.class); - Assertions.assertEquals("mvxi", model.featureName()); - Assertions.assertEquals("uugidyjrrfby", model.featureType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ExposureControlRequest model = - new ExposureControlRequest().withFeatureName("mvxi").withFeatureType("uugidyjrrfby"); - model = BinaryData.fromObject(model).toObject(ExposureControlRequest.class); - Assertions.assertEquals("mvxi", model.featureName()); - Assertions.assertEquals("uugidyjrrfby", model.featureType()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExposureControlResponseInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExposureControlResponseInnerTests.java deleted file mode 100644 index ab5ec999e83b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExposureControlResponseInnerTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.ExposureControlResponseInner; - -public final class ExposureControlResponseInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ExposureControlResponseInner model = - BinaryData - .fromString("{\"featureName\":\"svexcsonpclhoco\",\"value\":\"lkevle\"}") - .toObject(ExposureControlResponseInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ExposureControlResponseInner model = new ExposureControlResponseInner(); - model = BinaryData.fromObject(model).toObject(ExposureControlResponseInner.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExposureControlsGetFeatureValueByFactoryWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExposureControlsGetFeatureValueByFactoryWithResponseMockTests.java deleted file mode 100644 index 354878e233fb..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExposureControlsGetFeatureValueByFactoryWithResponseMockTests.java +++ /dev/null @@ -1,71 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.ExposureControlRequest; -import com.azure.resourcemanager.datafactory.models.ExposureControlResponse; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class ExposureControlsGetFeatureValueByFactoryWithResponseMockTests { - @Test - public void testGetFeatureValueByFactoryWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{\"featureName\":\"oonej\",\"value\":\"zqbdutvnl\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - ExposureControlResponse response = - manager - .exposureControls() - .getFeatureValueByFactoryWithResponse( - "nursandmusudhjos", - "mm", - new ExposureControlRequest().withFeatureName("tcpffmi").withFeatureType("difbeott"), - com.azure.core.util.Context.NONE) - .getValue(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExposureControlsGetFeatureValueWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExposureControlsGetFeatureValueWithResponseMockTests.java deleted file mode 100644 index 54d2996c6f49..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExposureControlsGetFeatureValueWithResponseMockTests.java +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.ExposureControlRequest; -import com.azure.resourcemanager.datafactory.models.ExposureControlResponse; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class ExposureControlsGetFeatureValueWithResponseMockTests { - @Test - public void testGetFeatureValueWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{\"featureName\":\"gmyjmcwnkpbrr\",\"value\":\"zvinkktebl\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - ExposureControlResponse response = - manager - .exposureControls() - .getFeatureValueWithResponse( - "naeefzlwohobaac", - new ExposureControlRequest().withFeatureName("lvixf").withFeatureType("noeiqhbr"), - com.azure.core.util.Context.NONE) - .getValue(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExposureControlsQueryFeatureValuesByFactoryWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExposureControlsQueryFeatureValuesByFactoryWithResponseMockTests.java deleted file mode 100644 index f22a5de23adf..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExposureControlsQueryFeatureValuesByFactoryWithResponseMockTests.java +++ /dev/null @@ -1,85 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.ExposureControlBatchRequest; -import com.azure.resourcemanager.datafactory.models.ExposureControlBatchResponse; -import com.azure.resourcemanager.datafactory.models.ExposureControlRequest; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class ExposureControlsQueryFeatureValuesByFactoryWithResponseMockTests { - @Test - public void testQueryFeatureValuesByFactoryWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"exposureControlResponses\":[{\"featureName\":\"odpm\",\"value\":\"sggneocqaejle\"},{\"featureName\":\"ydpqwucprpwsg\",\"value\":\"d\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - ExposureControlBatchResponse response = - manager - .exposureControls() - .queryFeatureValuesByFactoryWithResponse( - "wvatfa", - "h", - new ExposureControlBatchRequest() - .withExposureControlRequests( - Arrays - .asList( - new ExposureControlRequest() - .withFeatureName("obdq") - .withFeatureType("ngjbeihcaxkivr"), - new ExposureControlRequest().withFeatureName("bcxnnirnfuv").withFeatureType("mep"), - new ExposureControlRequest().withFeatureName("k").withFeatureType("ptsvn"), - new ExposureControlRequest() - .withFeatureName("benfshfmwbt") - .withFeatureType("igmndtjcyvm"))), - com.azure.core.util.Context.NONE) - .getValue(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExpressionTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExpressionTests.java deleted file mode 100644 index 08022db1a875..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExpressionTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.Expression; -import org.junit.jupiter.api.Assertions; - -public final class ExpressionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - Expression model = BinaryData.fromString("{\"value\":\"tny\"}").toObject(Expression.class); - Assertions.assertEquals("tny", model.value()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Expression model = new Expression().withValue("tny"); - model = BinaryData.fromObject(model).toObject(Expression.class); - Assertions.assertEquals("tny", model.value()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FactoriesDeleteByResourceGroupWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FactoriesDeleteByResourceGroupWithResponseMockTests.java deleted file mode 100644 index c95ab34e8a04..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FactoriesDeleteByResourceGroupWithResponseMockTests.java +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class FactoriesDeleteByResourceGroupWithResponseMockTests { - @Test - public void testDeleteWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.factories().deleteByResourceGroupWithResponse("bpbbda", "cb", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FactoryIdentityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FactoryIdentityTests.java deleted file mode 100644 index 0271d5f218dd..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FactoryIdentityTests.java +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.FactoryIdentity; -import com.azure.resourcemanager.datafactory.models.FactoryIdentityType; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class FactoryIdentityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FactoryIdentity model = - BinaryData - .fromString( - "{\"type\":\"SystemAssigned\",\"principalId\":\"b37fcaa7-64f2-4db7-a40e-e1e20fcb2f78\",\"tenantId\":\"28b3eacd-3b18-4dbe-ae5d-16c012a9972c\",\"userAssignedIdentities\":{\"qjpkcattpngjcrc\":\"dataleyyvx\"}}") - .toObject(FactoryIdentity.class); - Assertions.assertEquals(FactoryIdentityType.SYSTEM_ASSIGNED, model.type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FactoryIdentity model = - new FactoryIdentity() - .withType(FactoryIdentityType.SYSTEM_ASSIGNED) - .withUserAssignedIdentities(mapOf("qjpkcattpngjcrc", "dataleyyvx")); - model = BinaryData.fromObject(model).toObject(FactoryIdentity.class); - Assertions.assertEquals(FactoryIdentityType.SYSTEM_ASSIGNED, model.type()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FactoryRepoConfigurationTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FactoryRepoConfigurationTests.java deleted file mode 100644 index 683ec06eba51..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FactoryRepoConfigurationTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.FactoryRepoConfiguration; -import org.junit.jupiter.api.Assertions; - -public final class FactoryRepoConfigurationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FactoryRepoConfiguration model = - BinaryData - .fromString( - "{\"type\":\"FactoryRepoConfiguration\",\"accountName\":\"o\",\"repositoryName\":\"rq\",\"collaborationBranch\":\"b\",\"rootFolder\":\"oczvy\",\"lastCommitId\":\"qrvkdv\",\"disablePublish\":false}") - .toObject(FactoryRepoConfiguration.class); - Assertions.assertEquals("o", model.accountName()); - Assertions.assertEquals("rq", model.repositoryName()); - Assertions.assertEquals("b", model.collaborationBranch()); - Assertions.assertEquals("oczvy", model.rootFolder()); - Assertions.assertEquals("qrvkdv", model.lastCommitId()); - Assertions.assertEquals(false, model.disablePublish()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FactoryRepoConfiguration model = - new FactoryRepoConfiguration() - .withAccountName("o") - .withRepositoryName("rq") - .withCollaborationBranch("b") - .withRootFolder("oczvy") - .withLastCommitId("qrvkdv") - .withDisablePublish(false); - model = BinaryData.fromObject(model).toObject(FactoryRepoConfiguration.class); - Assertions.assertEquals("o", model.accountName()); - Assertions.assertEquals("rq", model.repositoryName()); - Assertions.assertEquals("b", model.collaborationBranch()); - Assertions.assertEquals("oczvy", model.rootFolder()); - Assertions.assertEquals("qrvkdv", model.lastCommitId()); - Assertions.assertEquals(false, model.disablePublish()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FactoryRepoUpdateTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FactoryRepoUpdateTests.java deleted file mode 100644 index 060978235b09..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FactoryRepoUpdateTests.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.FactoryRepoConfiguration; -import com.azure.resourcemanager.datafactory.models.FactoryRepoUpdate; -import org.junit.jupiter.api.Assertions; - -public final class FactoryRepoUpdateTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FactoryRepoUpdate model = - BinaryData - .fromString( - "{\"factoryResourceId\":\"qzbqjvsov\",\"repoConfiguration\":{\"type\":\"FactoryRepoConfiguration\",\"accountName\":\"okacspk\",\"repositoryName\":\"lhzdobp\",\"collaborationBranch\":\"jmflbvvnch\",\"rootFolder\":\"kcciwwzjuqkhr\",\"lastCommitId\":\"jiwkuofoskghsau\",\"disablePublish\":true}}") - .toObject(FactoryRepoUpdate.class); - Assertions.assertEquals("qzbqjvsov", model.factoryResourceId()); - Assertions.assertEquals("okacspk", model.repoConfiguration().accountName()); - Assertions.assertEquals("lhzdobp", model.repoConfiguration().repositoryName()); - Assertions.assertEquals("jmflbvvnch", model.repoConfiguration().collaborationBranch()); - Assertions.assertEquals("kcciwwzjuqkhr", model.repoConfiguration().rootFolder()); - Assertions.assertEquals("jiwkuofoskghsau", model.repoConfiguration().lastCommitId()); - Assertions.assertEquals(true, model.repoConfiguration().disablePublish()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FactoryRepoUpdate model = - new FactoryRepoUpdate() - .withFactoryResourceId("qzbqjvsov") - .withRepoConfiguration( - new FactoryRepoConfiguration() - .withAccountName("okacspk") - .withRepositoryName("lhzdobp") - .withCollaborationBranch("jmflbvvnch") - .withRootFolder("kcciwwzjuqkhr") - .withLastCommitId("jiwkuofoskghsau") - .withDisablePublish(true)); - model = BinaryData.fromObject(model).toObject(FactoryRepoUpdate.class); - Assertions.assertEquals("qzbqjvsov", model.factoryResourceId()); - Assertions.assertEquals("okacspk", model.repoConfiguration().accountName()); - Assertions.assertEquals("lhzdobp", model.repoConfiguration().repositoryName()); - Assertions.assertEquals("jmflbvvnch", model.repoConfiguration().collaborationBranch()); - Assertions.assertEquals("kcciwwzjuqkhr", model.repoConfiguration().rootFolder()); - Assertions.assertEquals("jiwkuofoskghsau", model.repoConfiguration().lastCommitId()); - Assertions.assertEquals(true, model.repoConfiguration().disablePublish()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FactoryUpdateParametersTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FactoryUpdateParametersTests.java deleted file mode 100644 index cfcca6d639ff..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FactoryUpdateParametersTests.java +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.FactoryIdentity; -import com.azure.resourcemanager.datafactory.models.FactoryIdentityType; -import com.azure.resourcemanager.datafactory.models.FactoryUpdateParameters; -import com.azure.resourcemanager.datafactory.models.PublicNetworkAccess; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class FactoryUpdateParametersTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FactoryUpdateParameters model = - BinaryData - .fromString( - "{\"tags\":{\"bldngkpoc\":\"kouknvudwtiu\",\"npiucgygevqznty\":\"pazyxoegukg\"},\"identity\":{\"type\":\"SystemAssigned\",\"principalId\":\"10f625b5-4311-42ec-a306-58132df8c701\",\"tenantId\":\"f8678525-59b4-4cfc-adb5-bf483baa0f2a\",\"userAssignedIdentities\":{\"r\":\"datac\",\"dpydn\":\"dataj\",\"sjttgzfbish\":\"datayhxdeoejzicwi\",\"jdeyeamdpha\":\"databkh\"}},\"properties\":{\"publicNetworkAccess\":\"Disabled\"}}") - .toObject(FactoryUpdateParameters.class); - Assertions.assertEquals("kouknvudwtiu", model.tags().get("bldngkpoc")); - Assertions.assertEquals(FactoryIdentityType.SYSTEM_ASSIGNED, model.identity().type()); - Assertions.assertEquals(PublicNetworkAccess.DISABLED, model.publicNetworkAccess()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FactoryUpdateParameters model = - new FactoryUpdateParameters() - .withTags(mapOf("bldngkpoc", "kouknvudwtiu", "npiucgygevqznty", "pazyxoegukg")) - .withIdentity( - new FactoryIdentity() - .withType(FactoryIdentityType.SYSTEM_ASSIGNED) - .withUserAssignedIdentities( - mapOf( - "r", - "datac", - "dpydn", - "dataj", - "sjttgzfbish", - "datayhxdeoejzicwi", - "jdeyeamdpha", - "databkh"))) - .withPublicNetworkAccess(PublicNetworkAccess.DISABLED); - model = BinaryData.fromObject(model).toObject(FactoryUpdateParameters.class); - Assertions.assertEquals("kouknvudwtiu", model.tags().get("bldngkpoc")); - Assertions.assertEquals(FactoryIdentityType.SYSTEM_ASSIGNED, model.identity().type()); - Assertions.assertEquals(PublicNetworkAccess.DISABLED, model.publicNetworkAccess()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FactoryUpdatePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FactoryUpdatePropertiesTests.java deleted file mode 100644 index 309a4ed79f30..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FactoryUpdatePropertiesTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.FactoryUpdateProperties; -import com.azure.resourcemanager.datafactory.models.PublicNetworkAccess; -import org.junit.jupiter.api.Assertions; - -public final class FactoryUpdatePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FactoryUpdateProperties model = - BinaryData.fromString("{\"publicNetworkAccess\":\"Disabled\"}").toObject(FactoryUpdateProperties.class); - Assertions.assertEquals(PublicNetworkAccess.DISABLED, model.publicNetworkAccess()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FactoryUpdateProperties model = - new FactoryUpdateProperties().withPublicNetworkAccess(PublicNetworkAccess.DISABLED); - model = BinaryData.fromObject(model).toObject(FactoryUpdateProperties.class); - Assertions.assertEquals(PublicNetworkAccess.DISABLED, model.publicNetworkAccess()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FactoryVstsConfigurationTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FactoryVstsConfigurationTests.java deleted file mode 100644 index 03c06cedf06f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FactoryVstsConfigurationTests.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.FactoryVstsConfiguration; -import org.junit.jupiter.api.Assertions; - -public final class FactoryVstsConfigurationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FactoryVstsConfiguration model = - BinaryData - .fromString( - "{\"type\":\"FactoryVSTSConfiguration\",\"projectName\":\"yeofltfnnxrkad\",\"tenantId\":\"ynnfmuiii\",\"accountName\":\"ipfohykfkx\",\"repositoryName\":\"bcbrwjiutgnjizbe\",\"collaborationBranch\":\"woiymrvz\",\"rootFolder\":\"juyrsrziuctixg\",\"lastCommitId\":\"suif\",\"disablePublish\":false}") - .toObject(FactoryVstsConfiguration.class); - Assertions.assertEquals("ipfohykfkx", model.accountName()); - Assertions.assertEquals("bcbrwjiutgnjizbe", model.repositoryName()); - Assertions.assertEquals("woiymrvz", model.collaborationBranch()); - Assertions.assertEquals("juyrsrziuctixg", model.rootFolder()); - Assertions.assertEquals("suif", model.lastCommitId()); - Assertions.assertEquals(false, model.disablePublish()); - Assertions.assertEquals("yeofltfnnxrkad", model.projectName()); - Assertions.assertEquals("ynnfmuiii", model.tenantId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FactoryVstsConfiguration model = - new FactoryVstsConfiguration() - .withAccountName("ipfohykfkx") - .withRepositoryName("bcbrwjiutgnjizbe") - .withCollaborationBranch("woiymrvz") - .withRootFolder("juyrsrziuctixg") - .withLastCommitId("suif") - .withDisablePublish(false) - .withProjectName("yeofltfnnxrkad") - .withTenantId("ynnfmuiii"); - model = BinaryData.fromObject(model).toObject(FactoryVstsConfiguration.class); - Assertions.assertEquals("ipfohykfkx", model.accountName()); - Assertions.assertEquals("bcbrwjiutgnjizbe", model.repositoryName()); - Assertions.assertEquals("woiymrvz", model.collaborationBranch()); - Assertions.assertEquals("juyrsrziuctixg", model.rootFolder()); - Assertions.assertEquals("suif", model.lastCommitId()); - Assertions.assertEquals(false, model.disablePublish()); - Assertions.assertEquals("yeofltfnnxrkad", model.projectName()); - Assertions.assertEquals("ynnfmuiii", model.tenantId()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FileServerLocationTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FileServerLocationTests.java deleted file mode 100644 index 5f4f1cb99301..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FileServerLocationTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.FileServerLocation; - -public final class FileServerLocationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FileServerLocation model = - BinaryData - .fromString( - "{\"type\":\"FileServerLocation\",\"folderPath\":\"datavwdtgckzdqiqdl\",\"fileName\":\"datatrkwxo\",\"\":{\"lglh\":\"dataxsuykznhrfg\",\"f\":\"datary\"}}") - .toObject(FileServerLocation.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FileServerLocation model = - new FileServerLocation().withFolderPath("datavwdtgckzdqiqdl").withFileName("datatrkwxo"); - model = BinaryData.fromObject(model).toObject(FileServerLocation.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FileServerReadSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FileServerReadSettingsTests.java deleted file mode 100644 index 3f8cd4601fbd..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FileServerReadSettingsTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.FileServerReadSettings; - -public final class FileServerReadSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FileServerReadSettings model = - BinaryData - .fromString( - "{\"type\":\"FileServerReadSettings\",\"recursive\":\"datakobxvexusjfjuphj\",\"wildcardFolderPath\":\"dataeksvj\",\"wildcardFileName\":\"datapyoatlp\",\"fileListPath\":\"datasxqmmxjdkvy\",\"enablePartitionDiscovery\":\"datalrlfgowvvxjqrus\",\"partitionRootPath\":\"databqyfecnsqeewf\",\"deleteFilesAfterCompletion\":\"datagmkc\",\"modifiedDatetimeStart\":\"dataazi\",\"modifiedDatetimeEnd\":\"datawybwmebmxzwcfd\",\"fileFilter\":\"datakurppwksixh\",\"maxConcurrentConnections\":\"datanvydxjkdsqe\",\"disableMetricsCollection\":\"datajd\",\"\":{\"vahbwhrguqet\":\"dataiqwixsdxxflw\",\"dciwxlgg\":\"databqhyszflzj\",\"cmsqznv\":\"datatpayfklbgshbkdp\",\"loeq\":\"datahjtrashnfofiy\"}}") - .toObject(FileServerReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FileServerReadSettings model = - new FileServerReadSettings() - .withMaxConcurrentConnections("datanvydxjkdsqe") - .withDisableMetricsCollection("datajd") - .withRecursive("datakobxvexusjfjuphj") - .withWildcardFolderPath("dataeksvj") - .withWildcardFileName("datapyoatlp") - .withFileListPath("datasxqmmxjdkvy") - .withEnablePartitionDiscovery("datalrlfgowvvxjqrus") - .withPartitionRootPath("databqyfecnsqeewf") - .withDeleteFilesAfterCompletion("datagmkc") - .withModifiedDatetimeStart("dataazi") - .withModifiedDatetimeEnd("datawybwmebmxzwcfd") - .withFileFilter("datakurppwksixh"); - model = BinaryData.fromObject(model).toObject(FileServerReadSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FileServerWriteSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FileServerWriteSettingsTests.java deleted file mode 100644 index f7cec4064fdd..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FileServerWriteSettingsTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.FileServerWriteSettings; - -public final class FileServerWriteSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FileServerWriteSettings model = - BinaryData - .fromString( - "{\"type\":\"FileServerWriteSettings\",\"maxConcurrentConnections\":\"datacbeauvld\",\"disableMetricsCollection\":\"datan\",\"copyBehavior\":\"datauifqj\",\"\":{\"auugdarfumitjai\":\"datazxbljp\",\"y\":\"datasmokfdyb\"}}") - .toObject(FileServerWriteSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FileServerWriteSettings model = - new FileServerWriteSettings() - .withMaxConcurrentConnections("datacbeauvld") - .withDisableMetricsCollection("datan") - .withCopyBehavior("datauifqj"); - model = BinaryData.fromObject(model).toObject(FileServerWriteSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FileShareDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FileShareDatasetTests.java deleted file mode 100644 index c70901535080..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FileShareDatasetTests.java +++ /dev/null @@ -1,82 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetCompression; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.DatasetStorageFormat; -import com.azure.resourcemanager.datafactory.models.FileShareDataset; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class FileShareDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FileShareDataset model = - BinaryData - .fromString( - "{\"type\":\"FileShare\",\"typeProperties\":{\"folderPath\":\"dataqdonbzzs\",\"fileName\":\"datazyviiwsu\",\"modifiedDatetimeStart\":\"datazhw\",\"modifiedDatetimeEnd\":\"datauifkzqqhb\",\"format\":{\"type\":\"DatasetStorageFormat\",\"serializer\":\"dataoilmkfbeoiipjpng\",\"deserializer\":\"datavuoikdlp\",\"\":{\"wimqnryclocfm\":\"datatug\",\"qhdxtwwulkryb\":\"dataswxvjelei\"}},\"fileFilter\":\"dataevy\",\"compression\":{\"type\":\"datayjecrqkwakkch\",\"level\":\"dataoulborcxuibsdqbd\",\"\":{\"bjqlqfbl\":\"datapectsmwpgweoq\"}}},\"description\":\"ufollcshjuc\",\"structure\":\"databymjjvtpne\",\"schema\":\"datavjeazrah\",\"linkedServiceName\":{\"referenceName\":\"lhbimyii\",\"parameters\":{\"dos\":\"datamcthtpqgf\"}},\"parameters\":{\"flgzh\":{\"type\":\"Bool\",\"defaultValue\":\"datau\"}},\"annotations\":[\"datagwahcrxo\"],\"folder\":{\"name\":\"u\"},\"\":{\"pmhz\":\"datapccxziv\",\"kvnnjdtujq\":\"datahh\",\"tqlfxolrwvtl\":\"datavhnjvpmxnhtmz\"}}") - .toObject(FileShareDataset.class); - Assertions.assertEquals("ufollcshjuc", model.description()); - Assertions.assertEquals("lhbimyii", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("flgzh").type()); - Assertions.assertEquals("u", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FileShareDataset model = - new FileShareDataset() - .withDescription("ufollcshjuc") - .withStructure("databymjjvtpne") - .withSchema("datavjeazrah") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("lhbimyii") - .withParameters(mapOf("dos", "datamcthtpqgf"))) - .withParameters( - mapOf("flgzh", new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datau"))) - .withAnnotations(Arrays.asList("datagwahcrxo")) - .withFolder(new DatasetFolder().withName("u")) - .withFolderPath("dataqdonbzzs") - .withFileName("datazyviiwsu") - .withModifiedDatetimeStart("datazhw") - .withModifiedDatetimeEnd("datauifkzqqhb") - .withFormat( - new DatasetStorageFormat() - .withSerializer("dataoilmkfbeoiipjpng") - .withDeserializer("datavuoikdlp") - .withAdditionalProperties(mapOf("type", "DatasetStorageFormat"))) - .withFileFilter("dataevy") - .withCompression( - new DatasetCompression() - .withType("datayjecrqkwakkch") - .withLevel("dataoulborcxuibsdqbd") - .withAdditionalProperties(mapOf())); - model = BinaryData.fromObject(model).toObject(FileShareDataset.class); - Assertions.assertEquals("ufollcshjuc", model.description()); - Assertions.assertEquals("lhbimyii", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("flgzh").type()); - Assertions.assertEquals("u", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FileShareDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FileShareDatasetTypePropertiesTests.java deleted file mode 100644 index 11b16f4ad56c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FileShareDatasetTypePropertiesTests.java +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.FileShareDatasetTypeProperties; -import com.azure.resourcemanager.datafactory.models.DatasetCompression; -import com.azure.resourcemanager.datafactory.models.DatasetStorageFormat; -import java.util.HashMap; -import java.util.Map; - -public final class FileShareDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FileShareDatasetTypeProperties model = - BinaryData - .fromString( - "{\"folderPath\":\"datayfjswequf\",\"fileName\":\"datayyopoaytwwgw\",\"modifiedDatetimeStart\":\"datab\",\"modifiedDatetimeEnd\":\"databvufrkwjiemimdtn\",\"format\":{\"type\":\"DatasetStorageFormat\",\"serializer\":\"dataewjskreeedddrftf\",\"deserializer\":\"dataulpclhsiige\",\"\":{\"nqyxfedq\":\"datab\",\"dqw\":\"datae\",\"zp\":\"datanxoqgv\",\"meyobqajejirvavr\":\"datagp\"}},\"fileFilter\":\"datagpogpl\",\"compression\":{\"type\":\"datauvlnhxnrnjhinaeg\",\"level\":\"databx\",\"\":{\"fhsovadkrmjxmwq\":\"dataqmjmoplukfyk\"}}}") - .toObject(FileShareDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FileShareDatasetTypeProperties model = - new FileShareDatasetTypeProperties() - .withFolderPath("datayfjswequf") - .withFileName("datayyopoaytwwgw") - .withModifiedDatetimeStart("datab") - .withModifiedDatetimeEnd("databvufrkwjiemimdtn") - .withFormat( - new DatasetStorageFormat() - .withSerializer("dataewjskreeedddrftf") - .withDeserializer("dataulpclhsiige") - .withAdditionalProperties(mapOf("type", "DatasetStorageFormat"))) - .withFileFilter("datagpogpl") - .withCompression( - new DatasetCompression() - .withType("datauvlnhxnrnjhinaeg") - .withLevel("databx") - .withAdditionalProperties(mapOf())); - model = BinaryData.fromObject(model).toObject(FileShareDatasetTypeProperties.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FileSystemSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FileSystemSinkTests.java deleted file mode 100644 index 122803c5ee16..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FileSystemSinkTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.FileSystemSink; - -public final class FileSystemSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FileSystemSink model = - BinaryData - .fromString( - "{\"type\":\"FileSystemSink\",\"copyBehavior\":\"datagw\",\"writeBatchSize\":\"dataujshcsnk\",\"writeBatchTimeout\":\"datagpqxqevt\",\"sinkRetryCount\":\"datavyy\",\"sinkRetryWait\":\"datakjirvjogsalvjl\",\"maxConcurrentConnections\":\"dataimua\",\"disableMetricsCollection\":\"datakympwquu\",\"\":{\"iqeftgunropdpuf\":\"dataofuzthszjyanhs\"}}") - .toObject(FileSystemSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FileSystemSink model = - new FileSystemSink() - .withWriteBatchSize("dataujshcsnk") - .withWriteBatchTimeout("datagpqxqevt") - .withSinkRetryCount("datavyy") - .withSinkRetryWait("datakjirvjogsalvjl") - .withMaxConcurrentConnections("dataimua") - .withDisableMetricsCollection("datakympwquu") - .withCopyBehavior("datagw"); - model = BinaryData.fromObject(model).toObject(FileSystemSink.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FileSystemSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FileSystemSourceTests.java deleted file mode 100644 index b9532aead374..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FileSystemSourceTests.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.FileSystemSource; - -public final class FileSystemSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FileSystemSource model = - BinaryData - .fromString( - "{\"type\":\"FileSystemSource\",\"recursive\":\"dataatcistdbe\",\"additionalColumns\":\"databuajkodpzqtg\",\"sourceRetryCount\":\"datazwx\",\"sourceRetryWait\":\"dataaask\",\"maxConcurrentConnections\":\"datasjbuhzucdljqj\",\"disableMetricsCollection\":\"datancjwzeatezlt\",\"\":{\"hhxivshju\":\"datadkjph\",\"xearlp\":\"datamcjyt\",\"uxbungmpnrytguc\":\"dataajjticlydo\",\"cjugoa\":\"datafxgl\"}}") - .toObject(FileSystemSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FileSystemSource model = - new FileSystemSource() - .withSourceRetryCount("datazwx") - .withSourceRetryWait("dataaask") - .withMaxConcurrentConnections("datasjbuhzucdljqj") - .withDisableMetricsCollection("datancjwzeatezlt") - .withRecursive("dataatcistdbe") - .withAdditionalColumns("databuajkodpzqtg"); - model = BinaryData.fromObject(model).toObject(FileSystemSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FilterActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FilterActivityTests.java deleted file mode 100644 index d3aa92785f38..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FilterActivityTests.java +++ /dev/null @@ -1,85 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.Expression; -import com.azure.resourcemanager.datafactory.models.FilterActivity; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class FilterActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FilterActivity model = - BinaryData - .fromString( - "{\"type\":\"Filter\",\"typeProperties\":{\"items\":{\"value\":\"rpxlfyytjm\"},\"condition\":{\"value\":\"roxvsclmt\"}},\"name\":\"kmlfcgk\",\"description\":\"itphzu\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"bbestyyml\",\"dependencyConditions\":[\"Succeeded\"],\"\":{\"grnyxri\":\"datapu\"}}],\"userProperties\":[{\"name\":\"kfudra\",\"value\":\"datamdcfwawzjhfa\"},{\"name\":\"ubcvnafxwhicac\",\"value\":\"datavi\"},{\"name\":\"lhommhaxt\",\"value\":\"datagrufbzgnrjfzba\"}],\"\":{\"wqstczpskzplbz\":\"datamkmqdfjeu\"}}") - .toObject(FilterActivity.class); - Assertions.assertEquals("kmlfcgk", model.name()); - Assertions.assertEquals("itphzu", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("bbestyyml", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("kfudra", model.userProperties().get(0).name()); - Assertions.assertEquals("rpxlfyytjm", model.items().value()); - Assertions.assertEquals("roxvsclmt", model.condition().value()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FilterActivity model = - new FilterActivity() - .withName("kmlfcgk") - .withDescription("itphzu") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("bbestyyml") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays - .asList( - new UserProperty().withName("kfudra").withValue("datamdcfwawzjhfa"), - new UserProperty().withName("ubcvnafxwhicac").withValue("datavi"), - new UserProperty().withName("lhommhaxt").withValue("datagrufbzgnrjfzba"))) - .withItems(new Expression().withValue("rpxlfyytjm")) - .withCondition(new Expression().withValue("roxvsclmt")); - model = BinaryData.fromObject(model).toObject(FilterActivity.class); - Assertions.assertEquals("kmlfcgk", model.name()); - Assertions.assertEquals("itphzu", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("bbestyyml", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("kfudra", model.userProperties().get(0).name()); - Assertions.assertEquals("rpxlfyytjm", model.items().value()); - Assertions.assertEquals("roxvsclmt", model.condition().value()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FilterActivityTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FilterActivityTypePropertiesTests.java deleted file mode 100644 index a7744bd93bbf..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FilterActivityTypePropertiesTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.FilterActivityTypeProperties; -import com.azure.resourcemanager.datafactory.models.Expression; -import org.junit.jupiter.api.Assertions; - -public final class FilterActivityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FilterActivityTypeProperties model = - BinaryData - .fromString("{\"items\":{\"value\":\"juqvywol\"},\"condition\":{\"value\":\"cxdc\"}}") - .toObject(FilterActivityTypeProperties.class); - Assertions.assertEquals("juqvywol", model.items().value()); - Assertions.assertEquals("cxdc", model.condition().value()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FilterActivityTypeProperties model = - new FilterActivityTypeProperties() - .withItems(new Expression().withValue("juqvywol")) - .withCondition(new Expression().withValue("cxdc")); - model = BinaryData.fromObject(model).toObject(FilterActivityTypeProperties.class); - Assertions.assertEquals("juqvywol", model.items().value()); - Assertions.assertEquals("cxdc", model.condition().value()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FlowletTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FlowletTests.java deleted file mode 100644 index 9cf40483cb87..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FlowletTests.java +++ /dev/null @@ -1,403 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DataFlowFolder; -import com.azure.resourcemanager.datafactory.models.DataFlowReference; -import com.azure.resourcemanager.datafactory.models.DataFlowReferenceType; -import com.azure.resourcemanager.datafactory.models.DataFlowSink; -import com.azure.resourcemanager.datafactory.models.DataFlowSource; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import com.azure.resourcemanager.datafactory.models.Flowlet; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.Transformation; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class FlowletTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - Flowlet model = - BinaryData - .fromString( - "{\"type\":\"Flowlet\",\"typeProperties\":{\"sources\":[{\"schemaLinkedService\":{\"referenceName\":\"pnw\",\"parameters\":{\"ffffg\":\"datafvpctfji\",\"ejjk\":\"datauhznwhvuldbk\",\"azmxjqi\":\"dataigaw\"}},\"name\":\"h\",\"description\":\"jsbcml\",\"dataset\":{\"referenceName\":\"ahz\",\"parameters\":{\"hmojusuzg\":\"dataroolkolir\",\"aaxoialahfxwcc\":\"datajzc\",\"kczynuhhoqeqsh\":\"datakdxkuk\",\"q\":\"datavl\"}},\"linkedService\":{\"referenceName\":\"yrqolnthbbnkgz\",\"parameters\":{\"eyjncjmlfuy\":\"datadrnzkjthf\",\"rufzcqyjmq\":\"datajbpfiddh\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"iocuselqkr\",\"datasetParameters\":\"datazrhxuddqmdtf\",\"parameters\":{\"khmwdmd\":\"datajmr\",\"okwtjawhvagnqfqq\":\"datagyqi\"},\"\":{\"chtvsnvlaqd\":\"datavmyolcaym\",\"zawatuwqkokbc\":\"dataz\",\"msn\":\"dataothymgobl\",\"aaneakhtmhobcya\":\"datagwi\"}}}],\"sinks\":[{\"schemaLinkedService\":{\"referenceName\":\"qtvkh\",\"parameters\":{\"ymhcctopuo\":\"dataogxkfnaoa\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"rnskby\",\"parameters\":{\"xqnwhscoz\":\"datahczygxvhajpxe\",\"ljfewxqo\":\"datawmvgxsmpknpwir\"}},\"name\":\"oxudnmckap\",\"description\":\"knq\",\"dataset\":{\"referenceName\":\"jgencdgmoque\",\"parameters\":{\"ltjouwhldxwh\":\"datakkyo\",\"q\":\"dataepr\",\"cvprst\":\"datasmfx\"}},\"linkedService\":{\"referenceName\":\"itbfjtdy\",\"parameters\":{\"etjt\":\"dataplfacqoccqrqx\",\"oadtxopgehpadkmd\":\"datarhutf\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"szxvctkbbxuhar\",\"datasetParameters\":\"datair\",\"parameters\":{\"bmyqjog\":\"datalabvoyngsuxxc\",\"rntu\":\"datadsaidjanormovdxx\"},\"\":{\"nwemhdeeljslkyo\":\"datail\",\"fzjuegrhrhtsl\":\"datad\",\"j\":\"datajtv\"}}},{\"schemaLinkedService\":{\"referenceName\":\"vgjbfio\",\"parameters\":{\"cbjqqwmtqsm\":\"datajod\",\"cywnfyszza\":\"dataxsazuxejgw\",\"ozsyvrm\":\"datazsinqbdnddb\",\"eeih\":\"datajmyitrchwudl\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"mnoejhqlfmsib\",\"parameters\":{\"mypgfqvmty\":\"datarfgxkyd\",\"kxp\":\"datahl\"}},\"name\":\"jpewpyjlfx\",\"description\":\"pqcrzgeuqxbpiat\",\"dataset\":{\"referenceName\":\"aujegqdtadra\",\"parameters\":{\"gsq\":\"datadhjkrukizy\",\"qfpjb\":\"datanqskt\"}},\"linkedService\":{\"referenceName\":\"gweeiwd\",\"parameters\":{\"gbfzu\":\"datan\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"tunmlhxd\",\"datasetParameters\":\"dataklciichgjsysm\",\"parameters\":{\"bdujgcwxvecbb\":\"datadgwxfkzsifcu\"},\"\":{\"kpgdqxwabzrwiq\":\"datardxrizagbbgiarks\",\"kifmmainw\":\"dataxhaclcdosqkptjq\"}}},{\"schemaLinkedService\":{\"referenceName\":\"d\",\"parameters\":{\"gvydjufbnklblaxp\":\"databqwuntobuizazzel\",\"lfdxaglz\":\"datagjwdab\",\"siflikyypzkgxf\":\"dataytlbtlqhopxouvm\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"myrqsdbpokszan\",\"parameters\":{\"kirkskw\":\"datagpterdiu\",\"olzkgys\":\"datatsdetjygowifcq\",\"zoxlvoc\":\"datagzyy\"}},\"name\":\"tvdxxhe\",\"description\":\"mlil\",\"dataset\":{\"referenceName\":\"ghjhjvmabzzbwa\",\"parameters\":{\"apr\":\"datamdafbgymqt\",\"neychbjizq\":\"dataojxrjnbsconxavi\",\"rfbo\":\"datasgnwdxzedpq\",\"mlnfyz\":\"dataxi\"}},\"linkedService\":{\"referenceName\":\"frbypi\",\"parameters\":{\"aq\":\"datakpdj\",\"dgonjhxshthmgp\":\"datasmqaz\",\"pxtzhigqqbtimpk\":\"datazqulptkbv\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"o\",\"datasetParameters\":\"datas\",\"parameters\":{\"jakx\":\"datahudsmusuaa\",\"vqban\":\"datajnfczmnniixy\",\"gm\":\"datasjtgirnbgmgmddo\",\"yxwe\":\"datanltwmpftmfoeajog\"},\"\":{\"hdidrmuhkahmjedb\":\"datafddrvlkpzwbhnrec\"}}}],\"transformations\":[{\"name\":\"vkhhwm\",\"description\":\"jbweunxcqr\",\"dataset\":{\"referenceName\":\"hu\",\"parameters\":{\"gnzuzpbgkzcsc\":\"datahppiybx\",\"ti\":\"dataiuzvkunhdimju\"}},\"linkedService\":{\"referenceName\":\"kaugpucdocfqplwg\",\"parameters\":{\"jlvzklk\":\"datahxw\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"ikyjtkakvlb\",\"datasetParameters\":\"datahjvpzaptu\",\"parameters\":{\"fgcdiykkcxw\":\"dataaoizjix\",\"dmuqohhi\":\"dataujvqynvavit\",\"ddrwjcljbrhlhpvz\":\"dataraxq\"},\"\":{\"fhxrzfr\":\"datawennin\",\"rcqxgcbvzarmqc\":\"datavztiucwviqllukh\",\"stsinvag\":\"datapo\"}}},{\"name\":\"vjyhdrxbrdvc\",\"description\":\"qwh\",\"dataset\":{\"referenceName\":\"xnmxgnmguzb\",\"parameters\":{\"bkbdhlltqstqkqs\":\"dataorbalkj\",\"eubanlxunpqcc\":\"datagxiynecovagzk\",\"klaslga\":\"dataqiawzl\"}},\"linkedService\":{\"referenceName\":\"zuxlrarwpewsau\",\"parameters\":{\"ytnkqb\":\"datajtighsxj\",\"mehjnhjioti\":\"datalahovuuwx\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"bcngkegxc\",\"datasetParameters\":\"dataxbbfetwil\",\"parameters\":{\"frolq\":\"dataoxpdxq\"},\"\":{\"jew\":\"datakiu\",\"tnlmsoodtmvecdhd\":\"dataahwkxjjm\",\"zxvlgsrgkrfizrp\":\"dataswcrptveaj\"}}},{\"name\":\"wlp\",\"description\":\"uqhrlmcskykp\",\"dataset\":{\"referenceName\":\"ofix\",\"parameters\":{\"kkpyycpaw\":\"datacf\",\"cfpcfjfwzlgz\":\"datapjprdpwr\"}},\"linkedService\":{\"referenceName\":\"kgyepe\",\"parameters\":{\"rntmkctdhu\":\"datannidmdiawpzxk\",\"hqodv\":\"datasgwqpsqaz\",\"ti\":\"datagcnbhcbmjk\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"ynts\",\"datasetParameters\":\"datamfmeftvhkmoo\",\"parameters\":{\"gmjgrul\":\"datahskb\"},\"\":{\"z\":\"datagxhcxnwjtpfdzxco\",\"k\":\"datawofw\"}}},{\"name\":\"kzkdtzxsoednlwg\",\"description\":\"hezomucmqgisnion\",\"dataset\":{\"referenceName\":\"bzdrdpuenxkgt\",\"parameters\":{\"hzkbnbmx\":\"datamtrlxczn\",\"itoqcahfsg\":\"dataxmwtygeqzu\",\"lisolntfxxc\":\"datajmlreesrfwsszvlc\"}},\"linkedService\":{\"referenceName\":\"mipfjw\",\"parameters\":{\"nvgskjtoxjd\":\"datagizmshxxbaizabu\",\"xqqm\":\"datajsjznv\",\"aydhf\":\"datai\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"c\",\"datasetParameters\":\"datatfshksnyzm\",\"parameters\":{\"iqdktwtkvih\":\"datamwbwmbnlslce\",\"nguuzhwvla\":\"datapfliwo\",\"mhjhaus\":\"datap\",\"ekymffztsilscvqs\":\"datab\"},\"\":{\"fymkouih\":\"datai\",\"zhogsmgbvmtdw\":\"dataeseuugci\",\"jnfveg\":\"dataqbe\"}}}],\"script\":\"btvkbi\",\"scriptLines\":[\"htfgficudyhizpac\",\"muhbcakznho\"]},\"description\":\"oitwhrjsdmmazdnc\",\"annotations\":[\"datab\"],\"folder\":{\"name\":\"lhzqpxzbawkikcdg\"}}") - .toObject(Flowlet.class); - Assertions.assertEquals("oitwhrjsdmmazdnc", model.description()); - Assertions.assertEquals("lhzqpxzbawkikcdg", model.folder().name()); - Assertions.assertEquals("h", model.sources().get(0).name()); - Assertions.assertEquals("jsbcml", model.sources().get(0).description()); - Assertions.assertEquals("ahz", model.sources().get(0).dataset().referenceName()); - Assertions.assertEquals("yrqolnthbbnkgz", model.sources().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sources().get(0).flowlet().type()); - Assertions.assertEquals("iocuselqkr", model.sources().get(0).flowlet().referenceName()); - Assertions.assertEquals("pnw", model.sources().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("oxudnmckap", model.sinks().get(0).name()); - Assertions.assertEquals("knq", model.sinks().get(0).description()); - Assertions.assertEquals("jgencdgmoque", model.sinks().get(0).dataset().referenceName()); - Assertions.assertEquals("itbfjtdy", model.sinks().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sinks().get(0).flowlet().type()); - Assertions.assertEquals("szxvctkbbxuhar", model.sinks().get(0).flowlet().referenceName()); - Assertions.assertEquals("qtvkh", model.sinks().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("rnskby", model.sinks().get(0).rejectedDataLinkedService().referenceName()); - Assertions.assertEquals("vkhhwm", model.transformations().get(0).name()); - Assertions.assertEquals("jbweunxcqr", model.transformations().get(0).description()); - Assertions.assertEquals("hu", model.transformations().get(0).dataset().referenceName()); - Assertions.assertEquals("kaugpucdocfqplwg", model.transformations().get(0).linkedService().referenceName()); - Assertions - .assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.transformations().get(0).flowlet().type()); - Assertions.assertEquals("ikyjtkakvlb", model.transformations().get(0).flowlet().referenceName()); - Assertions.assertEquals("btvkbi", model.script()); - Assertions.assertEquals("htfgficudyhizpac", model.scriptLines().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Flowlet model = - new Flowlet() - .withDescription("oitwhrjsdmmazdnc") - .withAnnotations(Arrays.asList("datab")) - .withFolder(new DataFlowFolder().withName("lhzqpxzbawkikcdg")) - .withSources( - Arrays - .asList( - new DataFlowSource() - .withName("h") - .withDescription("jsbcml") - .withDataset( - new DatasetReference() - .withReferenceName("ahz") - .withParameters( - mapOf( - "hmojusuzg", - "dataroolkolir", - "aaxoialahfxwcc", - "datajzc", - "kczynuhhoqeqsh", - "datakdxkuk", - "q", - "datavl"))) - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("yrqolnthbbnkgz") - .withParameters( - mapOf("eyjncjmlfuy", "datadrnzkjthf", "rufzcqyjmq", "datajbpfiddh"))) - .withFlowlet( - new DataFlowReference() - .withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("iocuselqkr") - .withDatasetParameters("datazrhxuddqmdtf") - .withParameters(mapOf("khmwdmd", "datajmr", "okwtjawhvagnqfqq", "datagyqi")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService( - new LinkedServiceReference() - .withReferenceName("pnw") - .withParameters( - mapOf( - "ffffg", - "datafvpctfji", - "ejjk", - "datauhznwhvuldbk", - "azmxjqi", - "dataigaw"))))) - .withSinks( - Arrays - .asList( - new DataFlowSink() - .withName("oxudnmckap") - .withDescription("knq") - .withDataset( - new DatasetReference() - .withReferenceName("jgencdgmoque") - .withParameters( - mapOf("ltjouwhldxwh", "datakkyo", "q", "dataepr", "cvprst", "datasmfx"))) - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("itbfjtdy") - .withParameters( - mapOf("etjt", "dataplfacqoccqrqx", "oadtxopgehpadkmd", "datarhutf"))) - .withFlowlet( - new DataFlowReference() - .withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("szxvctkbbxuhar") - .withDatasetParameters("datair") - .withParameters( - mapOf("bmyqjog", "datalabvoyngsuxxc", "rntu", "datadsaidjanormovdxx")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService( - new LinkedServiceReference() - .withReferenceName("qtvkh") - .withParameters(mapOf("ymhcctopuo", "dataogxkfnaoa"))) - .withRejectedDataLinkedService( - new LinkedServiceReference() - .withReferenceName("rnskby") - .withParameters( - mapOf("xqnwhscoz", "datahczygxvhajpxe", "ljfewxqo", "datawmvgxsmpknpwir"))), - new DataFlowSink() - .withName("jpewpyjlfx") - .withDescription("pqcrzgeuqxbpiat") - .withDataset( - new DatasetReference() - .withReferenceName("aujegqdtadra") - .withParameters(mapOf("gsq", "datadhjkrukizy", "qfpjb", "datanqskt"))) - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("gweeiwd") - .withParameters(mapOf("gbfzu", "datan"))) - .withFlowlet( - new DataFlowReference() - .withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("tunmlhxd") - .withDatasetParameters("dataklciichgjsysm") - .withParameters(mapOf("bdujgcwxvecbb", "datadgwxfkzsifcu")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService( - new LinkedServiceReference() - .withReferenceName("vgjbfio") - .withParameters( - mapOf( - "cbjqqwmtqsm", - "datajod", - "cywnfyszza", - "dataxsazuxejgw", - "ozsyvrm", - "datazsinqbdnddb", - "eeih", - "datajmyitrchwudl"))) - .withRejectedDataLinkedService( - new LinkedServiceReference() - .withReferenceName("mnoejhqlfmsib") - .withParameters(mapOf("mypgfqvmty", "datarfgxkyd", "kxp", "datahl"))), - new DataFlowSink() - .withName("tvdxxhe") - .withDescription("mlil") - .withDataset( - new DatasetReference() - .withReferenceName("ghjhjvmabzzbwa") - .withParameters( - mapOf( - "apr", - "datamdafbgymqt", - "neychbjizq", - "dataojxrjnbsconxavi", - "rfbo", - "datasgnwdxzedpq", - "mlnfyz", - "dataxi"))) - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("frbypi") - .withParameters( - mapOf( - "aq", - "datakpdj", - "dgonjhxshthmgp", - "datasmqaz", - "pxtzhigqqbtimpk", - "datazqulptkbv"))) - .withFlowlet( - new DataFlowReference() - .withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("o") - .withDatasetParameters("datas") - .withParameters( - mapOf( - "jakx", - "datahudsmusuaa", - "vqban", - "datajnfczmnniixy", - "gm", - "datasjtgirnbgmgmddo", - "yxwe", - "datanltwmpftmfoeajog")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService( - new LinkedServiceReference() - .withReferenceName("d") - .withParameters( - mapOf( - "gvydjufbnklblaxp", - "databqwuntobuizazzel", - "lfdxaglz", - "datagjwdab", - "siflikyypzkgxf", - "dataytlbtlqhopxouvm"))) - .withRejectedDataLinkedService( - new LinkedServiceReference() - .withReferenceName("myrqsdbpokszan") - .withParameters( - mapOf( - "kirkskw", - "datagpterdiu", - "olzkgys", - "datatsdetjygowifcq", - "zoxlvoc", - "datagzyy"))))) - .withTransformations( - Arrays - .asList( - new Transformation() - .withName("vkhhwm") - .withDescription("jbweunxcqr") - .withDataset( - new DatasetReference() - .withReferenceName("hu") - .withParameters( - mapOf("gnzuzpbgkzcsc", "datahppiybx", "ti", "dataiuzvkunhdimju"))) - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("kaugpucdocfqplwg") - .withParameters(mapOf("jlvzklk", "datahxw"))) - .withFlowlet( - new DataFlowReference() - .withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("ikyjtkakvlb") - .withDatasetParameters("datahjvpzaptu") - .withParameters( - mapOf( - "fgcdiykkcxw", - "dataaoizjix", - "dmuqohhi", - "dataujvqynvavit", - "ddrwjcljbrhlhpvz", - "dataraxq")) - .withAdditionalProperties(mapOf())), - new Transformation() - .withName("vjyhdrxbrdvc") - .withDescription("qwh") - .withDataset( - new DatasetReference() - .withReferenceName("xnmxgnmguzb") - .withParameters( - mapOf( - "bkbdhlltqstqkqs", - "dataorbalkj", - "eubanlxunpqcc", - "datagxiynecovagzk", - "klaslga", - "dataqiawzl"))) - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("zuxlrarwpewsau") - .withParameters( - mapOf("ytnkqb", "datajtighsxj", "mehjnhjioti", "datalahovuuwx"))) - .withFlowlet( - new DataFlowReference() - .withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("bcngkegxc") - .withDatasetParameters("dataxbbfetwil") - .withParameters(mapOf("frolq", "dataoxpdxq")) - .withAdditionalProperties(mapOf())), - new Transformation() - .withName("wlp") - .withDescription("uqhrlmcskykp") - .withDataset( - new DatasetReference() - .withReferenceName("ofix") - .withParameters(mapOf("kkpyycpaw", "datacf", "cfpcfjfwzlgz", "datapjprdpwr"))) - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("kgyepe") - .withParameters( - mapOf( - "rntmkctdhu", - "datannidmdiawpzxk", - "hqodv", - "datasgwqpsqaz", - "ti", - "datagcnbhcbmjk"))) - .withFlowlet( - new DataFlowReference() - .withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("ynts") - .withDatasetParameters("datamfmeftvhkmoo") - .withParameters(mapOf("gmjgrul", "datahskb")) - .withAdditionalProperties(mapOf())), - new Transformation() - .withName("kzkdtzxsoednlwg") - .withDescription("hezomucmqgisnion") - .withDataset( - new DatasetReference() - .withReferenceName("bzdrdpuenxkgt") - .withParameters( - mapOf( - "hzkbnbmx", - "datamtrlxczn", - "itoqcahfsg", - "dataxmwtygeqzu", - "lisolntfxxc", - "datajmlreesrfwsszvlc"))) - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("mipfjw") - .withParameters( - mapOf( - "nvgskjtoxjd", - "datagizmshxxbaizabu", - "xqqm", - "datajsjznv", - "aydhf", - "datai"))) - .withFlowlet( - new DataFlowReference() - .withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("c") - .withDatasetParameters("datatfshksnyzm") - .withParameters( - mapOf( - "iqdktwtkvih", - "datamwbwmbnlslce", - "nguuzhwvla", - "datapfliwo", - "mhjhaus", - "datap", - "ekymffztsilscvqs", - "datab")) - .withAdditionalProperties(mapOf())))) - .withScript("btvkbi") - .withScriptLines(Arrays.asList("htfgficudyhizpac", "muhbcakznho")); - model = BinaryData.fromObject(model).toObject(Flowlet.class); - Assertions.assertEquals("oitwhrjsdmmazdnc", model.description()); - Assertions.assertEquals("lhzqpxzbawkikcdg", model.folder().name()); - Assertions.assertEquals("h", model.sources().get(0).name()); - Assertions.assertEquals("jsbcml", model.sources().get(0).description()); - Assertions.assertEquals("ahz", model.sources().get(0).dataset().referenceName()); - Assertions.assertEquals("yrqolnthbbnkgz", model.sources().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sources().get(0).flowlet().type()); - Assertions.assertEquals("iocuselqkr", model.sources().get(0).flowlet().referenceName()); - Assertions.assertEquals("pnw", model.sources().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("oxudnmckap", model.sinks().get(0).name()); - Assertions.assertEquals("knq", model.sinks().get(0).description()); - Assertions.assertEquals("jgencdgmoque", model.sinks().get(0).dataset().referenceName()); - Assertions.assertEquals("itbfjtdy", model.sinks().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sinks().get(0).flowlet().type()); - Assertions.assertEquals("szxvctkbbxuhar", model.sinks().get(0).flowlet().referenceName()); - Assertions.assertEquals("qtvkh", model.sinks().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("rnskby", model.sinks().get(0).rejectedDataLinkedService().referenceName()); - Assertions.assertEquals("vkhhwm", model.transformations().get(0).name()); - Assertions.assertEquals("jbweunxcqr", model.transformations().get(0).description()); - Assertions.assertEquals("hu", model.transformations().get(0).dataset().referenceName()); - Assertions.assertEquals("kaugpucdocfqplwg", model.transformations().get(0).linkedService().referenceName()); - Assertions - .assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.transformations().get(0).flowlet().type()); - Assertions.assertEquals("ikyjtkakvlb", model.transformations().get(0).flowlet().referenceName()); - Assertions.assertEquals("btvkbi", model.script()); - Assertions.assertEquals("htfgficudyhizpac", model.scriptLines().get(0)); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FlowletTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FlowletTypePropertiesTests.java deleted file mode 100644 index 154b6445fec7..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FlowletTypePropertiesTests.java +++ /dev/null @@ -1,382 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.FlowletTypeProperties; -import com.azure.resourcemanager.datafactory.models.DataFlowReference; -import com.azure.resourcemanager.datafactory.models.DataFlowReferenceType; -import com.azure.resourcemanager.datafactory.models.DataFlowSink; -import com.azure.resourcemanager.datafactory.models.DataFlowSource; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.Transformation; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class FlowletTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FlowletTypeProperties model = - BinaryData - .fromString( - "{\"sources\":[{\"schemaLinkedService\":{\"referenceName\":\"sd\",\"parameters\":{\"surejqrshzzbgu\":\"datayoqxdedecfiwhag\"}},\"name\":\"lcxiqqzjko\",\"description\":\"upnamglroui\",\"dataset\":{\"referenceName\":\"mfivjqterd\",\"parameters\":{\"d\":\"datagd\",\"tyhhmvfxlapja\":\"dataghpcvrwqirvt\"}},\"linkedService\":{\"referenceName\":\"dmkr\",\"parameters\":{\"qlujqgi\":\"datapgqvqo\",\"hpqvcts\":\"dataabwlyvx\",\"zhasupmlppdpgzvz\":\"dataaeuhwwsknstvz\",\"ptgongruat\":\"dataazvbkar\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"y\",\"datasetParameters\":\"dataqheni\",\"parameters\":{\"yjdeayscseyd\":\"dataqnguba\"},\"\":{\"muwrx\":\"datamexmnvk\",\"wmcpmrrdlhvdvm\":\"datan\",\"hkdcl\":\"dataphbeaeqjz\",\"unerke\":\"datacroczf\"}}},{\"schemaLinkedService\":{\"referenceName\":\"xzs\",\"parameters\":{\"udl\":\"dataezbzu\",\"cgwfsgqkstyecu\":\"datavzske\"}},\"name\":\"yu\",\"description\":\"p\",\"dataset\":{\"referenceName\":\"davsjcfmazpz\",\"parameters\":{\"izekuvfrj\":\"datauzvcmcok\",\"ajbvbn\":\"dataucaonz\",\"idgzwdydamis\":\"datardemdidack\",\"xkqejtpjfojiunr\":\"datapztdivyk\"}},\"linkedService\":{\"referenceName\":\"hxuk\",\"parameters\":{\"o\":\"datakdtoiboancdr\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"xu\",\"datasetParameters\":\"dataxonckbnlblfxlup\",\"parameters\":{\"izxzpzweghl\":\"dataq\",\"dve\":\"datawbogvgfklqiy\"},\"\":{\"vlrdsmovpi\":\"datasbfvdstrkzxsgtzn\"}}},{\"schemaLinkedService\":{\"referenceName\":\"ndnoxaxnrqaq\",\"parameters\":{\"usdvrgp\":\"datandxol\"}},\"name\":\"qmawzjdrpizfu\",\"description\":\"yctsdbtqgkuj\",\"dataset\":{\"referenceName\":\"ooxrqwoeurb\",\"parameters\":{\"wmmkfq\":\"dataapdyarikeejdpdfh\",\"qulw\":\"datar\",\"eqkvyhzokpoyu\":\"datatrj\"}},\"linkedService\":{\"referenceName\":\"uensn\",\"parameters\":{\"jsumxpezcoio\":\"dataphmpoejnglpwsada\",\"xkeedcnwmy\":\"datajrmfqzwqd\",\"czaqpqifdbmpt\":\"dataxfqzkvemyzd\",\"natnizexroqsqjg\":\"datawtxzuisam\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"thsplwsttxsr\",\"datasetParameters\":\"datafq\",\"parameters\":{\"sxyr\":\"dataiceovxgzw\",\"ik\":\"datajmtikes\",\"dseipnquwzxhrp\":\"dataohzixyqhfnkvycqq\"},\"\":{\"kfktltdds\":\"datadl\",\"ouhbq\":\"databjop\",\"yigfcvcew\":\"datazkqxsalu\"}}}],\"sinks\":[{\"schemaLinkedService\":{\"referenceName\":\"dgsjsat\",\"parameters\":{\"azdfsqxhyqmrej\":\"datac\",\"bwtdr\":\"dataarnpvgrsz\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"gz\",\"parameters\":{\"fi\":\"dataxzlh\"}},\"name\":\"acfculzjrmhpf\",\"description\":\"vyldqpzfzxsoxin\",\"dataset\":{\"referenceName\":\"jlzkdrocqsxy\",\"parameters\":{\"is\":\"datatcmiwd\",\"p\":\"datanmeylajamcajyhf\",\"ryklleynqa\":\"datac\"}},\"linkedService\":{\"referenceName\":\"kig\",\"parameters\":{\"hg\":\"datalwalhvu\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"etxdqcmyctajqzj\",\"datasetParameters\":\"datalecxbibiwks\",\"parameters\":{\"oikvntwcz\":\"datayxsbfpz\"},\"\":{\"ezpfki\":\"dataushlcxpblalh\",\"zsaaoqdsgptotxjq\":\"datasaid\",\"cnlrt\":\"dataia\"}}},{\"schemaLinkedService\":{\"referenceName\":\"ijzzcaoijolbuauk\",\"parameters\":{\"lxqdwr\":\"dataeopex\",\"pibkgxyxyaux\":\"datawyil\",\"ytkujsq\":\"dataeddobmcnltm\",\"oxfab\":\"datacm\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"gpwb\",\"parameters\":{\"li\":\"datari\"}},\"name\":\"rycgnwplrrbph\",\"description\":\"sbbi\",\"dataset\":{\"referenceName\":\"icuhqvumspb\",\"parameters\":{\"xmzrmtmvwitu\":\"dataeqbbewfcuqfpy\"}},\"linkedService\":{\"referenceName\":\"yyjshcybwfuppo\",\"parameters\":{\"zsvavlr\":\"datacmvouujxdiikmoxr\",\"oywlunpipcwyb\":\"dataikj\",\"npatpftsae\":\"datazfn\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"whxorpwaltz\",\"datasetParameters\":\"datagexojfccylhtrht\",\"parameters\":{\"zxezmnr\":\"datazjpwexcdrzprob\",\"hlokfpmijpdvzv\":\"datajgpjeuxs\",\"rwyambhbafebzxfk\":\"databhwbdqufvcgnrgla\",\"nntrvrkps\":\"dataqutibhl\"},\"\":{\"vzm\":\"datau\"}}},{\"schemaLinkedService\":{\"referenceName\":\"hnysvlpyeu\",\"parameters\":{\"hyqqegatxgr\":\"datapdixqbolxv\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"mg\",\"parameters\":{\"ibmg\":\"datatsdixchw\",\"gair\":\"dataymncjc\",\"fbhtleberp\":\"datacqzoofjnqjsve\"}},\"name\":\"ljekn\",\"description\":\"n\",\"dataset\":{\"referenceName\":\"j\",\"parameters\":{\"pnowawonoehrguql\":\"datawkdnjrxgkrhwiehy\",\"pyrgu\":\"datafwafbjz\"}},\"linkedService\":{\"referenceName\":\"azbkocbygvthrmxk\",\"parameters\":{\"keboo\":\"datawwdxomrawp\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"yacagae\",\"datasetParameters\":\"dataoiqclmgdtwgab\",\"parameters\":{\"wjecooyvhtuqbpe\":\"datakuz\"},\"\":{\"hftzbpyfao\":\"dataibncgagdvcd\",\"htncwmhjobzrfp\":\"datadf\",\"cqhyftcvbz\":\"dataiz\",\"orssatfyb\":\"datagwhgkgsoau\"}}}],\"transformations\":[{\"name\":\"fdmxuqb\",\"description\":\"nasttuxvzfqayop\",\"dataset\":{\"referenceName\":\"sixhgvbhx\",\"parameters\":{\"mar\":\"dataztgsqjay\",\"nh\":\"dataneibpgbrhbjdq\"}},\"linkedService\":{\"referenceName\":\"motpuwnnoh\",\"parameters\":{\"laynosugkf\":\"datangocfrjuypwyi\",\"hqucum\":\"dataaxttpfsmwgs\",\"uqmllfeothxu\":\"datadd\",\"vkrbzkuastaxklpr\":\"datarigrjdljlkq\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"hgltoizwxvs\",\"datasetParameters\":\"datasgfy\",\"parameters\":{\"vfcck\":\"datayekgafxc\"},\"\":{\"ynctaczcnjfmbbfn\":\"datawletyveszrtlhpdh\",\"itzovnkr\":\"dataj\"}}},{\"name\":\"iklsmni\",\"description\":\"lcoqksyiib\",\"dataset\":{\"referenceName\":\"xwbgbudavqd\",\"parameters\":{\"jvlirk\":\"dataccqcdhth\",\"agzlgpyai\":\"dataucosawrdt\",\"qfttkacybdueur\":\"dataihzqjjtsmuy\",\"jermhzic\":\"datamcdcpkshl\"}},\"linkedService\":{\"referenceName\":\"fdjhyaaknyukibxi\",\"parameters\":{\"piilhvtozy\":\"dataphzwxqte\",\"f\":\"datagjjnxkbylhyyx\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"vqzrwtrd\",\"datasetParameters\":\"datacnvqeons\",\"parameters\":{\"ezyohxpthceopv\":\"dataxlw\",\"lc\":\"datavtwfvesobpbokhm\"},\"\":{\"lqhxkasmcolmu\":\"datarnggcjfw\",\"ygz\":\"datapyvaosdkluwzx\",\"nobguqisqsqkpdmi\":\"datatyevjhu\",\"pnml\":\"datay\"}}}],\"script\":\"qcpszp\",\"scriptLines\":[\"qdvrdmvxyrxdh\",\"vqojbxaotcgbz\",\"mbtple\",\"oioyidoxznvgvd\"]}") - .toObject(FlowletTypeProperties.class); - Assertions.assertEquals("lcxiqqzjko", model.sources().get(0).name()); - Assertions.assertEquals("upnamglroui", model.sources().get(0).description()); - Assertions.assertEquals("mfivjqterd", model.sources().get(0).dataset().referenceName()); - Assertions.assertEquals("dmkr", model.sources().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sources().get(0).flowlet().type()); - Assertions.assertEquals("y", model.sources().get(0).flowlet().referenceName()); - Assertions.assertEquals("sd", model.sources().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("acfculzjrmhpf", model.sinks().get(0).name()); - Assertions.assertEquals("vyldqpzfzxsoxin", model.sinks().get(0).description()); - Assertions.assertEquals("jlzkdrocqsxy", model.sinks().get(0).dataset().referenceName()); - Assertions.assertEquals("kig", model.sinks().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sinks().get(0).flowlet().type()); - Assertions.assertEquals("etxdqcmyctajqzj", model.sinks().get(0).flowlet().referenceName()); - Assertions.assertEquals("dgsjsat", model.sinks().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("gz", model.sinks().get(0).rejectedDataLinkedService().referenceName()); - Assertions.assertEquals("fdmxuqb", model.transformations().get(0).name()); - Assertions.assertEquals("nasttuxvzfqayop", model.transformations().get(0).description()); - Assertions.assertEquals("sixhgvbhx", model.transformations().get(0).dataset().referenceName()); - Assertions.assertEquals("motpuwnnoh", model.transformations().get(0).linkedService().referenceName()); - Assertions - .assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.transformations().get(0).flowlet().type()); - Assertions.assertEquals("hgltoizwxvs", model.transformations().get(0).flowlet().referenceName()); - Assertions.assertEquals("qcpszp", model.script()); - Assertions.assertEquals("qdvrdmvxyrxdh", model.scriptLines().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FlowletTypeProperties model = - new FlowletTypeProperties() - .withSources( - Arrays - .asList( - new DataFlowSource() - .withName("lcxiqqzjko") - .withDescription("upnamglroui") - .withDataset( - new DatasetReference() - .withReferenceName("mfivjqterd") - .withParameters(mapOf("d", "datagd", "tyhhmvfxlapja", "dataghpcvrwqirvt"))) - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("dmkr") - .withParameters( - mapOf( - "qlujqgi", - "datapgqvqo", - "hpqvcts", - "dataabwlyvx", - "zhasupmlppdpgzvz", - "dataaeuhwwsknstvz", - "ptgongruat", - "dataazvbkar"))) - .withFlowlet( - new DataFlowReference() - .withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("y") - .withDatasetParameters("dataqheni") - .withParameters(mapOf("yjdeayscseyd", "dataqnguba")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService( - new LinkedServiceReference() - .withReferenceName("sd") - .withParameters(mapOf("surejqrshzzbgu", "datayoqxdedecfiwhag"))), - new DataFlowSource() - .withName("yu") - .withDescription("p") - .withDataset( - new DatasetReference() - .withReferenceName("davsjcfmazpz") - .withParameters( - mapOf( - "izekuvfrj", - "datauzvcmcok", - "ajbvbn", - "dataucaonz", - "idgzwdydamis", - "datardemdidack", - "xkqejtpjfojiunr", - "datapztdivyk"))) - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("hxuk") - .withParameters(mapOf("o", "datakdtoiboancdr"))) - .withFlowlet( - new DataFlowReference() - .withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("xu") - .withDatasetParameters("dataxonckbnlblfxlup") - .withParameters(mapOf("izxzpzweghl", "dataq", "dve", "datawbogvgfklqiy")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService( - new LinkedServiceReference() - .withReferenceName("xzs") - .withParameters(mapOf("udl", "dataezbzu", "cgwfsgqkstyecu", "datavzske"))), - new DataFlowSource() - .withName("qmawzjdrpizfu") - .withDescription("yctsdbtqgkuj") - .withDataset( - new DatasetReference() - .withReferenceName("ooxrqwoeurb") - .withParameters( - mapOf( - "wmmkfq", - "dataapdyarikeejdpdfh", - "qulw", - "datar", - "eqkvyhzokpoyu", - "datatrj"))) - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("uensn") - .withParameters( - mapOf( - "jsumxpezcoio", - "dataphmpoejnglpwsada", - "xkeedcnwmy", - "datajrmfqzwqd", - "czaqpqifdbmpt", - "dataxfqzkvemyzd", - "natnizexroqsqjg", - "datawtxzuisam"))) - .withFlowlet( - new DataFlowReference() - .withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("thsplwsttxsr") - .withDatasetParameters("datafq") - .withParameters( - mapOf( - "sxyr", - "dataiceovxgzw", - "ik", - "datajmtikes", - "dseipnquwzxhrp", - "dataohzixyqhfnkvycqq")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService( - new LinkedServiceReference() - .withReferenceName("ndnoxaxnrqaq") - .withParameters(mapOf("usdvrgp", "datandxol"))))) - .withSinks( - Arrays - .asList( - new DataFlowSink() - .withName("acfculzjrmhpf") - .withDescription("vyldqpzfzxsoxin") - .withDataset( - new DatasetReference() - .withReferenceName("jlzkdrocqsxy") - .withParameters( - mapOf( - "is", "datatcmiwd", "p", "datanmeylajamcajyhf", "ryklleynqa", "datac"))) - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("kig") - .withParameters(mapOf("hg", "datalwalhvu"))) - .withFlowlet( - new DataFlowReference() - .withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("etxdqcmyctajqzj") - .withDatasetParameters("datalecxbibiwks") - .withParameters(mapOf("oikvntwcz", "datayxsbfpz")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService( - new LinkedServiceReference() - .withReferenceName("dgsjsat") - .withParameters(mapOf("azdfsqxhyqmrej", "datac", "bwtdr", "dataarnpvgrsz"))) - .withRejectedDataLinkedService( - new LinkedServiceReference() - .withReferenceName("gz") - .withParameters(mapOf("fi", "dataxzlh"))), - new DataFlowSink() - .withName("rycgnwplrrbph") - .withDescription("sbbi") - .withDataset( - new DatasetReference() - .withReferenceName("icuhqvumspb") - .withParameters(mapOf("xmzrmtmvwitu", "dataeqbbewfcuqfpy"))) - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("yyjshcybwfuppo") - .withParameters( - mapOf( - "zsvavlr", - "datacmvouujxdiikmoxr", - "oywlunpipcwyb", - "dataikj", - "npatpftsae", - "datazfn"))) - .withFlowlet( - new DataFlowReference() - .withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("whxorpwaltz") - .withDatasetParameters("datagexojfccylhtrht") - .withParameters( - mapOf( - "zxezmnr", - "datazjpwexcdrzprob", - "hlokfpmijpdvzv", - "datajgpjeuxs", - "rwyambhbafebzxfk", - "databhwbdqufvcgnrgla", - "nntrvrkps", - "dataqutibhl")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService( - new LinkedServiceReference() - .withReferenceName("ijzzcaoijolbuauk") - .withParameters( - mapOf( - "lxqdwr", - "dataeopex", - "pibkgxyxyaux", - "datawyil", - "ytkujsq", - "dataeddobmcnltm", - "oxfab", - "datacm"))) - .withRejectedDataLinkedService( - new LinkedServiceReference() - .withReferenceName("gpwb") - .withParameters(mapOf("li", "datari"))), - new DataFlowSink() - .withName("ljekn") - .withDescription("n") - .withDataset( - new DatasetReference() - .withReferenceName("j") - .withParameters( - mapOf("pnowawonoehrguql", "datawkdnjrxgkrhwiehy", "pyrgu", "datafwafbjz"))) - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("azbkocbygvthrmxk") - .withParameters(mapOf("keboo", "datawwdxomrawp"))) - .withFlowlet( - new DataFlowReference() - .withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("yacagae") - .withDatasetParameters("dataoiqclmgdtwgab") - .withParameters(mapOf("wjecooyvhtuqbpe", "datakuz")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService( - new LinkedServiceReference() - .withReferenceName("hnysvlpyeu") - .withParameters(mapOf("hyqqegatxgr", "datapdixqbolxv"))) - .withRejectedDataLinkedService( - new LinkedServiceReference() - .withReferenceName("mg") - .withParameters( - mapOf( - "ibmg", - "datatsdixchw", - "gair", - "dataymncjc", - "fbhtleberp", - "datacqzoofjnqjsve"))))) - .withTransformations( - Arrays - .asList( - new Transformation() - .withName("fdmxuqb") - .withDescription("nasttuxvzfqayop") - .withDataset( - new DatasetReference() - .withReferenceName("sixhgvbhx") - .withParameters(mapOf("mar", "dataztgsqjay", "nh", "dataneibpgbrhbjdq"))) - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("motpuwnnoh") - .withParameters( - mapOf( - "laynosugkf", - "datangocfrjuypwyi", - "hqucum", - "dataaxttpfsmwgs", - "uqmllfeothxu", - "datadd", - "vkrbzkuastaxklpr", - "datarigrjdljlkq"))) - .withFlowlet( - new DataFlowReference() - .withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("hgltoizwxvs") - .withDatasetParameters("datasgfy") - .withParameters(mapOf("vfcck", "datayekgafxc")) - .withAdditionalProperties(mapOf())), - new Transformation() - .withName("iklsmni") - .withDescription("lcoqksyiib") - .withDataset( - new DatasetReference() - .withReferenceName("xwbgbudavqd") - .withParameters( - mapOf( - "jvlirk", - "dataccqcdhth", - "agzlgpyai", - "dataucosawrdt", - "qfttkacybdueur", - "dataihzqjjtsmuy", - "jermhzic", - "datamcdcpkshl"))) - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("fdjhyaaknyukibxi") - .withParameters(mapOf("piilhvtozy", "dataphzwxqte", "f", "datagjjnxkbylhyyx"))) - .withFlowlet( - new DataFlowReference() - .withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("vqzrwtrd") - .withDatasetParameters("datacnvqeons") - .withParameters(mapOf("ezyohxpthceopv", "dataxlw", "lc", "datavtwfvesobpbokhm")) - .withAdditionalProperties(mapOf())))) - .withScript("qcpszp") - .withScriptLines(Arrays.asList("qdvrdmvxyrxdh", "vqojbxaotcgbz", "mbtple", "oioyidoxznvgvd")); - model = BinaryData.fromObject(model).toObject(FlowletTypeProperties.class); - Assertions.assertEquals("lcxiqqzjko", model.sources().get(0).name()); - Assertions.assertEquals("upnamglroui", model.sources().get(0).description()); - Assertions.assertEquals("mfivjqterd", model.sources().get(0).dataset().referenceName()); - Assertions.assertEquals("dmkr", model.sources().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sources().get(0).flowlet().type()); - Assertions.assertEquals("y", model.sources().get(0).flowlet().referenceName()); - Assertions.assertEquals("sd", model.sources().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("acfculzjrmhpf", model.sinks().get(0).name()); - Assertions.assertEquals("vyldqpzfzxsoxin", model.sinks().get(0).description()); - Assertions.assertEquals("jlzkdrocqsxy", model.sinks().get(0).dataset().referenceName()); - Assertions.assertEquals("kig", model.sinks().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sinks().get(0).flowlet().type()); - Assertions.assertEquals("etxdqcmyctajqzj", model.sinks().get(0).flowlet().referenceName()); - Assertions.assertEquals("dgsjsat", model.sinks().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("gz", model.sinks().get(0).rejectedDataLinkedService().referenceName()); - Assertions.assertEquals("fdmxuqb", model.transformations().get(0).name()); - Assertions.assertEquals("nasttuxvzfqayop", model.transformations().get(0).description()); - Assertions.assertEquals("sixhgvbhx", model.transformations().get(0).dataset().referenceName()); - Assertions.assertEquals("motpuwnnoh", model.transformations().get(0).linkedService().referenceName()); - Assertions - .assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.transformations().get(0).flowlet().type()); - Assertions.assertEquals("hgltoizwxvs", model.transformations().get(0).flowlet().referenceName()); - Assertions.assertEquals("qcpszp", model.script()); - Assertions.assertEquals("qdvrdmvxyrxdh", model.scriptLines().get(0)); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ForEachActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ForEachActivityTests.java deleted file mode 100644 index 69af61761910..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ForEachActivityTests.java +++ /dev/null @@ -1,204 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.Activity; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.Expression; -import com.azure.resourcemanager.datafactory.models.ForEachActivity; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ForEachActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ForEachActivity model = - BinaryData - .fromString( - "{\"type\":\"ForEach\",\"typeProperties\":{\"isSequential\":true,\"batchCount\":1012384732,\"items\":{\"value\":\"dbmuzpdjthpsyc\"},\"activities\":[{\"type\":\"Activity\",\"name\":\"xuhiwymmiipf\",\"description\":\"gjmysnfpx\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"ivsq\",\"dependencyConditions\":[\"Skipped\",\"Succeeded\",\"Completed\",\"Failed\"],\"\":{\"itkfvdjgwzak\":\"dataade\"}}],\"userProperties\":[{\"name\":\"brbsuxgnw\",\"value\":\"dataykuloz\"},{\"name\":\"oilhrxjiwjivy\",\"value\":\"datarqlky\"},{\"name\":\"wnb\",\"value\":\"datalau\"}],\"\":{\"bvftqahjnsllfkcr\":\"datayriscio\",\"fxtendfp\":\"dataviimhdlmagdwi\",\"tklojlgsbystznwj\":\"dataoxtifosxxk\",\"ptvkjdowuzasd\":\"datasvllefliriq\"}},{\"type\":\"Activity\",\"name\":\"tufmujadippdntun\",\"description\":\"eeprmebvxmaacr\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"jcesm\",\"dependencyConditions\":[\"Failed\",\"Succeeded\",\"Completed\",\"Failed\"],\"\":{\"dbuz\":\"datajxyv\",\"asdrrfozz\":\"dataphogmrcmguel\"}},{\"activity\":\"ygolz\",\"dependencyConditions\":[\"Failed\",\"Succeeded\",\"Skipped\",\"Completed\"],\"\":{\"rjmzqnbwnloo\":\"datarysvcabr\"}},{\"activity\":\"ah\",\"dependencyConditions\":[\"Completed\",\"Completed\",\"Completed\",\"Skipped\"],\"\":{\"jorpcrgrjxitpp\":\"dataoqclypbr\",\"rdefhbzic\":\"databuvxxlo\",\"lzwvmwjuqchc\":\"datafdwgbgenwesxzu\"}}],\"userProperties\":[{\"name\":\"yscarjm\",\"value\":\"dataiewv\"},{\"name\":\"pyskhkvkwdtbvy\",\"value\":\"datalgkzbyxtprxtf\"},{\"name\":\"vng\",\"value\":\"datacsno\"},{\"name\":\"kglygeuo\",\"value\":\"datalywjvdr\"}],\"\":{\"nt\":\"datawzbrg\",\"n\":\"dataptrjtyhthfcpz\",\"g\":\"datavkhkubpojhdxcha\",\"vrnwxolfhiq\":\"dataw\"}}]},\"name\":\"iulfxgzyr\",\"description\":\"uxlt\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"catozsodpbsqcw\",\"dependencyConditions\":[\"Failed\"],\"\":{\"ribmeuukk\":\"datahuixczycifdrjry\",\"jmnxlf\":\"datanwtucmh\",\"wzgb\":\"datam\",\"mrpbmxmxshfh\":\"databwmiap\"}},{\"activity\":\"p\",\"dependencyConditions\":[\"Skipped\",\"Succeeded\",\"Failed\"],\"\":{\"vxytmoqnytucuzy\":\"datap\",\"e\":\"dataigdebsinsoybe\",\"mqjcagxrozcfcxk\":\"datarpouhlhlud\",\"kgepmnxvahqvc\":\"datahjxbteakdr\"}},{\"activity\":\"lphlkxdanlycc\",\"dependencyConditions\":[\"Succeeded\",\"Completed\",\"Skipped\"],\"\":{\"qzdedizdmwndnsg\":\"dataa\"}}],\"userProperties\":[{\"name\":\"pstwmdmwsf\",\"value\":\"datardyrxloxa\"},{\"name\":\"mxnmx\",\"value\":\"datamdlynlhsdtc\"},{\"name\":\"flevndldhwrf\",\"value\":\"dataflhwfrjyuhuthqdf\"},{\"name\":\"bizloyqjrkt\",\"value\":\"datadvuqve\"}],\"\":{\"relbzwxxsowd\":\"dataogesrmahszxcfbp\",\"nhqfae\":\"datauwvupn\"}}") - .toObject(ForEachActivity.class); - Assertions.assertEquals("iulfxgzyr", model.name()); - Assertions.assertEquals("uxlt", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.onInactiveMarkAs()); - Assertions.assertEquals("catozsodpbsqcw", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("pstwmdmwsf", model.userProperties().get(0).name()); - Assertions.assertEquals(true, model.isSequential()); - Assertions.assertEquals(1012384732, model.batchCount()); - Assertions.assertEquals("dbmuzpdjthpsyc", model.items().value()); - Assertions.assertEquals("xuhiwymmiipf", model.activities().get(0).name()); - Assertions.assertEquals("gjmysnfpx", model.activities().get(0).description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.activities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.activities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("ivsq", model.activities().get(0).dependsOn().get(0).activity()); - Assertions - .assertEquals( - DependencyCondition.SKIPPED, - model.activities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("brbsuxgnw", model.activities().get(0).userProperties().get(0).name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ForEachActivity model = - new ForEachActivity() - .withName("iulfxgzyr") - .withDescription("uxlt") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("catozsodpbsqcw") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("p") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.SKIPPED, - DependencyCondition.SUCCEEDED, - DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("lphlkxdanlycc") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.SUCCEEDED, - DependencyCondition.COMPLETED, - DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays - .asList( - new UserProperty().withName("pstwmdmwsf").withValue("datardyrxloxa"), - new UserProperty().withName("mxnmx").withValue("datamdlynlhsdtc"), - new UserProperty().withName("flevndldhwrf").withValue("dataflhwfrjyuhuthqdf"), - new UserProperty().withName("bizloyqjrkt").withValue("datadvuqve"))) - .withIsSequential(true) - .withBatchCount(1012384732) - .withItems(new Expression().withValue("dbmuzpdjthpsyc")) - .withActivities( - Arrays - .asList( - new Activity() - .withName("xuhiwymmiipf") - .withDescription("gjmysnfpx") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("ivsq") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.SKIPPED, - DependencyCondition.SUCCEEDED, - DependencyCondition.COMPLETED, - DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays - .asList( - new UserProperty().withName("brbsuxgnw").withValue("dataykuloz"), - new UserProperty().withName("oilhrxjiwjivy").withValue("datarqlky"), - new UserProperty().withName("wnb").withValue("datalau"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity() - .withName("tufmujadippdntun") - .withDescription("eeprmebvxmaacr") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("jcesm") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.FAILED, - DependencyCondition.SUCCEEDED, - DependencyCondition.COMPLETED, - DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("ygolz") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.FAILED, - DependencyCondition.SUCCEEDED, - DependencyCondition.SKIPPED, - DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("ah") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.COMPLETED, - DependencyCondition.COMPLETED, - DependencyCondition.COMPLETED, - DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays - .asList( - new UserProperty().withName("yscarjm").withValue("dataiewv"), - new UserProperty() - .withName("pyskhkvkwdtbvy") - .withValue("datalgkzbyxtprxtf"), - new UserProperty().withName("vng").withValue("datacsno"), - new UserProperty().withName("kglygeuo").withValue("datalywjvdr"))) - .withAdditionalProperties(mapOf("type", "Activity")))); - model = BinaryData.fromObject(model).toObject(ForEachActivity.class); - Assertions.assertEquals("iulfxgzyr", model.name()); - Assertions.assertEquals("uxlt", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.onInactiveMarkAs()); - Assertions.assertEquals("catozsodpbsqcw", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("pstwmdmwsf", model.userProperties().get(0).name()); - Assertions.assertEquals(true, model.isSequential()); - Assertions.assertEquals(1012384732, model.batchCount()); - Assertions.assertEquals("dbmuzpdjthpsyc", model.items().value()); - Assertions.assertEquals("xuhiwymmiipf", model.activities().get(0).name()); - Assertions.assertEquals("gjmysnfpx", model.activities().get(0).description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.activities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.activities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("ivsq", model.activities().get(0).dependsOn().get(0).activity()); - Assertions - .assertEquals( - DependencyCondition.SKIPPED, - model.activities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("brbsuxgnw", model.activities().get(0).userProperties().get(0).name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ForEachActivityTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ForEachActivityTypePropertiesTests.java deleted file mode 100644 index 973e7b836cdd..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ForEachActivityTypePropertiesTests.java +++ /dev/null @@ -1,185 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.ForEachActivityTypeProperties; -import com.azure.resourcemanager.datafactory.models.Activity; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.Expression; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ForEachActivityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ForEachActivityTypeProperties model = - BinaryData - .fromString( - "{\"isSequential\":true,\"batchCount\":1006990717,\"items\":{\"value\":\"apsraydl\"},\"activities\":[{\"type\":\"Activity\",\"name\":\"okmakkwqrkaymdgz\",\"description\":\"lio\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"mavxorldubbbac\",\"dependencyConditions\":[\"Succeeded\",\"Skipped\",\"Completed\",\"Succeeded\"],\"\":{\"po\":\"dataooldwdjermdzkik\",\"kcczb\":\"dataqgku\",\"kwjhkjvsvywnz\":\"dataobe\"}}],\"userProperties\":[{\"name\":\"vqbvfihnasa\",\"value\":\"dataukegkludfdh\"},{\"name\":\"orihqzfjyqadtq\",\"value\":\"datatsa\"},{\"name\":\"jjfa\",\"value\":\"dataplywtgilhxaa\"},{\"name\":\"nuufenp\",\"value\":\"datatoktnfeghc\"}],\"\":{\"ywuioi\":\"datagexqyroqklgvyce\",\"fskgxfmdpsreqor\":\"datatwhyznlhak\",\"zqjqbwjiqru\":\"dataku\"}},{\"type\":\"Activity\",\"name\":\"bjuakdsmwajalsen\",\"description\":\"oslvf\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"cceyobjsju\",\"dependencyConditions\":[\"Completed\"],\"\":{\"fukuht\":\"datayvxk\"}},{\"activity\":\"vxidmitmjccnjvg\",\"dependencyConditions\":[\"Skipped\",\"Failed\",\"Completed\"],\"\":{\"ahpyss\":\"datarqgliq\",\"iresixigpmcmequo\":\"datangduewevhcwtt\",\"ybtxzaaaveiad\":\"dataawcbknyljycpw\"}},{\"activity\":\"goadtdxdxrkrvmh\",\"dependencyConditions\":[\"Completed\",\"Skipped\",\"Completed\"],\"\":{\"xktncigwfgv\":\"datauwbvrbwafw\"}},{\"activity\":\"ftbwmuxc\",\"dependencyConditions\":[\"Succeeded\",\"Succeeded\"],\"\":{\"mxptkbehpywvgf\":\"datapmghh\",\"olpf\":\"datasrngyqvxzqwcm\",\"skuscdnneofta\":\"datavvksnnyk\"}}],\"userProperties\":[{\"name\":\"httj\",\"value\":\"dataqwwlaxhsjwpcjtw\"},{\"name\":\"whrzntmzzzavx\",\"value\":\"datadkexspoi\"},{\"name\":\"vuk\",\"value\":\"datatteaisywopkovl\"}],\"\":{\"mgvqthlimvyzrdq\":\"dataigdvcbyldsmy\",\"rpxwldktphnis\":\"datagyon\",\"xpk\":\"datajcjnbtgfit\"}},{\"type\":\"Activity\",\"name\":\"angjxbbyqvbdlfzk\",\"description\":\"geppxiyovg\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"ggame\",\"dependencyConditions\":[\"Skipped\",\"Succeeded\"],\"\":{\"qnfdwrwscyblwj\":\"dataxhmaokkgvwvl\",\"bg\":\"datap\",\"ypqnshnbfd\":\"datalefjsgnxrgmvzcib\"}},{\"activity\":\"xs\",\"dependencyConditions\":[\"Skipped\"],\"\":{\"bowqmfh\":\"dataprgztzc\",\"g\":\"datahnbsxoebephohjo\",\"bmngkqej\":\"dataifchvr\",\"wcfxbywpwjvpg\":\"datahwyyzzdlfayic\"}},{\"activity\":\"stxznkbjkjezunrd\",\"dependencyConditions\":[\"Skipped\",\"Completed\"],\"\":{\"cwbcxwdbx\":\"datanvepb\"}}],\"userProperties\":[{\"name\":\"pummphb\",\"value\":\"datap\"},{\"name\":\"ive\",\"value\":\"datal\"},{\"name\":\"ppizyenajjxz\",\"value\":\"datadpnersmevhgs\"}],\"\":{\"rjqakb\":\"dataljl\",\"g\":\"datazsyqpkpvb\",\"gzeio\":\"datagyguqyxvzyi\"}}]}") - .toObject(ForEachActivityTypeProperties.class); - Assertions.assertEquals(true, model.isSequential()); - Assertions.assertEquals(1006990717, model.batchCount()); - Assertions.assertEquals("apsraydl", model.items().value()); - Assertions.assertEquals("okmakkwqrkaymdgz", model.activities().get(0).name()); - Assertions.assertEquals("lio", model.activities().get(0).description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.activities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.activities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("mavxorldubbbac", model.activities().get(0).dependsOn().get(0).activity()); - Assertions - .assertEquals( - DependencyCondition.SUCCEEDED, - model.activities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("vqbvfihnasa", model.activities().get(0).userProperties().get(0).name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ForEachActivityTypeProperties model = - new ForEachActivityTypeProperties() - .withIsSequential(true) - .withBatchCount(1006990717) - .withItems(new Expression().withValue("apsraydl")) - .withActivities( - Arrays - .asList( - new Activity() - .withName("okmakkwqrkaymdgz") - .withDescription("lio") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("mavxorldubbbac") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.SUCCEEDED, - DependencyCondition.SKIPPED, - DependencyCondition.COMPLETED, - DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays - .asList( - new UserProperty().withName("vqbvfihnasa").withValue("dataukegkludfdh"), - new UserProperty().withName("orihqzfjyqadtq").withValue("datatsa"), - new UserProperty().withName("jjfa").withValue("dataplywtgilhxaa"), - new UserProperty().withName("nuufenp").withValue("datatoktnfeghc"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity() - .withName("bjuakdsmwajalsen") - .withDescription("oslvf") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("cceyobjsju") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("vxidmitmjccnjvg") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.SKIPPED, - DependencyCondition.FAILED, - DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("goadtdxdxrkrvmh") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.COMPLETED, - DependencyCondition.SKIPPED, - DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("ftbwmuxc") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.SUCCEEDED, - DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays - .asList( - new UserProperty().withName("httj").withValue("dataqwwlaxhsjwpcjtw"), - new UserProperty().withName("whrzntmzzzavx").withValue("datadkexspoi"), - new UserProperty().withName("vuk").withValue("datatteaisywopkovl"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity() - .withName("angjxbbyqvbdlfzk") - .withDescription("geppxiyovg") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("ggame") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.SKIPPED, DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("xs") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("stxznkbjkjezunrd") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.SKIPPED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays - .asList( - new UserProperty().withName("pummphb").withValue("datap"), - new UserProperty().withName("ive").withValue("datal"), - new UserProperty().withName("ppizyenajjxz").withValue("datadpnersmevhgs"))) - .withAdditionalProperties(mapOf("type", "Activity")))); - model = BinaryData.fromObject(model).toObject(ForEachActivityTypeProperties.class); - Assertions.assertEquals(true, model.isSequential()); - Assertions.assertEquals(1006990717, model.batchCount()); - Assertions.assertEquals("apsraydl", model.items().value()); - Assertions.assertEquals("okmakkwqrkaymdgz", model.activities().get(0).name()); - Assertions.assertEquals("lio", model.activities().get(0).description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.activities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.activities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("mavxorldubbbac", model.activities().get(0).dependsOn().get(0).activity()); - Assertions - .assertEquals( - DependencyCondition.SUCCEEDED, - model.activities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("vqbvfihnasa", model.activities().get(0).userProperties().get(0).name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FormatReadSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FormatReadSettingsTests.java deleted file mode 100644 index b2f6519ca5ce..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FormatReadSettingsTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.FormatReadSettings; -import java.util.HashMap; -import java.util.Map; - -public final class FormatReadSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FormatReadSettings model = - BinaryData - .fromString( - "{\"type\":\"FormatReadSettings\",\"\":{\"pf\":\"dataqdsjjqztrpjme\",\"xkloabc\":\"datataaq\",\"v\":\"dataxqa\",\"bvolivianklqclft\":\"datakrepqasviy\"}}") - .toObject(FormatReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FormatReadSettings model = - new FormatReadSettings().withAdditionalProperties(mapOf("type", "FormatReadSettings")); - model = BinaryData.fromObject(model).toObject(FormatReadSettings.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FormatWriteSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FormatWriteSettingsTests.java deleted file mode 100644 index 7ee89b9d1b95..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FormatWriteSettingsTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.FormatWriteSettings; -import java.util.HashMap; -import java.util.Map; - -public final class FormatWriteSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FormatWriteSettings model = - BinaryData - .fromString( - "{\"type\":\"FormatWriteSettings\",\"\":{\"pbvdlkpzd\":\"dataspqvxzicurufn\",\"nbtqejfq\":\"dataiywwenvxuhzixr\"}}") - .toObject(FormatWriteSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FormatWriteSettings model = - new FormatWriteSettings().withAdditionalProperties(mapOf("type", "FormatWriteSettings")); - model = BinaryData.fromObject(model).toObject(FormatWriteSettings.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FtpReadSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FtpReadSettingsTests.java deleted file mode 100644 index 4920a8a8fcb2..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FtpReadSettingsTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.FtpReadSettings; - -public final class FtpReadSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FtpReadSettings model = - BinaryData - .fromString( - "{\"type\":\"FtpReadSettings\",\"recursive\":\"datapryutxasnigh\",\"wildcardFolderPath\":\"dataikhiihggzqh\",\"wildcardFileName\":\"datatt\",\"enablePartitionDiscovery\":\"dataipfudzntbzg\",\"partitionRootPath\":\"datawhkwypbqnxpohcr\",\"deleteFilesAfterCompletion\":\"databajyuegsbuqdp\",\"fileListPath\":\"dataqec\",\"useBinaryTransfer\":\"datautxtidsxrexba\",\"disableChunking\":\"databm\",\"maxConcurrentConnections\":\"dataopypcuom\",\"disableMetricsCollection\":\"dataucjznnowpvxuuvhw\",\"\":{\"dhlqtqjabwt\":\"dataegphwjyfk\"}}") - .toObject(FtpReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FtpReadSettings model = - new FtpReadSettings() - .withMaxConcurrentConnections("dataopypcuom") - .withDisableMetricsCollection("dataucjznnowpvxuuvhw") - .withRecursive("datapryutxasnigh") - .withWildcardFolderPath("dataikhiihggzqh") - .withWildcardFileName("datatt") - .withEnablePartitionDiscovery("dataipfudzntbzg") - .withPartitionRootPath("datawhkwypbqnxpohcr") - .withDeleteFilesAfterCompletion("databajyuegsbuqdp") - .withFileListPath("dataqec") - .withUseBinaryTransfer("datautxtidsxrexba") - .withDisableChunking("databm"); - model = BinaryData.fromObject(model).toObject(FtpReadSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FtpServerLocationTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FtpServerLocationTests.java deleted file mode 100644 index 049b3f224a42..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FtpServerLocationTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.FtpServerLocation; - -public final class FtpServerLocationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FtpServerLocation model = - BinaryData - .fromString( - "{\"type\":\"FtpServerLocation\",\"folderPath\":\"dataxfjwp\",\"fileName\":\"dataktpmbmxb\",\"\":{\"hxsdplaumydmhwe\":\"datawgzzxljb\",\"xydgtokvqbvwg\":\"datajf\"}}") - .toObject(FtpServerLocation.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FtpServerLocation model = new FtpServerLocation().withFolderPath("dataxfjwp").withFileName("dataktpmbmxb"); - model = BinaryData.fromObject(model).toObject(FtpServerLocation.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GenericDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GenericDatasetTypePropertiesTests.java deleted file mode 100644 index b9ca25397d23..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GenericDatasetTypePropertiesTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.GenericDatasetTypeProperties; - -public final class GenericDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GenericDatasetTypeProperties model = - BinaryData.fromString("{\"tableName\":\"dataypkcpwsrqnn\"}").toObject(GenericDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GenericDatasetTypeProperties model = new GenericDatasetTypeProperties().withTableName("dataypkcpwsrqnn"); - model = BinaryData.fromObject(model).toObject(GenericDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GetDataFactoryOperationStatusResponseTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GetDataFactoryOperationStatusResponseTests.java deleted file mode 100644 index faf096dddd94..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GetDataFactoryOperationStatusResponseTests.java +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.GetDataFactoryOperationStatusResponse; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class GetDataFactoryOperationStatusResponseTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GetDataFactoryOperationStatusResponse model = - BinaryData - .fromString("{\"status\":\"btyi\",\"\":{\"fqjpnqno\":\"datavpi\"}}") - .toObject(GetDataFactoryOperationStatusResponse.class); - Assertions.assertEquals("btyi", model.status()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GetDataFactoryOperationStatusResponse model = - new GetDataFactoryOperationStatusResponse().withStatus("btyi").withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(GetDataFactoryOperationStatusResponse.class); - Assertions.assertEquals("btyi", model.status()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GetMetadataActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GetMetadataActivityTests.java deleted file mode 100644 index d9a2c9cc6e38..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GetMetadataActivityTests.java +++ /dev/null @@ -1,144 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityPolicy; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.FormatReadSettings; -import com.azure.resourcemanager.datafactory.models.GetMetadataActivity; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.StoreReadSettings; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class GetMetadataActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GetMetadataActivity model = - BinaryData - .fromString( - "{\"type\":\"GetMetadata\",\"typeProperties\":{\"dataset\":{\"referenceName\":\"ljajz\",\"parameters\":{\"odgisfejs\":\"datawarbvblatvbjkqy\",\"wi\":\"datap\",\"jwktiyhiyk\":\"dataujyn\"}},\"fieldList\":[\"dataaodifupdafu\",\"datatwopsjrqhgnrxxh\",\"datawtrxpwuxy\",\"datapd\"],\"storeSettings\":{\"type\":\"StoreReadSettings\",\"maxConcurrentConnections\":\"datahgbjukaswgvoa\",\"disableMetricsCollection\":\"datatdt\",\"\":{\"qdliptefdvj\":\"dataafhhiykatjsebcuy\",\"ethyhbnoyexu\":\"databemrjbovquxpdpr\"}},\"formatSettings\":{\"type\":\"FormatReadSettings\",\"\":{\"teklgiqo\":\"datazxo\",\"umo\":\"databl\",\"jmtpgkybdktyvr\":\"datauzxwmw\",\"psc\":\"datamrqbeqzhnpx\"}}},\"linkedServiceName\":{\"referenceName\":\"ygajqmpf\",\"parameters\":{\"nygathv\":\"datauwefz\",\"kwk\":\"datawhrjakdyqxjpzy\"}},\"policy\":{\"timeout\":\"datapbybh\",\"retry\":\"datailbsdgahehk\",\"retryIntervalInSeconds\":1450508499,\"secureInput\":false,\"secureOutput\":false,\"\":{\"phbcurth\":\"datan\"}},\"name\":\"bgavwbqjeto\",\"description\":\"jayvuymib\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"u\",\"dependencyConditions\":[\"Failed\",\"Failed\",\"Failed\"],\"\":{\"hltxtpgqqinkktay\":\"datajhmldvnoxj\",\"klx\":\"datafgbcwawblkkccixs\"}},{\"activity\":\"sqhczokuncqqhbjm\",\"dependencyConditions\":[\"Completed\",\"Skipped\",\"Skipped\",\"Skipped\"],\"\":{\"yfctfsdhmrughm\":\"dataeqzcbqvjejnwwq\"}},{\"activity\":\"ybbhktnuzorxati\",\"dependencyConditions\":[\"Skipped\",\"Succeeded\",\"Succeeded\",\"Failed\"],\"\":{\"emcghorrjaw\":\"datautvitislcfxsgjdi\",\"cfnzpybrflqv\":\"dataczbbvrmvhtmzwgi\"}},{\"activity\":\"vl\",\"dependencyConditions\":[\"Failed\",\"Skipped\"],\"\":{\"qnc\":\"datahupvxthpsugebgb\",\"xypxmke\":\"dataiiwuufofgfqge\",\"fdsogl\":\"datajonasjdaxe\"}}],\"userProperties\":[{\"name\":\"wduwn\",\"value\":\"dataaifwogqwdxtpmfa\"}],\"\":{\"msfnigjoxhz\":\"datazznnk\",\"jyfbutqlotojfvba\":\"datamgmc\",\"jloehhhkxlquupb\":\"dataqwj\",\"eptejryvvuktc\":\"datahuinjymnq\"}}") - .toObject(GetMetadataActivity.class); - Assertions.assertEquals("bgavwbqjeto", model.name()); - Assertions.assertEquals("jayvuymib", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("u", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("wduwn", model.userProperties().get(0).name()); - Assertions.assertEquals("ygajqmpf", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1450508499, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - Assertions.assertEquals("ljajz", model.dataset().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GetMetadataActivity model = - new GetMetadataActivity() - .withName("bgavwbqjeto") - .withDescription("jayvuymib") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("u") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.FAILED, - DependencyCondition.FAILED, - DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("sqhczokuncqqhbjm") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.COMPLETED, - DependencyCondition.SKIPPED, - DependencyCondition.SKIPPED, - DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("ybbhktnuzorxati") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.SKIPPED, - DependencyCondition.SUCCEEDED, - DependencyCondition.SUCCEEDED, - DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("vl") - .withDependencyConditions( - Arrays.asList(DependencyCondition.FAILED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("wduwn").withValue("dataaifwogqwdxtpmfa"))) - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("ygajqmpf") - .withParameters(mapOf("nygathv", "datauwefz", "kwk", "datawhrjakdyqxjpzy"))) - .withPolicy( - new ActivityPolicy() - .withTimeout("datapbybh") - .withRetry("datailbsdgahehk") - .withRetryIntervalInSeconds(1450508499) - .withSecureInput(false) - .withSecureOutput(false) - .withAdditionalProperties(mapOf())) - .withDataset( - new DatasetReference() - .withReferenceName("ljajz") - .withParameters( - mapOf("odgisfejs", "datawarbvblatvbjkqy", "wi", "datap", "jwktiyhiyk", "dataujyn"))) - .withFieldList(Arrays.asList("dataaodifupdafu", "datatwopsjrqhgnrxxh", "datawtrxpwuxy", "datapd")) - .withStoreSettings( - new StoreReadSettings() - .withMaxConcurrentConnections("datahgbjukaswgvoa") - .withDisableMetricsCollection("datatdt") - .withAdditionalProperties(mapOf("type", "StoreReadSettings"))) - .withFormatSettings( - new FormatReadSettings().withAdditionalProperties(mapOf("type", "FormatReadSettings"))); - model = BinaryData.fromObject(model).toObject(GetMetadataActivity.class); - Assertions.assertEquals("bgavwbqjeto", model.name()); - Assertions.assertEquals("jayvuymib", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("u", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("wduwn", model.userProperties().get(0).name()); - Assertions.assertEquals("ygajqmpf", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1450508499, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - Assertions.assertEquals("ljajz", model.dataset().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GetMetadataActivityTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GetMetadataActivityTypePropertiesTests.java deleted file mode 100644 index d4bb9ef628dc..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GetMetadataActivityTypePropertiesTests.java +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.GetMetadataActivityTypeProperties; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import com.azure.resourcemanager.datafactory.models.FormatReadSettings; -import com.azure.resourcemanager.datafactory.models.StoreReadSettings; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class GetMetadataActivityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GetMetadataActivityTypeProperties model = - BinaryData - .fromString( - "{\"dataset\":{\"referenceName\":\"xtpamwjbmrkcq\",\"parameters\":{\"tvovhuifbly\":\"datajj\",\"neusnncnnqifuhsj\":\"dataqycknqmbvssjb\",\"mplt\":\"datadu\"}},\"fieldList\":[\"datafndafrzi\",\"datajcyxzan\"],\"storeSettings\":{\"type\":\"StoreReadSettings\",\"maxConcurrentConnections\":\"dataeyvdrulhworh\",\"disableMetricsCollection\":\"datasqdvmxufrqpaw\",\"\":{\"wu\":\"datadohz\",\"hftlsfwpvflm\":\"datalae\",\"txbrj\":\"datajdu\",\"dmnymfvxfssh\":\"datapeypuq\"}},\"formatSettings\":{\"type\":\"FormatReadSettings\",\"\":{\"zdfjfnree\":\"dataeornzprdgmmgtq\",\"myuiq\":\"datapb\",\"rikdfacf\":\"datazfotfoif\"}}}") - .toObject(GetMetadataActivityTypeProperties.class); - Assertions.assertEquals("xtpamwjbmrkcq", model.dataset().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GetMetadataActivityTypeProperties model = - new GetMetadataActivityTypeProperties() - .withDataset( - new DatasetReference() - .withReferenceName("xtpamwjbmrkcq") - .withParameters( - mapOf("tvovhuifbly", "datajj", "neusnncnnqifuhsj", "dataqycknqmbvssjb", "mplt", "datadu"))) - .withFieldList(Arrays.asList("datafndafrzi", "datajcyxzan")) - .withStoreSettings( - new StoreReadSettings() - .withMaxConcurrentConnections("dataeyvdrulhworh") - .withDisableMetricsCollection("datasqdvmxufrqpaw") - .withAdditionalProperties(mapOf("type", "StoreReadSettings"))) - .withFormatSettings( - new FormatReadSettings().withAdditionalProperties(mapOf("type", "FormatReadSettings"))); - model = BinaryData.fromObject(model).toObject(GetMetadataActivityTypeProperties.class); - Assertions.assertEquals("xtpamwjbmrkcq", model.dataset().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GetSsisObjectMetadataRequestTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GetSsisObjectMetadataRequestTests.java deleted file mode 100644 index 2ae16b8f6d8c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GetSsisObjectMetadataRequestTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.GetSsisObjectMetadataRequest; -import org.junit.jupiter.api.Assertions; - -public final class GetSsisObjectMetadataRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GetSsisObjectMetadataRequest model = - BinaryData - .fromString("{\"metadataPath\":\"jriplrbpbewtghf\"}") - .toObject(GetSsisObjectMetadataRequest.class); - Assertions.assertEquals("jriplrbpbewtghf", model.metadataPath()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GetSsisObjectMetadataRequest model = new GetSsisObjectMetadataRequest().withMetadataPath("jriplrbpbewtghf"); - model = BinaryData.fromObject(model).toObject(GetSsisObjectMetadataRequest.class); - Assertions.assertEquals("jriplrbpbewtghf", model.metadataPath()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GlobalParameterListResponseTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GlobalParameterListResponseTests.java deleted file mode 100644 index 29a52b82a949..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GlobalParameterListResponseTests.java +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.GlobalParameterResourceInner; -import com.azure.resourcemanager.datafactory.models.GlobalParameterListResponse; -import com.azure.resourcemanager.datafactory.models.GlobalParameterSpecification; -import com.azure.resourcemanager.datafactory.models.GlobalParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class GlobalParameterListResponseTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GlobalParameterListResponse model = - BinaryData - .fromString( - "{\"value\":[{\"properties\":{\"mg\":{\"type\":\"String\",\"value\":\"datayrrueqth\"},\"cbbxigdhxi\":{\"type\":\"String\",\"value\":\"datab\"}},\"name\":\"lopedbwdpyqyyb\",\"type\":\"bmdnafcbqwre\",\"etag\":\"ela\",\"id\":\"cigeleohdbvqvw\"}],\"nextLink\":\"jopwbeonrlkwz\"}") - .toObject(GlobalParameterListResponse.class); - Assertions.assertEquals("cigeleohdbvqvw", model.value().get(0).id()); - Assertions.assertEquals(GlobalParameterType.STRING, model.value().get(0).properties().get("mg").type()); - Assertions.assertEquals("jopwbeonrlkwz", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GlobalParameterListResponse model = - new GlobalParameterListResponse() - .withValue( - Arrays - .asList( - new GlobalParameterResourceInner() - .withId("cigeleohdbvqvw") - .withProperties( - mapOf( - "mg", - new GlobalParameterSpecification() - .withType(GlobalParameterType.STRING) - .withValue("datayrrueqth"), - "cbbxigdhxi", - new GlobalParameterSpecification() - .withType(GlobalParameterType.STRING) - .withValue("datab"))))) - .withNextLink("jopwbeonrlkwz"); - model = BinaryData.fromObject(model).toObject(GlobalParameterListResponse.class); - Assertions.assertEquals("cigeleohdbvqvw", model.value().get(0).id()); - Assertions.assertEquals(GlobalParameterType.STRING, model.value().get(0).properties().get("mg").type()); - Assertions.assertEquals("jopwbeonrlkwz", model.nextLink()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GlobalParameterResourceInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GlobalParameterResourceInnerTests.java deleted file mode 100644 index 4949b5c54c0a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GlobalParameterResourceInnerTests.java +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.GlobalParameterResourceInner; -import com.azure.resourcemanager.datafactory.models.GlobalParameterSpecification; -import com.azure.resourcemanager.datafactory.models.GlobalParameterType; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class GlobalParameterResourceInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GlobalParameterResourceInner model = - BinaryData - .fromString( - "{\"properties\":{\"xcptsoqfyiaseqc\":{\"type\":\"Object\",\"value\":\"databxcea\"},\"mvanbwzo\":{\"type\":\"Array\",\"value\":\"datarttzrazisgykiu\"},\"mdptys\":{\"type\":\"String\",\"value\":\"datanrxxbsojklin\"}},\"name\":\"qsgnzxojpsl\",\"type\":\"jgpliuf\",\"etag\":\"woyxqvapcohhou\",\"id\":\"pqojxcx\"}") - .toObject(GlobalParameterResourceInner.class); - Assertions.assertEquals("pqojxcx", model.id()); - Assertions.assertEquals(GlobalParameterType.OBJECT, model.properties().get("xcptsoqfyiaseqc").type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GlobalParameterResourceInner model = - new GlobalParameterResourceInner() - .withId("pqojxcx") - .withProperties( - mapOf( - "xcptsoqfyiaseqc", - new GlobalParameterSpecification().withType(GlobalParameterType.OBJECT).withValue("databxcea"), - "mvanbwzo", - new GlobalParameterSpecification() - .withType(GlobalParameterType.ARRAY) - .withValue("datarttzrazisgykiu"), - "mdptys", - new GlobalParameterSpecification() - .withType(GlobalParameterType.STRING) - .withValue("datanrxxbsojklin"))); - model = BinaryData.fromObject(model).toObject(GlobalParameterResourceInner.class); - Assertions.assertEquals("pqojxcx", model.id()); - Assertions.assertEquals(GlobalParameterType.OBJECT, model.properties().get("xcptsoqfyiaseqc").type()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GlobalParameterSpecificationTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GlobalParameterSpecificationTests.java deleted file mode 100644 index 71d13b237958..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GlobalParameterSpecificationTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.GlobalParameterSpecification; -import com.azure.resourcemanager.datafactory.models.GlobalParameterType; -import org.junit.jupiter.api.Assertions; - -public final class GlobalParameterSpecificationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GlobalParameterSpecification model = - BinaryData - .fromString("{\"type\":\"String\",\"value\":\"datarm\"}") - .toObject(GlobalParameterSpecification.class); - Assertions.assertEquals(GlobalParameterType.STRING, model.type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GlobalParameterSpecification model = - new GlobalParameterSpecification().withType(GlobalParameterType.STRING).withValue("datarm"); - model = BinaryData.fromObject(model).toObject(GlobalParameterSpecification.class); - Assertions.assertEquals(GlobalParameterType.STRING, model.type()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GlobalParametersCreateOrUpdateWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GlobalParametersCreateOrUpdateWithResponseMockTests.java deleted file mode 100644 index 3bd1fbe16e9f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GlobalParametersCreateOrUpdateWithResponseMockTests.java +++ /dev/null @@ -1,98 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.GlobalParameterResource; -import com.azure.resourcemanager.datafactory.models.GlobalParameterSpecification; -import com.azure.resourcemanager.datafactory.models.GlobalParameterType; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class GlobalParametersCreateOrUpdateWithResponseMockTests { - @Test - public void testCreateOrUpdateWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"ijyzhmf\":{\"type\":\"Float\",\"value\":\"datavjvwkzaqqkq\"},\"gxunldbku\":{\"type\":\"Bool\",\"value\":\"datasqiqz\"},\"t\":{\"type\":\"Object\",\"value\":\"datanjiwzqnbjk\"},\"wyyyjage\":{\"type\":\"Float\",\"value\":\"datamfnjuzvww\"}},\"name\":\"ghxjwiggcaim\",\"type\":\"xpaytzqgsaegaahw\",\"etag\":\"rdxhgrg\",\"id\":\"mwkykvoskjixb\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - GlobalParameterResource response = - manager - .globalParameters() - .define("f") - .withExistingFactory("spocutpnyz", "tgkdwvtmmvqliq") - .withProperties( - mapOf( - "puavxidytjmk", - new GlobalParameterSpecification().withType(GlobalParameterType.FLOAT).withValue("datarlji"), - "agfbreyvr", - new GlobalParameterSpecification().withType(GlobalParameterType.ARRAY).withValue("datazgopckm"), - "fryourlywxjvsqz", - new GlobalParameterSpecification() - .withType(GlobalParameterType.ARRAY) - .withValue("datacikwqtl"))) - .create(); - - Assertions.assertEquals("mwkykvoskjixb", response.id()); - Assertions.assertEquals(GlobalParameterType.FLOAT, response.properties().get("ijyzhmf").type()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GlobalParametersDeleteWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GlobalParametersDeleteWithResponseMockTests.java deleted file mode 100644 index 7af35edc1965..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GlobalParametersDeleteWithResponseMockTests.java +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class GlobalParametersDeleteWithResponseMockTests { - @Test - public void testDeleteWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager - .globalParameters() - .deleteWithResponse("hpfpvadyxjc", "khgstohzvrqbzlm", "wufhduniqum", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GlobalParametersGetWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GlobalParametersGetWithResponseMockTests.java deleted file mode 100644 index d26f5d82645a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GlobalParametersGetWithResponseMockTests.java +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.GlobalParameterResource; -import com.azure.resourcemanager.datafactory.models.GlobalParameterType; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class GlobalParametersGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"dewf\":{\"type\":\"Array\",\"value\":\"databmqgimwivqph\"},\"zzak\":{\"type\":\"Int\",\"value\":\"dataajpojz\"},\"vykysavevnerpyzu\":{\"type\":\"Object\",\"value\":\"datatwnhpcfsqdzi\"},\"ot\":{\"type\":\"Object\",\"value\":\"datavinvryxwzxj\"}},\"name\":\"iwm\",\"type\":\"dxw\",\"etag\":\"mda\",\"id\":\"giglkinsrysga\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - GlobalParameterResource response = - manager - .globalParameters() - .getWithResponse("wasktzrdxxsbbd", "okjnbcdnjexcyhs", "vairau", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("giglkinsrysga", response.id()); - Assertions.assertEquals(GlobalParameterType.ARRAY, response.properties().get("dewf").type()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GlobalParametersListByFactoryMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GlobalParametersListByFactoryMockTests.java deleted file mode 100644 index 4bc4dd1ade81..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GlobalParametersListByFactoryMockTests.java +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.GlobalParameterResource; -import com.azure.resourcemanager.datafactory.models.GlobalParameterType; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class GlobalParametersListByFactoryMockTests { - @Test - public void testListByFactory() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"properties\":{\"l\":{\"type\":\"Array\",\"value\":\"datahrs\"}},\"name\":\"wfpq\",\"type\":\"sxyugid\",\"etag\":\"sjivdtrtkqqdqxsl\",\"id\":\"tt\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = - manager.globalParameters().listByFactory("ucrynsqxyowwr", "xe", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("tt", response.iterator().next().id()); - Assertions.assertEquals(GlobalParameterType.ARRAY, response.iterator().next().properties().get("l").type()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleAdWordsObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleAdWordsObjectDatasetTests.java deleted file mode 100644 index 1191004eff88..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleAdWordsObjectDatasetTests.java +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.GoogleAdWordsObjectDataset; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class GoogleAdWordsObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GoogleAdWordsObjectDataset model = - BinaryData - .fromString( - "{\"type\":\"GoogleAdWordsObject\",\"typeProperties\":{\"tableName\":\"datapdcbgrufsdbkuxkd\"},\"description\":\"m\",\"structure\":\"dataivxwkscwbshfih\",\"schema\":\"datamsceylaulpue\",\"linkedServiceName\":{\"referenceName\":\"yi\",\"parameters\":{\"xdslspgnndef\":\"datatye\",\"yltaprqtfkmvzrk\":\"datahsbyhwlvsv\"}},\"parameters\":{\"ukkmv\":{\"type\":\"Array\",\"defaultValue\":\"datadwfcuhbgftfv\"},\"hhxlsube\":{\"type\":\"Bool\",\"defaultValue\":\"dataegpdqrjylwqqsem\"},\"wyktdp\":{\"type\":\"Int\",\"defaultValue\":\"databejrd\"},\"jkykqf\":{\"type\":\"Object\",\"defaultValue\":\"dataufifnjwjh\"}},\"annotations\":[\"datacyk\"],\"folder\":{\"name\":\"smkb\"},\"\":{\"ejnoignyd\":\"datarihpjaxhcb\",\"bnmrmhkipjardvdp\":\"datakrnp\",\"pbie\":\"datagwdxmiael\",\"nddvjlpbj\":\"datal\"}}") - .toObject(GoogleAdWordsObjectDataset.class); - Assertions.assertEquals("m", model.description()); - Assertions.assertEquals("yi", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("ukkmv").type()); - Assertions.assertEquals("smkb", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GoogleAdWordsObjectDataset model = - new GoogleAdWordsObjectDataset() - .withDescription("m") - .withStructure("dataivxwkscwbshfih") - .withSchema("datamsceylaulpue") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("yi") - .withParameters(mapOf("xdslspgnndef", "datatye", "yltaprqtfkmvzrk", "datahsbyhwlvsv"))) - .withParameters( - mapOf( - "ukkmv", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datadwfcuhbgftfv"), - "hhxlsube", - new ParameterSpecification() - .withType(ParameterType.BOOL) - .withDefaultValue("dataegpdqrjylwqqsem"), - "wyktdp", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("databejrd"), - "jkykqf", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("dataufifnjwjh"))) - .withAnnotations(Arrays.asList("datacyk")) - .withFolder(new DatasetFolder().withName("smkb")) - .withTableName("datapdcbgrufsdbkuxkd"); - model = BinaryData.fromObject(model).toObject(GoogleAdWordsObjectDataset.class); - Assertions.assertEquals("m", model.description()); - Assertions.assertEquals("yi", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("ukkmv").type()); - Assertions.assertEquals("smkb", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleAdWordsSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleAdWordsSourceTests.java deleted file mode 100644 index f6215ee0df62..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleAdWordsSourceTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.GoogleAdWordsSource; - -public final class GoogleAdWordsSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GoogleAdWordsSource model = - BinaryData - .fromString( - "{\"type\":\"GoogleAdWordsSource\",\"query\":\"datahwfrmhook\",\"queryTimeout\":\"datadgfexakct\",\"additionalColumns\":\"datapszdn\",\"sourceRetryCount\":\"datao\",\"sourceRetryWait\":\"dataqxmdievkmrso\",\"maxConcurrentConnections\":\"datayiheheimuqqmd\",\"disableMetricsCollection\":\"datawxfmrm\",\"\":{\"sz\":\"dataypsypmthf\"}}") - .toObject(GoogleAdWordsSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GoogleAdWordsSource model = - new GoogleAdWordsSource() - .withSourceRetryCount("datao") - .withSourceRetryWait("dataqxmdievkmrso") - .withMaxConcurrentConnections("datayiheheimuqqmd") - .withDisableMetricsCollection("datawxfmrm") - .withQueryTimeout("datadgfexakct") - .withAdditionalColumns("datapszdn") - .withQuery("datahwfrmhook"); - model = BinaryData.fromObject(model).toObject(GoogleAdWordsSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleBigQueryDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleBigQueryDatasetTypePropertiesTests.java deleted file mode 100644 index 3fefdeec6d19..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleBigQueryDatasetTypePropertiesTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.GoogleBigQueryDatasetTypeProperties; - -public final class GoogleBigQueryDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GoogleBigQueryDatasetTypeProperties model = - BinaryData - .fromString( - "{\"tableName\":\"dataaqermnddlir\",\"table\":\"dataclsaqifepdu\",\"dataset\":\"dataevivkigliokl\"}") - .toObject(GoogleBigQueryDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GoogleBigQueryDatasetTypeProperties model = - new GoogleBigQueryDatasetTypeProperties() - .withTableName("dataaqermnddlir") - .withTable("dataclsaqifepdu") - .withDataset("dataevivkigliokl"); - model = BinaryData.fromObject(model).toObject(GoogleBigQueryDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleBigQueryObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleBigQueryObjectDatasetTests.java deleted file mode 100644 index b7f7ecef1f85..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleBigQueryObjectDatasetTests.java +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.GoogleBigQueryObjectDataset; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class GoogleBigQueryObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GoogleBigQueryObjectDataset model = - BinaryData - .fromString( - "{\"type\":\"GoogleBigQueryObject\",\"typeProperties\":{\"tableName\":\"datamemfvrcclclfkfvy\",\"table\":\"datammw\",\"dataset\":\"datapoipjylxtebvse\"},\"description\":\"zvvpaysqwh\",\"structure\":\"datacyandb\",\"schema\":\"databntcvpvd\",\"linkedServiceName\":{\"referenceName\":\"moqqctfvxuosqp\",\"parameters\":{\"wyjzuakkiubeqk\":\"datapjpjmsbzzjsnyf\"}},\"parameters\":{\"hogsezre\":{\"type\":\"Int\",\"defaultValue\":\"dataglhxsoanguhb\"},\"itwkejmg\":{\"type\":\"Float\",\"defaultValue\":\"datagpdtyzpx\"},\"skvsdfvhryp\":{\"type\":\"Array\",\"defaultValue\":\"datadupe\"}},\"annotations\":[\"datammpkapvnpeukg\",\"datamfakeqn\",\"datatromlcsvk\",\"datafpsrowshvfxj\"],\"folder\":{\"name\":\"awmv\"},\"\":{\"znyjyu\":\"dataabjropxfqdml\",\"wgdp\":\"dataql\",\"iri\":\"datah\",\"dpkwdtobpgdcid\":\"dataamqtrhqdoxdegacd\"}}") - .toObject(GoogleBigQueryObjectDataset.class); - Assertions.assertEquals("zvvpaysqwh", model.description()); - Assertions.assertEquals("moqqctfvxuosqp", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("hogsezre").type()); - Assertions.assertEquals("awmv", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GoogleBigQueryObjectDataset model = - new GoogleBigQueryObjectDataset() - .withDescription("zvvpaysqwh") - .withStructure("datacyandb") - .withSchema("databntcvpvd") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("moqqctfvxuosqp") - .withParameters(mapOf("wyjzuakkiubeqk", "datapjpjmsbzzjsnyf"))) - .withParameters( - mapOf( - "hogsezre", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("dataglhxsoanguhb"), - "itwkejmg", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datagpdtyzpx"), - "skvsdfvhryp", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datadupe"))) - .withAnnotations(Arrays.asList("datammpkapvnpeukg", "datamfakeqn", "datatromlcsvk", "datafpsrowshvfxj")) - .withFolder(new DatasetFolder().withName("awmv")) - .withTableName("datamemfvrcclclfkfvy") - .withTable("datammw") - .withDataset("datapoipjylxtebvse"); - model = BinaryData.fromObject(model).toObject(GoogleBigQueryObjectDataset.class); - Assertions.assertEquals("zvvpaysqwh", model.description()); - Assertions.assertEquals("moqqctfvxuosqp", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("hogsezre").type()); - Assertions.assertEquals("awmv", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleBigQuerySourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleBigQuerySourceTests.java deleted file mode 100644 index 30990b26fa63..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleBigQuerySourceTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.GoogleBigQuerySource; - -public final class GoogleBigQuerySourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GoogleBigQuerySource model = - BinaryData - .fromString( - "{\"type\":\"GoogleBigQuerySource\",\"query\":\"dataiupwktnsyrrybd\",\"queryTimeout\":\"dataivkssu\",\"additionalColumns\":\"datazihdkq\",\"sourceRetryCount\":\"datawthw\",\"sourceRetryWait\":\"dataijgasnafdjinw\",\"maxConcurrentConnections\":\"datarnjgs\",\"disableMetricsCollection\":\"datazbdhr\",\"\":{\"ygcahijbjj\":\"dataan\",\"jtyhe\":\"dataxsvjzbggsnan\",\"gaimktns\":\"datazxzazofronsxj\"}}") - .toObject(GoogleBigQuerySource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GoogleBigQuerySource model = - new GoogleBigQuerySource() - .withSourceRetryCount("datawthw") - .withSourceRetryWait("dataijgasnafdjinw") - .withMaxConcurrentConnections("datarnjgs") - .withDisableMetricsCollection("datazbdhr") - .withQueryTimeout("dataivkssu") - .withAdditionalColumns("datazihdkq") - .withQuery("dataiupwktnsyrrybd"); - model = BinaryData.fromObject(model).toObject(GoogleBigQuerySource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleCloudStorageLocationTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleCloudStorageLocationTests.java deleted file mode 100644 index efe82d3a7cda..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleCloudStorageLocationTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.GoogleCloudStorageLocation; - -public final class GoogleCloudStorageLocationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GoogleCloudStorageLocation model = - BinaryData - .fromString( - "{\"type\":\"GoogleCloudStorageLocation\",\"bucketName\":\"datattnzqsaq\",\"version\":\"databgszplusdek\",\"folderPath\":\"datazzmssgpgv\",\"fileName\":\"datayejidbdqzsqun\",\"\":{\"snmr\":\"dataztlvv\",\"wfkcauxuvavcpf\":\"datakyjtrepw\",\"xlu\":\"datadofuckclb\",\"ngojfsqebuuxjx\":\"datavsolzwil\"}}") - .toObject(GoogleCloudStorageLocation.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GoogleCloudStorageLocation model = - new GoogleCloudStorageLocation() - .withFolderPath("datazzmssgpgv") - .withFileName("datayejidbdqzsqun") - .withBucketName("datattnzqsaq") - .withVersion("databgszplusdek"); - model = BinaryData.fromObject(model).toObject(GoogleCloudStorageLocation.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleCloudStorageReadSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleCloudStorageReadSettingsTests.java deleted file mode 100644 index a0a217fa0204..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleCloudStorageReadSettingsTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.GoogleCloudStorageReadSettings; - -public final class GoogleCloudStorageReadSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GoogleCloudStorageReadSettings model = - BinaryData - .fromString( - "{\"type\":\"GoogleCloudStorageReadSettings\",\"recursive\":\"dataijpjiudnustbmox\",\"wildcardFolderPath\":\"datagkdnhbhuepu\",\"wildcardFileName\":\"datal\",\"prefix\":\"dataqzjvfrhyxl\",\"fileListPath\":\"datayousqmernbjp\",\"enablePartitionDiscovery\":\"datamemkyouwmj\",\"partitionRootPath\":\"datamkchjdxrbbhukx\",\"deleteFilesAfterCompletion\":\"datahyr\",\"modifiedDatetimeStart\":\"dataqpgadesnesg\",\"modifiedDatetimeEnd\":\"datadvgxte\",\"maxConcurrentConnections\":\"datasictoq\",\"disableMetricsCollection\":\"datazmznoe\",\"\":{\"b\":\"datauyqbzjyzajd\",\"x\":\"databp\"}}") - .toObject(GoogleCloudStorageReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GoogleCloudStorageReadSettings model = - new GoogleCloudStorageReadSettings() - .withMaxConcurrentConnections("datasictoq") - .withDisableMetricsCollection("datazmznoe") - .withRecursive("dataijpjiudnustbmox") - .withWildcardFolderPath("datagkdnhbhuepu") - .withWildcardFileName("datal") - .withPrefix("dataqzjvfrhyxl") - .withFileListPath("datayousqmernbjp") - .withEnablePartitionDiscovery("datamemkyouwmj") - .withPartitionRootPath("datamkchjdxrbbhukx") - .withDeleteFilesAfterCompletion("datahyr") - .withModifiedDatetimeStart("dataqpgadesnesg") - .withModifiedDatetimeEnd("datadvgxte"); - model = BinaryData.fromObject(model).toObject(GoogleCloudStorageReadSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GreenplumDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GreenplumDatasetTypePropertiesTests.java deleted file mode 100644 index abaab9d39083..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GreenplumDatasetTypePropertiesTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.GreenplumDatasetTypeProperties; - -public final class GreenplumDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GreenplumDatasetTypeProperties model = - BinaryData - .fromString("{\"tableName\":\"dataqicmdrgcuzjmvk\",\"table\":\"datar\",\"schema\":\"dataqhgcm\"}") - .toObject(GreenplumDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GreenplumDatasetTypeProperties model = - new GreenplumDatasetTypeProperties() - .withTableName("dataqicmdrgcuzjmvk") - .withTable("datar") - .withSchema("dataqhgcm"); - model = BinaryData.fromObject(model).toObject(GreenplumDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GreenplumSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GreenplumSourceTests.java deleted file mode 100644 index b3787dc0d142..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GreenplumSourceTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.GreenplumSource; - -public final class GreenplumSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GreenplumSource model = - BinaryData - .fromString( - "{\"type\":\"GreenplumSource\",\"query\":\"dataszbe\",\"queryTimeout\":\"datahxikrgokyngarwz\",\"additionalColumns\":\"datazjxgassmna\",\"sourceRetryCount\":\"datapolueylqysgmiix\",\"sourceRetryWait\":\"dataekcwec\",\"maxConcurrentConnections\":\"datatkdginm\",\"disableMetricsCollection\":\"datagp\",\"\":{\"wrwvbqv\":\"dataqccey\",\"iqfaxtljpyzcgugs\":\"datacqgqrsopq\",\"vslocdkpvv\":\"datapvyktfuhfaabi\",\"xnzjzashhiz\":\"dataqlkh\"}}") - .toObject(GreenplumSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GreenplumSource model = - new GreenplumSource() - .withSourceRetryCount("datapolueylqysgmiix") - .withSourceRetryWait("dataekcwec") - .withMaxConcurrentConnections("datatkdginm") - .withDisableMetricsCollection("datagp") - .withQueryTimeout("datahxikrgokyngarwz") - .withAdditionalColumns("datazjxgassmna") - .withQuery("dataszbe"); - model = BinaryData.fromObject(model).toObject(GreenplumSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GreenplumTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GreenplumTableDatasetTests.java deleted file mode 100644 index 44c198a96ad8..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GreenplumTableDatasetTests.java +++ /dev/null @@ -1,79 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.GreenplumTableDataset; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class GreenplumTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GreenplumTableDataset model = - BinaryData - .fromString( - "{\"type\":\"GreenplumTable\",\"typeProperties\":{\"tableName\":\"datafpxeswctlfytb\",\"table\":\"dataytvnpbgcesfd\",\"schema\":\"dataclmowurofo\"},\"description\":\"b\",\"structure\":\"datazzwweoblb\",\"schema\":\"dataq\",\"linkedServiceName\":{\"referenceName\":\"hixcc\",\"parameters\":{\"xmyqzyqepgbb\":\"datasogvy\",\"dpwmgwxwukfjvqg\":\"datadsluokcevoxd\",\"gyphheovejkpalec\":\"dataaxseisvv\",\"pu\":\"datatlthrt\"}},\"parameters\":{\"oll\":{\"type\":\"Object\",\"defaultValue\":\"datagrqefnq\"}},\"annotations\":[\"datarmuzemb\",\"dataqieh\",\"datahjofy\"],\"folder\":{\"name\":\"axoxlorx\"},\"\":{\"glyyhrgmabspmlu\":\"dataqcxuthvp\",\"kedputocrb\":\"datayju\"}}") - .toObject(GreenplumTableDataset.class); - Assertions.assertEquals("b", model.description()); - Assertions.assertEquals("hixcc", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("oll").type()); - Assertions.assertEquals("axoxlorx", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GreenplumTableDataset model = - new GreenplumTableDataset() - .withDescription("b") - .withStructure("datazzwweoblb") - .withSchema("dataq") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("hixcc") - .withParameters( - mapOf( - "xmyqzyqepgbb", - "datasogvy", - "dpwmgwxwukfjvqg", - "datadsluokcevoxd", - "gyphheovejkpalec", - "dataaxseisvv", - "pu", - "datatlthrt"))) - .withParameters( - mapOf( - "oll", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datagrqefnq"))) - .withAnnotations(Arrays.asList("datarmuzemb", "dataqieh", "datahjofy")) - .withFolder(new DatasetFolder().withName("axoxlorx")) - .withTableName("datafpxeswctlfytb") - .withTable("dataytvnpbgcesfd") - .withSchemaTypePropertiesSchema("dataclmowurofo"); - model = BinaryData.fromObject(model).toObject(GreenplumTableDataset.class); - Assertions.assertEquals("b", model.description()); - Assertions.assertEquals("hixcc", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("oll").type()); - Assertions.assertEquals("axoxlorx", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HBaseObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HBaseObjectDatasetTests.java deleted file mode 100644 index a3068ac5225d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HBaseObjectDatasetTests.java +++ /dev/null @@ -1,83 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.HBaseObjectDataset; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class HBaseObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HBaseObjectDataset model = - BinaryData - .fromString( - "{\"type\":\"HBaseObject\",\"typeProperties\":{\"tableName\":\"dataksqimybq\"},\"description\":\"fiomhcaqpvhs\",\"structure\":\"datapeu\",\"schema\":\"datafdswbss\",\"linkedServiceName\":{\"referenceName\":\"g\",\"parameters\":{\"jbpwjwzqgipdz\":\"datamosqmf\",\"dq\":\"datamzkhxfpzcu\"}},\"parameters\":{\"ncoqxtvytzq\":{\"type\":\"Object\",\"defaultValue\":\"datavvlyibweuaugtxl\"},\"zbdbrlbo\":{\"type\":\"Object\",\"defaultValue\":\"datadjvzmxyrazzstjvc\"},\"upmwxdsokrlnrpey\":{\"type\":\"Float\",\"defaultValue\":\"datayolacbibtkeie\"},\"wvunknsgvx\":{\"type\":\"String\",\"defaultValue\":\"dataiulddgiqlnhcxw\"}},\"annotations\":[\"datameatrtcqyfjvifb\",\"dataojtehqyo\",\"datatrcoufk\",\"datambhukdfpknvk\"],\"folder\":{\"name\":\"zje\"},\"\":{\"hzjlrknckkfxm\":\"datameo\"}}") - .toObject(HBaseObjectDataset.class); - Assertions.assertEquals("fiomhcaqpvhs", model.description()); - Assertions.assertEquals("g", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("ncoqxtvytzq").type()); - Assertions.assertEquals("zje", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HBaseObjectDataset model = - new HBaseObjectDataset() - .withDescription("fiomhcaqpvhs") - .withStructure("datapeu") - .withSchema("datafdswbss") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("g") - .withParameters(mapOf("jbpwjwzqgipdz", "datamosqmf", "dq", "datamzkhxfpzcu"))) - .withParameters( - mapOf( - "ncoqxtvytzq", - new ParameterSpecification() - .withType(ParameterType.OBJECT) - .withDefaultValue("datavvlyibweuaugtxl"), - "zbdbrlbo", - new ParameterSpecification() - .withType(ParameterType.OBJECT) - .withDefaultValue("datadjvzmxyrazzstjvc"), - "upmwxdsokrlnrpey", - new ParameterSpecification() - .withType(ParameterType.FLOAT) - .withDefaultValue("datayolacbibtkeie"), - "wvunknsgvx", - new ParameterSpecification() - .withType(ParameterType.STRING) - .withDefaultValue("dataiulddgiqlnhcxw"))) - .withAnnotations( - Arrays.asList("datameatrtcqyfjvifb", "dataojtehqyo", "datatrcoufk", "datambhukdfpknvk")) - .withFolder(new DatasetFolder().withName("zje")) - .withTableName("dataksqimybq"); - model = BinaryData.fromObject(model).toObject(HBaseObjectDataset.class); - Assertions.assertEquals("fiomhcaqpvhs", model.description()); - Assertions.assertEquals("g", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("ncoqxtvytzq").type()); - Assertions.assertEquals("zje", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HBaseSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HBaseSourceTests.java deleted file mode 100644 index eea16242ccd4..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HBaseSourceTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.HBaseSource; - -public final class HBaseSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HBaseSource model = - BinaryData - .fromString( - "{\"type\":\"HBaseSource\",\"query\":\"datamibwzuhyda\",\"queryTimeout\":\"datakgwtbfxxsfj\",\"additionalColumns\":\"dataascjighmkdsv\",\"sourceRetryCount\":\"datayhtiyxeh\",\"sourceRetryWait\":\"dataizoybtehky\",\"maxConcurrentConnections\":\"datanmmyznw\",\"disableMetricsCollection\":\"datafqwkqulkzovqohwi\",\"\":{\"nsjjjcddsv\":\"dataqxjxlssosndnyp\",\"jhpmajg\":\"datadbfniqxbc\",\"jwjhmtca\":\"datazpdioddtjylimz\"}}") - .toObject(HBaseSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HBaseSource model = - new HBaseSource() - .withSourceRetryCount("datayhtiyxeh") - .withSourceRetryWait("dataizoybtehky") - .withMaxConcurrentConnections("datanmmyznw") - .withDisableMetricsCollection("datafqwkqulkzovqohwi") - .withQueryTimeout("datakgwtbfxxsfj") - .withAdditionalColumns("dataascjighmkdsv") - .withQuery("datamibwzuhyda"); - model = BinaryData.fromObject(model).toObject(HBaseSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightHiveActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightHiveActivityTests.java deleted file mode 100644 index ea1b3c98fed2..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightHiveActivityTests.java +++ /dev/null @@ -1,182 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityPolicy; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.HDInsightActivityDebugInfoOption; -import com.azure.resourcemanager.datafactory.models.HDInsightHiveActivity; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class HDInsightHiveActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HDInsightHiveActivity model = - BinaryData - .fromString( - "{\"type\":\"HDInsightHive\",\"typeProperties\":{\"storageLinkedServices\":[{\"referenceName\":\"hyoigzwed\",\"parameters\":{\"zdmhepfjdiwzgw\":\"dataratvpkgawrmuj\",\"chvqwhscvaqdxgel\":\"dataum\"}},{\"referenceName\":\"j\",\"parameters\":{\"aylkrastbks\":\"dataqkgavgoullx\",\"dxdtxbrdb\":\"datakziebmwyodfmpl\",\"pf\":\"datawqt\",\"kdoukqsc\":\"datafrfvhbbnoevkkr\"}},{\"referenceName\":\"dsjgows\",\"parameters\":{\"cexpopqy\":\"datauapeqlhhmbyf\"}},{\"referenceName\":\"icesqpvmoxilh\",\"parameters\":{\"nrbngc\":\"dataiqsriubemxmuygmr\",\"mowvcnvfgqxq\":\"datafmophtkyzsgayn\",\"roqxrvycjdni\":\"dataysuapdns\"}}],\"arguments\":[\"datagyxmpmsacbamtoqs\",\"dataamoyxdigk\",\"datagz\",\"dataylqhqeosxdsxil\"],\"getDebugInfo\":\"None\",\"scriptPath\":\"datattd\",\"scriptLinkedService\":{\"referenceName\":\"gkaohhttty\",\"parameters\":{\"i\":\"dataidzjjjfcyskpnkkx\",\"hvtpmvppvgrigje\":\"databxsmfvltboc\",\"tfmfkuvybemo\":\"datarlgkoqbzrclar\",\"kzvzq\":\"dataamshqvku\"}},\"defines\":{\"dbeanigozjrcx\":\"datajdsnv\"},\"variables\":{\"almzpfylqevwwvz\":\"datag\",\"gjl\":\"datapdxcizrop\",\"q\":\"dataecffb\"},\"queryTimeout\":214972411},\"linkedServiceName\":{\"referenceName\":\"nstqwnpeg\",\"parameters\":{\"beekzyebpatwbbf\":\"datadqeflvdfaqcqlex\",\"nwohlcahhfuydgd\":\"datadfl\",\"bpduzeebde\":\"dataitavgayuspzlcv\"}},\"policy\":{\"timeout\":\"datawkhruzz\",\"retry\":\"databbozivfoy\",\"retryIntervalInSeconds\":945668794,\"secureInput\":false,\"secureOutput\":false,\"\":{\"vvscbpkmo\":\"datasxsqq\"}},\"name\":\"dukp\",\"description\":\"yibwuzvmors\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"zuboigorwpbbjz\",\"dependencyConditions\":[\"Completed\",\"Failed\",\"Skipped\"],\"\":{\"nnzpvjwegov\":\"datagk\"}},{\"activity\":\"ceqyrajdvvs\",\"dependencyConditions\":[\"Completed\",\"Skipped\",\"Succeeded\",\"Completed\"],\"\":{\"chvwwcha\":\"datacaz\",\"hayfx\":\"dataztvotf\"}}],\"userProperties\":[{\"name\":\"xxefzliguwqos\",\"value\":\"datacmfm\"},{\"name\":\"nlj\",\"value\":\"datagjcn\"},{\"name\":\"a\",\"value\":\"datam\"}],\"\":{\"wpnpunr\":\"datavskn\"}}") - .toObject(HDInsightHiveActivity.class); - Assertions.assertEquals("dukp", model.name()); - Assertions.assertEquals("yibwuzvmors", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.onInactiveMarkAs()); - Assertions.assertEquals("zuboigorwpbbjz", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("xxefzliguwqos", model.userProperties().get(0).name()); - Assertions.assertEquals("nstqwnpeg", model.linkedServiceName().referenceName()); - Assertions.assertEquals(945668794, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - Assertions.assertEquals("hyoigzwed", model.storageLinkedServices().get(0).referenceName()); - Assertions.assertEquals(HDInsightActivityDebugInfoOption.NONE, model.getDebugInfo()); - Assertions.assertEquals("gkaohhttty", model.scriptLinkedService().referenceName()); - Assertions.assertEquals(214972411, model.queryTimeout()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HDInsightHiveActivity model = - new HDInsightHiveActivity() - .withName("dukp") - .withDescription("yibwuzvmors") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("zuboigorwpbbjz") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.COMPLETED, - DependencyCondition.FAILED, - DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("ceqyrajdvvs") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.COMPLETED, - DependencyCondition.SKIPPED, - DependencyCondition.SUCCEEDED, - DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays - .asList( - new UserProperty().withName("xxefzliguwqos").withValue("datacmfm"), - new UserProperty().withName("nlj").withValue("datagjcn"), - new UserProperty().withName("a").withValue("datam"))) - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("nstqwnpeg") - .withParameters( - mapOf( - "beekzyebpatwbbf", - "datadqeflvdfaqcqlex", - "nwohlcahhfuydgd", - "datadfl", - "bpduzeebde", - "dataitavgayuspzlcv"))) - .withPolicy( - new ActivityPolicy() - .withTimeout("datawkhruzz") - .withRetry("databbozivfoy") - .withRetryIntervalInSeconds(945668794) - .withSecureInput(false) - .withSecureOutput(false) - .withAdditionalProperties(mapOf())) - .withStorageLinkedServices( - Arrays - .asList( - new LinkedServiceReference() - .withReferenceName("hyoigzwed") - .withParameters( - mapOf("zdmhepfjdiwzgw", "dataratvpkgawrmuj", "chvqwhscvaqdxgel", "dataum")), - new LinkedServiceReference() - .withReferenceName("j") - .withParameters( - mapOf( - "aylkrastbks", - "dataqkgavgoullx", - "dxdtxbrdb", - "datakziebmwyodfmpl", - "pf", - "datawqt", - "kdoukqsc", - "datafrfvhbbnoevkkr")), - new LinkedServiceReference() - .withReferenceName("dsjgows") - .withParameters(mapOf("cexpopqy", "datauapeqlhhmbyf")), - new LinkedServiceReference() - .withReferenceName("icesqpvmoxilh") - .withParameters( - mapOf( - "nrbngc", - "dataiqsriubemxmuygmr", - "mowvcnvfgqxq", - "datafmophtkyzsgayn", - "roqxrvycjdni", - "dataysuapdns")))) - .withArguments(Arrays.asList("datagyxmpmsacbamtoqs", "dataamoyxdigk", "datagz", "dataylqhqeosxdsxil")) - .withGetDebugInfo(HDInsightActivityDebugInfoOption.NONE) - .withScriptPath("datattd") - .withScriptLinkedService( - new LinkedServiceReference() - .withReferenceName("gkaohhttty") - .withParameters( - mapOf( - "i", - "dataidzjjjfcyskpnkkx", - "hvtpmvppvgrigje", - "databxsmfvltboc", - "tfmfkuvybemo", - "datarlgkoqbzrclar", - "kzvzq", - "dataamshqvku"))) - .withDefines(mapOf("dbeanigozjrcx", "datajdsnv")) - .withVariables(mapOf("almzpfylqevwwvz", "datag", "gjl", "datapdxcizrop", "q", "dataecffb")) - .withQueryTimeout(214972411); - model = BinaryData.fromObject(model).toObject(HDInsightHiveActivity.class); - Assertions.assertEquals("dukp", model.name()); - Assertions.assertEquals("yibwuzvmors", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.onInactiveMarkAs()); - Assertions.assertEquals("zuboigorwpbbjz", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("xxefzliguwqos", model.userProperties().get(0).name()); - Assertions.assertEquals("nstqwnpeg", model.linkedServiceName().referenceName()); - Assertions.assertEquals(945668794, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - Assertions.assertEquals("hyoigzwed", model.storageLinkedServices().get(0).referenceName()); - Assertions.assertEquals(HDInsightActivityDebugInfoOption.NONE, model.getDebugInfo()); - Assertions.assertEquals("gkaohhttty", model.scriptLinkedService().referenceName()); - Assertions.assertEquals(214972411, model.queryTimeout()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightHiveActivityTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightHiveActivityTypePropertiesTests.java deleted file mode 100644 index ba4cc76f1fa4..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightHiveActivityTypePropertiesTests.java +++ /dev/null @@ -1,79 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.HDInsightHiveActivityTypeProperties; -import com.azure.resourcemanager.datafactory.models.HDInsightActivityDebugInfoOption; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class HDInsightHiveActivityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HDInsightHiveActivityTypeProperties model = - BinaryData - .fromString( - "{\"storageLinkedServices\":[{\"referenceName\":\"nhbxvvufq\",\"parameters\":{\"srcqdthmlqa\":\"datauosajq\",\"akc\":\"datadlcukdmrvr\",\"tqgabbx\":\"datalsnprda\",\"pkxbwobovexsnm\":\"dataxacgm\"}}],\"arguments\":[\"databmujlsztpygq\",\"datakdl\",\"datasn\"],\"getDebugInfo\":\"None\",\"scriptPath\":\"dataimksfejzmyvl\",\"scriptLinkedService\":{\"referenceName\":\"mngxzpdnbjov\",\"parameters\":{\"imyizdglzzaufin\":\"datavtnbtvlgkjfkaoe\",\"ntjgpyvjgsjyjn\":\"datavyxyrykn\"}},\"defines\":{\"vpamfpini\":\"databhwrncxwzuer\",\"kmfb\":\"datapb\",\"yl\":\"datauu\",\"vnlbjfsol\":\"datage\"},\"variables\":{\"lnhxr\":\"datau\",\"l\":\"datajshicvrmwbgpc\",\"pboaevtxi\":\"databxppvpgsrfshkjg\"},\"queryTimeout\":1275464615}") - .toObject(HDInsightHiveActivityTypeProperties.class); - Assertions.assertEquals("nhbxvvufq", model.storageLinkedServices().get(0).referenceName()); - Assertions.assertEquals(HDInsightActivityDebugInfoOption.NONE, model.getDebugInfo()); - Assertions.assertEquals("mngxzpdnbjov", model.scriptLinkedService().referenceName()); - Assertions.assertEquals(1275464615, model.queryTimeout()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HDInsightHiveActivityTypeProperties model = - new HDInsightHiveActivityTypeProperties() - .withStorageLinkedServices( - Arrays - .asList( - new LinkedServiceReference() - .withReferenceName("nhbxvvufq") - .withParameters( - mapOf( - "srcqdthmlqa", - "datauosajq", - "akc", - "datadlcukdmrvr", - "tqgabbx", - "datalsnprda", - "pkxbwobovexsnm", - "dataxacgm")))) - .withArguments(Arrays.asList("databmujlsztpygq", "datakdl", "datasn")) - .withGetDebugInfo(HDInsightActivityDebugInfoOption.NONE) - .withScriptPath("dataimksfejzmyvl") - .withScriptLinkedService( - new LinkedServiceReference() - .withReferenceName("mngxzpdnbjov") - .withParameters( - mapOf("imyizdglzzaufin", "datavtnbtvlgkjfkaoe", "ntjgpyvjgsjyjn", "datavyxyrykn"))) - .withDefines( - mapOf("vpamfpini", "databhwrncxwzuer", "kmfb", "datapb", "yl", "datauu", "vnlbjfsol", "datage")) - .withVariables(mapOf("lnhxr", "datau", "l", "datajshicvrmwbgpc", "pboaevtxi", "databxppvpgsrfshkjg")) - .withQueryTimeout(1275464615); - model = BinaryData.fromObject(model).toObject(HDInsightHiveActivityTypeProperties.class); - Assertions.assertEquals("nhbxvvufq", model.storageLinkedServices().get(0).referenceName()); - Assertions.assertEquals(HDInsightActivityDebugInfoOption.NONE, model.getDebugInfo()); - Assertions.assertEquals("mngxzpdnbjov", model.scriptLinkedService().referenceName()); - Assertions.assertEquals(1275464615, model.queryTimeout()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightMapReduceActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightMapReduceActivityTests.java deleted file mode 100644 index bf266f929c9d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightMapReduceActivityTests.java +++ /dev/null @@ -1,173 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityPolicy; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.HDInsightActivityDebugInfoOption; -import com.azure.resourcemanager.datafactory.models.HDInsightMapReduceActivity; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class HDInsightMapReduceActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HDInsightMapReduceActivity model = - BinaryData - .fromString( - "{\"type\":\"HDInsightMapReduce\",\"typeProperties\":{\"storageLinkedServices\":[{\"referenceName\":\"ljhgqqjmfrm\",\"parameters\":{\"hjhpxjlgiurmli\":\"datagcbrmmweeuy\"}},{\"referenceName\":\"nad\",\"parameters\":{\"wokefdeeppycwsy\":\"datafxzcxvpogrtkdit\",\"hmgv\":\"dataxfowfnsyyeytrwyo\"}},{\"referenceName\":\"eemjazq\",\"parameters\":{\"a\":\"datagkxtgs\",\"puds\":\"datanholkoyxm\",\"xs\":\"datawvzunrqvup\"}},{\"referenceName\":\"nqzdfjwofgzif\",\"parameters\":{\"ddir\":\"dataftilhoyemhwaep\",\"vorifcqmfvzu\":\"datadt\",\"sxtry\":\"datam\",\"hrizwmptsygqztn\":\"datarvwmmuovturdhnn\"}}],\"arguments\":[\"dataeizuapgqxe\",\"databvwxyumqoqw\"],\"getDebugInfo\":\"Failure\",\"className\":\"datayiyeigngrzve\",\"jarFilePath\":\"dataxmxlnhqxzewlww\",\"jarLinkedService\":{\"referenceName\":\"pvpc\",\"parameters\":{\"vfctsfujdapc\":\"dataovzkwhdtf\",\"tddydbat\":\"datagamgbnktg\",\"rwsdy\":\"dataxkwcolna\"}},\"jarLibs\":[\"datan\",\"datad\"],\"defines\":{\"gtkojrruhzvveer\":\"datamvnzhdsaqme\",\"cczkggbmzdnyrmo\":\"datalehsnlmdosiyzf\",\"umckcbsakoucss\":\"datamaekc\"}},\"linkedServiceName\":{\"referenceName\":\"dqilzogilgrqzwy\",\"parameters\":{\"ksghpsqvuisedeqr\":\"datafybflrpvcgqqx\",\"rqdxvbt\":\"datafjkxxn\"}},\"policy\":{\"timeout\":\"dataxvlsv\",\"retry\":\"datavpagwohkromzs\",\"retryIntervalInSeconds\":2037950340,\"secureInput\":true,\"secureOutput\":false,\"\":{\"lvhbg\":\"datavr\",\"gpsalynan\":\"datagjpiezthf\"}},\"name\":\"wzpfbiqjrz\",\"description\":\"xizorqliblyb\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"ffzdyoznidstof\",\"dependencyConditions\":[\"Failed\",\"Completed\"],\"\":{\"xmcsxidazslwh\":\"datawabfgfwebi\"}},{\"activity\":\"yikhdcilinbuok\",\"dependencyConditions\":[\"Failed\",\"Succeeded\",\"Skipped\"],\"\":{\"valoauuwoigofu\":\"dataiplzmswhqrdv\"}},{\"activity\":\"bpmzedmf\",\"dependencyConditions\":[\"Succeeded\",\"Failed\",\"Completed\",\"Succeeded\"],\"\":{\"wyinfywtqvjnoem\":\"dataavbotaoaixip\"}},{\"activity\":\"wutbyaeyyiw\",\"dependencyConditions\":[\"Completed\",\"Completed\"],\"\":{\"onridhwoyznjdd\":\"datamexugdjdmwcxvc\",\"ipuot\":\"datahazlomvx\",\"rhjh\":\"dataiqzqmpgvyydjww\",\"h\":\"datawcfftszswvyi\"}}],\"userProperties\":[{\"name\":\"hgyeoikxjpuwgg\",\"value\":\"datasaqfnbxuw\"}],\"\":{\"egtsqzkzworuhhv\":\"databus\",\"bkgp\":\"dataeodcdjhf\",\"tyuvuzqtrfziub\":\"dataxusylgpznbklhw\"}}") - .toObject(HDInsightMapReduceActivity.class); - Assertions.assertEquals("wzpfbiqjrz", model.name()); - Assertions.assertEquals("xizorqliblyb", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("ffzdyoznidstof", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("hgyeoikxjpuwgg", model.userProperties().get(0).name()); - Assertions.assertEquals("dqilzogilgrqzwy", model.linkedServiceName().referenceName()); - Assertions.assertEquals(2037950340, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - Assertions.assertEquals("ljhgqqjmfrm", model.storageLinkedServices().get(0).referenceName()); - Assertions.assertEquals(HDInsightActivityDebugInfoOption.FAILURE, model.getDebugInfo()); - Assertions.assertEquals("pvpc", model.jarLinkedService().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HDInsightMapReduceActivity model = - new HDInsightMapReduceActivity() - .withName("wzpfbiqjrz") - .withDescription("xizorqliblyb") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("ffzdyoznidstof") - .withDependencyConditions( - Arrays.asList(DependencyCondition.FAILED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("yikhdcilinbuok") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.FAILED, - DependencyCondition.SUCCEEDED, - DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("bpmzedmf") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.SUCCEEDED, - DependencyCondition.FAILED, - DependencyCondition.COMPLETED, - DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("wutbyaeyyiw") - .withDependencyConditions( - Arrays.asList(DependencyCondition.COMPLETED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("hgyeoikxjpuwgg").withValue("datasaqfnbxuw"))) - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("dqilzogilgrqzwy") - .withParameters(mapOf("ksghpsqvuisedeqr", "datafybflrpvcgqqx", "rqdxvbt", "datafjkxxn"))) - .withPolicy( - new ActivityPolicy() - .withTimeout("dataxvlsv") - .withRetry("datavpagwohkromzs") - .withRetryIntervalInSeconds(2037950340) - .withSecureInput(true) - .withSecureOutput(false) - .withAdditionalProperties(mapOf())) - .withStorageLinkedServices( - Arrays - .asList( - new LinkedServiceReference() - .withReferenceName("ljhgqqjmfrm") - .withParameters(mapOf("hjhpxjlgiurmli", "datagcbrmmweeuy")), - new LinkedServiceReference() - .withReferenceName("nad") - .withParameters( - mapOf("wokefdeeppycwsy", "datafxzcxvpogrtkdit", "hmgv", "dataxfowfnsyyeytrwyo")), - new LinkedServiceReference() - .withReferenceName("eemjazq") - .withParameters( - mapOf("a", "datagkxtgs", "puds", "datanholkoyxm", "xs", "datawvzunrqvup")), - new LinkedServiceReference() - .withReferenceName("nqzdfjwofgzif") - .withParameters( - mapOf( - "ddir", - "dataftilhoyemhwaep", - "vorifcqmfvzu", - "datadt", - "sxtry", - "datam", - "hrizwmptsygqztn", - "datarvwmmuovturdhnn")))) - .withArguments(Arrays.asList("dataeizuapgqxe", "databvwxyumqoqw")) - .withGetDebugInfo(HDInsightActivityDebugInfoOption.FAILURE) - .withClassName("datayiyeigngrzve") - .withJarFilePath("dataxmxlnhqxzewlww") - .withJarLinkedService( - new LinkedServiceReference() - .withReferenceName("pvpc") - .withParameters( - mapOf( - "vfctsfujdapc", "dataovzkwhdtf", "tddydbat", "datagamgbnktg", "rwsdy", "dataxkwcolna"))) - .withJarLibs(Arrays.asList("datan", "datad")) - .withDefines( - mapOf( - "gtkojrruhzvveer", - "datamvnzhdsaqme", - "cczkggbmzdnyrmo", - "datalehsnlmdosiyzf", - "umckcbsakoucss", - "datamaekc")); - model = BinaryData.fromObject(model).toObject(HDInsightMapReduceActivity.class); - Assertions.assertEquals("wzpfbiqjrz", model.name()); - Assertions.assertEquals("xizorqliblyb", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("ffzdyoznidstof", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("hgyeoikxjpuwgg", model.userProperties().get(0).name()); - Assertions.assertEquals("dqilzogilgrqzwy", model.linkedServiceName().referenceName()); - Assertions.assertEquals(2037950340, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - Assertions.assertEquals("ljhgqqjmfrm", model.storageLinkedServices().get(0).referenceName()); - Assertions.assertEquals(HDInsightActivityDebugInfoOption.FAILURE, model.getDebugInfo()); - Assertions.assertEquals("pvpc", model.jarLinkedService().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightMapReduceActivityTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightMapReduceActivityTypePropertiesTests.java deleted file mode 100644 index 70d7360dea40..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightMapReduceActivityTypePropertiesTests.java +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.HDInsightMapReduceActivityTypeProperties; -import com.azure.resourcemanager.datafactory.models.HDInsightActivityDebugInfoOption; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class HDInsightMapReduceActivityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HDInsightMapReduceActivityTypeProperties model = - BinaryData - .fromString( - "{\"storageLinkedServices\":[{\"referenceName\":\"vkt\",\"parameters\":{\"vonuhv\":\"dataceplnukdawgzhbwh\",\"tjoxocothsg\":\"datagxck\"}},{\"referenceName\":\"jcjvdajxebm\",\"parameters\":{\"a\":\"datarctf\",\"nd\":\"datakukra\",\"dhjdwfnbiyxqr\":\"datahwdicntqsrhacjsb\",\"rqllugnxmbwdkz\":\"datauyffkayovljtrml\"}},{\"referenceName\":\"wwbqukjithx\",\"parameters\":{\"eiw\":\"datapkv\",\"vuxwuepjcugwku\":\"datafshhcktbfmtbprt\"}}],\"arguments\":[\"datawgmznvlwcnjhq\",\"dataieyqpu\",\"datawzzx\"],\"getDebugInfo\":\"Failure\",\"className\":\"datazcjrbsqcwnbxqkb\",\"jarFilePath\":\"dataoofoxfchune\",\"jarLinkedService\":{\"referenceName\":\"ssx\",\"parameters\":{\"kkgxi\":\"datahlhprjcfy\",\"fdfs\":\"dataxlonz\",\"dnrtydhqkariatxh\":\"datakgwdng\",\"sa\":\"dataxdvrajoghgxgzb\"}},\"jarLibs\":[\"datamcwetx\",\"datasgcwadv\"],\"defines\":{\"cqtmpzwwt\":\"dataageltffqal\",\"ctyvmizxkm\":\"datawbgmxwpyns\",\"tdgpmhzlla\":\"datahqwwtar\",\"pk\":\"dataozsdnf\"}}") - .toObject(HDInsightMapReduceActivityTypeProperties.class); - Assertions.assertEquals("vkt", model.storageLinkedServices().get(0).referenceName()); - Assertions.assertEquals(HDInsightActivityDebugInfoOption.FAILURE, model.getDebugInfo()); - Assertions.assertEquals("ssx", model.jarLinkedService().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HDInsightMapReduceActivityTypeProperties model = - new HDInsightMapReduceActivityTypeProperties() - .withStorageLinkedServices( - Arrays - .asList( - new LinkedServiceReference() - .withReferenceName("vkt") - .withParameters(mapOf("vonuhv", "dataceplnukdawgzhbwh", "tjoxocothsg", "datagxck")), - new LinkedServiceReference() - .withReferenceName("jcjvdajxebm") - .withParameters( - mapOf( - "a", - "datarctf", - "nd", - "datakukra", - "dhjdwfnbiyxqr", - "datahwdicntqsrhacjsb", - "rqllugnxmbwdkz", - "datauyffkayovljtrml")), - new LinkedServiceReference() - .withReferenceName("wwbqukjithx") - .withParameters(mapOf("eiw", "datapkv", "vuxwuepjcugwku", "datafshhcktbfmtbprt")))) - .withArguments(Arrays.asList("datawgmznvlwcnjhq", "dataieyqpu", "datawzzx")) - .withGetDebugInfo(HDInsightActivityDebugInfoOption.FAILURE) - .withClassName("datazcjrbsqcwnbxqkb") - .withJarFilePath("dataoofoxfchune") - .withJarLinkedService( - new LinkedServiceReference() - .withReferenceName("ssx") - .withParameters( - mapOf( - "kkgxi", - "datahlhprjcfy", - "fdfs", - "dataxlonz", - "dnrtydhqkariatxh", - "datakgwdng", - "sa", - "dataxdvrajoghgxgzb"))) - .withJarLibs(Arrays.asList("datamcwetx", "datasgcwadv")) - .withDefines( - mapOf( - "cqtmpzwwt", - "dataageltffqal", - "ctyvmizxkm", - "datawbgmxwpyns", - "tdgpmhzlla", - "datahqwwtar", - "pk", - "dataozsdnf")); - model = BinaryData.fromObject(model).toObject(HDInsightMapReduceActivityTypeProperties.class); - Assertions.assertEquals("vkt", model.storageLinkedServices().get(0).referenceName()); - Assertions.assertEquals(HDInsightActivityDebugInfoOption.FAILURE, model.getDebugInfo()); - Assertions.assertEquals("ssx", model.jarLinkedService().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightPigActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightPigActivityTests.java deleted file mode 100644 index 88c64bdfdf2b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightPigActivityTests.java +++ /dev/null @@ -1,157 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityPolicy; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.HDInsightActivityDebugInfoOption; -import com.azure.resourcemanager.datafactory.models.HDInsightPigActivity; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class HDInsightPigActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HDInsightPigActivity model = - BinaryData - .fromString( - "{\"type\":\"HDInsightPig\",\"typeProperties\":{\"storageLinkedServices\":[{\"referenceName\":\"gijiqwxw\",\"parameters\":{\"qnprbvruhdjzivl\":\"datad\",\"mq\":\"dataxi\"}},{\"referenceName\":\"qmbfptzixmks\",\"parameters\":{\"n\":\"datadtjv\",\"kzulmqxficinw\":\"datanv\",\"x\":\"datajve\"}}],\"arguments\":\"dataer\",\"getDebugInfo\":\"Failure\",\"scriptPath\":\"databosjxbnytten\",\"scriptLinkedService\":{\"referenceName\":\"ditumyycvtya\",\"parameters\":{\"qvwhjgtbhre\":\"dataimhspjqhivxb\",\"btqibqbougcwzgd\":\"datautqoh\",\"tp\":\"datadrdxoutkgezuln\"}},\"defines\":{\"eoy\":\"dataejxjhlxoljbp\",\"havwhrivvzrc\":\"datayk\",\"eearbbxaneviqk\":\"datayfrxlsypwu\"}},\"linkedServiceName\":{\"referenceName\":\"pvidzhjcppqcgbp\",\"parameters\":{\"jbakpasuugcngdu\":\"datairjhdlxuptbtlha\"}},\"policy\":{\"timeout\":\"datae\",\"retry\":\"dataguvaimkoyrp\",\"retryIntervalInSeconds\":1099083192,\"secureInput\":true,\"secureOutput\":true,\"\":{\"xbjqiabitevv\":\"databozlmrhnghvlvd\",\"kdfyvgcftaqydcr\":\"datawiypyljzk\",\"r\":\"datalhmneykxewemtaz\",\"e\":\"datajzpxo\"}},\"name\":\"erxmlfnugl\",\"description\":\"rkrtdkp\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"n\",\"dependencyConditions\":[\"Skipped\",\"Succeeded\",\"Skipped\",\"Completed\"],\"\":{\"jzq\":\"datajhwkl\",\"panwejbngojna\":\"datag\"}},{\"activity\":\"swytkwt\",\"dependencyConditions\":[\"Failed\",\"Succeeded\",\"Failed\"],\"\":{\"bhrvonea\":\"dataormfhruhwxmnrdfj\",\"rxtoxlx\":\"datapjmjigypbdfrtasa\",\"ycissh\":\"datajijttsyrxynnfsk\"}},{\"activity\":\"pxftyhfc\",\"dependencyConditions\":[\"Succeeded\",\"Succeeded\",\"Succeeded\",\"Failed\"],\"\":{\"ztpnrysxxajr\":\"dataqaawryctzslf\",\"ddvnobesowbtnfq\":\"datacighl\"}},{\"activity\":\"wcaxj\",\"dependencyConditions\":[\"Skipped\",\"Skipped\"],\"\":{\"cxofqjninrsk\":\"dataucmeuuuajiot\",\"ygwpwqux\":\"dataekqtiuveazuciwbi\"}}],\"userProperties\":[{\"name\":\"slspihux\",\"value\":\"datavviotvoolkm\"}],\"\":{\"frfwaehsso\":\"dataefbbrndaquxv\",\"avpy\":\"datao\"}}") - .toObject(HDInsightPigActivity.class); - Assertions.assertEquals("erxmlfnugl", model.name()); - Assertions.assertEquals("rkrtdkp", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.onInactiveMarkAs()); - Assertions.assertEquals("n", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SKIPPED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("slspihux", model.userProperties().get(0).name()); - Assertions.assertEquals("pvidzhjcppqcgbp", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1099083192, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - Assertions.assertEquals("gijiqwxw", model.storageLinkedServices().get(0).referenceName()); - Assertions.assertEquals(HDInsightActivityDebugInfoOption.FAILURE, model.getDebugInfo()); - Assertions.assertEquals("ditumyycvtya", model.scriptLinkedService().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HDInsightPigActivity model = - new HDInsightPigActivity() - .withName("erxmlfnugl") - .withDescription("rkrtdkp") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("n") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.SKIPPED, - DependencyCondition.SUCCEEDED, - DependencyCondition.SKIPPED, - DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("swytkwt") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.FAILED, - DependencyCondition.SUCCEEDED, - DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("pxftyhfc") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.SUCCEEDED, - DependencyCondition.SUCCEEDED, - DependencyCondition.SUCCEEDED, - DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("wcaxj") - .withDependencyConditions( - Arrays.asList(DependencyCondition.SKIPPED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("slspihux").withValue("datavviotvoolkm"))) - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("pvidzhjcppqcgbp") - .withParameters(mapOf("jbakpasuugcngdu", "datairjhdlxuptbtlha"))) - .withPolicy( - new ActivityPolicy() - .withTimeout("datae") - .withRetry("dataguvaimkoyrp") - .withRetryIntervalInSeconds(1099083192) - .withSecureInput(true) - .withSecureOutput(true) - .withAdditionalProperties(mapOf())) - .withStorageLinkedServices( - Arrays - .asList( - new LinkedServiceReference() - .withReferenceName("gijiqwxw") - .withParameters(mapOf("qnprbvruhdjzivl", "datad", "mq", "dataxi")), - new LinkedServiceReference() - .withReferenceName("qmbfptzixmks") - .withParameters(mapOf("n", "datadtjv", "kzulmqxficinw", "datanv", "x", "datajve")))) - .withArguments("dataer") - .withGetDebugInfo(HDInsightActivityDebugInfoOption.FAILURE) - .withScriptPath("databosjxbnytten") - .withScriptLinkedService( - new LinkedServiceReference() - .withReferenceName("ditumyycvtya") - .withParameters( - mapOf( - "qvwhjgtbhre", - "dataimhspjqhivxb", - "btqibqbougcwzgd", - "datautqoh", - "tp", - "datadrdxoutkgezuln"))) - .withDefines( - mapOf("eoy", "dataejxjhlxoljbp", "havwhrivvzrc", "datayk", "eearbbxaneviqk", "datayfrxlsypwu")); - model = BinaryData.fromObject(model).toObject(HDInsightPigActivity.class); - Assertions.assertEquals("erxmlfnugl", model.name()); - Assertions.assertEquals("rkrtdkp", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.onInactiveMarkAs()); - Assertions.assertEquals("n", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SKIPPED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("slspihux", model.userProperties().get(0).name()); - Assertions.assertEquals("pvidzhjcppqcgbp", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1099083192, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - Assertions.assertEquals("gijiqwxw", model.storageLinkedServices().get(0).referenceName()); - Assertions.assertEquals(HDInsightActivityDebugInfoOption.FAILURE, model.getDebugInfo()); - Assertions.assertEquals("ditumyycvtya", model.scriptLinkedService().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightPigActivityTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightPigActivityTypePropertiesTests.java deleted file mode 100644 index 803e47a20abb..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightPigActivityTypePropertiesTests.java +++ /dev/null @@ -1,96 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.HDInsightPigActivityTypeProperties; -import com.azure.resourcemanager.datafactory.models.HDInsightActivityDebugInfoOption; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class HDInsightPigActivityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HDInsightPigActivityTypeProperties model = - BinaryData - .fromString( - "{\"storageLinkedServices\":[{\"referenceName\":\"yeblkgupgnstqs\",\"parameters\":{\"vkhufkt\":\"datamhioar\"}},{\"referenceName\":\"gt\",\"parameters\":{\"nbtnn\":\"datactreotzgkokfztrv\",\"wsbznjngerw\":\"dataamkegyskmh\",\"qzafjycfbdbzbabo\":\"datatlpsswoslqmft\"}},{\"referenceName\":\"egalecqyzdy\",\"parameters\":{\"hiaqegjvhy\":\"dataocnkbt\",\"ovvna\":\"datanqbhclbbksoqzzy\"}},{\"referenceName\":\"xmjmhclhcqcjn\",\"parameters\":{\"dasovlrjggvy\":\"databwqgs\",\"apxxbkxwh\":\"datatjebbacscirzt\"}}],\"arguments\":\"datahecpstfekbslyqml\",\"getDebugInfo\":\"None\",\"scriptPath\":\"datacnybhvzltbg\",\"scriptLinkedService\":{\"referenceName\":\"aepjmkruzogsszo\",\"parameters\":{\"mqe\":\"datanfaxcd\",\"ltugobscpt\":\"datahsirotj\",\"ifoznfdboumpks\":\"datakgqyuvhlpmjpzgjn\",\"hdlwlehhqxy\":\"datakdjpfsmdg\"}},\"defines\":{\"zgryf\":\"datakwvrrptblsata\",\"skuimv\":\"datawwqbeyvwdnjmji\",\"ucnpaesrairefif\":\"dataiyicxnxcimalvz\"}}") - .toObject(HDInsightPigActivityTypeProperties.class); - Assertions.assertEquals("yeblkgupgnstqs", model.storageLinkedServices().get(0).referenceName()); - Assertions.assertEquals(HDInsightActivityDebugInfoOption.NONE, model.getDebugInfo()); - Assertions.assertEquals("aepjmkruzogsszo", model.scriptLinkedService().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HDInsightPigActivityTypeProperties model = - new HDInsightPigActivityTypeProperties() - .withStorageLinkedServices( - Arrays - .asList( - new LinkedServiceReference() - .withReferenceName("yeblkgupgnstqs") - .withParameters(mapOf("vkhufkt", "datamhioar")), - new LinkedServiceReference() - .withReferenceName("gt") - .withParameters( - mapOf( - "nbtnn", - "datactreotzgkokfztrv", - "wsbznjngerw", - "dataamkegyskmh", - "qzafjycfbdbzbabo", - "datatlpsswoslqmft")), - new LinkedServiceReference() - .withReferenceName("egalecqyzdy") - .withParameters(mapOf("hiaqegjvhy", "dataocnkbt", "ovvna", "datanqbhclbbksoqzzy")), - new LinkedServiceReference() - .withReferenceName("xmjmhclhcqcjn") - .withParameters(mapOf("dasovlrjggvy", "databwqgs", "apxxbkxwh", "datatjebbacscirzt")))) - .withArguments("datahecpstfekbslyqml") - .withGetDebugInfo(HDInsightActivityDebugInfoOption.NONE) - .withScriptPath("datacnybhvzltbg") - .withScriptLinkedService( - new LinkedServiceReference() - .withReferenceName("aepjmkruzogsszo") - .withParameters( - mapOf( - "mqe", - "datanfaxcd", - "ltugobscpt", - "datahsirotj", - "ifoznfdboumpks", - "datakgqyuvhlpmjpzgjn", - "hdlwlehhqxy", - "datakdjpfsmdg"))) - .withDefines( - mapOf( - "zgryf", - "datakwvrrptblsata", - "skuimv", - "datawwqbeyvwdnjmji", - "ucnpaesrairefif", - "dataiyicxnxcimalvz")); - model = BinaryData.fromObject(model).toObject(HDInsightPigActivityTypeProperties.class); - Assertions.assertEquals("yeblkgupgnstqs", model.storageLinkedServices().get(0).referenceName()); - Assertions.assertEquals(HDInsightActivityDebugInfoOption.NONE, model.getDebugInfo()); - Assertions.assertEquals("aepjmkruzogsszo", model.scriptLinkedService().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightSparkActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightSparkActivityTests.java deleted file mode 100644 index 44157cb64f7e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightSparkActivityTests.java +++ /dev/null @@ -1,146 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityPolicy; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.HDInsightActivityDebugInfoOption; -import com.azure.resourcemanager.datafactory.models.HDInsightSparkActivity; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class HDInsightSparkActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HDInsightSparkActivity model = - BinaryData - .fromString( - "{\"type\":\"HDInsightSpark\",\"typeProperties\":{\"rootPath\":\"dataebw\",\"entryFilePath\":\"dataqnluszilkrcpxl\",\"arguments\":[\"datafxtbvhmsvcmce\",\"datatrhwriihwxchy\"],\"getDebugInfo\":\"Failure\",\"sparkJobLinkedService\":{\"referenceName\":\"rpjonmins\",\"parameters\":{\"igfdpp\":\"datauiiytyarpe\",\"bgrtse\":\"datakkgdygjldljgd\",\"kofmtfwculsbnapz\":\"datanowzf\"}},\"className\":\"zmrlprbclj\",\"proxyUser\":\"datajaawnzzlfvefs\",\"sparkConfig\":{\"dpbmoq\":\"dataasm\"}},\"linkedServiceName\":{\"referenceName\":\"vukgfzbykapmeo\",\"parameters\":{\"ew\":\"datavmakdtgpnyubnwym\"}},\"policy\":{\"timeout\":\"dataxwv\",\"retry\":\"datatjsnjbahxyfd\",\"retryIntervalInSeconds\":1674480815,\"secureInput\":false,\"secureOutput\":false,\"\":{\"rmptj\":\"datahq\"}},\"name\":\"ixawipjracyx\",\"description\":\"adflvbkhgdz\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"oheminer\",\"dependencyConditions\":[\"Completed\",\"Failed\",\"Completed\",\"Failed\"],\"\":{\"qgqmitrp\":\"datavmxhztdcadbm\"}},{\"activity\":\"gmhh\",\"dependencyConditions\":[\"Skipped\",\"Completed\"],\"\":{\"ni\":\"dataiuhmtcihupoelj\",\"awbsdeqqbdcbnrg\":\"datayoxajit\",\"mtgtnb\":\"datapnor\"}},{\"activity\":\"sopuwesmxodyto\",\"dependencyConditions\":[\"Succeeded\",\"Succeeded\",\"Skipped\"],\"\":{\"nsdgmuaqtqn\":\"datan\"}}],\"userProperties\":[{\"name\":\"iptzg\",\"value\":\"datamujukenkuyom\"},{\"name\":\"kgkyobuihprvo\",\"value\":\"dataodrpyxkzxrmmo\"},{\"name\":\"cufkxygxoubekafd\",\"value\":\"datagtgcfkeae\"},{\"name\":\"pmhtlkjfp\",\"value\":\"dataeb\"}],\"\":{\"lwysrswzhciaz\":\"datatxsuxvjj\",\"zodnxlcdgkc\":\"dataebtskmqkanuxjudy\",\"rskzwuubaf\":\"datafancjl\"}}") - .toObject(HDInsightSparkActivity.class); - Assertions.assertEquals("ixawipjracyx", model.name()); - Assertions.assertEquals("adflvbkhgdz", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("oheminer", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("iptzg", model.userProperties().get(0).name()); - Assertions.assertEquals("vukgfzbykapmeo", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1674480815, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - Assertions.assertEquals(HDInsightActivityDebugInfoOption.FAILURE, model.getDebugInfo()); - Assertions.assertEquals("rpjonmins", model.sparkJobLinkedService().referenceName()); - Assertions.assertEquals("zmrlprbclj", model.className()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HDInsightSparkActivity model = - new HDInsightSparkActivity() - .withName("ixawipjracyx") - .withDescription("adflvbkhgdz") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("oheminer") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.COMPLETED, - DependencyCondition.FAILED, - DependencyCondition.COMPLETED, - DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("gmhh") - .withDependencyConditions( - Arrays.asList(DependencyCondition.SKIPPED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("sopuwesmxodyto") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.SUCCEEDED, - DependencyCondition.SUCCEEDED, - DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays - .asList( - new UserProperty().withName("iptzg").withValue("datamujukenkuyom"), - new UserProperty().withName("kgkyobuihprvo").withValue("dataodrpyxkzxrmmo"), - new UserProperty().withName("cufkxygxoubekafd").withValue("datagtgcfkeae"), - new UserProperty().withName("pmhtlkjfp").withValue("dataeb"))) - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("vukgfzbykapmeo") - .withParameters(mapOf("ew", "datavmakdtgpnyubnwym"))) - .withPolicy( - new ActivityPolicy() - .withTimeout("dataxwv") - .withRetry("datatjsnjbahxyfd") - .withRetryIntervalInSeconds(1674480815) - .withSecureInput(false) - .withSecureOutput(false) - .withAdditionalProperties(mapOf())) - .withRootPath("dataebw") - .withEntryFilePath("dataqnluszilkrcpxl") - .withArguments(Arrays.asList("datafxtbvhmsvcmce", "datatrhwriihwxchy")) - .withGetDebugInfo(HDInsightActivityDebugInfoOption.FAILURE) - .withSparkJobLinkedService( - new LinkedServiceReference() - .withReferenceName("rpjonmins") - .withParameters( - mapOf( - "igfdpp", - "datauiiytyarpe", - "bgrtse", - "datakkgdygjldljgd", - "kofmtfwculsbnapz", - "datanowzf"))) - .withClassName("zmrlprbclj") - .withProxyUser("datajaawnzzlfvefs") - .withSparkConfig(mapOf("dpbmoq", "dataasm")); - model = BinaryData.fromObject(model).toObject(HDInsightSparkActivity.class); - Assertions.assertEquals("ixawipjracyx", model.name()); - Assertions.assertEquals("adflvbkhgdz", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("oheminer", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("iptzg", model.userProperties().get(0).name()); - Assertions.assertEquals("vukgfzbykapmeo", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1674480815, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - Assertions.assertEquals(HDInsightActivityDebugInfoOption.FAILURE, model.getDebugInfo()); - Assertions.assertEquals("rpjonmins", model.sparkJobLinkedService().referenceName()); - Assertions.assertEquals("zmrlprbclj", model.className()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightSparkActivityTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightSparkActivityTypePropertiesTests.java deleted file mode 100644 index 85ab71d28e53..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightSparkActivityTypePropertiesTests.java +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.HDInsightSparkActivityTypeProperties; -import com.azure.resourcemanager.datafactory.models.HDInsightActivityDebugInfoOption; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class HDInsightSparkActivityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HDInsightSparkActivityTypeProperties model = - BinaryData - .fromString( - "{\"rootPath\":\"datazi\",\"entryFilePath\":\"datamvwjq\",\"arguments\":[\"dataqiaho\",\"datajzviv\"],\"getDebugInfo\":\"Always\",\"sparkJobLinkedService\":{\"referenceName\":\"tcfulmzxhgwzbyst\",\"parameters\":{\"jssjbpna\":\"datawehn\",\"ichzcajityjz\":\"datapymv\",\"you\":\"datap\"}},\"className\":\"qyeyzoivi\",\"proxyUser\":\"datanihmwvhc\",\"sparkConfig\":{\"djc\":\"datauasutdhmilhzy\"}}") - .toObject(HDInsightSparkActivityTypeProperties.class); - Assertions.assertEquals(HDInsightActivityDebugInfoOption.ALWAYS, model.getDebugInfo()); - Assertions.assertEquals("tcfulmzxhgwzbyst", model.sparkJobLinkedService().referenceName()); - Assertions.assertEquals("qyeyzoivi", model.className()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HDInsightSparkActivityTypeProperties model = - new HDInsightSparkActivityTypeProperties() - .withRootPath("datazi") - .withEntryFilePath("datamvwjq") - .withArguments(Arrays.asList("dataqiaho", "datajzviv")) - .withGetDebugInfo(HDInsightActivityDebugInfoOption.ALWAYS) - .withSparkJobLinkedService( - new LinkedServiceReference() - .withReferenceName("tcfulmzxhgwzbyst") - .withParameters(mapOf("jssjbpna", "datawehn", "ichzcajityjz", "datapymv", "you", "datap"))) - .withClassName("qyeyzoivi") - .withProxyUser("datanihmwvhc") - .withSparkConfig(mapOf("djc", "datauasutdhmilhzy")); - model = BinaryData.fromObject(model).toObject(HDInsightSparkActivityTypeProperties.class); - Assertions.assertEquals(HDInsightActivityDebugInfoOption.ALWAYS, model.getDebugInfo()); - Assertions.assertEquals("tcfulmzxhgwzbyst", model.sparkJobLinkedService().referenceName()); - Assertions.assertEquals("qyeyzoivi", model.className()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightStreamingActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightStreamingActivityTests.java deleted file mode 100644 index f70c668ce0c5..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightStreamingActivityTests.java +++ /dev/null @@ -1,150 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityPolicy; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.HDInsightActivityDebugInfoOption; -import com.azure.resourcemanager.datafactory.models.HDInsightStreamingActivity; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class HDInsightStreamingActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HDInsightStreamingActivity model = - BinaryData - .fromString( - "{\"type\":\"HDInsightStreaming\",\"typeProperties\":{\"storageLinkedServices\":[{\"referenceName\":\"uy\",\"parameters\":{\"n\":\"dataubgnm\",\"i\":\"datada\"}},{\"referenceName\":\"hulvpnqvcutwngfd\",\"parameters\":{\"quycokpfyojf\":\"datam\",\"syxthdfqqz\":\"datavmsf\"}},{\"referenceName\":\"qgmoexgnyugsasgh\",\"parameters\":{\"ndxrofwctjhdbidl\":\"dataexdxhxpqkcstynjx\",\"kpx\":\"dataktiojitfa\",\"sorwtakny\":\"dataetdrcm\",\"oskwujhskxx\":\"dataxrrf\"}},{\"referenceName\":\"k\",\"parameters\":{\"t\":\"dataactfimcax\"}}],\"arguments\":[\"dataqtimqicsfaqypjc\",\"datadtktfpj\",\"dataxkujwn\"],\"getDebugInfo\":\"Failure\",\"mapper\":\"dataoqwuforaxbeamip\",\"reducer\":\"datasyed\",\"input\":\"datayrpipslc\",\"output\":\"datawgrzzqf\",\"filePaths\":[\"datadifghdgsyhncxoqx\",\"datajzdpl\",\"datagllvkor\",\"dataosoxxoqyikdjaog\"],\"fileLinkedService\":{\"referenceName\":\"txqxvmybqjlgrlfn\",\"parameters\":{\"lhzjiqibmiwrh\":\"datacmd\"}},\"combiner\":\"datakxrqzgshqx\",\"commandEnvironment\":[\"datanu\",\"datafslawimhoaqj\",\"datalhlpz\",\"datamdaiv\"],\"defines\":{\"nhbsvr\":\"datazbzdi\",\"noasyyadyfnxt\":\"datarccx\",\"gsva\":\"datalnzcm\"}},\"linkedServiceName\":{\"referenceName\":\"uov\",\"parameters\":{\"enfjhfsz\":\"datatykprrdd\"}},\"policy\":{\"timeout\":\"dataosmqscvyuldkpdle\",\"retry\":\"dataljujpsubxggknmvk\",\"retryIntervalInSeconds\":1332323921,\"secureInput\":false,\"secureOutput\":false,\"\":{\"z\":\"datasjea\",\"jwsddyq\":\"datajcsbkmaluchbfrt\",\"txsyufex\":\"dataxpnzpuknfpgg\"}},\"name\":\"vhjyxau\",\"description\":\"kqofrkfccqjenzl\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"jbvqaey\",\"dependencyConditions\":[\"Succeeded\",\"Failed\",\"Completed\"],\"\":{\"ledm\":\"datalxdwliitai\",\"dletjiudcoktsgc\":\"dataup\",\"grebecxuuzeuklu\":\"datapjlmsta\",\"ejamychwwrvvtj\":\"datak\"}}],\"userProperties\":[{\"name\":\"txvmbedvvmrtnmg\",\"value\":\"databfzaaiihyl\"},{\"name\":\"w\",\"value\":\"datahlbpmplethek\"},{\"name\":\"bnamtv\",\"value\":\"dataoaac\"}],\"\":{\"ytytyrvtuxv\":\"dataonsvjc\"}}") - .toObject(HDInsightStreamingActivity.class); - Assertions.assertEquals("vhjyxau", model.name()); - Assertions.assertEquals("kqofrkfccqjenzl", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("jbvqaey", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("txvmbedvvmrtnmg", model.userProperties().get(0).name()); - Assertions.assertEquals("uov", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1332323921, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - Assertions.assertEquals("uy", model.storageLinkedServices().get(0).referenceName()); - Assertions.assertEquals(HDInsightActivityDebugInfoOption.FAILURE, model.getDebugInfo()); - Assertions.assertEquals("txqxvmybqjlgrlfn", model.fileLinkedService().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HDInsightStreamingActivity model = - new HDInsightStreamingActivity() - .withName("vhjyxau") - .withDescription("kqofrkfccqjenzl") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("jbvqaey") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.SUCCEEDED, - DependencyCondition.FAILED, - DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays - .asList( - new UserProperty().withName("txvmbedvvmrtnmg").withValue("databfzaaiihyl"), - new UserProperty().withName("w").withValue("datahlbpmplethek"), - new UserProperty().withName("bnamtv").withValue("dataoaac"))) - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("uov") - .withParameters(mapOf("enfjhfsz", "datatykprrdd"))) - .withPolicy( - new ActivityPolicy() - .withTimeout("dataosmqscvyuldkpdle") - .withRetry("dataljujpsubxggknmvk") - .withRetryIntervalInSeconds(1332323921) - .withSecureInput(false) - .withSecureOutput(false) - .withAdditionalProperties(mapOf())) - .withStorageLinkedServices( - Arrays - .asList( - new LinkedServiceReference() - .withReferenceName("uy") - .withParameters(mapOf("n", "dataubgnm", "i", "datada")), - new LinkedServiceReference() - .withReferenceName("hulvpnqvcutwngfd") - .withParameters(mapOf("quycokpfyojf", "datam", "syxthdfqqz", "datavmsf")), - new LinkedServiceReference() - .withReferenceName("qgmoexgnyugsasgh") - .withParameters( - mapOf( - "ndxrofwctjhdbidl", - "dataexdxhxpqkcstynjx", - "kpx", - "dataktiojitfa", - "sorwtakny", - "dataetdrcm", - "oskwujhskxx", - "dataxrrf")), - new LinkedServiceReference() - .withReferenceName("k") - .withParameters(mapOf("t", "dataactfimcax")))) - .withArguments(Arrays.asList("dataqtimqicsfaqypjc", "datadtktfpj", "dataxkujwn")) - .withGetDebugInfo(HDInsightActivityDebugInfoOption.FAILURE) - .withMapper("dataoqwuforaxbeamip") - .withReducer("datasyed") - .withInput("datayrpipslc") - .withOutput("datawgrzzqf") - .withFilePaths(Arrays.asList("datadifghdgsyhncxoqx", "datajzdpl", "datagllvkor", "dataosoxxoqyikdjaog")) - .withFileLinkedService( - new LinkedServiceReference() - .withReferenceName("txqxvmybqjlgrlfn") - .withParameters(mapOf("lhzjiqibmiwrh", "datacmd"))) - .withCombiner("datakxrqzgshqx") - .withCommandEnvironment(Arrays.asList("datanu", "datafslawimhoaqj", "datalhlpz", "datamdaiv")) - .withDefines(mapOf("nhbsvr", "datazbzdi", "noasyyadyfnxt", "datarccx", "gsva", "datalnzcm")); - model = BinaryData.fromObject(model).toObject(HDInsightStreamingActivity.class); - Assertions.assertEquals("vhjyxau", model.name()); - Assertions.assertEquals("kqofrkfccqjenzl", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("jbvqaey", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("txvmbedvvmrtnmg", model.userProperties().get(0).name()); - Assertions.assertEquals("uov", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1332323921, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - Assertions.assertEquals("uy", model.storageLinkedServices().get(0).referenceName()); - Assertions.assertEquals(HDInsightActivityDebugInfoOption.FAILURE, model.getDebugInfo()); - Assertions.assertEquals("txqxvmybqjlgrlfn", model.fileLinkedService().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightStreamingActivityTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightStreamingActivityTypePropertiesTests.java deleted file mode 100644 index 1dba7054ccc7..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightStreamingActivityTypePropertiesTests.java +++ /dev/null @@ -1,102 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.HDInsightStreamingActivityTypeProperties; -import com.azure.resourcemanager.datafactory.models.HDInsightActivityDebugInfoOption; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class HDInsightStreamingActivityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HDInsightStreamingActivityTypeProperties model = - BinaryData - .fromString( - "{\"storageLinkedServices\":[{\"referenceName\":\"immmmgbyn\",\"parameters\":{\"fqznvahpxdgyho\":\"datatdtv\"}},{\"referenceName\":\"x\",\"parameters\":{\"aszjrihca\":\"dataxvxfwwvmygcfazto\",\"xpmoadjooernzl\":\"datagjytvkttitebm\",\"ebpuoycawptxq\":\"datazmygout\"}},{\"referenceName\":\"pufdxpwjoajvsk\",\"parameters\":{\"cuk\":\"dataoc\"}},{\"referenceName\":\"tcuvwwfgjjcaa\",\"parameters\":{\"xpqxnlifhjymqwj\":\"datappwwil\"}}],\"arguments\":[\"datavyatyzwybgaycjph\",\"datazymcypdbuoqn\"],\"getDebugInfo\":\"None\",\"mapper\":\"datazngidgwsco\",\"reducer\":\"datamhgzapcgdk\",\"input\":\"datayavfc\",\"output\":\"dataohlfvsbaqdgzbjb\",\"filePaths\":[\"dataoudc\",\"datadlkucxtyufsouh\"],\"fileLinkedService\":{\"referenceName\":\"cumuo\",\"parameters\":{\"gro\":\"dataspsbgxpn\",\"yjox\":\"dataiaflxoxwndf\",\"ambzprhpwwarz\":\"dataalcyflzuztdwxr\"}},\"combiner\":\"databbwtagxhriru\",\"commandEnvironment\":[\"datazu\",\"datayxxwlyjdbsxjxl\",\"dataq\"],\"defines\":{\"pfbrsmy\":\"datarolagbellp\",\"hgowhnvcqhmuv\":\"datasndfr\",\"ktodeertyijlvc\":\"dataystohu\",\"bdkwzbkhvlsahj\":\"dataphnxxwble\"}}") - .toObject(HDInsightStreamingActivityTypeProperties.class); - Assertions.assertEquals("immmmgbyn", model.storageLinkedServices().get(0).referenceName()); - Assertions.assertEquals(HDInsightActivityDebugInfoOption.NONE, model.getDebugInfo()); - Assertions.assertEquals("cumuo", model.fileLinkedService().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HDInsightStreamingActivityTypeProperties model = - new HDInsightStreamingActivityTypeProperties() - .withStorageLinkedServices( - Arrays - .asList( - new LinkedServiceReference() - .withReferenceName("immmmgbyn") - .withParameters(mapOf("fqznvahpxdgyho", "datatdtv")), - new LinkedServiceReference() - .withReferenceName("x") - .withParameters( - mapOf( - "aszjrihca", - "dataxvxfwwvmygcfazto", - "xpmoadjooernzl", - "datagjytvkttitebm", - "ebpuoycawptxq", - "datazmygout")), - new LinkedServiceReference() - .withReferenceName("pufdxpwjoajvsk") - .withParameters(mapOf("cuk", "dataoc")), - new LinkedServiceReference() - .withReferenceName("tcuvwwfgjjcaa") - .withParameters(mapOf("xpqxnlifhjymqwj", "datappwwil")))) - .withArguments(Arrays.asList("datavyatyzwybgaycjph", "datazymcypdbuoqn")) - .withGetDebugInfo(HDInsightActivityDebugInfoOption.NONE) - .withMapper("datazngidgwsco") - .withReducer("datamhgzapcgdk") - .withInput("datayavfc") - .withOutput("dataohlfvsbaqdgzbjb") - .withFilePaths(Arrays.asList("dataoudc", "datadlkucxtyufsouh")) - .withFileLinkedService( - new LinkedServiceReference() - .withReferenceName("cumuo") - .withParameters( - mapOf( - "gro", - "dataspsbgxpn", - "yjox", - "dataiaflxoxwndf", - "ambzprhpwwarz", - "dataalcyflzuztdwxr"))) - .withCombiner("databbwtagxhriru") - .withCommandEnvironment(Arrays.asList("datazu", "datayxxwlyjdbsxjxl", "dataq")) - .withDefines( - mapOf( - "pfbrsmy", - "datarolagbellp", - "hgowhnvcqhmuv", - "datasndfr", - "ktodeertyijlvc", - "dataystohu", - "bdkwzbkhvlsahj", - "dataphnxxwble")); - model = BinaryData.fromObject(model).toObject(HDInsightStreamingActivityTypeProperties.class); - Assertions.assertEquals("immmmgbyn", model.storageLinkedServices().get(0).referenceName()); - Assertions.assertEquals(HDInsightActivityDebugInfoOption.NONE, model.getDebugInfo()); - Assertions.assertEquals("cumuo", model.fileLinkedService().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HdfsLocationTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HdfsLocationTests.java deleted file mode 100644 index 597c8e7d53a9..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HdfsLocationTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.HdfsLocation; - -public final class HdfsLocationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HdfsLocation model = - BinaryData - .fromString( - "{\"type\":\"HdfsLocation\",\"folderPath\":\"dataoxdjxldnaryy\",\"fileName\":\"datazkdolrndwdbvxvza\",\"\":{\"hmcxqqxmyzkl\":\"dataoyqxlunkf\",\"rqra\":\"dataoanpohrvm\"}}") - .toObject(HdfsLocation.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HdfsLocation model = new HdfsLocation().withFolderPath("dataoxdjxldnaryy").withFileName("datazkdolrndwdbvxvza"); - model = BinaryData.fromObject(model).toObject(HdfsLocation.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HdfsReadSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HdfsReadSettingsTests.java deleted file mode 100644 index 4dccc107a3af..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HdfsReadSettingsTests.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DistcpSettings; -import com.azure.resourcemanager.datafactory.models.HdfsReadSettings; - -public final class HdfsReadSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HdfsReadSettings model = - BinaryData - .fromString( - "{\"type\":\"HdfsReadSettings\",\"recursive\":\"datakronxmt\",\"wildcardFolderPath\":\"datawwdfncqutyszhzlv\",\"wildcardFileName\":\"datairnvdbzarmepbmog\",\"fileListPath\":\"datapkskxsyohfrlyynk\",\"enablePartitionDiscovery\":\"dataych\",\"partitionRootPath\":\"datahngwtbhjgli\",\"modifiedDatetimeStart\":\"dataeodgnuoewf\",\"modifiedDatetimeEnd\":\"datawmm\",\"distcpSettings\":{\"resourceManagerEndpoint\":\"dataxtyavvexjqdj\",\"tempScriptPath\":\"datao\",\"distcpOptions\":\"datagegwxjgkrppmvno\"},\"deleteFilesAfterCompletion\":\"datawqci\",\"maxConcurrentConnections\":\"datawhkdkvaqs\",\"disableMetricsCollection\":\"datadscot\",\"\":{\"sqtirhabhhpcvs\":\"datakxmtmjkfmrjngr\",\"xvnmtjmuxrdmu\":\"datayjmbydr\",\"cxlllk\":\"datawruogmthfqcy\",\"uscm\":\"datajgjlwfssgiebq\"}}") - .toObject(HdfsReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HdfsReadSettings model = - new HdfsReadSettings() - .withMaxConcurrentConnections("datawhkdkvaqs") - .withDisableMetricsCollection("datadscot") - .withRecursive("datakronxmt") - .withWildcardFolderPath("datawwdfncqutyszhzlv") - .withWildcardFileName("datairnvdbzarmepbmog") - .withFileListPath("datapkskxsyohfrlyynk") - .withEnablePartitionDiscovery("dataych") - .withPartitionRootPath("datahngwtbhjgli") - .withModifiedDatetimeStart("dataeodgnuoewf") - .withModifiedDatetimeEnd("datawmm") - .withDistcpSettings( - new DistcpSettings() - .withResourceManagerEndpoint("dataxtyavvexjqdj") - .withTempScriptPath("datao") - .withDistcpOptions("datagegwxjgkrppmvno")) - .withDeleteFilesAfterCompletion("datawqci"); - model = BinaryData.fromObject(model).toObject(HdfsReadSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HdfsSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HdfsSourceTests.java deleted file mode 100644 index 116ebd9bb124..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HdfsSourceTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DistcpSettings; -import com.azure.resourcemanager.datafactory.models.HdfsSource; - -public final class HdfsSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HdfsSource model = - BinaryData - .fromString( - "{\"type\":\"HdfsSource\",\"recursive\":\"datay\",\"distcpSettings\":{\"resourceManagerEndpoint\":\"datacwu\",\"tempScriptPath\":\"dataanpoy\",\"distcpOptions\":\"datajonilnyhze\"},\"sourceRetryCount\":\"datatdcloq\",\"sourceRetryWait\":\"datazdb\",\"maxConcurrentConnections\":\"datae\",\"disableMetricsCollection\":\"datahfmzeufjzqaqeqc\",\"\":{\"vaoazfkykkcq\":\"dataqcwzytomnqcthgq\",\"lllzsqolckwhg\":\"datafnvjgixsjhinpyek\",\"xzdohfvxavhfhl\":\"datafbnnhwpnloi\"}}") - .toObject(HdfsSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HdfsSource model = - new HdfsSource() - .withSourceRetryCount("datatdcloq") - .withSourceRetryWait("datazdb") - .withMaxConcurrentConnections("datae") - .withDisableMetricsCollection("datahfmzeufjzqaqeqc") - .withRecursive("datay") - .withDistcpSettings( - new DistcpSettings() - .withResourceManagerEndpoint("datacwu") - .withTempScriptPath("dataanpoy") - .withDistcpOptions("datajonilnyhze")); - model = BinaryData.fromObject(model).toObject(HdfsSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HiveDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HiveDatasetTypePropertiesTests.java deleted file mode 100644 index 40b93a684718..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HiveDatasetTypePropertiesTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.HiveDatasetTypeProperties; - -public final class HiveDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HiveDatasetTypeProperties model = - BinaryData - .fromString( - "{\"tableName\":\"datanocscygimizl\",\"table\":\"datajbwmgksrlmsppp\",\"schema\":\"dataszthjtryjskdiylg\"}") - .toObject(HiveDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HiveDatasetTypeProperties model = - new HiveDatasetTypeProperties() - .withTableName("datanocscygimizl") - .withTable("datajbwmgksrlmsppp") - .withSchema("dataszthjtryjskdiylg"); - model = BinaryData.fromObject(model).toObject(HiveDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HiveObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HiveObjectDatasetTests.java deleted file mode 100644 index 951f66098563..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HiveObjectDatasetTests.java +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.HiveObjectDataset; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class HiveObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HiveObjectDataset model = - BinaryData - .fromString( - "{\"type\":\"HiveObject\",\"typeProperties\":{\"tableName\":\"dataqkwqphfv\",\"table\":\"datatsstwl\",\"schema\":\"datacachdtezgfctu\"},\"description\":\"owqrzvuxn\",\"structure\":\"datauohshzultdbvm\",\"schema\":\"datahypngo\",\"linkedServiceName\":{\"referenceName\":\"bdxvrivptbczsuzg\",\"parameters\":{\"gpycei\":\"datakekytkzvtvmaatv\",\"s\":\"dataharhbdxsbyp\"}},\"parameters\":{\"sezsggdp\":{\"type\":\"Array\",\"defaultValue\":\"dataudapbq\"}},\"annotations\":[\"datacbrtsrdpl\",\"datadyzaciasfzrgu\",\"dataliyvsbf\"],\"folder\":{\"name\":\"vabd\"},\"\":{\"yaosthulzu\":\"datajgxotudamk\",\"xl\":\"dataifgs\"}}") - .toObject(HiveObjectDataset.class); - Assertions.assertEquals("owqrzvuxn", model.description()); - Assertions.assertEquals("bdxvrivptbczsuzg", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("sezsggdp").type()); - Assertions.assertEquals("vabd", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HiveObjectDataset model = - new HiveObjectDataset() - .withDescription("owqrzvuxn") - .withStructure("datauohshzultdbvm") - .withSchema("datahypngo") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("bdxvrivptbczsuzg") - .withParameters(mapOf("gpycei", "datakekytkzvtvmaatv", "s", "dataharhbdxsbyp"))) - .withParameters( - mapOf( - "sezsggdp", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("dataudapbq"))) - .withAnnotations(Arrays.asList("datacbrtsrdpl", "datadyzaciasfzrgu", "dataliyvsbf")) - .withFolder(new DatasetFolder().withName("vabd")) - .withTableName("dataqkwqphfv") - .withTable("datatsstwl") - .withSchemaTypePropertiesSchema("datacachdtezgfctu"); - model = BinaryData.fromObject(model).toObject(HiveObjectDataset.class); - Assertions.assertEquals("owqrzvuxn", model.description()); - Assertions.assertEquals("bdxvrivptbczsuzg", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("sezsggdp").type()); - Assertions.assertEquals("vabd", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HiveSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HiveSourceTests.java deleted file mode 100644 index 4a71c1b7afbf..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HiveSourceTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.HiveSource; - -public final class HiveSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HiveSource model = - BinaryData - .fromString( - "{\"type\":\"HiveSource\",\"query\":\"datamabehrfyskzwt\",\"queryTimeout\":\"datazvhz\",\"additionalColumns\":\"datac\",\"sourceRetryCount\":\"datasoxoavlwwpv\",\"sourceRetryWait\":\"datanjwvc\",\"maxConcurrentConnections\":\"datarqlceflgsndur\",\"disableMetricsCollection\":\"dataozjwm\",\"\":{\"wzzzimgbxjgx\":\"dataehjlozzcwokuxedp\",\"dfmdjnfeealp\":\"datahajrubcvucve\"}}") - .toObject(HiveSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HiveSource model = - new HiveSource() - .withSourceRetryCount("datasoxoavlwwpv") - .withSourceRetryWait("datanjwvc") - .withMaxConcurrentConnections("datarqlceflgsndur") - .withDisableMetricsCollection("dataozjwm") - .withQueryTimeout("datazvhz") - .withAdditionalColumns("datac") - .withQuery("datamabehrfyskzwt"); - model = BinaryData.fromObject(model).toObject(HiveSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HttpDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HttpDatasetTests.java deleted file mode 100644 index 8cfec6d3a7c1..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HttpDatasetTests.java +++ /dev/null @@ -1,89 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetCompression; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.DatasetStorageFormat; -import com.azure.resourcemanager.datafactory.models.HttpDataset; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class HttpDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HttpDataset model = - BinaryData - .fromString( - "{\"type\":\"HttpFile\",\"typeProperties\":{\"relativeUrl\":\"datatfctanetinqxd\",\"requestMethod\":\"datapjnezjighduml\",\"requestBody\":\"datamrzwvwetqffux\",\"additionalHeaders\":\"datahuqhngqq\",\"format\":{\"type\":\"DatasetStorageFormat\",\"serializer\":\"datasot\",\"deserializer\":\"datalmr\",\"\":{\"bboceksram\":\"datajydeatwxpxbxedh\"}},\"compression\":{\"type\":\"datahlugfnlvvk\",\"level\":\"dataurxdqhvhauimn\",\"\":{\"ivlqcwyzhndqkzst\":\"datakqpwqcnbn\",\"u\":\"datapzecdlceirtah\"}}},\"description\":\"imt\",\"structure\":\"dataumviudzpsjqrm\",\"schema\":\"datajmtunlo\",\"linkedServiceName\":{\"referenceName\":\"wuzebfqvm\",\"parameters\":{\"xeudwkhdl\":\"datahzyenfspe\"}},\"parameters\":{\"jcdevzpfreor\":{\"type\":\"Int\",\"defaultValue\":\"datao\"},\"x\":{\"type\":\"String\",\"defaultValue\":\"datayjmgvrlh\"},\"avuafanefic\":{\"type\":\"SecureString\",\"defaultValue\":\"datajnnhbcjywkdywks\"}},\"annotations\":[\"dataplkossjbzvxp\",\"datawdqzuhfgt\"],\"folder\":{\"name\":\"zhfjdccjny\"},\"\":{\"zthcdbszsbz\":\"datatcuhjcgjtjkntomn\"}}") - .toObject(HttpDataset.class); - Assertions.assertEquals("imt", model.description()); - Assertions.assertEquals("wuzebfqvm", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("jcdevzpfreor").type()); - Assertions.assertEquals("zhfjdccjny", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HttpDataset model = - new HttpDataset() - .withDescription("imt") - .withStructure("dataumviudzpsjqrm") - .withSchema("datajmtunlo") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("wuzebfqvm") - .withParameters(mapOf("xeudwkhdl", "datahzyenfspe"))) - .withParameters( - mapOf( - "jcdevzpfreor", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datao"), - "x", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datayjmgvrlh"), - "avuafanefic", - new ParameterSpecification() - .withType(ParameterType.SECURE_STRING) - .withDefaultValue("datajnnhbcjywkdywks"))) - .withAnnotations(Arrays.asList("dataplkossjbzvxp", "datawdqzuhfgt")) - .withFolder(new DatasetFolder().withName("zhfjdccjny")) - .withRelativeUrl("datatfctanetinqxd") - .withRequestMethod("datapjnezjighduml") - .withRequestBody("datamrzwvwetqffux") - .withAdditionalHeaders("datahuqhngqq") - .withFormat( - new DatasetStorageFormat() - .withSerializer("datasot") - .withDeserializer("datalmr") - .withAdditionalProperties(mapOf("type", "DatasetStorageFormat"))) - .withCompression( - new DatasetCompression() - .withType("datahlugfnlvvk") - .withLevel("dataurxdqhvhauimn") - .withAdditionalProperties(mapOf())); - model = BinaryData.fromObject(model).toObject(HttpDataset.class); - Assertions.assertEquals("imt", model.description()); - Assertions.assertEquals("wuzebfqvm", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("jcdevzpfreor").type()); - Assertions.assertEquals("zhfjdccjny", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HttpDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HttpDatasetTypePropertiesTests.java deleted file mode 100644 index 443bfa1068b0..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HttpDatasetTypePropertiesTests.java +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.HttpDatasetTypeProperties; -import com.azure.resourcemanager.datafactory.models.DatasetCompression; -import com.azure.resourcemanager.datafactory.models.DatasetStorageFormat; -import java.util.HashMap; -import java.util.Map; - -public final class HttpDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HttpDatasetTypeProperties model = - BinaryData - .fromString( - "{\"relativeUrl\":\"dataxeyvidcowlrm\",\"requestMethod\":\"datactqxa\",\"requestBody\":\"datajoezvw\",\"additionalHeaders\":\"datayzgavplnd\",\"format\":{\"type\":\"DatasetStorageFormat\",\"serializer\":\"dataiekkiskyyyaekn\",\"deserializer\":\"datafys\",\"\":{\"hoajjylsyqy\":\"datawjlmlcufbbjiutfo\"}},\"compression\":{\"type\":\"dataufzvlqquy\",\"level\":\"dataceevogir\",\"\":{\"dssijuaxxf\":\"datanqtvuxeuj\"}}}") - .toObject(HttpDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HttpDatasetTypeProperties model = - new HttpDatasetTypeProperties() - .withRelativeUrl("dataxeyvidcowlrm") - .withRequestMethod("datactqxa") - .withRequestBody("datajoezvw") - .withAdditionalHeaders("datayzgavplnd") - .withFormat( - new DatasetStorageFormat() - .withSerializer("dataiekkiskyyyaekn") - .withDeserializer("datafys") - .withAdditionalProperties(mapOf("type", "DatasetStorageFormat"))) - .withCompression( - new DatasetCompression() - .withType("dataufzvlqquy") - .withLevel("dataceevogir") - .withAdditionalProperties(mapOf())); - model = BinaryData.fromObject(model).toObject(HttpDatasetTypeProperties.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HttpReadSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HttpReadSettingsTests.java deleted file mode 100644 index 1c82fa6089ad..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HttpReadSettingsTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.HttpReadSettings; - -public final class HttpReadSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HttpReadSettings model = - BinaryData - .fromString( - "{\"type\":\"HttpReadSettings\",\"requestMethod\":\"dataa\",\"requestBody\":\"dataveqowqodispa\",\"additionalHeaders\":\"datawiicfsbjhhadndo\",\"requestTimeout\":\"datax\",\"additionalColumns\":\"datawsaxpbieehpvq\",\"maxConcurrentConnections\":\"datafrrjp\",\"disableMetricsCollection\":\"datagjgyovcpgqiism\",\"\":{\"kkcxc\":\"dataktcoykr\"}}") - .toObject(HttpReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HttpReadSettings model = - new HttpReadSettings() - .withMaxConcurrentConnections("datafrrjp") - .withDisableMetricsCollection("datagjgyovcpgqiism") - .withRequestMethod("dataa") - .withRequestBody("dataveqowqodispa") - .withAdditionalHeaders("datawiicfsbjhhadndo") - .withRequestTimeout("datax") - .withAdditionalColumns("datawsaxpbieehpvq"); - model = BinaryData.fromObject(model).toObject(HttpReadSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HttpServerLocationTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HttpServerLocationTests.java deleted file mode 100644 index fd953fd6b2ba..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HttpServerLocationTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.HttpServerLocation; - -public final class HttpServerLocationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HttpServerLocation model = - BinaryData - .fromString( - "{\"type\":\"HttpServerLocation\",\"relativeUrl\":\"datauklajvcfoc\",\"folderPath\":\"dataapejovtkwx\",\"fileName\":\"datawhhnoyrzaa\",\"\":{\"envjeateaxxc\":\"datahpm\"}}") - .toObject(HttpServerLocation.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HttpServerLocation model = - new HttpServerLocation() - .withFolderPath("dataapejovtkwx") - .withFileName("datawhhnoyrzaa") - .withRelativeUrl("datauklajvcfoc"); - model = BinaryData.fromObject(model).toObject(HttpServerLocation.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HttpSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HttpSourceTests.java deleted file mode 100644 index ef04f76dae6e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HttpSourceTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.HttpSource; - -public final class HttpSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HttpSource model = - BinaryData - .fromString( - "{\"type\":\"HttpSource\",\"httpRequestTimeout\":\"datakiff\",\"sourceRetryCount\":\"datawdyzse\",\"sourceRetryWait\":\"datamvtqhn\",\"maxConcurrentConnections\":\"dataiju\",\"disableMetricsCollection\":\"datarkqywybxgayomse\",\"\":{\"polpsap\":\"dataxlisvqfblsiz\"}}") - .toObject(HttpSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HttpSource model = - new HttpSource() - .withSourceRetryCount("datawdyzse") - .withSourceRetryWait("datamvtqhn") - .withMaxConcurrentConnections("dataiju") - .withDisableMetricsCollection("datarkqywybxgayomse") - .withHttpRequestTimeout("datakiff"); - model = BinaryData.fromObject(model).toObject(HttpSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HubspotObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HubspotObjectDatasetTests.java deleted file mode 100644 index 5918771bbeb8..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HubspotObjectDatasetTests.java +++ /dev/null @@ -1,81 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.HubspotObjectDataset; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class HubspotObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HubspotObjectDataset model = - BinaryData - .fromString( - "{\"type\":\"HubspotObject\",\"typeProperties\":{\"tableName\":\"dataqixpsybq\"},\"description\":\"gvmxwbohxd\",\"structure\":\"dataoexb\",\"schema\":\"datagnaka\",\"linkedServiceName\":{\"referenceName\":\"wscmneev\",\"parameters\":{\"yhmgq\":\"dataqeumz\",\"gbzgfhzdzahktxv\":\"dataeivjqutxr\",\"pxjvtwk\":\"databicfecthotbkjwhz\",\"pqiwuzr\":\"datajdpayx\"}},\"parameters\":{\"qqjobsyn\":{\"type\":\"Float\",\"defaultValue\":\"datafkgb\"},\"q\":{\"type\":\"Object\",\"defaultValue\":\"dataion\"},\"sxjwfudmpfh\":{\"type\":\"Int\",\"defaultValue\":\"datae\"}},\"annotations\":[\"datap\",\"datatjtntc\",\"datagpdbbglaecc\",\"dataokfsp\"],\"folder\":{\"name\":\"ds\"},\"\":{\"prftyptwjwiyyeoh\":\"datar\"}}") - .toObject(HubspotObjectDataset.class); - Assertions.assertEquals("gvmxwbohxd", model.description()); - Assertions.assertEquals("wscmneev", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("qqjobsyn").type()); - Assertions.assertEquals("ds", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HubspotObjectDataset model = - new HubspotObjectDataset() - .withDescription("gvmxwbohxd") - .withStructure("dataoexb") - .withSchema("datagnaka") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("wscmneev") - .withParameters( - mapOf( - "yhmgq", - "dataqeumz", - "gbzgfhzdzahktxv", - "dataeivjqutxr", - "pxjvtwk", - "databicfecthotbkjwhz", - "pqiwuzr", - "datajdpayx"))) - .withParameters( - mapOf( - "qqjobsyn", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datafkgb"), - "q", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("dataion"), - "sxjwfudmpfh", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datae"))) - .withAnnotations(Arrays.asList("datap", "datatjtntc", "datagpdbbglaecc", "dataokfsp")) - .withFolder(new DatasetFolder().withName("ds")) - .withTableName("dataqixpsybq"); - model = BinaryData.fromObject(model).toObject(HubspotObjectDataset.class); - Assertions.assertEquals("gvmxwbohxd", model.description()); - Assertions.assertEquals("wscmneev", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("qqjobsyn").type()); - Assertions.assertEquals("ds", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HubspotSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HubspotSourceTests.java deleted file mode 100644 index 3a1c43ea0a17..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HubspotSourceTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.HubspotSource; - -public final class HubspotSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HubspotSource model = - BinaryData - .fromString( - "{\"type\":\"HubspotSource\",\"query\":\"dataclkbwkmwdrvkb\",\"queryTimeout\":\"datavnnvk\",\"additionalColumns\":\"datazldzzjj\",\"sourceRetryCount\":\"datahjqengopdvnzn\",\"sourceRetryWait\":\"dataiodaj\",\"maxConcurrentConnections\":\"dataszdyv\",\"disableMetricsCollection\":\"dataiufbw\",\"\":{\"edbhnkl\":\"datawhnzhsmu\"}}") - .toObject(HubspotSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HubspotSource model = - new HubspotSource() - .withSourceRetryCount("datahjqengopdvnzn") - .withSourceRetryWait("dataiodaj") - .withMaxConcurrentConnections("dataszdyv") - .withDisableMetricsCollection("dataiufbw") - .withQueryTimeout("datavnnvk") - .withAdditionalColumns("datazldzzjj") - .withQuery("dataclkbwkmwdrvkb"); - model = BinaryData.fromObject(model).toObject(HubspotSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IfConditionActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IfConditionActivityTests.java deleted file mode 100644 index 6ce88ad1bbdd..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IfConditionActivityTests.java +++ /dev/null @@ -1,355 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.Activity; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.Expression; -import com.azure.resourcemanager.datafactory.models.IfConditionActivity; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class IfConditionActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IfConditionActivity model = - BinaryData - .fromString( - "{\"type\":\"IfCondition\",\"typeProperties\":{\"expression\":{\"value\":\"kbgohxbjizf\"},\"ifTrueActivities\":[{\"type\":\"Activity\",\"name\":\"bqdrjunigx\",\"description\":\"nnghgazdbv\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"jqswr\",\"dependencyConditions\":[\"Completed\",\"Failed\",\"Skipped\"],\"\":{\"mvrbdtvvtapwkw\":\"datangjepydjdpapn\",\"cdehskmfiudnpj\":\"datathmexid\"}},{\"activity\":\"xfhtsgyyrg\",\"dependencyConditions\":[\"Completed\"],\"\":{\"ytihhq\":\"datagqllgokznffqvtx\"}},{\"activity\":\"ncwgrwgdpfzdygt\",\"dependencyConditions\":[\"Completed\",\"Failed\",\"Failed\",\"Completed\"],\"\":{\"slaiu\":\"datamyolvg\",\"wvwzuetqcxoamxu\":\"datancr\",\"uzxsn\":\"datawzduhixomxvb\",\"eozgnwmcizclnqe\":\"dataxipgfkcodou\"}}],\"userProperties\":[{\"name\":\"pwp\",\"value\":\"datadfjsjkondrkncfoq\"}],\"\":{\"ikxs\":\"dataslcvpqwrsfd\"}},{\"type\":\"Activity\",\"name\":\"gaegrppwol\",\"description\":\"flj\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"dwvyjzokvycinm\",\"dependencyConditions\":[\"Failed\",\"Succeeded\",\"Completed\"],\"\":{\"exzxbiwnq\":\"datafoztwmvprnqjx\",\"ryesgalsparbjs\":\"datawqtbztogihpylf\",\"lvnosblc\":\"dataqybvgemkze\"}},{\"activity\":\"ctwac\",\"dependencyConditions\":[\"Failed\"],\"\":{\"fh\":\"datadcvjhykptcijuntm\",\"xxymtcwacavz\":\"dataccqhtlqrfsrfxr\",\"xid\":\"datadybhydlq\",\"ihnsaespzwgpjrix\":\"datast\"}}],\"userProperties\":[{\"name\":\"v\",\"value\":\"datawuttl\"},{\"name\":\"fcnht\",\"value\":\"dataaiypihqmmmbokdqk\"},{\"name\":\"bpfzxnivvuwrv\",\"value\":\"datahlz\"},{\"name\":\"lkgpipwt\",\"value\":\"datatrbfipbddhfk\"}],\"\":{\"awzkefz\":\"dataqqun\",\"yqiytrhhmld\":\"datauyhvaovoqonqjlpc\",\"nmstflk\":\"datatyz\",\"bbcsbcfecmcprggc\":\"datagzo\"}},{\"type\":\"Activity\",\"name\":\"fssbqwvragvxhwbq\",\"description\":\"frrv\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"fblkge\",\"dependencyConditions\":[\"Skipped\",\"Succeeded\",\"Completed\",\"Succeeded\"],\"\":{\"upp\":\"datafcamdffoibxjg\"}}],\"userProperties\":[{\"name\":\"awqxrenjzlqbtef\",\"value\":\"datactpzhoxagayno\"},{\"name\":\"hjvtefevhedfzxs\",\"value\":\"dataypara\"},{\"name\":\"rgsfnjokrfpiqgqv\",\"value\":\"datarlbsglqiuqsqzumx\"},{\"name\":\"x\",\"value\":\"datamuosoziqcuiekuya\"}],\"\":{\"dpfxlkwyqoaejy\":\"datakxtgeejxwbredx\",\"e\":\"dataqgen\",\"oxvbwsa\":\"datapaiat\",\"udp\":\"datazvtinrortjtyls\"}}],\"ifFalseActivities\":[{\"type\":\"Activity\",\"name\":\"nngijnzlokxihf\",\"description\":\"mbljlrf\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"dhrfvbicd\",\"dependencyConditions\":[\"Skipped\",\"Completed\",\"Failed\"],\"\":{\"tqnq\":\"datazxbf\",\"jqfachfmvqnkgst\":\"datalmqeauizk\",\"ujvsc\":\"datae\",\"pwm\":\"datapwpqvg\"}},{\"activity\":\"efhburxnagvcsm\",\"dependencyConditions\":[\"Skipped\",\"Failed\",\"Completed\"],\"\":{\"zlfhn\":\"datatqnqbdxwyo\"}},{\"activity\":\"juuwmcugveiiegoo\",\"dependencyConditions\":[\"Skipped\",\"Succeeded\"],\"\":{\"thohfqbeai\":\"datalbudf\"}}],\"userProperties\":[{\"name\":\"nhxgiydkrgdascm\",\"value\":\"datankabwpdvedmx\"},{\"name\":\"kbgxgykx\",\"value\":\"datazetaonkfbgwfkc\"},{\"name\":\"ldepzrsz\",\"value\":\"dataj\"},{\"name\":\"dcisceiauoy\",\"value\":\"dataudnxaw\"}],\"\":{\"paviu\":\"databmbvccui\",\"o\":\"datajizbjsu\",\"crtmebrssrlxenqp\":\"dataetl\",\"j\":\"datahc\"}},{\"type\":\"Activity\",\"name\":\"qmb\",\"description\":\"ensogdvhqqxggnc\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"xcjqrvpgukscr\",\"dependencyConditions\":[\"Completed\",\"Skipped\",\"Skipped\"],\"\":{\"oaj\":\"datama\",\"s\":\"datagkcac\"}},{\"activity\":\"jgageyxajk\",\"dependencyConditions\":[\"Skipped\",\"Completed\"],\"\":{\"zbeemlsrtgbgcmut\":\"datajqbmgfxwy\",\"lpuuf\":\"datakwd\",\"rxyejjqctq\":\"datahbdmmf\",\"gvpsmxfchnhjsa\":\"databahiiatpdxpox\"}},{\"activity\":\"pwx\",\"dependencyConditions\":[\"Succeeded\",\"Failed\",\"Failed\",\"Failed\"],\"\":{\"lvwtslzblgvezhim\":\"datalqgpskynkkezkv\",\"dzkovt\":\"dataiyqwlxkyoysyutnr\",\"ayupa\":\"datanmcaprxhixmybl\",\"ipxhghicw\":\"datagkrumpunwyfyvhcb\"}},{\"activity\":\"h\",\"dependencyConditions\":[\"Completed\",\"Succeeded\",\"Succeeded\",\"Completed\"],\"\":{\"m\":\"datapyanooytil\",\"wqljmmoquicrz\":\"datas\"}}],\"userProperties\":[{\"name\":\"qacebcnhz\",\"value\":\"datasaumjuruspflv\"},{\"name\":\"lvwkgcpfz\",\"value\":\"dataekbrqg\"},{\"name\":\"vxwq\",\"value\":\"datamvsrbmf\"}],\"\":{\"ob\":\"dataml\"}},{\"type\":\"Activity\",\"name\":\"uoyownygbra\",\"description\":\"whebyczwegtzdpr\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"sqi\",\"dependencyConditions\":[\"Failed\",\"Skipped\"],\"\":{\"dlt\":\"datavturdglecmegol\"}},{\"activity\":\"ryhztwxuizakejo\",\"dependencyConditions\":[\"Completed\",\"Failed\",\"Completed\",\"Completed\"],\"\":{\"qlg\":\"datazgnf\",\"we\":\"dataezgbqi\",\"znvyeuxd\":\"dataaceokrarzkza\"}}],\"userProperties\":[{\"name\":\"mt\",\"value\":\"datapukmxgslzbpnl\"},{\"name\":\"zqwmx\",\"value\":\"dataotwzes\"},{\"name\":\"j\",\"value\":\"datacpcpeur\"},{\"name\":\"ofzmvt\",\"value\":\"datayj\"}],\"\":{\"bqhe\":\"datarptlty\",\"wjlbygqfmeeuuurx\":\"datah\",\"ob\":\"dataslxzwvygquiwcfq\",\"mte\":\"datawwdev\"}}]},\"name\":\"hvgg\",\"description\":\"irqkskyyam\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"wcd\",\"dependencyConditions\":[\"Succeeded\"],\"\":{\"lvlfkwdtsbjmc\":\"datarxmlmibvczdjko\",\"n\":\"datasefezjyfaqdwfa\",\"hwlvh\":\"datadetslxe\",\"zil\":\"datalxxgelad\"}},{\"activity\":\"rsycujnsznjsk\",\"dependencyConditions\":[\"Skipped\",\"Succeeded\",\"Succeeded\",\"Succeeded\"],\"\":{\"sonfxsfje\":\"dataxpixuyy\",\"ytedspkduhz\":\"datajnxicufxt\"}}],\"userProperties\":[{\"name\":\"gcfltte\",\"value\":\"dataqpjcuuyttuindp\"}],\"\":{\"bahtlopbns\":\"datajncaqgt\",\"shnoxrmabb\":\"datajzrnjcagagmgulln\",\"guau\":\"datatzcdbqzwutakbva\",\"ccd\":\"datamcwplloj\"}}") - .toObject(IfConditionActivity.class); - Assertions.assertEquals("hvgg", model.name()); - Assertions.assertEquals("irqkskyyam", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("wcd", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("gcfltte", model.userProperties().get(0).name()); - Assertions.assertEquals("kbgohxbjizf", model.expression().value()); - Assertions.assertEquals("bqdrjunigx", model.ifTrueActivities().get(0).name()); - Assertions.assertEquals("nnghgazdbv", model.ifTrueActivities().get(0).description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.ifTrueActivities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.ifTrueActivities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("jqswr", model.ifTrueActivities().get(0).dependsOn().get(0).activity()); - Assertions - .assertEquals( - DependencyCondition.COMPLETED, - model.ifTrueActivities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("pwp", model.ifTrueActivities().get(0).userProperties().get(0).name()); - Assertions.assertEquals("nngijnzlokxihf", model.ifFalseActivities().get(0).name()); - Assertions.assertEquals("mbljlrf", model.ifFalseActivities().get(0).description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.ifFalseActivities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.ifFalseActivities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("dhrfvbicd", model.ifFalseActivities().get(0).dependsOn().get(0).activity()); - Assertions - .assertEquals( - DependencyCondition.SKIPPED, - model.ifFalseActivities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("nhxgiydkrgdascm", model.ifFalseActivities().get(0).userProperties().get(0).name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IfConditionActivity model = - new IfConditionActivity() - .withName("hvgg") - .withDescription("irqkskyyam") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("wcd") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("rsycujnsznjsk") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.SKIPPED, - DependencyCondition.SUCCEEDED, - DependencyCondition.SUCCEEDED, - DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("gcfltte").withValue("dataqpjcuuyttuindp"))) - .withExpression(new Expression().withValue("kbgohxbjizf")) - .withIfTrueActivities( - Arrays - .asList( - new Activity() - .withName("bqdrjunigx") - .withDescription("nnghgazdbv") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("jqswr") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.COMPLETED, - DependencyCondition.FAILED, - DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("xfhtsgyyrg") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("ncwgrwgdpfzdygt") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.COMPLETED, - DependencyCondition.FAILED, - DependencyCondition.FAILED, - DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("pwp").withValue("datadfjsjkondrkncfoq"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity() - .withName("gaegrppwol") - .withDescription("flj") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("dwvyjzokvycinm") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.FAILED, - DependencyCondition.SUCCEEDED, - DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("ctwac") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays - .asList( - new UserProperty().withName("v").withValue("datawuttl"), - new UserProperty().withName("fcnht").withValue("dataaiypihqmmmbokdqk"), - new UserProperty().withName("bpfzxnivvuwrv").withValue("datahlz"), - new UserProperty().withName("lkgpipwt").withValue("datatrbfipbddhfk"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity() - .withName("fssbqwvragvxhwbq") - .withDescription("frrv") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("fblkge") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.SKIPPED, - DependencyCondition.SUCCEEDED, - DependencyCondition.COMPLETED, - DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays - .asList( - new UserProperty() - .withName("awqxrenjzlqbtef") - .withValue("datactpzhoxagayno"), - new UserProperty().withName("hjvtefevhedfzxs").withValue("dataypara"), - new UserProperty() - .withName("rgsfnjokrfpiqgqv") - .withValue("datarlbsglqiuqsqzumx"), - new UserProperty().withName("x").withValue("datamuosoziqcuiekuya"))) - .withAdditionalProperties(mapOf("type", "Activity")))) - .withIfFalseActivities( - Arrays - .asList( - new Activity() - .withName("nngijnzlokxihf") - .withDescription("mbljlrf") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("dhrfvbicd") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.SKIPPED, - DependencyCondition.COMPLETED, - DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("efhburxnagvcsm") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.SKIPPED, - DependencyCondition.FAILED, - DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("juuwmcugveiiegoo") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.SKIPPED, DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays - .asList( - new UserProperty() - .withName("nhxgiydkrgdascm") - .withValue("datankabwpdvedmx"), - new UserProperty().withName("kbgxgykx").withValue("datazetaonkfbgwfkc"), - new UserProperty().withName("ldepzrsz").withValue("dataj"), - new UserProperty().withName("dcisceiauoy").withValue("dataudnxaw"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity() - .withName("qmb") - .withDescription("ensogdvhqqxggnc") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("xcjqrvpgukscr") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.COMPLETED, - DependencyCondition.SKIPPED, - DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("jgageyxajk") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.SKIPPED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("pwx") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.SUCCEEDED, - DependencyCondition.FAILED, - DependencyCondition.FAILED, - DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("h") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.COMPLETED, - DependencyCondition.SUCCEEDED, - DependencyCondition.SUCCEEDED, - DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays - .asList( - new UserProperty().withName("qacebcnhz").withValue("datasaumjuruspflv"), - new UserProperty().withName("lvwkgcpfz").withValue("dataekbrqg"), - new UserProperty().withName("vxwq").withValue("datamvsrbmf"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity() - .withName("uoyownygbra") - .withDescription("whebyczwegtzdpr") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("sqi") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.FAILED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("ryhztwxuizakejo") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.COMPLETED, - DependencyCondition.FAILED, - DependencyCondition.COMPLETED, - DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays - .asList( - new UserProperty().withName("mt").withValue("datapukmxgslzbpnl"), - new UserProperty().withName("zqwmx").withValue("dataotwzes"), - new UserProperty().withName("j").withValue("datacpcpeur"), - new UserProperty().withName("ofzmvt").withValue("datayj"))) - .withAdditionalProperties(mapOf("type", "Activity")))); - model = BinaryData.fromObject(model).toObject(IfConditionActivity.class); - Assertions.assertEquals("hvgg", model.name()); - Assertions.assertEquals("irqkskyyam", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("wcd", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("gcfltte", model.userProperties().get(0).name()); - Assertions.assertEquals("kbgohxbjizf", model.expression().value()); - Assertions.assertEquals("bqdrjunigx", model.ifTrueActivities().get(0).name()); - Assertions.assertEquals("nnghgazdbv", model.ifTrueActivities().get(0).description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.ifTrueActivities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.ifTrueActivities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("jqswr", model.ifTrueActivities().get(0).dependsOn().get(0).activity()); - Assertions - .assertEquals( - DependencyCondition.COMPLETED, - model.ifTrueActivities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("pwp", model.ifTrueActivities().get(0).userProperties().get(0).name()); - Assertions.assertEquals("nngijnzlokxihf", model.ifFalseActivities().get(0).name()); - Assertions.assertEquals("mbljlrf", model.ifFalseActivities().get(0).description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.ifFalseActivities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.ifFalseActivities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("dhrfvbicd", model.ifFalseActivities().get(0).dependsOn().get(0).activity()); - Assertions - .assertEquals( - DependencyCondition.SKIPPED, - model.ifFalseActivities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("nhxgiydkrgdascm", model.ifFalseActivities().get(0).userProperties().get(0).name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IfConditionActivityTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IfConditionActivityTypePropertiesTests.java deleted file mode 100644 index 4a2b4b14d285..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IfConditionActivityTypePropertiesTests.java +++ /dev/null @@ -1,209 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.IfConditionActivityTypeProperties; -import com.azure.resourcemanager.datafactory.models.Activity; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.Expression; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class IfConditionActivityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IfConditionActivityTypeProperties model = - BinaryData - .fromString( - "{\"expression\":{\"value\":\"ewtddigmmjve\"},\"ifTrueActivities\":[{\"type\":\"Activity\",\"name\":\"crbkwcnvgx\",\"description\":\"ih\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"wcbvhqjpia\",\"dependencyConditions\":[\"Completed\",\"Completed\"],\"\":{\"q\":\"datamzntroafz\"}},{\"activity\":\"ogfo\",\"dependencyConditions\":[\"Succeeded\",\"Skipped\",\"Failed\",\"Skipped\"],\"\":{\"oaxszuhuoj\":\"datak\"}},{\"activity\":\"b\",\"dependencyConditions\":[\"Completed\",\"Skipped\",\"Succeeded\",\"Failed\"],\"\":{\"betemam\":\"datahecq\",\"umxyqhctr\":\"datashnksupchzspgby\"}}],\"userProperties\":[{\"name\":\"hgchtaeac\",\"value\":\"dataqk\"},{\"name\":\"rzukajkihnlqf\",\"value\":\"dataawynslcfx\"}],\"\":{\"htfugppiudhylxq\":\"dataaviiriedf\"}},{\"type\":\"Activity\",\"name\":\"sumqdri\",\"description\":\"xzcrf\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"exmgcqlufo\",\"dependencyConditions\":[\"Completed\"],\"\":{\"snaklobc\":\"datakqhgfwyzv\",\"mltdgxiqrgr\":\"datay\"}},{\"activity\":\"xjfxu\",\"dependencyConditions\":[\"Succeeded\",\"Failed\",\"Succeeded\"],\"\":{\"buglalaazncnhzqn\":\"dataytgnycnklqipnzgn\",\"galodfsbhphwt\":\"dataxkscyykrzrjjernj\",\"ajh\":\"datagy\"}}],\"userProperties\":[{\"name\":\"arldsijcm\",\"value\":\"dataugpxgxjmwzkafuvb\"},{\"name\":\"cyarsbhjlcxvsmr\",\"value\":\"dataypbi\"}],\"\":{\"b\":\"dataznaixjsfasxfamn\",\"wco\":\"dataxbglqybfnxej\",\"cnuozjg\":\"datajmpsxot\",\"gnrrqvrxouoqte\":\"datacxbenwi\"}}],\"ifFalseActivities\":[{\"type\":\"Activity\",\"name\":\"aqeskmvrcy\",\"description\":\"aa\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"egsswijq\",\"dependencyConditions\":[\"Completed\",\"Failed\",\"Completed\"],\"\":{\"cu\":\"datatczxwqmundlegd\",\"utbtr\":\"datadrmqkw\",\"ppj\":\"datarygdpjufmvozqmtc\",\"qrvtwvyjprr\":\"datagctsatnrywouewrw\"}}],\"userProperties\":[{\"name\":\"qpmzznmnscs\",\"value\":\"dataadvbwewwdfeie\"},{\"name\":\"wmaxlppagkm\",\"value\":\"databeneqapll\"},{\"name\":\"dowsj\",\"value\":\"datavpvtyullivcymnpb\"}],\"\":{\"hcatp\":\"datal\",\"qnajmwpeaoeggi\":\"dataq\",\"ugru\":\"datalpglhlwu\"}},{\"type\":\"Activity\",\"name\":\"oprnbozvi\",\"description\":\"mhitqrpbwykee\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"pkodbquvftka\",\"dependencyConditions\":[\"Skipped\",\"Succeeded\"],\"\":{\"kzgwf\":\"dataogwfqtqbnakmgydf\",\"kankjkszudx\":\"datageqzkpergzscr\"}}],\"userProperties\":[{\"name\":\"vxvoqbruyma\",\"value\":\"dataj\"}],\"\":{\"vydjaxzstuhlwz\":\"datafxirjf\",\"ugbymnyfh\":\"datanf\",\"rpsl\":\"dataxcplhqzpwqpu\",\"cnfgtup\":\"datae\"}}]}") - .toObject(IfConditionActivityTypeProperties.class); - Assertions.assertEquals("ewtddigmmjve", model.expression().value()); - Assertions.assertEquals("crbkwcnvgx", model.ifTrueActivities().get(0).name()); - Assertions.assertEquals("ih", model.ifTrueActivities().get(0).description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.ifTrueActivities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.ifTrueActivities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("wcbvhqjpia", model.ifTrueActivities().get(0).dependsOn().get(0).activity()); - Assertions - .assertEquals( - DependencyCondition.COMPLETED, - model.ifTrueActivities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("hgchtaeac", model.ifTrueActivities().get(0).userProperties().get(0).name()); - Assertions.assertEquals("aqeskmvrcy", model.ifFalseActivities().get(0).name()); - Assertions.assertEquals("aa", model.ifFalseActivities().get(0).description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.ifFalseActivities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.ifFalseActivities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("egsswijq", model.ifFalseActivities().get(0).dependsOn().get(0).activity()); - Assertions - .assertEquals( - DependencyCondition.COMPLETED, - model.ifFalseActivities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("qpmzznmnscs", model.ifFalseActivities().get(0).userProperties().get(0).name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IfConditionActivityTypeProperties model = - new IfConditionActivityTypeProperties() - .withExpression(new Expression().withValue("ewtddigmmjve")) - .withIfTrueActivities( - Arrays - .asList( - new Activity() - .withName("crbkwcnvgx") - .withDescription("ih") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("wcbvhqjpia") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.COMPLETED, - DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("ogfo") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.SUCCEEDED, - DependencyCondition.SKIPPED, - DependencyCondition.FAILED, - DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("b") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.COMPLETED, - DependencyCondition.SKIPPED, - DependencyCondition.SUCCEEDED, - DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays - .asList( - new UserProperty().withName("hgchtaeac").withValue("dataqk"), - new UserProperty().withName("rzukajkihnlqf").withValue("dataawynslcfx"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity() - .withName("sumqdri") - .withDescription("xzcrf") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("exmgcqlufo") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("xjfxu") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.SUCCEEDED, - DependencyCondition.FAILED, - DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays - .asList( - new UserProperty().withName("arldsijcm").withValue("dataugpxgxjmwzkafuvb"), - new UserProperty().withName("cyarsbhjlcxvsmr").withValue("dataypbi"))) - .withAdditionalProperties(mapOf("type", "Activity")))) - .withIfFalseActivities( - Arrays - .asList( - new Activity() - .withName("aqeskmvrcy") - .withDescription("aa") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("egsswijq") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.COMPLETED, - DependencyCondition.FAILED, - DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays - .asList( - new UserProperty().withName("qpmzznmnscs").withValue("dataadvbwewwdfeie"), - new UserProperty().withName("wmaxlppagkm").withValue("databeneqapll"), - new UserProperty().withName("dowsj").withValue("datavpvtyullivcymnpb"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity() - .withName("oprnbozvi") - .withDescription("mhitqrpbwykee") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("pkodbquvftka") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.SKIPPED, DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("vxvoqbruyma").withValue("dataj"))) - .withAdditionalProperties(mapOf("type", "Activity")))); - model = BinaryData.fromObject(model).toObject(IfConditionActivityTypeProperties.class); - Assertions.assertEquals("ewtddigmmjve", model.expression().value()); - Assertions.assertEquals("crbkwcnvgx", model.ifTrueActivities().get(0).name()); - Assertions.assertEquals("ih", model.ifTrueActivities().get(0).description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.ifTrueActivities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.ifTrueActivities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("wcbvhqjpia", model.ifTrueActivities().get(0).dependsOn().get(0).activity()); - Assertions - .assertEquals( - DependencyCondition.COMPLETED, - model.ifTrueActivities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("hgchtaeac", model.ifTrueActivities().get(0).userProperties().get(0).name()); - Assertions.assertEquals("aqeskmvrcy", model.ifFalseActivities().get(0).name()); - Assertions.assertEquals("aa", model.ifFalseActivities().get(0).description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.ifFalseActivities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.ifFalseActivities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("egsswijq", model.ifFalseActivities().get(0).dependsOn().get(0).activity()); - Assertions - .assertEquals( - DependencyCondition.COMPLETED, - model.ifFalseActivities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("qpmzznmnscs", model.ifFalseActivities().get(0).userProperties().get(0).name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ImpalaDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ImpalaDatasetTypePropertiesTests.java deleted file mode 100644 index 51779b686b62..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ImpalaDatasetTypePropertiesTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.ImpalaDatasetTypeProperties; - -public final class ImpalaDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ImpalaDatasetTypeProperties model = - BinaryData - .fromString("{\"tableName\":\"datauklx\",\"table\":\"datalmzpyq\",\"schema\":\"datahuecxhgs\"}") - .toObject(ImpalaDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ImpalaDatasetTypeProperties model = - new ImpalaDatasetTypeProperties() - .withTableName("datauklx") - .withTable("datalmzpyq") - .withSchema("datahuecxhgs"); - model = BinaryData.fromObject(model).toObject(ImpalaDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ImpalaObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ImpalaObjectDatasetTests.java deleted file mode 100644 index ecf44e65d70c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ImpalaObjectDatasetTests.java +++ /dev/null @@ -1,81 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.ImpalaObjectDataset; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ImpalaObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ImpalaObjectDataset model = - BinaryData - .fromString( - "{\"type\":\"ImpalaObject\",\"typeProperties\":{\"tableName\":\"datamdjmvph\",\"table\":\"datanugslvfzzioxbg\",\"schema\":\"datavueprpmofxnwcgz\"},\"description\":\"xixtxxxajsehbknn\",\"structure\":\"datakyjfawpcbsog\",\"schema\":\"datahczbnivco\",\"linkedServiceName\":{\"referenceName\":\"sxvppkjealkdb\",\"parameters\":{\"qdkt\":\"dataotvbmyzuqf\",\"jndkvzmx\":\"datajtoqszhhqn\",\"nkqyipgkm\":\"dataffqgdo\",\"ftgdrfzjlflza\":\"datatdazmdzesim\"}},\"parameters\":{\"orzbidaebeznicew\":{\"type\":\"Object\",\"defaultValue\":\"dataabxief\"},\"wwsr\":{\"type\":\"Array\",\"defaultValue\":\"datajwiylciobb\"}},\"annotations\":[\"dataxuecuuue\"],\"folder\":{\"name\":\"nteevfgaxfez\"},\"\":{\"kyrxgmzzeglwd\":\"datasddkodkgxq\",\"kkraj\":\"datafsspfegaoksd\"}}") - .toObject(ImpalaObjectDataset.class); - Assertions.assertEquals("xixtxxxajsehbknn", model.description()); - Assertions.assertEquals("sxvppkjealkdb", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("orzbidaebeznicew").type()); - Assertions.assertEquals("nteevfgaxfez", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ImpalaObjectDataset model = - new ImpalaObjectDataset() - .withDescription("xixtxxxajsehbknn") - .withStructure("datakyjfawpcbsog") - .withSchema("datahczbnivco") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("sxvppkjealkdb") - .withParameters( - mapOf( - "qdkt", - "dataotvbmyzuqf", - "jndkvzmx", - "datajtoqszhhqn", - "nkqyipgkm", - "dataffqgdo", - "ftgdrfzjlflza", - "datatdazmdzesim"))) - .withParameters( - mapOf( - "orzbidaebeznicew", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("dataabxief"), - "wwsr", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datajwiylciobb"))) - .withAnnotations(Arrays.asList("dataxuecuuue")) - .withFolder(new DatasetFolder().withName("nteevfgaxfez")) - .withTableName("datamdjmvph") - .withTable("datanugslvfzzioxbg") - .withSchemaTypePropertiesSchema("datavueprpmofxnwcgz"); - model = BinaryData.fromObject(model).toObject(ImpalaObjectDataset.class); - Assertions.assertEquals("xixtxxxajsehbknn", model.description()); - Assertions.assertEquals("sxvppkjealkdb", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("orzbidaebeznicew").type()); - Assertions.assertEquals("nteevfgaxfez", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ImpalaSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ImpalaSourceTests.java deleted file mode 100644 index 920b71d6417b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ImpalaSourceTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ImpalaSource; - -public final class ImpalaSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ImpalaSource model = - BinaryData - .fromString( - "{\"type\":\"ImpalaSource\",\"query\":\"datavzd\",\"queryTimeout\":\"datakqajia\",\"additionalColumns\":\"datacyrdtrd\",\"sourceRetryCount\":\"datadmsktuvjh\",\"sourceRetryWait\":\"datatvyt\",\"maxConcurrentConnections\":\"datafbsgrzw\",\"disableMetricsCollection\":\"datadudxqebtrpsplwt\",\"\":{\"ckrnku\":\"dataseybvtgcoznnjq\",\"tuynugptfjpi\":\"dataotlymybmgmrkxk\",\"tqqshb\":\"datavfh\",\"zjsezgphip\":\"datapzhuhuj\"}}") - .toObject(ImpalaSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ImpalaSource model = - new ImpalaSource() - .withSourceRetryCount("datadmsktuvjh") - .withSourceRetryWait("datatvyt") - .withMaxConcurrentConnections("datafbsgrzw") - .withDisableMetricsCollection("datadudxqebtrpsplwt") - .withQueryTimeout("datakqajia") - .withAdditionalColumns("datacyrdtrd") - .withQuery("datavzd"); - model = BinaryData.fromObject(model).toObject(ImpalaSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ImportSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ImportSettingsTests.java deleted file mode 100644 index e21ba54e706e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ImportSettingsTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ImportSettings; -import java.util.HashMap; -import java.util.Map; - -public final class ImportSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ImportSettings model = - BinaryData - .fromString("{\"type\":\"ImportSettings\",\"\":{\"hfwce\":\"datajcbdpczmzuwrc\"}}") - .toObject(ImportSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ImportSettings model = new ImportSettings().withAdditionalProperties(mapOf("type", "ImportSettings")); - model = BinaryData.fromObject(model).toObject(ImportSettings.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/InformixSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/InformixSinkTests.java deleted file mode 100644 index 1ea56f028314..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/InformixSinkTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.InformixSink; - -public final class InformixSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InformixSink model = - BinaryData - .fromString( - "{\"type\":\"InformixSink\",\"preCopyScript\":\"dataoiumuxna\",\"writeBatchSize\":\"datavgmckxh\",\"writeBatchTimeout\":\"datazsmpoiu\",\"sinkRetryCount\":\"dataatv\",\"sinkRetryWait\":\"dataiojncgjogmvoyk\",\"maxConcurrentConnections\":\"datamg\",\"disableMetricsCollection\":\"dataeas\",\"\":{\"h\":\"datap\",\"f\":\"dataxwdo\"}}") - .toObject(InformixSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InformixSink model = - new InformixSink() - .withWriteBatchSize("datavgmckxh") - .withWriteBatchTimeout("datazsmpoiu") - .withSinkRetryCount("dataatv") - .withSinkRetryWait("dataiojncgjogmvoyk") - .withMaxConcurrentConnections("datamg") - .withDisableMetricsCollection("dataeas") - .withPreCopyScript("dataoiumuxna"); - model = BinaryData.fromObject(model).toObject(InformixSink.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/InformixSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/InformixSourceTests.java deleted file mode 100644 index 2221064edd37..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/InformixSourceTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.InformixSource; - -public final class InformixSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InformixSource model = - BinaryData - .fromString( - "{\"type\":\"InformixSource\",\"query\":\"datalzk\",\"queryTimeout\":\"datajtapvqjebtdp\",\"additionalColumns\":\"datakeexso\",\"sourceRetryCount\":\"datakvy\",\"sourceRetryWait\":\"datatytwtfqpmpyww\",\"maxConcurrentConnections\":\"dataukqmjcwdo\",\"disableMetricsCollection\":\"datadqun\",\"\":{\"rbn\":\"datacocchdxjrrb\",\"p\":\"dataqpsquou\"}}") - .toObject(InformixSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InformixSource model = - new InformixSource() - .withSourceRetryCount("datakvy") - .withSourceRetryWait("datatytwtfqpmpyww") - .withMaxConcurrentConnections("dataukqmjcwdo") - .withDisableMetricsCollection("datadqun") - .withQueryTimeout("datajtapvqjebtdp") - .withAdditionalColumns("datakeexso") - .withQuery("datalzk"); - model = BinaryData.fromObject(model).toObject(InformixSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/InformixTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/InformixTableDatasetTests.java deleted file mode 100644 index 616194272a6d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/InformixTableDatasetTests.java +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.InformixTableDataset; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class InformixTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InformixTableDataset model = - BinaryData - .fromString( - "{\"type\":\"InformixTable\",\"typeProperties\":{\"tableName\":\"dataspth\"},\"description\":\"fmwtblgm\",\"structure\":\"datakqoikxiefwln\",\"schema\":\"datakffcnuestbsl\",\"linkedServiceName\":{\"referenceName\":\"e\",\"parameters\":{\"ikjiytehhxt\":\"dataccote\",\"n\":\"dataxqdwbymuq\"}},\"parameters\":{\"pek\":{\"type\":\"Bool\",\"defaultValue\":\"dataorctyse\"},\"tzcvimmwckoz\":{\"type\":\"Float\",\"defaultValue\":\"databyh\"},\"xup\":{\"type\":\"String\",\"defaultValue\":\"dataymtrts\"},\"rfrjschjxncqzahg\":{\"type\":\"String\",\"defaultValue\":\"datackjbcbkg\"}},\"annotations\":[\"datagdobimor\"],\"folder\":{\"name\":\"xosgihtrxue\"},\"\":{\"znjqswshe\":\"dataxqfg\"}}") - .toObject(InformixTableDataset.class); - Assertions.assertEquals("fmwtblgm", model.description()); - Assertions.assertEquals("e", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("pek").type()); - Assertions.assertEquals("xosgihtrxue", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InformixTableDataset model = - new InformixTableDataset() - .withDescription("fmwtblgm") - .withStructure("datakqoikxiefwln") - .withSchema("datakffcnuestbsl") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("e") - .withParameters(mapOf("ikjiytehhxt", "dataccote", "n", "dataxqdwbymuq"))) - .withParameters( - mapOf( - "pek", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("dataorctyse"), - "tzcvimmwckoz", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("databyh"), - "xup", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("dataymtrts"), - "rfrjschjxncqzahg", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datackjbcbkg"))) - .withAnnotations(Arrays.asList("datagdobimor")) - .withFolder(new DatasetFolder().withName("xosgihtrxue")) - .withTableName("dataspth"); - model = BinaryData.fromObject(model).toObject(InformixTableDataset.class); - Assertions.assertEquals("fmwtblgm", model.description()); - Assertions.assertEquals("e", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("pek").type()); - Assertions.assertEquals("xosgihtrxue", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/InformixTableDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/InformixTableDatasetTypePropertiesTests.java deleted file mode 100644 index b1f81e5dcc77..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/InformixTableDatasetTypePropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.InformixTableDatasetTypeProperties; - -public final class InformixTableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InformixTableDatasetTypeProperties model = - BinaryData - .fromString("{\"tableName\":\"datacsqosecxlngo\"}") - .toObject(InformixTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InformixTableDatasetTypeProperties model = - new InformixTableDatasetTypeProperties().withTableName("datacsqosecxlngo"); - model = BinaryData.fromObject(model).toObject(InformixTableDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeComputePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeComputePropertiesTests.java deleted file mode 100644 index ad73e39aec63..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeComputePropertiesTests.java +++ /dev/null @@ -1,131 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CopyComputeScaleProperties; -import com.azure.resourcemanager.datafactory.models.DataFlowComputeType; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeComputeProperties; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeDataFlowProperties; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeVNetProperties; -import com.azure.resourcemanager.datafactory.models.PipelineExternalComputeScaleProperties; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class IntegrationRuntimeComputePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IntegrationRuntimeComputeProperties model = - BinaryData - .fromString( - "{\"location\":\"xipe\",\"nodeSize\":\"plfmfvmjjfzi\",\"numberOfNodes\":1133899046,\"maxParallelExecutionsPerNode\":852753567,\"dataFlowProperties\":{\"computeType\":\"ComputeOptimized\",\"coreCount\":792243326,\"timeToLive\":20315238,\"cleanup\":true,\"customProperties\":[{\"name\":\"symagbahdbtjmku\",\"value\":\"nrk\"},{\"name\":\"izrxhuqfvpanlo\",\"value\":\"vvcxgqtquirgopgz\"},{\"name\":\"ucujtjuzvyjxuxch\",\"value\":\"oqhqrc\"},{\"name\":\"sxqfhlrvu\",\"value\":\"agvyjcdpncvfyeqy\"}],\"\":{\"ivnmev\":\"dataijcsapqhipajs\"}},\"vNetProperties\":{\"vNetId\":\"cuwrfgpjfv\",\"subnet\":\"kseodvlmdzgvc\",\"publicIPs\":[\"z\",\"gctygbbmu\",\"ljvvcrsmw\",\"jmxwcvumnrutqnke\"],\"subnetId\":\"f\",\"\":{\"opecvpkb\":\"datat\",\"zadzglmuu\":\"dataltnowpajfhxsmub\"}},\"copyComputeScaleProperties\":{\"dataIntegrationUnit\":1559370317,\"timeToLive\":1848363675,\"\":{\"xkbyws\":\"dataxmuldhfrerkqpyf\"}},\"pipelineExternalComputeScaleProperties\":{\"timeToLive\":2130928365,\"numberOfPipelineNodes\":1017885673,\"numberOfExternalNodes\":979697242,\"\":{\"xsggnowxhyvdb\":\"datam\"}},\"\":{\"iikhrct\":\"datasvghbtycvlkus\"}}") - .toObject(IntegrationRuntimeComputeProperties.class); - Assertions.assertEquals("xipe", model.location()); - Assertions.assertEquals("plfmfvmjjfzi", model.nodeSize()); - Assertions.assertEquals(1133899046, model.numberOfNodes()); - Assertions.assertEquals(852753567, model.maxParallelExecutionsPerNode()); - Assertions.assertEquals(DataFlowComputeType.COMPUTE_OPTIMIZED, model.dataFlowProperties().computeType()); - Assertions.assertEquals(792243326, model.dataFlowProperties().coreCount()); - Assertions.assertEquals(20315238, model.dataFlowProperties().timeToLive()); - Assertions.assertEquals(true, model.dataFlowProperties().cleanup()); - Assertions.assertEquals("symagbahdbtjmku", model.dataFlowProperties().customProperties().get(0).name()); - Assertions.assertEquals("nrk", model.dataFlowProperties().customProperties().get(0).value()); - Assertions.assertEquals("cuwrfgpjfv", model.vNetProperties().vNetId()); - Assertions.assertEquals("kseodvlmdzgvc", model.vNetProperties().subnet()); - Assertions.assertEquals("z", model.vNetProperties().publicIPs().get(0)); - Assertions.assertEquals("f", model.vNetProperties().subnetId()); - Assertions.assertEquals(1559370317, model.copyComputeScaleProperties().dataIntegrationUnit()); - Assertions.assertEquals(1848363675, model.copyComputeScaleProperties().timeToLive()); - Assertions.assertEquals(2130928365, model.pipelineExternalComputeScaleProperties().timeToLive()); - Assertions.assertEquals(1017885673, model.pipelineExternalComputeScaleProperties().numberOfPipelineNodes()); - Assertions.assertEquals(979697242, model.pipelineExternalComputeScaleProperties().numberOfExternalNodes()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeComputeProperties model = - new IntegrationRuntimeComputeProperties() - .withLocation("xipe") - .withNodeSize("plfmfvmjjfzi") - .withNumberOfNodes(1133899046) - .withMaxParallelExecutionsPerNode(852753567) - .withDataFlowProperties( - new IntegrationRuntimeDataFlowProperties() - .withComputeType(DataFlowComputeType.COMPUTE_OPTIMIZED) - .withCoreCount(792243326) - .withTimeToLive(20315238) - .withCleanup(true) - .withCustomProperties( - Arrays - .asList( - new IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem() - .withName("symagbahdbtjmku") - .withValue("nrk"), - new IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem() - .withName("izrxhuqfvpanlo") - .withValue("vvcxgqtquirgopgz"), - new IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem() - .withName("ucujtjuzvyjxuxch") - .withValue("oqhqrc"), - new IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem() - .withName("sxqfhlrvu") - .withValue("agvyjcdpncvfyeqy"))) - .withAdditionalProperties(mapOf())) - .withVNetProperties( - new IntegrationRuntimeVNetProperties() - .withVNetId("cuwrfgpjfv") - .withSubnet("kseodvlmdzgvc") - .withPublicIPs(Arrays.asList("z", "gctygbbmu", "ljvvcrsmw", "jmxwcvumnrutqnke")) - .withSubnetId("f") - .withAdditionalProperties(mapOf())) - .withCopyComputeScaleProperties( - new CopyComputeScaleProperties() - .withDataIntegrationUnit(1559370317) - .withTimeToLive(1848363675) - .withAdditionalProperties(mapOf())) - .withPipelineExternalComputeScaleProperties( - new PipelineExternalComputeScaleProperties() - .withTimeToLive(2130928365) - .withNumberOfPipelineNodes(1017885673) - .withNumberOfExternalNodes(979697242) - .withAdditionalProperties(mapOf())) - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(IntegrationRuntimeComputeProperties.class); - Assertions.assertEquals("xipe", model.location()); - Assertions.assertEquals("plfmfvmjjfzi", model.nodeSize()); - Assertions.assertEquals(1133899046, model.numberOfNodes()); - Assertions.assertEquals(852753567, model.maxParallelExecutionsPerNode()); - Assertions.assertEquals(DataFlowComputeType.COMPUTE_OPTIMIZED, model.dataFlowProperties().computeType()); - Assertions.assertEquals(792243326, model.dataFlowProperties().coreCount()); - Assertions.assertEquals(20315238, model.dataFlowProperties().timeToLive()); - Assertions.assertEquals(true, model.dataFlowProperties().cleanup()); - Assertions.assertEquals("symagbahdbtjmku", model.dataFlowProperties().customProperties().get(0).name()); - Assertions.assertEquals("nrk", model.dataFlowProperties().customProperties().get(0).value()); - Assertions.assertEquals("cuwrfgpjfv", model.vNetProperties().vNetId()); - Assertions.assertEquals("kseodvlmdzgvc", model.vNetProperties().subnet()); - Assertions.assertEquals("z", model.vNetProperties().publicIPs().get(0)); - Assertions.assertEquals("f", model.vNetProperties().subnetId()); - Assertions.assertEquals(1559370317, model.copyComputeScaleProperties().dataIntegrationUnit()); - Assertions.assertEquals(1848363675, model.copyComputeScaleProperties().timeToLive()); - Assertions.assertEquals(2130928365, model.pipelineExternalComputeScaleProperties().timeToLive()); - Assertions.assertEquals(1017885673, model.pipelineExternalComputeScaleProperties().numberOfPipelineNodes()); - Assertions.assertEquals(979697242, model.pipelineExternalComputeScaleProperties().numberOfExternalNodes()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeCustomerVirtualNetworkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeCustomerVirtualNetworkTests.java deleted file mode 100644 index 55fdacab8e37..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeCustomerVirtualNetworkTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeCustomerVirtualNetwork; -import org.junit.jupiter.api.Assertions; - -public final class IntegrationRuntimeCustomerVirtualNetworkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IntegrationRuntimeCustomerVirtualNetwork model = - BinaryData - .fromString("{\"subnetId\":\"vjmfjjf\"}") - .toObject(IntegrationRuntimeCustomerVirtualNetwork.class); - Assertions.assertEquals("vjmfjjf", model.subnetId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeCustomerVirtualNetwork model = - new IntegrationRuntimeCustomerVirtualNetwork().withSubnetId("vjmfjjf"); - model = BinaryData.fromObject(model).toObject(IntegrationRuntimeCustomerVirtualNetwork.class); - Assertions.assertEquals("vjmfjjf", model.subnetId()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeDataFlowPropertiesCustomPropertiesItemTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeDataFlowPropertiesCustomPropertiesItemTests.java deleted file mode 100644 index 198d934397e6..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeDataFlowPropertiesCustomPropertiesItemTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem; -import org.junit.jupiter.api.Assertions; - -public final class IntegrationRuntimeDataFlowPropertiesCustomPropertiesItemTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem model = - BinaryData - .fromString("{\"name\":\"kjd\",\"value\":\"odo\"}") - .toObject(IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem.class); - Assertions.assertEquals("kjd", model.name()); - Assertions.assertEquals("odo", model.value()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem model = - new IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem().withName("kjd").withValue("odo"); - model = BinaryData.fromObject(model).toObject(IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem.class); - Assertions.assertEquals("kjd", model.name()); - Assertions.assertEquals("odo", model.value()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeDataFlowPropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeDataFlowPropertiesTests.java deleted file mode 100644 index 31b90a8bbe23..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeDataFlowPropertiesTests.java +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DataFlowComputeType; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeDataFlowProperties; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class IntegrationRuntimeDataFlowPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IntegrationRuntimeDataFlowProperties model = - BinaryData - .fromString( - "{\"computeType\":\"MemoryOptimized\",\"coreCount\":1804017472,\"timeToLive\":672092871,\"cleanup\":true,\"customProperties\":[{\"name\":\"scsd\",\"value\":\"ymktcwmiv\"}],\"\":{\"dcozwxux\":\"datazegnglafnfgazagh\",\"utuhvemg\":\"datar\",\"xlx\":\"datalssolqypv\",\"vgdojcvzfcmxmjp\":\"datahvrkqv\"}}") - .toObject(IntegrationRuntimeDataFlowProperties.class); - Assertions.assertEquals(DataFlowComputeType.MEMORY_OPTIMIZED, model.computeType()); - Assertions.assertEquals(1804017472, model.coreCount()); - Assertions.assertEquals(672092871, model.timeToLive()); - Assertions.assertEquals(true, model.cleanup()); - Assertions.assertEquals("scsd", model.customProperties().get(0).name()); - Assertions.assertEquals("ymktcwmiv", model.customProperties().get(0).value()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeDataFlowProperties model = - new IntegrationRuntimeDataFlowProperties() - .withComputeType(DataFlowComputeType.MEMORY_OPTIMIZED) - .withCoreCount(1804017472) - .withTimeToLive(672092871) - .withCleanup(true) - .withCustomProperties( - Arrays - .asList( - new IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem() - .withName("scsd") - .withValue("ymktcwmiv"))) - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(IntegrationRuntimeDataFlowProperties.class); - Assertions.assertEquals(DataFlowComputeType.MEMORY_OPTIMIZED, model.computeType()); - Assertions.assertEquals(1804017472, model.coreCount()); - Assertions.assertEquals(672092871, model.timeToLive()); - Assertions.assertEquals(true, model.cleanup()); - Assertions.assertEquals("scsd", model.customProperties().get(0).name()); - Assertions.assertEquals("ymktcwmiv", model.customProperties().get(0).value()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeDataProxyPropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeDataProxyPropertiesTests.java deleted file mode 100644 index 28c17abcf600..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeDataProxyPropertiesTests.java +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.EntityReference; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeDataProxyProperties; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeEntityReferenceType; -import org.junit.jupiter.api.Assertions; - -public final class IntegrationRuntimeDataProxyPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IntegrationRuntimeDataProxyProperties model = - BinaryData - .fromString( - "{\"connectVia\":{\"type\":\"LinkedServiceReference\",\"referenceName\":\"ihzqieo\"},\"stagingLinkedService\":{\"type\":\"LinkedServiceReference\",\"referenceName\":\"lxjs\"},\"path\":\"b\"}") - .toObject(IntegrationRuntimeDataProxyProperties.class); - Assertions - .assertEquals(IntegrationRuntimeEntityReferenceType.LINKED_SERVICE_REFERENCE, model.connectVia().type()); - Assertions.assertEquals("ihzqieo", model.connectVia().referenceName()); - Assertions - .assertEquals( - IntegrationRuntimeEntityReferenceType.LINKED_SERVICE_REFERENCE, model.stagingLinkedService().type()); - Assertions.assertEquals("lxjs", model.stagingLinkedService().referenceName()); - Assertions.assertEquals("b", model.path()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeDataProxyProperties model = - new IntegrationRuntimeDataProxyProperties() - .withConnectVia( - new EntityReference() - .withType(IntegrationRuntimeEntityReferenceType.LINKED_SERVICE_REFERENCE) - .withReferenceName("ihzqieo")) - .withStagingLinkedService( - new EntityReference() - .withType(IntegrationRuntimeEntityReferenceType.LINKED_SERVICE_REFERENCE) - .withReferenceName("lxjs")) - .withPath("b"); - model = BinaryData.fromObject(model).toObject(IntegrationRuntimeDataProxyProperties.class); - Assertions - .assertEquals(IntegrationRuntimeEntityReferenceType.LINKED_SERVICE_REFERENCE, model.connectVia().type()); - Assertions.assertEquals("ihzqieo", model.connectVia().referenceName()); - Assertions - .assertEquals( - IntegrationRuntimeEntityReferenceType.LINKED_SERVICE_REFERENCE, model.stagingLinkedService().type()); - Assertions.assertEquals("lxjs", model.stagingLinkedService().referenceName()); - Assertions.assertEquals("b", model.path()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeDebugResourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeDebugResourceTests.java deleted file mode 100644 index d688e91ac16d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeDebugResourceTests.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntime; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeDebugResource; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class IntegrationRuntimeDebugResourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IntegrationRuntimeDebugResource model = - BinaryData - .fromString( - "{\"properties\":{\"type\":\"IntegrationRuntime\",\"description\":\"xbzlmc\",\"\":{\"onqzinkfkbgbzbow\":\"datapcvhdbevwqqxeys\",\"qkjjeokbz\":\"dataeqocljmygvk\"}},\"name\":\"ezrxcczurtleipqx\"}") - .toObject(IntegrationRuntimeDebugResource.class); - Assertions.assertEquals("ezrxcczurtleipqx", model.name()); - Assertions.assertEquals("xbzlmc", model.properties().description()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeDebugResource model = - new IntegrationRuntimeDebugResource() - .withName("ezrxcczurtleipqx") - .withProperties( - new IntegrationRuntime() - .withDescription("xbzlmc") - .withAdditionalProperties(mapOf("type", "IntegrationRuntime"))); - model = BinaryData.fromObject(model).toObject(IntegrationRuntimeDebugResource.class); - Assertions.assertEquals("ezrxcczurtleipqx", model.name()); - Assertions.assertEquals("xbzlmc", model.properties().description()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeListResponseTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeListResponseTests.java deleted file mode 100644 index e123a9ff4f0d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeListResponseTests.java +++ /dev/null @@ -1,78 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeResourceInner; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntime; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeListResponse; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class IntegrationRuntimeListResponseTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IntegrationRuntimeListResponse model = - BinaryData - .fromString( - "{\"value\":[{\"properties\":{\"type\":\"IntegrationRuntime\",\"description\":\"hkaetcktvfc\",\"\":{\"jf\":\"datasnkymuctq\",\"fuwutttxf\":\"dataebrjcxe\",\"hfnljkyq\":\"datajrbirphxepcyv\"}},\"name\":\"vuujq\",\"type\":\"dokgjl\",\"etag\":\"oxgvclt\",\"id\":\"sncghkjeszz\"},{\"properties\":{\"type\":\"IntegrationRuntime\",\"description\":\"ijhtxf\",\"\":{\"xnehmpvec\":\"databfs\"}},\"name\":\"odebfqkkrbmpu\",\"type\":\"riwflzlfb\",\"etag\":\"puz\",\"id\":\"ispnqzahmgkbrp\"},{\"properties\":{\"type\":\"IntegrationRuntime\",\"description\":\"dhibnuq\",\"\":{\"drgvtqagn\":\"dataik\",\"mebf\":\"datauynhijg\"}},\"name\":\"arbu\",\"type\":\"cvpnazzmhjrunmpx\",\"etag\":\"dbhrbnlankxm\",\"id\":\"k\"},{\"properties\":{\"type\":\"IntegrationRuntime\",\"description\":\"henbtkcxywnytn\",\"\":{\"lhaaxdbabp\":\"datanlqidybyxczf\"}},\"name\":\"wrqlfktsthsuco\",\"type\":\"nyyazttbtwwrqpue\",\"etag\":\"kzywbiex\",\"id\":\"eyueaxibxujwb\"}],\"nextLink\":\"walm\"}") - .toObject(IntegrationRuntimeListResponse.class); - Assertions.assertEquals("sncghkjeszz", model.value().get(0).id()); - Assertions.assertEquals("hkaetcktvfc", model.value().get(0).properties().description()); - Assertions.assertEquals("walm", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeListResponse model = - new IntegrationRuntimeListResponse() - .withValue( - Arrays - .asList( - new IntegrationRuntimeResourceInner() - .withId("sncghkjeszz") - .withProperties( - new IntegrationRuntime() - .withDescription("hkaetcktvfc") - .withAdditionalProperties(mapOf("type", "IntegrationRuntime"))), - new IntegrationRuntimeResourceInner() - .withId("ispnqzahmgkbrp") - .withProperties( - new IntegrationRuntime() - .withDescription("ijhtxf") - .withAdditionalProperties(mapOf("type", "IntegrationRuntime"))), - new IntegrationRuntimeResourceInner() - .withId("k") - .withProperties( - new IntegrationRuntime() - .withDescription("dhibnuq") - .withAdditionalProperties(mapOf("type", "IntegrationRuntime"))), - new IntegrationRuntimeResourceInner() - .withId("eyueaxibxujwb") - .withProperties( - new IntegrationRuntime() - .withDescription("henbtkcxywnytn") - .withAdditionalProperties(mapOf("type", "IntegrationRuntime"))))) - .withNextLink("walm"); - model = BinaryData.fromObject(model).toObject(IntegrationRuntimeListResponse.class); - Assertions.assertEquals("sncghkjeszz", model.value().get(0).id()); - Assertions.assertEquals("hkaetcktvfc", model.value().get(0).properties().description()); - Assertions.assertEquals("walm", model.nextLink()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeMonitoringDataInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeMonitoringDataInnerTests.java deleted file mode 100644 index 568dbe6b775c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeMonitoringDataInnerTests.java +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeMonitoringDataInner; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeNodeMonitoringData; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class IntegrationRuntimeMonitoringDataInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IntegrationRuntimeMonitoringDataInner model = - BinaryData - .fromString( - "{\"name\":\"k\",\"nodes\":[{\"nodeName\":\"io\",\"availableMemoryInMB\":952194839,\"cpuUtilization\":1578257059,\"concurrentJobsLimit\":391809232,\"concurrentJobsRunning\":1039189909,\"maxConcurrentJobs\":1375924345,\"sentBytes\":68.58864,\"receivedBytes\":66.46081,\"\":{\"jooxdjebw\":\"datasowzxcugi\"}}]}") - .toObject(IntegrationRuntimeMonitoringDataInner.class); - Assertions.assertEquals("k", model.name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeMonitoringDataInner model = - new IntegrationRuntimeMonitoringDataInner() - .withName("k") - .withNodes( - Arrays - .asList( - new IntegrationRuntimeNodeMonitoringData() - .withAdditionalProperties( - mapOf( - "nodeName", - "io", - "cpuUtilization", - 1578257059, - "receivedBytes", - 66.46081f, - "concurrentJobsLimit", - 391809232, - "concurrentJobsRunning", - 1039189909, - "maxConcurrentJobs", - 1375924345, - "availableMemoryInMB", - 952194839, - "sentBytes", - 68.58864f)))); - model = BinaryData.fromObject(model).toObject(IntegrationRuntimeMonitoringDataInner.class); - Assertions.assertEquals("k", model.name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodeIpAddressInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodeIpAddressInnerTests.java deleted file mode 100644 index f7da84cd170a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodeIpAddressInnerTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeNodeIpAddressInner; - -public final class IntegrationRuntimeNodeIpAddressInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IntegrationRuntimeNodeIpAddressInner model = - BinaryData.fromString("{\"ipAddress\":\"nr\"}").toObject(IntegrationRuntimeNodeIpAddressInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeNodeIpAddressInner model = new IntegrationRuntimeNodeIpAddressInner(); - model = BinaryData.fromObject(model).toObject(IntegrationRuntimeNodeIpAddressInner.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodeMonitoringDataTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodeMonitoringDataTests.java deleted file mode 100644 index 974ffd5f5dfd..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodeMonitoringDataTests.java +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeNodeMonitoringData; -import java.util.HashMap; -import java.util.Map; - -public final class IntegrationRuntimeNodeMonitoringDataTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IntegrationRuntimeNodeMonitoringData model = - BinaryData - .fromString( - "{\"nodeName\":\"cwwfvovbvme\",\"availableMemoryInMB\":321338352,\"cpuUtilization\":1542315989,\"concurrentJobsLimit\":1560245881,\"concurrentJobsRunning\":343837467,\"maxConcurrentJobs\":1240635196,\"sentBytes\":81.17821,\"receivedBytes\":67.35784,\"\":{\"wit\":\"datajueiotwmcdytd\"}}") - .toObject(IntegrationRuntimeNodeMonitoringData.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeNodeMonitoringData model = - new IntegrationRuntimeNodeMonitoringData() - .withAdditionalProperties( - mapOf( - "nodeName", - "cwwfvovbvme", - "cpuUtilization", - 1542315989, - "receivedBytes", - 67.35784f, - "concurrentJobsLimit", - 1560245881, - "concurrentJobsRunning", - 343837467, - "maxConcurrentJobs", - 1240635196, - "availableMemoryInMB", - 321338352, - "sentBytes", - 81.17821f)); - model = BinaryData.fromObject(model).toObject(IntegrationRuntimeNodeMonitoringData.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodesDeleteWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodesDeleteWithResponseMockTests.java deleted file mode 100644 index 5f8cd9edbd64..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodesDeleteWithResponseMockTests.java +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class IntegrationRuntimeNodesDeleteWithResponseMockTests { - @Test - public void testDeleteWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager - .integrationRuntimeNodes() - .deleteWithResponse("suqps", "vxbdlraridiat", "hxqsbyy", "eyopgyygrnyfj", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodesGetIpAddressWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodesGetIpAddressWithResponseMockTests.java deleted file mode 100644 index e7649d8e71b6..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodesGetIpAddressWithResponseMockTests.java +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeNodeIpAddress; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class IntegrationRuntimeNodesGetIpAddressWithResponseMockTests { - @Test - public void testGetIpAddressWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{\"ipAddress\":\"gvafbdzokpl\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - IntegrationRuntimeNodeIpAddress response = - manager - .integrationRuntimeNodes() - .getIpAddressWithResponse( - "a", "wofqnttbkjcgupxn", "vshg", "ubpmvppgui", com.azure.core.util.Context.NONE) - .getValue(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodesGetWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodesGetWithResponseMockTests.java deleted file mode 100644 index 4bdccf78c535..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodesGetWithResponseMockTests.java +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.SelfHostedIntegrationRuntimeNode; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class IntegrationRuntimeNodesGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"nodeName\":\"fppjunkh\",\"machineName\":\"hkqny\",\"hostServiceUri\":\"fvzrq\",\"status\":\"InitializeFailed\",\"capabilities\":{\"ia\":\"ceheeqqetasi\",\"gpmvl\":\"qwomkzcmwqfd\",\"d\":\"mvqumjmpsxzxbafs\"},\"versionStatus\":\"zporjhubzkzjazf\",\"version\":\"wvxq\",\"registerTime\":\"2021-10-16T11:38:02Z\",\"lastConnectTime\":\"2021-11-05T02:39:54Z\",\"expiryTime\":\"2021-11-03T20:33:22Z\",\"lastStartTime\":\"2021-12-08T01:27:04Z\",\"lastStopTime\":\"2021-10-08T15:53:52Z\",\"lastUpdateResult\":\"Fail\",\"lastStartUpdateTime\":\"2021-08-29T07:09:05Z\",\"lastEndUpdateTime\":\"2021-01-29T07:26:19Z\",\"isActiveDispatcher\":false,\"concurrentJobsLimit\":2104441921,\"maxConcurrentJobs\":680887094,\"\":{\"prgpm\":\"datafcsvipwahehuc\",\"fzcsklvtceaoi\":\"datatjvuhcw\",\"bjfhpaywwesa\":\"dataurqlcdh\"}}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - SelfHostedIntegrationRuntimeNode response = - manager - .integrationRuntimeNodes() - .getWithResponse( - "fmsaedglubqtf", "up", "mwtemirujiqmks", "fjhtlbrkgh", com.azure.core.util.Context.NONE) - .getValue(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodesUpdateWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodesUpdateWithResponseMockTests.java deleted file mode 100644 index 8f38b5d5c6fe..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodesUpdateWithResponseMockTests.java +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.SelfHostedIntegrationRuntimeNode; -import com.azure.resourcemanager.datafactory.models.UpdateIntegrationRuntimeNodeRequest; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class IntegrationRuntimeNodesUpdateWithResponseMockTests { - @Test - public void testUpdateWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"nodeName\":\"lvujbhwosz\",\"machineName\":\"fwcihkjjjbi\",\"hostServiceUri\":\"uriizyrgzxpr\",\"status\":\"Online\",\"capabilities\":{\"mjnrk\":\"sod\",\"i\":\"oomhrl\",\"qnaspjdahienk\":\"qxbrdhuw\",\"diybdoyykhi\":\"iyfgkzwkyqa\"},\"versionStatus\":\"an\",\"version\":\"tw\",\"registerTime\":\"2021-04-08T10:57:57Z\",\"lastConnectTime\":\"2021-07-28T12:27:25Z\",\"expiryTime\":\"2021-10-12T04:34:54Z\",\"lastStartTime\":\"2021-05-07T22:03:11Z\",\"lastStopTime\":\"2021-06-09T00:14:15Z\",\"lastUpdateResult\":\"Succeed\",\"lastStartUpdateTime\":\"2021-07-27T21:44:29Z\",\"lastEndUpdateTime\":\"2021-12-08T21:57:45Z\",\"isActiveDispatcher\":false,\"concurrentJobsLimit\":1149401060,\"maxConcurrentJobs\":56903388,\"\":{\"nqzvawfpuggyhsc\":\"dataqjcimo\"}}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - SelfHostedIntegrationRuntimeNode response = - manager - .integrationRuntimeNodes() - .updateWithResponse( - "oaomogkpcwffo", - "omxmvgj", - "zgqkxsoavbteaegy", - "jytoepcdhqjcz", - new UpdateIntegrationRuntimeNodeRequest().withConcurrentJobsLimit(701960170), - com.azure.core.util.Context.NONE) - .getValue(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeObjectMetadatasGetWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeObjectMetadatasGetWithResponseMockTests.java deleted file mode 100644 index f6477ded0186..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeObjectMetadatasGetWithResponseMockTests.java +++ /dev/null @@ -1,79 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.GetSsisObjectMetadataRequest; -import com.azure.resourcemanager.datafactory.models.SsisObjectMetadataListResponse; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class IntegrationRuntimeObjectMetadatasGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"type\":\"SsisObjectMetadata\",\"id\":1075337942816524885,\"name\":\"m\",\"description\":\"bodswgnglmllrxpx\"},{\"type\":\"SsisObjectMetadata\",\"id\":3298767872651639188,\"name\":\"yscjefapouwsyns\",\"description\":\"ndirdlehjz\"},{\"type\":\"SsisObjectMetadata\",\"id\":6434920934723993066,\"name\":\"hggvhco\",\"description\":\"eti\"}],\"nextLink\":\"tkeiram\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - SsisObjectMetadataListResponse response = - manager - .integrationRuntimeObjectMetadatas() - .getWithResponse( - "kd", - "gr", - "cltfkyqyiiujukc", - new GetSsisObjectMetadataRequest().withMetadataPath("vp"), - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals(1075337942816524885L, response.value().get(0).id()); - Assertions.assertEquals("m", response.value().get(0).name()); - Assertions.assertEquals("bodswgnglmllrxpx", response.value().get(0).description()); - Assertions.assertEquals("tkeiram", response.nextLink()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeObjectMetadatasRefreshMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeObjectMetadatasRefreshMockTests.java deleted file mode 100644 index aa32edaf0e35..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeObjectMetadatasRefreshMockTests.java +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.SsisObjectMetadataStatusResponse; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class IntegrationRuntimeObjectMetadatasRefreshMockTests { - @Test - public void testRefresh() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"status\":\"inyursqf\",\"name\":\"zpyxmfipvgml\",\"properties\":\"bwfxssxarxvftlls\",\"error\":\"a\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - SsisObjectMetadataStatusResponse response = - manager - .integrationRuntimeObjectMetadatas() - .refresh("bdjxvcxepj", "xcmrhivwcmtretf", "irbvqkbxgz", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("inyursqf", response.status()); - Assertions.assertEquals("zpyxmfipvgml", response.name()); - Assertions.assertEquals("bwfxssxarxvftlls", response.properties()); - Assertions.assertEquals("a", response.error()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpointTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpointTests.java deleted file mode 100644 index 1b26b843e3c9..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpointTests.java +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeOutboundNetworkDependenciesEndpoint; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpointTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint model = - BinaryData - .fromString( - "{\"category\":\"bmehh\",\"endpoints\":[{\"domainName\":\"jusrtslhspk\",\"endpointDetails\":[{\"port\":812184412},{\"port\":441408788},{\"port\":1351571833}]},{\"domainName\":\"gkvtmelmqkrhah\",\"endpointDetails\":[{\"port\":1468596781},{\"port\":1935710102},{\"port\":1520620796},{\"port\":27642330}]},{\"domainName\":\"hmdua\",\"endpointDetails\":[{\"port\":552039222}]}]}") - .toObject(IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint.class); - Assertions.assertEquals("bmehh", model.category()); - Assertions.assertEquals("jusrtslhspk", model.endpoints().get(0).domainName()); - Assertions.assertEquals(812184412, model.endpoints().get(0).endpointDetails().get(0).port()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint model = - new IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint() - .withCategory("bmehh") - .withEndpoints( - Arrays - .asList( - new IntegrationRuntimeOutboundNetworkDependenciesEndpoint() - .withDomainName("jusrtslhspk") - .withEndpointDetails( - Arrays - .asList( - new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails() - .withPort(812184412), - new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails() - .withPort(441408788), - new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails() - .withPort(1351571833))), - new IntegrationRuntimeOutboundNetworkDependenciesEndpoint() - .withDomainName("gkvtmelmqkrhah") - .withEndpointDetails( - Arrays - .asList( - new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails() - .withPort(1468596781), - new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails() - .withPort(1935710102), - new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails() - .withPort(1520620796), - new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails() - .withPort(27642330))), - new IntegrationRuntimeOutboundNetworkDependenciesEndpoint() - .withDomainName("hmdua") - .withEndpointDetails( - Arrays - .asList( - new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails() - .withPort(552039222))))); - model = - BinaryData.fromObject(model).toObject(IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint.class); - Assertions.assertEquals("bmehh", model.category()); - Assertions.assertEquals("jusrtslhspk", model.endpoints().get(0).domainName()); - Assertions.assertEquals(812184412, model.endpoints().get(0).endpointDetails().get(0).port()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeOutboundNetworkDependenciesEndpointDetailsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeOutboundNetworkDependenciesEndpointDetailsTests.java deleted file mode 100644 index 9e18dbb4bab7..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeOutboundNetworkDependenciesEndpointDetailsTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails; -import org.junit.jupiter.api.Assertions; - -public final class IntegrationRuntimeOutboundNetworkDependenciesEndpointDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails model = - BinaryData - .fromString("{\"port\":434822175}") - .toObject(IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails.class); - Assertions.assertEquals(434822175, model.port()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails model = - new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails().withPort(434822175); - model = - BinaryData.fromObject(model).toObject(IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails.class); - Assertions.assertEquals(434822175, model.port()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeOutboundNetworkDependenciesEndpointTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeOutboundNetworkDependenciesEndpointTests.java deleted file mode 100644 index 71432b73b756..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeOutboundNetworkDependenciesEndpointTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeOutboundNetworkDependenciesEndpoint; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class IntegrationRuntimeOutboundNetworkDependenciesEndpointTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IntegrationRuntimeOutboundNetworkDependenciesEndpoint model = - BinaryData - .fromString("{\"domainName\":\"vfadmws\",\"endpointDetails\":[{\"port\":1913869945}]}") - .toObject(IntegrationRuntimeOutboundNetworkDependenciesEndpoint.class); - Assertions.assertEquals("vfadmws", model.domainName()); - Assertions.assertEquals(1913869945, model.endpointDetails().get(0).port()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeOutboundNetworkDependenciesEndpoint model = - new IntegrationRuntimeOutboundNetworkDependenciesEndpoint() - .withDomainName("vfadmws") - .withEndpointDetails( - Arrays - .asList( - new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails().withPort(1913869945))); - model = BinaryData.fromObject(model).toObject(IntegrationRuntimeOutboundNetworkDependenciesEndpoint.class); - Assertions.assertEquals("vfadmws", model.domainName()); - Assertions.assertEquals(1913869945, model.endpointDetails().get(0).port()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInnerTests.java deleted file mode 100644 index 700653980f81..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInnerTests.java +++ /dev/null @@ -1,73 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeOutboundNetworkDependenciesEndpoint; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner model = - BinaryData - .fromString( - "{\"value\":[{\"category\":\"frlh\",\"endpoints\":[{\"domainName\":\"kyv\",\"endpointDetails\":[{}]},{\"domainName\":\"n\",\"endpointDetails\":[{},{},{}]},{\"domainName\":\"zka\",\"endpointDetails\":[{}]},{\"domainName\":\"b\",\"endpointDetails\":[{},{}]}]}]}") - .toObject(IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner.class); - Assertions.assertEquals("frlh", model.value().get(0).category()); - Assertions.assertEquals("kyv", model.value().get(0).endpoints().get(0).domainName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner model = - new IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner() - .withValue( - Arrays - .asList( - new IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint() - .withCategory("frlh") - .withEndpoints( - Arrays - .asList( - new IntegrationRuntimeOutboundNetworkDependenciesEndpoint() - .withDomainName("kyv") - .withEndpointDetails( - Arrays - .asList( - new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails())), - new IntegrationRuntimeOutboundNetworkDependenciesEndpoint() - .withDomainName("n") - .withEndpointDetails( - Arrays - .asList( - new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails(), - new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails(), - new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails())), - new IntegrationRuntimeOutboundNetworkDependenciesEndpoint() - .withDomainName("zka") - .withEndpointDetails( - Arrays - .asList( - new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails())), - new IntegrationRuntimeOutboundNetworkDependenciesEndpoint() - .withDomainName("b") - .withEndpointDetails( - Arrays - .asList( - new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails(), - new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails())))))); - model = - BinaryData - .fromObject(model) - .toObject(IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner.class); - Assertions.assertEquals("frlh", model.value().get(0).category()); - Assertions.assertEquals("kyv", model.value().get(0).endpoints().get(0).domainName()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeReferenceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeReferenceTests.java deleted file mode 100644 index 4244ad5d6f35..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeReferenceTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeReference; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class IntegrationRuntimeReferenceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IntegrationRuntimeReference model = - BinaryData - .fromString( - "{\"referenceName\":\"dggkzzlvmbmpa\",\"parameters\":{\"yw\":\"datadfvue\",\"yhrfouyftaakcpw\":\"databpfvm\",\"nubexk\":\"datayzvqt\"}}") - .toObject(IntegrationRuntimeReference.class); - Assertions.assertEquals("dggkzzlvmbmpa", model.referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeReference model = - new IntegrationRuntimeReference() - .withReferenceName("dggkzzlvmbmpa") - .withParameters(mapOf("yw", "datadfvue", "yhrfouyftaakcpw", "databpfvm", "nubexk", "datayzvqt")); - model = BinaryData.fromObject(model).toObject(IntegrationRuntimeReference.class); - Assertions.assertEquals("dggkzzlvmbmpa", model.referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeResourceInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeResourceInnerTests.java deleted file mode 100644 index fc4b41fff382..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeResourceInnerTests.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeResourceInner; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntime; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class IntegrationRuntimeResourceInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IntegrationRuntimeResourceInner model = - BinaryData - .fromString( - "{\"properties\":{\"type\":\"IntegrationRuntime\",\"description\":\"yoxa\",\"\":{\"bniwdj\":\"datakzjancuxrhdwbav\",\"s\":\"datawz\",\"xytxhpzxbz\":\"databpg\"}},\"name\":\"zabglcuhxwt\",\"type\":\"yqiklbbovplwzb\",\"etag\":\"gy\",\"id\":\"uosvmkfssxqukk\"}") - .toObject(IntegrationRuntimeResourceInner.class); - Assertions.assertEquals("uosvmkfssxqukk", model.id()); - Assertions.assertEquals("yoxa", model.properties().description()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeResourceInner model = - new IntegrationRuntimeResourceInner() - .withId("uosvmkfssxqukk") - .withProperties( - new IntegrationRuntime() - .withDescription("yoxa") - .withAdditionalProperties(mapOf("type", "IntegrationRuntime"))); - model = BinaryData.fromObject(model).toObject(IntegrationRuntimeResourceInner.class); - Assertions.assertEquals("uosvmkfssxqukk", model.id()); - Assertions.assertEquals("yoxa", model.properties().description()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeStatusResponseInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeStatusResponseInnerTests.java deleted file mode 100644 index d990eef792c8..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeStatusResponseInnerTests.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeStatusResponseInner; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeStatus; -import java.util.HashMap; -import java.util.Map; - -public final class IntegrationRuntimeStatusResponseInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IntegrationRuntimeStatusResponseInner model = - BinaryData - .fromString( - "{\"name\":\"ogtwrupqsxvnmi\",\"properties\":{\"type\":\"IntegrationRuntimeStatus\",\"dataFactoryName\":\"kvceoveilovnotyf\",\"state\":\"Limited\",\"\":{\"x\":\"databkc\",\"nv\":\"datahbttkphyw\",\"qnermclfplphoxu\":\"datat\",\"ye\":\"datacrpab\"}}}") - .toObject(IntegrationRuntimeStatusResponseInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeStatusResponseInner model = - new IntegrationRuntimeStatusResponseInner() - .withProperties( - new IntegrationRuntimeStatus() - .withAdditionalProperties( - mapOf( - "dataFactoryName", - "kvceoveilovnotyf", - "state", - "Limited", - "type", - "IntegrationRuntimeStatus"))); - model = BinaryData.fromObject(model).toObject(IntegrationRuntimeStatusResponseInner.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeStatusTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeStatusTests.java deleted file mode 100644 index 57aeae084237..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeStatusTests.java +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeStatus; -import java.util.HashMap; -import java.util.Map; - -public final class IntegrationRuntimeStatusTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IntegrationRuntimeStatus model = - BinaryData - .fromString( - "{\"type\":\"IntegrationRuntimeStatus\",\"dataFactoryName\":\"bjtazqugxywpmu\",\"state\":\"Started\",\"\":{\"dsuyonobgla\":\"datawfqkquj\",\"tcc\":\"datacq\",\"udxytlmoyrx\":\"datag\",\"qj\":\"datawfudwpzntxhdzhl\"}}") - .toObject(IntegrationRuntimeStatus.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeStatus model = - new IntegrationRuntimeStatus() - .withAdditionalProperties( - mapOf("dataFactoryName", "bjtazqugxywpmu", "state", "Started", "type", "IntegrationRuntimeStatus")); - model = BinaryData.fromObject(model).toObject(IntegrationRuntimeStatus.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeTests.java deleted file mode 100644 index c01dec223ab1..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeTests.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntime; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class IntegrationRuntimeTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IntegrationRuntime model = - BinaryData - .fromString( - "{\"type\":\"IntegrationRuntime\",\"description\":\"l\",\"\":{\"wiyighxpkdw\":\"datasxnkjzkdeslpvlo\",\"upedeojnabckhs\":\"databaiuebbaumny\",\"ie\":\"datatxp\",\"jdhtldwkyzxu\":\"datatfhvpesapskrdqmh\"}}") - .toObject(IntegrationRuntime.class); - Assertions.assertEquals("l", model.description()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntime model = - new IntegrationRuntime().withDescription("l").withAdditionalProperties(mapOf("type", "IntegrationRuntime")); - model = BinaryData.fromObject(model).toObject(IntegrationRuntime.class); - Assertions.assertEquals("l", model.description()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeVNetPropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeVNetPropertiesTests.java deleted file mode 100644 index 7aec1b2d8bca..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeVNetPropertiesTests.java +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeVNetProperties; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class IntegrationRuntimeVNetPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IntegrationRuntimeVNetProperties model = - BinaryData - .fromString( - "{\"vNetId\":\"q\",\"subnet\":\"xnyx\",\"publicIPs\":[\"dsqniiont\"],\"subnetId\":\"kdi\",\"\":{\"uzabrsoihataj\":\"datasq\"}}") - .toObject(IntegrationRuntimeVNetProperties.class); - Assertions.assertEquals("q", model.vNetId()); - Assertions.assertEquals("xnyx", model.subnet()); - Assertions.assertEquals("dsqniiont", model.publicIPs().get(0)); - Assertions.assertEquals("kdi", model.subnetId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeVNetProperties model = - new IntegrationRuntimeVNetProperties() - .withVNetId("q") - .withSubnet("xnyx") - .withPublicIPs(Arrays.asList("dsqniiont")) - .withSubnetId("kdi") - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(IntegrationRuntimeVNetProperties.class); - Assertions.assertEquals("q", model.vNetId()); - Assertions.assertEquals("xnyx", model.subnet()); - Assertions.assertEquals("dsqniiont", model.publicIPs().get(0)); - Assertions.assertEquals("kdi", model.subnetId()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesCreateLinkedIntegrationRuntimeWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesCreateLinkedIntegrationRuntimeWithResponseMockTests.java deleted file mode 100644 index 8720855449f3..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesCreateLinkedIntegrationRuntimeWithResponseMockTests.java +++ /dev/null @@ -1,77 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.CreateLinkedIntegrationRuntimeRequest; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeStatusResponse; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class IntegrationRuntimesCreateLinkedIntegrationRuntimeWithResponseMockTests { - @Test - public void testCreateLinkedIntegrationRuntimeWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"name\":\"ngrdu\",\"properties\":{\"type\":\"IntegrationRuntimeStatus\",\"dataFactoryName\":\"zd\",\"state\":\"Starting\",\"\":{\"huimgdfohaeeuotf\":\"datamgpioxzhpbj\",\"cvwewognpu\":\"datavmdpepl\",\"rqvjwlritsxuxre\":\"datapaqj\"}}}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - IntegrationRuntimeStatusResponse response = - manager - .integrationRuntimes() - .createLinkedIntegrationRuntimeWithResponse( - "ip", - "szrr", - "q", - new CreateLinkedIntegrationRuntimeRequest() - .withName("xyawtdsnvxhx") - .withSubscriptionId("decryoffglwmkmb") - .withDataFactoryName("snxlqnzxs") - .withDataFactoryLocation("fbkqicehxmzt"), - com.azure.core.util.Context.NONE) - .getValue(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesCreateOrUpdateWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesCreateOrUpdateWithResponseMockTests.java deleted file mode 100644 index a6b2d55daac7..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesCreateOrUpdateWithResponseMockTests.java +++ /dev/null @@ -1,92 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntime; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeResource; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class IntegrationRuntimesCreateOrUpdateWithResponseMockTests { - @Test - public void testCreateOrUpdateWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"type\":\"IntegrationRuntime\",\"description\":\"kpo\",\"\":{\"hcvssmlw\":\"datagvtjrobo\",\"mu\":\"datadstlxrg\",\"ulwvezthgwqqtb\":\"datahxoldmhypptfpp\",\"yipzehitdqmb\":\"datab\"}},\"name\":\"wuaj\",\"type\":\"tgpz\",\"etag\":\"lkcvkme\",\"id\":\"kolpnebnrafvkskj\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - IntegrationRuntimeResource response = - manager - .integrationRuntimes() - .define("mjgtjckf") - .withExistingFactory("fb", "fkzpf") - .withProperties( - new IntegrationRuntime() - .withDescription("jrlrkvhgnmsx") - .withAdditionalProperties(mapOf("type", "IntegrationRuntime"))) - .withIfMatch("x") - .create(); - - Assertions.assertEquals("kolpnebnrafvkskj", response.id()); - Assertions.assertEquals("kpo", response.properties().description()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesDeleteWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesDeleteWithResponseMockTests.java deleted file mode 100644 index 926f40cb5fe1..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesDeleteWithResponseMockTests.java +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class IntegrationRuntimesDeleteWithResponseMockTests { - @Test - public void testDeleteWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager - .integrationRuntimes() - .deleteWithResponse("bdhrkhfyaxiwcnzs", "mb", "vrks", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesGetMonitoringDataWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesGetMonitoringDataWithResponseMockTests.java deleted file mode 100644 index e0782b470ef2..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesGetMonitoringDataWithResponseMockTests.java +++ /dev/null @@ -1,71 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeMonitoringData; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class IntegrationRuntimesGetMonitoringDataWithResponseMockTests { - @Test - public void testGetMonitoringDataWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"name\":\"ygimohrllxj\",\"nodes\":[{\"nodeName\":\"vnyupszchqwnuddl\",\"availableMemoryInMB\":1536231346,\"cpuUtilization\":369062496,\"concurrentJobsLimit\":1868818718,\"concurrentJobsRunning\":679866047,\"maxConcurrentJobs\":119858132,\"sentBytes\":67.79936,\"receivedBytes\":63.317204,\"\":{\"meoxehynurbwv\":\"datawdxu\",\"rymklztorvwgpjxd\":\"dataiiuqmdaqoqjnvmf\",\"uavotfmgtxz\":\"dataiiutdzhkbc\"}},{\"nodeName\":\"dzqmlkrx\",\"availableMemoryInMB\":1365369416,\"cpuUtilization\":1361138327,\"concurrentJobsLimit\":1201070487,\"concurrentJobsRunning\":55729362,\"maxConcurrentJobs\":1590635251,\"sentBytes\":42.207695,\"receivedBytes\":31.539654,\"\":{\"kjirti\":\"datamy\",\"gonrrarznlrr\":\"databvyud\",\"udfhclssedxiigw\":\"datasexaejbmtoun\"}}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - IntegrationRuntimeMonitoringData response = - manager - .integrationRuntimes() - .getMonitoringDataWithResponse( - "pnsbbhdjeegllcy", "ihy", "dgukfmkqokzvx", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("ygimohrllxj", response.name()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesGetStatusWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesGetStatusWithResponseMockTests.java deleted file mode 100644 index 67e9dc74a2d6..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesGetStatusWithResponseMockTests.java +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeStatusResponse; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class IntegrationRuntimesGetStatusWithResponseMockTests { - @Test - public void testGetStatusWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"name\":\"emgbkjxuxm\",\"properties\":{\"type\":\"IntegrationRuntimeStatus\",\"dataFactoryName\":\"gbyjf\",\"state\":\"Online\",\"\":{\"gllezvrvjwsffkzl\":\"datawfek\",\"vkijynvgu\":\"datacjb\"}}}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - IntegrationRuntimeStatusResponse response = - manager - .integrationRuntimes() - .getStatusWithResponse("jqqparbogzww", "ubkpp", "cjy", com.azure.core.util.Context.NONE) - .getValue(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesGetWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesGetWithResponseMockTests.java deleted file mode 100644 index 224f5e85deb6..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesGetWithResponseMockTests.java +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeResource; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class IntegrationRuntimesGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"type\":\"IntegrationRuntime\",\"description\":\"xiapts\",\"\":{\"vipxzzcxqdrqsu\":\"dataoybpwzniekedxvw\",\"ptzqazwybbewjvyr\":\"dataekzqybpoxqwcusl\",\"osmp\":\"dataownbwrnbmcblmzar\",\"abhpdkrjlwrqheh\":\"dataajx\"}},\"name\":\"zckgbpysgzgiv\",\"type\":\"hektw\",\"etag\":\"umccomjxx\",\"id\":\"af\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - IntegrationRuntimeResource response = - manager - .integrationRuntimes() - .getWithResponse( - "briykrxaevbur", "vswnnsbz", "um", "bcnkojynkhbtycfj", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("af", response.id()); - Assertions.assertEquals("xiapts", response.properties().description()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesListByFactoryMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesListByFactoryMockTests.java deleted file mode 100644 index d72203c4c25f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesListByFactoryMockTests.java +++ /dev/null @@ -1,69 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeResource; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class IntegrationRuntimesListByFactoryMockTests { - @Test - public void testListByFactory() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"properties\":{\"type\":\"IntegrationRuntime\",\"description\":\"ebctoraocepjsfh\",\"\":{\"thydyzrrwlgueso\":\"datalrekroyjdnzrcjok\",\"yceksdatjtgmf\":\"datavaoryefgwo\",\"dhixd\":\"datazqvi\",\"yzjdrkcs\":\"datacocsmcqskrjnqaa\"}},\"name\":\"oxssf\",\"type\":\"lxqhyyxhzgxkwc\",\"etag\":\"vrrmlkr\",\"id\":\"qsdvxddsfylbo\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = - manager.integrationRuntimes().listByFactory("cik", "fwmqi", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("qsdvxddsfylbo", response.iterator().next().id()); - Assertions.assertEquals("ebctoraocepjsfh", response.iterator().next().properties().description()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesListOutboundNetworkDependenciesEndpointsWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesListOutboundNetworkDependenciesEndpointsWithResponseMockTests.java deleted file mode 100644 index 5f0d276f6292..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesListOutboundNetworkDependenciesEndpointsWithResponseMockTests.java +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class IntegrationRuntimesListOutboundNetworkDependenciesEndpointsWithResponseMockTests { - @Test - public void testListOutboundNetworkDependenciesEndpointsWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"category\":\"usicnckdxflgjibt\",\"endpoints\":[{\"domainName\":\"l\",\"endpointDetails\":[{},{},{},{}]}]},{\"category\":\"palxmr\",\"endpoints\":[{\"domainName\":\"juhzfjmnabyv\",\"endpointDetails\":[{},{},{},{}]},{\"domainName\":\"kwlmittpbivhkdxh\",\"endpointDetails\":[{},{}]},{\"domainName\":\"xplbdazsjbg\",\"endpointDetails\":[{},{}]}]}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse response = - manager - .integrationRuntimes() - .listOutboundNetworkDependenciesEndpointsWithResponse( - "qugnqsclr", "quwhmncewcfi", "soimxxsybtpqgxz", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("usicnckdxflgjibt", response.value().get(0).category()); - Assertions.assertEquals("l", response.value().get(0).endpoints().get(0).domainName()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesRemoveLinksWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesRemoveLinksWithResponseMockTests.java deleted file mode 100644 index 0d883656a70e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesRemoveLinksWithResponseMockTests.java +++ /dev/null @@ -1,69 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.LinkedIntegrationRuntimeRequest; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class IntegrationRuntimesRemoveLinksWithResponseMockTests { - @Test - public void testRemoveLinksWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager - .integrationRuntimes() - .removeLinksWithResponse( - "siaszqhpel", - "ckwccpmsyh", - "vifurgnxhoqfvuqi", - new LinkedIntegrationRuntimeRequest().withLinkedFactoryName("dgkvfghcu"), - com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesStartMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesStartMockTests.java deleted file mode 100644 index 751052b938db..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesStartMockTests.java +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeStatusResponse; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class IntegrationRuntimesStartMockTests { - @Test - public void testStart() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"name\":\"timy\",\"properties\":{\"type\":\"IntegrationRuntimeStatus\",\"dataFactoryName\":\"dogn\",\"state\":\"Online\",\"\":{\"zjiyk\":\"dataowkakdjn\",\"fe\":\"databytuzhcpxtdvyfxv\",\"lvea\":\"datalyoiyovcrmo\",\"ezrajpedowmh\":\"datauz\"}}}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - IntegrationRuntimeStatusResponse response = - manager.integrationRuntimes().start("azbgcbd", "q", "y", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesStopMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesStopMockTests.java deleted file mode 100644 index 386e3ae8cd31..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesStopMockTests.java +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class IntegrationRuntimesStopMockTests { - @Test - public void testStop() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.integrationRuntimes().stop("zrrikvyu", "xnopdeqqf", "cwbupxfikiumhv", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesSyncCredentialsWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesSyncCredentialsWithResponseMockTests.java deleted file mode 100644 index 78a4cf161095..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesSyncCredentialsWithResponseMockTests.java +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class IntegrationRuntimesSyncCredentialsWithResponseMockTests { - @Test - public void testSyncCredentialsWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager - .integrationRuntimes() - .syncCredentialsWithResponse("xptqbwn", "ilgamxnj", "w", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesUpgradeWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesUpgradeWithResponseMockTests.java deleted file mode 100644 index cec05b02a325..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesUpgradeWithResponseMockTests.java +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class IntegrationRuntimesUpgradeWithResponseMockTests { - @Test - public void testUpgradeWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager - .integrationRuntimes() - .upgradeWithResponse( - "zwqjpudupishcvsj", "aedsqfdulndy", "ghnptfvoljnrom", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JiraObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JiraObjectDatasetTests.java deleted file mode 100644 index 8e1a8f9a9754..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JiraObjectDatasetTests.java +++ /dev/null @@ -1,77 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.JiraObjectDataset; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class JiraObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - JiraObjectDataset model = - BinaryData - .fromString( - "{\"type\":\"JiraObject\",\"typeProperties\":{\"tableName\":\"datamhp\"},\"description\":\"sfgvrvq\",\"structure\":\"datawbdrwroqkljnzpqh\",\"schema\":\"datasarkyulfa\",\"linkedServiceName\":{\"referenceName\":\"ea\",\"parameters\":{\"geytlplslfc\":\"dataqenhekzaz\",\"ksuowt\":\"datae\",\"rhnxzmfvmw\":\"datalkyqfnjo\",\"rawwhyxf\":\"datanrtc\"}},\"parameters\":{\"uns\":{\"type\":\"String\",\"defaultValue\":\"datadmvwn\"}},\"annotations\":[\"dataevzshqykebmps\",\"dataaezc\",\"datadkckr\"],\"folder\":{\"name\":\"qdmhcejstfs\"},\"\":{\"wxqd\":\"datajakgk\",\"wdjox\":\"dataoqzh\",\"sobvcnsb\":\"datakbd\"}}") - .toObject(JiraObjectDataset.class); - Assertions.assertEquals("sfgvrvq", model.description()); - Assertions.assertEquals("ea", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("uns").type()); - Assertions.assertEquals("qdmhcejstfs", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - JiraObjectDataset model = - new JiraObjectDataset() - .withDescription("sfgvrvq") - .withStructure("datawbdrwroqkljnzpqh") - .withSchema("datasarkyulfa") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("ea") - .withParameters( - mapOf( - "geytlplslfc", - "dataqenhekzaz", - "ksuowt", - "datae", - "rhnxzmfvmw", - "datalkyqfnjo", - "rawwhyxf", - "datanrtc"))) - .withParameters( - mapOf( - "uns", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datadmvwn"))) - .withAnnotations(Arrays.asList("dataevzshqykebmps", "dataaezc", "datadkckr")) - .withFolder(new DatasetFolder().withName("qdmhcejstfs")) - .withTableName("datamhp"); - model = BinaryData.fromObject(model).toObject(JiraObjectDataset.class); - Assertions.assertEquals("sfgvrvq", model.description()); - Assertions.assertEquals("ea", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("uns").type()); - Assertions.assertEquals("qdmhcejstfs", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JiraSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JiraSourceTests.java deleted file mode 100644 index a823b8efb29d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JiraSourceTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.JiraSource; - -public final class JiraSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - JiraSource model = - BinaryData - .fromString( - "{\"type\":\"JiraSource\",\"query\":\"dataoqldnhwdfxgec\",\"queryTimeout\":\"datakkdbzbhsnimompxd\",\"additionalColumns\":\"datap\",\"sourceRetryCount\":\"databdmoawh\",\"sourceRetryWait\":\"dataxxnmyxzh\",\"maxConcurrentConnections\":\"datacqoyd\",\"disableMetricsCollection\":\"datazhfnylgbwdsa\",\"\":{\"jinlsktprnknnqlt\":\"datawa\",\"wgen\":\"datagyeyxmuwgnwxtm\",\"ew\":\"datamoswcxlgzquq\"}}") - .toObject(JiraSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - JiraSource model = - new JiraSource() - .withSourceRetryCount("databdmoawh") - .withSourceRetryWait("dataxxnmyxzh") - .withMaxConcurrentConnections("datacqoyd") - .withDisableMetricsCollection("datazhfnylgbwdsa") - .withQueryTimeout("datakkdbzbhsnimompxd") - .withAdditionalColumns("datap") - .withQuery("dataoqldnhwdfxgec"); - model = BinaryData.fromObject(model).toObject(JiraSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JsonDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JsonDatasetTests.java deleted file mode 100644 index 6c915152f042..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JsonDatasetTests.java +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetCompression; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.DatasetLocation; -import com.azure.resourcemanager.datafactory.models.JsonDataset; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class JsonDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - JsonDataset model = - BinaryData - .fromString( - "{\"type\":\"Json\",\"typeProperties\":{\"location\":{\"type\":\"DatasetLocation\",\"folderPath\":\"datax\",\"fileName\":\"datavynuqqkotauratn\",\"\":{\"tndqlmf\":\"datapfzsclefyrl\",\"evnoqayrehjuqwva\":\"dataggnbbuypwovvvsfl\",\"enqqzlxnqzu\":\"dataxrlzhpziha\"}},\"encodingName\":\"dataonfdbgmkfwmjc\",\"compression\":{\"type\":\"dataewfhxwyrkbre\",\"level\":\"datalrynjpchamk\",\"\":{\"jub\":\"datalr\",\"vtjr\":\"datawuyw\"}}},\"description\":\"ikmwlaok\",\"structure\":\"datani\",\"schema\":\"dataxgucbmtredscnn\",\"linkedServiceName\":{\"referenceName\":\"tjcyyuv\",\"parameters\":{\"wtzqzcloyhy\":\"dataxzhclec\"}},\"parameters\":{\"mwb\":{\"type\":\"Int\",\"defaultValue\":\"datahzgyresgzsd\"}},\"annotations\":[\"datajplbchych\"],\"folder\":{\"name\":\"yrfbqvumkxq\"},\"\":{\"xfnzlpq\":\"datauepm\",\"xef\":\"datapf\",\"rtux\":\"dataulbl\",\"ifq\":\"dataprhfcaeo\"}}") - .toObject(JsonDataset.class); - Assertions.assertEquals("ikmwlaok", model.description()); - Assertions.assertEquals("tjcyyuv", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("mwb").type()); - Assertions.assertEquals("yrfbqvumkxq", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - JsonDataset model = - new JsonDataset() - .withDescription("ikmwlaok") - .withStructure("datani") - .withSchema("dataxgucbmtredscnn") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("tjcyyuv") - .withParameters(mapOf("wtzqzcloyhy", "dataxzhclec"))) - .withParameters( - mapOf( - "mwb", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datahzgyresgzsd"))) - .withAnnotations(Arrays.asList("datajplbchych")) - .withFolder(new DatasetFolder().withName("yrfbqvumkxq")) - .withLocation( - new DatasetLocation() - .withFolderPath("datax") - .withFileName("datavynuqqkotauratn") - .withAdditionalProperties(mapOf("type", "DatasetLocation"))) - .withEncodingName("dataonfdbgmkfwmjc") - .withCompression( - new DatasetCompression() - .withType("dataewfhxwyrkbre") - .withLevel("datalrynjpchamk") - .withAdditionalProperties(mapOf())); - model = BinaryData.fromObject(model).toObject(JsonDataset.class); - Assertions.assertEquals("ikmwlaok", model.description()); - Assertions.assertEquals("tjcyyuv", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("mwb").type()); - Assertions.assertEquals("yrfbqvumkxq", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JsonDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JsonDatasetTypePropertiesTests.java deleted file mode 100644 index 374ac3fee2ff..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JsonDatasetTypePropertiesTests.java +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.JsonDatasetTypeProperties; -import com.azure.resourcemanager.datafactory.models.DatasetCompression; -import com.azure.resourcemanager.datafactory.models.DatasetLocation; -import java.util.HashMap; -import java.util.Map; - -public final class JsonDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - JsonDatasetTypeProperties model = - BinaryData - .fromString( - "{\"location\":{\"type\":\"DatasetLocation\",\"folderPath\":\"datawjflobh\",\"fileName\":\"dataqmomfe\",\"\":{\"j\":\"datakfrocgbmxl\",\"lslu\":\"datazezbjes\",\"pnyh\":\"databqfy\",\"yvouprsytq\":\"datadzuqscag\"}},\"encodingName\":\"dataslhmgw\",\"compression\":{\"type\":\"dataivrxpfduiol\",\"level\":\"datayqvpbfjpo\",\"\":{\"zdquurbo\":\"datacfzlu\",\"elbprn\":\"datamvhvz\",\"svhbngqiwyejto\":\"dataujywzcqyggmn\"}}}") - .toObject(JsonDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - JsonDatasetTypeProperties model = - new JsonDatasetTypeProperties() - .withLocation( - new DatasetLocation() - .withFolderPath("datawjflobh") - .withFileName("dataqmomfe") - .withAdditionalProperties(mapOf("type", "DatasetLocation"))) - .withEncodingName("dataslhmgw") - .withCompression( - new DatasetCompression() - .withType("dataivrxpfduiol") - .withLevel("datayqvpbfjpo") - .withAdditionalProperties(mapOf())); - model = BinaryData.fromObject(model).toObject(JsonDatasetTypeProperties.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JsonFormatTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JsonFormatTests.java deleted file mode 100644 index 8d0d7aa14241..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JsonFormatTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.JsonFormat; - -public final class JsonFormatTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - JsonFormat model = - BinaryData - .fromString( - "{\"type\":\"JsonFormat\",\"filePattern\":\"datafcwrri\",\"nestingSeparator\":\"dataxeezwyhjmbjiqe\",\"encodingName\":\"dataxdbsohcw\",\"jsonNodeReference\":\"datayvdkgdetszw\",\"jsonPathDefinition\":\"datanzbjekwuycky\",\"serializer\":\"dataensmuffiwjbct\",\"deserializer\":\"datap\",\"\":{\"dxposcsl\":\"dataqjto\",\"uxidhhxomilddxj\":\"datawuusiecktybh\"}}") - .toObject(JsonFormat.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - JsonFormat model = - new JsonFormat() - .withSerializer("dataensmuffiwjbct") - .withDeserializer("datap") - .withFilePattern("datafcwrri") - .withNestingSeparator("dataxeezwyhjmbjiqe") - .withEncodingName("dataxdbsohcw") - .withJsonNodeReference("datayvdkgdetszw") - .withJsonPathDefinition("datanzbjekwuycky"); - model = BinaryData.fromObject(model).toObject(JsonFormat.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JsonReadSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JsonReadSettingsTests.java deleted file mode 100644 index cefa7dc1b5ee..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JsonReadSettingsTests.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CompressionReadSettings; -import com.azure.resourcemanager.datafactory.models.JsonReadSettings; -import java.util.HashMap; -import java.util.Map; - -public final class JsonReadSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - JsonReadSettings model = - BinaryData - .fromString( - "{\"type\":\"JsonReadSettings\",\"compressionProperties\":{\"type\":\"CompressionReadSettings\",\"\":{\"xauimnabgrsn\":\"dataaoyzjfg\",\"p\":\"datazmthiecuflazfot\",\"ekh\":\"dataumamdorgl\"}},\"\":{\"iwvxmysc\":\"datagjbeybdukbgl\",\"ciacdloehsm\":\"datajivoexko\",\"niffajniwbyzyjuy\":\"datavxkctedhaf\",\"sigkinykjxq\":\"dataylbbugojdzcluy\"}}") - .toObject(JsonReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - JsonReadSettings model = - new JsonReadSettings() - .withCompressionProperties( - new CompressionReadSettings().withAdditionalProperties(mapOf("type", "CompressionReadSettings"))); - model = BinaryData.fromObject(model).toObject(JsonReadSettings.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JsonSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JsonSinkTests.java deleted file mode 100644 index 49ee3fd7bdef..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JsonSinkTests.java +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.JsonSink; -import com.azure.resourcemanager.datafactory.models.JsonWriteSettings; -import com.azure.resourcemanager.datafactory.models.StoreWriteSettings; -import java.util.HashMap; -import java.util.Map; - -public final class JsonSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - JsonSink model = - BinaryData - .fromString( - "{\"type\":\"JsonSink\",\"storeSettings\":{\"type\":\"StoreWriteSettings\",\"maxConcurrentConnections\":\"dataolzinxx\",\"disableMetricsCollection\":\"dataixr\",\"copyBehavior\":\"datawxcaa\",\"\":{\"hacfiyrywfry\":\"dataqosgzgsgzlbunm\",\"iiarlldy\":\"datarreebjmslbxf\",\"wuebrvrh\":\"datafjdtykhsafrf\",\"ybwh\":\"dataqkfffvgbklei\"}},\"formatSettings\":{\"type\":\"JsonWriteSettings\",\"filePattern\":\"dataebvkmtljzilkyvyb\",\"\":{\"mxcukurkg\":\"datagirpitzq\"}},\"writeBatchSize\":\"dataxqanrk\",\"writeBatchTimeout\":\"datadjfsvfbjcnad\",\"sinkRetryCount\":\"databrntvhppykrlz\",\"sinkRetryWait\":\"datalsvxpolatorjm\",\"maxConcurrentConnections\":\"databnmuxlthyxryv\",\"disableMetricsCollection\":\"datazhsigddgbcnqv\",\"\":{\"lemzrw\":\"databffcvtij\",\"kmkwddgyqeni\":\"datagvgogczgcm\",\"rtcbvifcrnxst\":\"datarznam\"}}") - .toObject(JsonSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - JsonSink model = - new JsonSink() - .withWriteBatchSize("dataxqanrk") - .withWriteBatchTimeout("datadjfsvfbjcnad") - .withSinkRetryCount("databrntvhppykrlz") - .withSinkRetryWait("datalsvxpolatorjm") - .withMaxConcurrentConnections("databnmuxlthyxryv") - .withDisableMetricsCollection("datazhsigddgbcnqv") - .withStoreSettings( - new StoreWriteSettings() - .withMaxConcurrentConnections("dataolzinxx") - .withDisableMetricsCollection("dataixr") - .withCopyBehavior("datawxcaa") - .withAdditionalProperties(mapOf("type", "StoreWriteSettings"))) - .withFormatSettings(new JsonWriteSettings().withFilePattern("dataebvkmtljzilkyvyb")); - model = BinaryData.fromObject(model).toObject(JsonSink.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JsonSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JsonSourceTests.java deleted file mode 100644 index 577bfc774df9..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JsonSourceTests.java +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CompressionReadSettings; -import com.azure.resourcemanager.datafactory.models.JsonReadSettings; -import com.azure.resourcemanager.datafactory.models.JsonSource; -import com.azure.resourcemanager.datafactory.models.StoreReadSettings; -import java.util.HashMap; -import java.util.Map; - -public final class JsonSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - JsonSource model = - BinaryData - .fromString( - "{\"type\":\"JsonSource\",\"storeSettings\":{\"type\":\"StoreReadSettings\",\"maxConcurrentConnections\":\"datatclmbkpqj\",\"disableMetricsCollection\":\"datatymfnojjhtnn\",\"\":{\"xytrafettwytavp\":\"dataqgovvivl\",\"nhhvp\":\"datailgyqluolgspyqsa\"}},\"formatSettings\":{\"type\":\"JsonReadSettings\",\"compressionProperties\":{\"type\":\"CompressionReadSettings\",\"\":{\"oujtcp\":\"datarqviyfksegwezgf\",\"y\":\"datatdz\",\"jckakikkkajmnvb\":\"datagzba\",\"yco\":\"datagmnkrq\"}},\"\":{\"klqr\":\"datakxx\",\"daypx\":\"databcgsa\"}},\"additionalColumns\":\"dataedftkigmj\",\"sourceRetryCount\":\"datattvzyvzixmu\",\"sourceRetryWait\":\"dataidivbbrtzf\",\"maxConcurrentConnections\":\"dataqntnoegxoqpucli\",\"disableMetricsCollection\":\"datatwdaiexi\",\"\":{\"oukaffzzf\":\"dataygi\",\"orvigrxmptu\":\"dataivfiypfvwyzjsi\",\"bpqghxdp\":\"datade\"}}") - .toObject(JsonSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - JsonSource model = - new JsonSource() - .withSourceRetryCount("datattvzyvzixmu") - .withSourceRetryWait("dataidivbbrtzf") - .withMaxConcurrentConnections("dataqntnoegxoqpucli") - .withDisableMetricsCollection("datatwdaiexi") - .withStoreSettings( - new StoreReadSettings() - .withMaxConcurrentConnections("datatclmbkpqj") - .withDisableMetricsCollection("datatymfnojjhtnn") - .withAdditionalProperties(mapOf("type", "StoreReadSettings"))) - .withFormatSettings( - new JsonReadSettings() - .withCompressionProperties( - new CompressionReadSettings() - .withAdditionalProperties(mapOf("type", "CompressionReadSettings")))) - .withAdditionalColumns("dataedftkigmj"); - model = BinaryData.fromObject(model).toObject(JsonSource.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JsonWriteSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JsonWriteSettingsTests.java deleted file mode 100644 index 815070952cd6..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JsonWriteSettingsTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.JsonWriteSettings; - -public final class JsonWriteSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - JsonWriteSettings model = - BinaryData - .fromString( - "{\"type\":\"JsonWriteSettings\",\"filePattern\":\"databaqolwfkb\",\"\":{\"vazf\":\"datavhtgfdygaphlwm\"}}") - .toObject(JsonWriteSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - JsonWriteSettings model = new JsonWriteSettings().withFilePattern("databaqolwfkb"); - model = BinaryData.fromObject(model).toObject(JsonWriteSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedIntegrationRuntimeRequestTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedIntegrationRuntimeRequestTests.java deleted file mode 100644 index d867133c04e9..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedIntegrationRuntimeRequestTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.LinkedIntegrationRuntimeRequest; -import org.junit.jupiter.api.Assertions; - -public final class LinkedIntegrationRuntimeRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LinkedIntegrationRuntimeRequest model = - BinaryData.fromString("{\"factoryName\":\"nrjawgqwg\"}").toObject(LinkedIntegrationRuntimeRequest.class); - Assertions.assertEquals("nrjawgqwg", model.linkedFactoryName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LinkedIntegrationRuntimeRequest model = - new LinkedIntegrationRuntimeRequest().withLinkedFactoryName("nrjawgqwg"); - model = BinaryData.fromObject(model).toObject(LinkedIntegrationRuntimeRequest.class); - Assertions.assertEquals("nrjawgqwg", model.linkedFactoryName()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedIntegrationRuntimeTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedIntegrationRuntimeTests.java deleted file mode 100644 index 4125f405496d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedIntegrationRuntimeTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.LinkedIntegrationRuntime; - -public final class LinkedIntegrationRuntimeTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LinkedIntegrationRuntime model = - BinaryData - .fromString( - "{\"name\":\"yeeafdxs\",\"subscriptionId\":\"lynxzhgbspdxb\",\"dataFactoryName\":\"qu\",\"dataFactoryLocation\":\"zxqomzdfaupqvei\",\"createTime\":\"2021-11-15T09:39:55Z\"}") - .toObject(LinkedIntegrationRuntime.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LinkedIntegrationRuntime model = new LinkedIntegrationRuntime(); - model = BinaryData.fromObject(model).toObject(LinkedIntegrationRuntime.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServiceDebugResourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServiceDebugResourceTests.java deleted file mode 100644 index e69dbac667c9..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServiceDebugResourceTests.java +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeReference; -import com.azure.resourcemanager.datafactory.models.LinkedService; -import com.azure.resourcemanager.datafactory.models.LinkedServiceDebugResource; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class LinkedServiceDebugResourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LinkedServiceDebugResource model = - BinaryData - .fromString( - "{\"properties\":{\"type\":\"LinkedService\",\"connectVia\":{\"referenceName\":\"ffm\",\"parameters\":{\"dby\":\"datawfbkgozxwo\",\"zqaclna\":\"datap\"}},\"description\":\"biygnugjknfsmfct\",\"parameters\":{\"jhvsujztczyt\":{\"type\":\"Float\",\"defaultValue\":\"datayilflqoiquvrehmr\"},\"auunfprnjletlx\":{\"type\":\"Bool\",\"defaultValue\":\"dataw\"},\"nlqwzdvpiwhx\":{\"type\":\"Object\",\"defaultValue\":\"datapddouifamowaziyn\"},\"quhuxylrj\":{\"type\":\"SecureString\",\"defaultValue\":\"datadtmaa\"}},\"annotations\":[\"dataygjbmzyospspsh\"],\"\":{\"df\":\"datakyjpmspbps\",\"vczkcnyxrxmunjd\":\"datapyogtieyuj\",\"nkvxlxpaglqi\":\"datavg\",\"khpzvuqdflv\":\"databgkc\"}},\"name\":\"iypfp\"}") - .toObject(LinkedServiceDebugResource.class); - Assertions.assertEquals("iypfp", model.name()); - Assertions.assertEquals("ffm", model.properties().connectVia().referenceName()); - Assertions.assertEquals("biygnugjknfsmfct", model.properties().description()); - Assertions.assertEquals(ParameterType.FLOAT, model.properties().parameters().get("jhvsujztczyt").type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LinkedServiceDebugResource model = - new LinkedServiceDebugResource() - .withName("iypfp") - .withProperties( - new LinkedService() - .withConnectVia( - new IntegrationRuntimeReference() - .withReferenceName("ffm") - .withParameters(mapOf("dby", "datawfbkgozxwo", "zqaclna", "datap"))) - .withDescription("biygnugjknfsmfct") - .withParameters( - mapOf( - "jhvsujztczyt", - new ParameterSpecification() - .withType(ParameterType.FLOAT) - .withDefaultValue("datayilflqoiquvrehmr"), - "auunfprnjletlx", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("dataw"), - "nlqwzdvpiwhx", - new ParameterSpecification() - .withType(ParameterType.OBJECT) - .withDefaultValue("datapddouifamowaziyn"), - "quhuxylrj", - new ParameterSpecification() - .withType(ParameterType.SECURE_STRING) - .withDefaultValue("datadtmaa"))) - .withAnnotations(Arrays.asList("dataygjbmzyospspsh")) - .withAdditionalProperties(mapOf("type", "LinkedService"))); - model = BinaryData.fromObject(model).toObject(LinkedServiceDebugResource.class); - Assertions.assertEquals("iypfp", model.name()); - Assertions.assertEquals("ffm", model.properties().connectVia().referenceName()); - Assertions.assertEquals("biygnugjknfsmfct", model.properties().description()); - Assertions.assertEquals(ParameterType.FLOAT, model.properties().parameters().get("jhvsujztczyt").type()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServiceListResponseTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServiceListResponseTests.java deleted file mode 100644 index d3796982dca0..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServiceListResponseTests.java +++ /dev/null @@ -1,134 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.LinkedServiceResourceInner; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeReference; -import com.azure.resourcemanager.datafactory.models.LinkedService; -import com.azure.resourcemanager.datafactory.models.LinkedServiceListResponse; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class LinkedServiceListResponseTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LinkedServiceListResponse model = - BinaryData - .fromString( - "{\"value\":[{\"properties\":{\"type\":\"LinkedService\",\"connectVia\":{\"referenceName\":\"o\",\"parameters\":{\"ggdtpnapnyiro\":\"datanxknalaulp\",\"ylgqgitxmedjvcsl\":\"datauhpigvp\",\"wwncwzzhxgk\":\"datan\",\"t\":\"datarmgucnap\"}},\"description\":\"ellwptfdy\",\"parameters\":{\"opppcqeq\":{\"type\":\"Object\",\"defaultValue\":\"datauaceopzfqrhhu\"},\"ahzxctobgbk\":{\"type\":\"String\",\"defaultValue\":\"dataz\"},\"grcfb\":{\"type\":\"String\",\"defaultValue\":\"dataizpost\"}},\"annotations\":[\"datamfqjhhkxbp\",\"datajy\",\"datajhxxjyn\",\"datau\"],\"\":{\"szjfauvjfdxxivet\":\"datakrtswbxqz\"}},\"name\":\"cqaqtdoqmcbx\",\"type\":\"vxysl\",\"etag\":\"hsfxoblytkb\",\"id\":\"pe\"},{\"properties\":{\"type\":\"LinkedService\",\"connectVia\":{\"referenceName\":\"wfbkrvrns\",\"parameters\":{\"ohxcrsbfova\":\"dataq\",\"sub\":\"datarruvwbhsq\",\"rxbpyb\":\"datagjb\",\"twss\":\"datarfbjf\"}},\"description\":\"ftpvjzbexil\",\"parameters\":{\"vwpm\":{\"type\":\"SecureString\",\"defaultValue\":\"dataq\"},\"jhwqytjrybnw\":{\"type\":\"String\",\"defaultValue\":\"dataruoujmk\"}},\"annotations\":[\"datagdrjervnaenqpe\",\"dataindoygmifthnzd\",\"datadslgnayqigynduh\",\"datavhqlkthumaqo\"],\"\":{\"gccymvaolpssl\":\"dataycduier\",\"d\":\"datalfmmdnbbglzpswi\"}},\"name\":\"wyhzdx\",\"type\":\"adbzmnvdfznud\",\"etag\":\"dvxzbncblylpst\",\"id\":\"hh\"}],\"nextLink\":\"rzdzucerscdnt\"}") - .toObject(LinkedServiceListResponse.class); - Assertions.assertEquals("pe", model.value().get(0).id()); - Assertions.assertEquals("o", model.value().get(0).properties().connectVia().referenceName()); - Assertions.assertEquals("ellwptfdy", model.value().get(0).properties().description()); - Assertions - .assertEquals(ParameterType.OBJECT, model.value().get(0).properties().parameters().get("opppcqeq").type()); - Assertions.assertEquals("rzdzucerscdnt", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LinkedServiceListResponse model = - new LinkedServiceListResponse() - .withValue( - Arrays - .asList( - new LinkedServiceResourceInner() - .withId("pe") - .withProperties( - new LinkedService() - .withConnectVia( - new IntegrationRuntimeReference() - .withReferenceName("o") - .withParameters( - mapOf( - "ggdtpnapnyiro", - "datanxknalaulp", - "ylgqgitxmedjvcsl", - "datauhpigvp", - "wwncwzzhxgk", - "datan", - "t", - "datarmgucnap"))) - .withDescription("ellwptfdy") - .withParameters( - mapOf( - "opppcqeq", - new ParameterSpecification() - .withType(ParameterType.OBJECT) - .withDefaultValue("datauaceopzfqrhhu"), - "ahzxctobgbk", - new ParameterSpecification() - .withType(ParameterType.STRING) - .withDefaultValue("dataz"), - "grcfb", - new ParameterSpecification() - .withType(ParameterType.STRING) - .withDefaultValue("dataizpost"))) - .withAnnotations( - Arrays.asList("datamfqjhhkxbp", "datajy", "datajhxxjyn", "datau")) - .withAdditionalProperties(mapOf("type", "LinkedService"))), - new LinkedServiceResourceInner() - .withId("hh") - .withProperties( - new LinkedService() - .withConnectVia( - new IntegrationRuntimeReference() - .withReferenceName("wfbkrvrns") - .withParameters( - mapOf( - "ohxcrsbfova", - "dataq", - "sub", - "datarruvwbhsq", - "rxbpyb", - "datagjb", - "twss", - "datarfbjf"))) - .withDescription("ftpvjzbexil") - .withParameters( - mapOf( - "vwpm", - new ParameterSpecification() - .withType(ParameterType.SECURE_STRING) - .withDefaultValue("dataq"), - "jhwqytjrybnw", - new ParameterSpecification() - .withType(ParameterType.STRING) - .withDefaultValue("dataruoujmk"))) - .withAnnotations( - Arrays - .asList( - "datagdrjervnaenqpe", - "dataindoygmifthnzd", - "datadslgnayqigynduh", - "datavhqlkthumaqo")) - .withAdditionalProperties(mapOf("type", "LinkedService"))))) - .withNextLink("rzdzucerscdnt"); - model = BinaryData.fromObject(model).toObject(LinkedServiceListResponse.class); - Assertions.assertEquals("pe", model.value().get(0).id()); - Assertions.assertEquals("o", model.value().get(0).properties().connectVia().referenceName()); - Assertions.assertEquals("ellwptfdy", model.value().get(0).properties().description()); - Assertions - .assertEquals(ParameterType.OBJECT, model.value().get(0).properties().parameters().get("opppcqeq").type()); - Assertions.assertEquals("rzdzucerscdnt", model.nextLink()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServiceReferenceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServiceReferenceTests.java deleted file mode 100644 index 0486cdaf7d57..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServiceReferenceTests.java +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class LinkedServiceReferenceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LinkedServiceReference model = - BinaryData - .fromString( - "{\"referenceName\":\"niodkooeb\",\"parameters\":{\"vdkcrodtj\":\"datajhemms\",\"lfoakg\":\"datanfwjlfltkacjvefk\",\"pulpqblylsyxk\":\"datakfpagao\",\"zuempsbzkf\":\"datajnsjervtiagxsd\"}}") - .toObject(LinkedServiceReference.class); - Assertions.assertEquals("niodkooeb", model.referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LinkedServiceReference model = - new LinkedServiceReference() - .withReferenceName("niodkooeb") - .withParameters( - mapOf( - "vdkcrodtj", - "datajhemms", - "lfoakg", - "datanfwjlfltkacjvefk", - "pulpqblylsyxk", - "datakfpagao", - "zuempsbzkf", - "datajnsjervtiagxsd")); - model = BinaryData.fromObject(model).toObject(LinkedServiceReference.class); - Assertions.assertEquals("niodkooeb", model.referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServiceResourceInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServiceResourceInnerTests.java deleted file mode 100644 index 6a6ac861b268..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServiceResourceInnerTests.java +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.LinkedServiceResourceInner; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeReference; -import com.azure.resourcemanager.datafactory.models.LinkedService; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class LinkedServiceResourceInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LinkedServiceResourceInner model = - BinaryData - .fromString( - "{\"properties\":{\"type\":\"LinkedService\",\"connectVia\":{\"referenceName\":\"vfiwjmygtdss\",\"parameters\":{\"emwabnet\":\"datatmweriofzpyq\",\"d\":\"datahhszh\"}},\"description\":\"vwiwubmwmbesld\",\"parameters\":{\"flcxoga\":{\"type\":\"Float\",\"defaultValue\":\"datapp\"},\"qzeqqkdltfzxm\":{\"type\":\"SecureString\",\"defaultValue\":\"datanzmnsikvm\"}},\"annotations\":[\"datahgure\"],\"\":{\"xwak\":\"datawobdagxtibqdx\",\"lbpodxunk\":\"dataogqxndlkzgxhuri\",\"lrb\":\"dataebxmubyynt\"}},\"name\":\"koievseo\",\"type\":\"q\",\"etag\":\"ltmuwlauwzizx\",\"id\":\"pgcjefuzmuvp\"}") - .toObject(LinkedServiceResourceInner.class); - Assertions.assertEquals("pgcjefuzmuvp", model.id()); - Assertions.assertEquals("vfiwjmygtdss", model.properties().connectVia().referenceName()); - Assertions.assertEquals("vwiwubmwmbesld", model.properties().description()); - Assertions.assertEquals(ParameterType.FLOAT, model.properties().parameters().get("flcxoga").type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LinkedServiceResourceInner model = - new LinkedServiceResourceInner() - .withId("pgcjefuzmuvp") - .withProperties( - new LinkedService() - .withConnectVia( - new IntegrationRuntimeReference() - .withReferenceName("vfiwjmygtdss") - .withParameters(mapOf("emwabnet", "datatmweriofzpyq", "d", "datahhszh"))) - .withDescription("vwiwubmwmbesld") - .withParameters( - mapOf( - "flcxoga", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datapp"), - "qzeqqkdltfzxm", - new ParameterSpecification() - .withType(ParameterType.SECURE_STRING) - .withDefaultValue("datanzmnsikvm"))) - .withAnnotations(Arrays.asList("datahgure")) - .withAdditionalProperties(mapOf("type", "LinkedService"))); - model = BinaryData.fromObject(model).toObject(LinkedServiceResourceInner.class); - Assertions.assertEquals("pgcjefuzmuvp", model.id()); - Assertions.assertEquals("vfiwjmygtdss", model.properties().connectVia().referenceName()); - Assertions.assertEquals("vwiwubmwmbesld", model.properties().description()); - Assertions.assertEquals(ParameterType.FLOAT, model.properties().parameters().get("flcxoga").type()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServiceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServiceTests.java deleted file mode 100644 index ca8ad0a1f22f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServiceTests.java +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeReference; -import com.azure.resourcemanager.datafactory.models.LinkedService; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class LinkedServiceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LinkedService model = - BinaryData - .fromString( - "{\"type\":\"LinkedService\",\"connectVia\":{\"referenceName\":\"tdum\",\"parameters\":{\"hjpglkf\":\"datapxebmnzbt\"}},\"description\":\"hdneuelfph\",\"parameters\":{\"uvxzxclvi\":{\"type\":\"Array\",\"defaultValue\":\"dataozfikdowwq\"},\"dsjnka\":{\"type\":\"String\",\"defaultValue\":\"dataqzonosggbhcohf\"},\"k\":{\"type\":\"String\",\"defaultValue\":\"datatiiswacffg\"},\"ppfufl\":{\"type\":\"Bool\",\"defaultValue\":\"datawkfvhqcrailvp\"}},\"annotations\":[\"datamh\",\"datalxyjr\",\"datasag\"],\"\":{\"bcvkcvqvpkeq\":\"datanihgwqapnedg\",\"obzdopcjwvnhdl\":\"datacvdrhvoodsot\",\"mutwuoe\":\"datawmgxcxrsl\",\"yqsluic\":\"datarpkhjwn\"}}") - .toObject(LinkedService.class); - Assertions.assertEquals("tdum", model.connectVia().referenceName()); - Assertions.assertEquals("hdneuelfph", model.description()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("uvxzxclvi").type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LinkedService model = - new LinkedService() - .withConnectVia( - new IntegrationRuntimeReference() - .withReferenceName("tdum") - .withParameters(mapOf("hjpglkf", "datapxebmnzbt"))) - .withDescription("hdneuelfph") - .withParameters( - mapOf( - "uvxzxclvi", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("dataozfikdowwq"), - "dsjnka", - new ParameterSpecification() - .withType(ParameterType.STRING) - .withDefaultValue("dataqzonosggbhcohf"), - "k", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datatiiswacffg"), - "ppfufl", - new ParameterSpecification() - .withType(ParameterType.BOOL) - .withDefaultValue("datawkfvhqcrailvp"))) - .withAnnotations(Arrays.asList("datamh", "datalxyjr", "datasag")) - .withAdditionalProperties(mapOf("type", "LinkedService")); - model = BinaryData.fromObject(model).toObject(LinkedService.class); - Assertions.assertEquals("tdum", model.connectVia().referenceName()); - Assertions.assertEquals("hdneuelfph", model.description()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("uvxzxclvi").type()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesCreateOrUpdateWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesCreateOrUpdateWithResponseMockTests.java deleted file mode 100644 index 46008cb0d94b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesCreateOrUpdateWithResponseMockTests.java +++ /dev/null @@ -1,121 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeReference; -import com.azure.resourcemanager.datafactory.models.LinkedService; -import com.azure.resourcemanager.datafactory.models.LinkedServiceResource; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class LinkedServicesCreateOrUpdateWithResponseMockTests { - @Test - public void testCreateOrUpdateWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"type\":\"LinkedService\",\"connectVia\":{\"referenceName\":\"idhkigs\",\"parameters\":{\"ztsgklu\":\"datakzl\",\"xbyedca\":\"dataaxcbfrnttlrumv\"}},\"description\":\"jpjnnh\",\"parameters\":{\"icp\":{\"type\":\"SecureString\",\"defaultValue\":\"datamqxbauzvxe\"},\"o\":{\"type\":\"Bool\",\"defaultValue\":\"datacvmuqx\"}},\"annotations\":[\"datajrtcifxledjpu\",\"dataai\",\"datacvsjcdmnvtpb\"],\"\":{\"fvplfywcbnmzshmq\":\"datacaaqvsda\",\"bvqsqwuwxtqdtv\":\"datan\"}},\"name\":\"ilqscjxpro\",\"type\":\"yddrs\",\"etag\":\"rxnweiytkeqjviaw\",\"id\":\"vbc\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - LinkedServiceResource response = - manager - .linkedServices() - .define("uqtjcyllpas") - .withExistingFactory("uwbnngcdtxxyz", "ybndiqpadhrij") - .withProperties( - new LinkedService() - .withConnectVia( - new IntegrationRuntimeReference() - .withReferenceName("qsfpctq") - .withParameters(mapOf("squ", "databjjde"))) - .withDescription("rnbdzvcabchdzxj") - .withParameters( - mapOf( - "lsak", - new ParameterSpecification() - .withType(ParameterType.BOOL) - .withDefaultValue("datawaadczwmnfavllbs"), - "ppzbdvawbtgvqt", - new ParameterSpecification() - .withType(ParameterType.ARRAY) - .withDefaultValue("dataxpofvhkceaxo"), - "guhsjlroaedswh", - new ParameterSpecification() - .withType(ParameterType.FLOAT) - .withDefaultValue("datanaeclrjscdoqocdr"), - "yjtollugzsvzi", - new ParameterSpecification() - .withType(ParameterType.STRING) - .withDefaultValue("datajuuboyrf"))) - .withAnnotations(Arrays.asList("datasbdaudsvdb", "datallmutwmarfbszlp", "datax")) - .withAdditionalProperties(mapOf("type", "LinkedService"))) - .withIfMatch("nbxgofiphlwyzd") - .create(); - - Assertions.assertEquals("vbc", response.id()); - Assertions.assertEquals("idhkigs", response.properties().connectVia().referenceName()); - Assertions.assertEquals("jpjnnh", response.properties().description()); - Assertions.assertEquals(ParameterType.SECURE_STRING, response.properties().parameters().get("icp").type()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesDeleteWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesDeleteWithResponseMockTests.java deleted file mode 100644 index d76f53aed703..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesDeleteWithResponseMockTests.java +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class LinkedServicesDeleteWithResponseMockTests { - @Test - public void testDeleteWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager - .linkedServices() - .deleteWithResponse("mezdoyg", "ofhinehh", "rbgmxmvxbaaznu", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesGetWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesGetWithResponseMockTests.java deleted file mode 100644 index f7cd72080f3a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesGetWithResponseMockTests.java +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.LinkedServiceResource; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class LinkedServicesGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"type\":\"LinkedService\",\"connectVia\":{\"referenceName\":\"tkzvti\",\"parameters\":{\"vfwwevyfz\":\"datarmgc\"}},\"description\":\"exivqaqztt\",\"parameters\":{\"ql\":{\"type\":\"Array\",\"defaultValue\":\"dataiznriqucolpos\"},\"ojpalnzrj\":{\"type\":\"String\",\"defaultValue\":\"datak\"},\"xjh\":{\"type\":\"Array\",\"defaultValue\":\"datahtyney\"},\"tcupo\":{\"type\":\"SecureString\",\"defaultValue\":\"datawsnqktbgudfcr\"}},\"annotations\":[\"datargcl\",\"dataqkufqjmylrtnzyos\",\"datavkqezeeeuligu\",\"dataw\"],\"\":{\"wxzxroht\":\"dataucvwz\",\"idspe\":\"datac\",\"cmcqslngmsip\":\"dataxdeaisk\"}},\"name\":\"jn\",\"type\":\"cotjdcxacge\",\"etag\":\"fpfaaahxphuplf\",\"id\":\"qgcadntzfjldnvf\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - LinkedServiceResource response = - manager - .linkedServices() - .getWithResponse("owubkiocjn", "rnwkt", "sckcnge", "xdxuzoxmajp", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("qgcadntzfjldnvf", response.id()); - Assertions.assertEquals("tkzvti", response.properties().connectVia().referenceName()); - Assertions.assertEquals("exivqaqztt", response.properties().description()); - Assertions.assertEquals(ParameterType.ARRAY, response.properties().parameters().get("ql").type()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesListByFactoryMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesListByFactoryMockTests.java deleted file mode 100644 index c5a5db276389..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesListByFactoryMockTests.java +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.LinkedServiceResource; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class LinkedServicesListByFactoryMockTests { - @Test - public void testListByFactory() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"properties\":{\"type\":\"LinkedService\",\"connectVia\":{\"referenceName\":\"sqbyubswzafqrmwd\",\"parameters\":{\"uxwvjcdjvlwczw\":\"datafspzwad\",\"fckrmrbaoidt\":\"datakkscooqnvht\",\"cbvkoughjsxp\":\"datam\"}},\"description\":\"svppfdnih\",\"parameters\":{\"z\":{\"type\":\"Bool\",\"defaultValue\":\"datatsbpvyvsc\"},\"ohfvbgjn\":{\"type\":\"SecureString\",\"defaultValue\":\"dataddaqqklvyib\"},\"j\":{\"type\":\"Bool\",\"defaultValue\":\"datalsanglwnkkz\"},\"ajyrhrywucpdzbnt\":{\"type\":\"Int\",\"defaultValue\":\"datarhjj\"}},\"annotations\":[\"datawnpuyhqayls\",\"dataehlzplzrrhab\",\"datadqnefofujzwqpkhg\",\"datadgyilo\"],\"\":{\"etrglp\":\"datakvufnphbzssa\"}},\"name\":\"cqxdvleo\",\"type\":\"vuhagoqxfxje\",\"etag\":\"oqua\",\"id\":\"dnmhrymeynbi\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = - manager.linkedServices().listByFactory("lcalyvcxvcpxdeq", "tblt", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("dnmhrymeynbi", response.iterator().next().id()); - Assertions - .assertEquals("sqbyubswzafqrmwd", response.iterator().next().properties().connectVia().referenceName()); - Assertions.assertEquals("svppfdnih", response.iterator().next().properties().description()); - Assertions - .assertEquals(ParameterType.BOOL, response.iterator().next().properties().parameters().get("z").type()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LogLocationSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LogLocationSettingsTests.java deleted file mode 100644 index 55cc54c9ed85..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LogLocationSettingsTests.java +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.LogLocationSettings; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class LogLocationSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LogLocationSettings model = - BinaryData - .fromString( - "{\"linkedServiceName\":{\"referenceName\":\"x\",\"parameters\":{\"fapfbmrwhknefcoo\":\"datavgtoinozsmyv\",\"pdd\":\"datatmd\",\"laxuybxjwny\":\"datagupiosibg\",\"fiksjpkig\":\"dataskyrttnrikss\"}},\"path\":\"datatoqtui\"}") - .toObject(LogLocationSettings.class); - Assertions.assertEquals("x", model.linkedServiceName().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LogLocationSettings model = - new LogLocationSettings() - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("x") - .withParameters( - mapOf( - "fapfbmrwhknefcoo", - "datavgtoinozsmyv", - "pdd", - "datatmd", - "laxuybxjwny", - "datagupiosibg", - "fiksjpkig", - "dataskyrttnrikss"))) - .withPath("datatoqtui"); - model = BinaryData.fromObject(model).toObject(LogLocationSettings.class); - Assertions.assertEquals("x", model.linkedServiceName().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LogSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LogSettingsTests.java deleted file mode 100644 index 3a1aababb04b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LogSettingsTests.java +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CopyActivityLogSettings; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.LogLocationSettings; -import com.azure.resourcemanager.datafactory.models.LogSettings; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class LogSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LogSettings model = - BinaryData - .fromString( - "{\"enableCopyActivityLog\":\"datavhcbu\",\"copyActivityLogSettings\":{\"logLevel\":\"dataifzfjtock\",\"enableReliableLogging\":\"dataaawyy\"},\"logLocationSettings\":{\"linkedServiceName\":{\"referenceName\":\"zwoeqljlwfq\",\"parameters\":{\"sipkhqh\":\"dataww\"}},\"path\":\"datatcztmqdkhohspkgx\"}}") - .toObject(LogSettings.class); - Assertions.assertEquals("zwoeqljlwfq", model.logLocationSettings().linkedServiceName().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LogSettings model = - new LogSettings() - .withEnableCopyActivityLog("datavhcbu") - .withCopyActivityLogSettings( - new CopyActivityLogSettings().withLogLevel("dataifzfjtock").withEnableReliableLogging("dataaawyy")) - .withLogLocationSettings( - new LogLocationSettings() - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("zwoeqljlwfq") - .withParameters(mapOf("sipkhqh", "dataww"))) - .withPath("datatcztmqdkhohspkgx")); - model = BinaryData.fromObject(model).toObject(LogSettings.class); - Assertions.assertEquals("zwoeqljlwfq", model.logLocationSettings().linkedServiceName().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LogStorageSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LogStorageSettingsTests.java deleted file mode 100644 index b529e81bbe3d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LogStorageSettingsTests.java +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.LogStorageSettings; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class LogStorageSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LogStorageSettings model = - BinaryData - .fromString( - "{\"linkedServiceName\":{\"referenceName\":\"kqjzfzk\",\"parameters\":{\"lkaipfyvqua\":\"datapnmrxjdfk\"}},\"path\":\"dataywkbiek\",\"logLevel\":\"dataakqahopgnapkp\",\"enableReliableLogging\":\"dataedoxvoa\",\"\":{\"wclmz\":\"datae\",\"lrcdi\":\"datalrvlg\"}}") - .toObject(LogStorageSettings.class); - Assertions.assertEquals("kqjzfzk", model.linkedServiceName().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LogStorageSettings model = - new LogStorageSettings() - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("kqjzfzk") - .withParameters(mapOf("lkaipfyvqua", "datapnmrxjdfk"))) - .withPath("dataywkbiek") - .withLogLevel("dataakqahopgnapkp") - .withEnableReliableLogging("dataedoxvoa") - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(LogStorageSettings.class); - Assertions.assertEquals("kqjzfzk", model.linkedServiceName().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LookupActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LookupActivityTests.java deleted file mode 100644 index 151e07357c5c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LookupActivityTests.java +++ /dev/null @@ -1,158 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityPolicy; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.CopySource; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.LookupActivity; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class LookupActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LookupActivity model = - BinaryData - .fromString( - "{\"type\":\"Lookup\",\"typeProperties\":{\"source\":{\"type\":\"CopySource\",\"sourceRetryCount\":\"databx\",\"sourceRetryWait\":\"dataygmqnuyusnhnnek\",\"maxConcurrentConnections\":\"datadlbcucwfcbugtc\",\"disableMetricsCollection\":\"dataydldavozmibtk\",\"\":{\"xxwt\":\"datapgllsrran\",\"lkgzczjwizrulrk\":\"datarro\"}},\"dataset\":{\"referenceName\":\"yldtt\",\"parameters\":{\"myc\":\"datapqmkpobenaahdj\",\"qhpphjimo\":\"datatvpeirhstwpbvw\",\"js\":\"datacqpqkpnvsuaizxdl\",\"gfejiu\":\"dataxotyjgx\"}},\"firstRowOnly\":\"datadsftmllc\"},\"linkedServiceName\":{\"referenceName\":\"vunvnggqacforuw\",\"parameters\":{\"ruuscb\":\"datand\",\"vofo\":\"datattjdioevifzqq\",\"jxsofsiritp\":\"datappphwvduuzpiooa\",\"nrl\":\"dataqp\"}},\"policy\":{\"timeout\":\"dataxevizzcjnfyubctw\",\"retry\":\"datan\",\"retryIntervalInSeconds\":1577241932,\"secureInput\":true,\"secureOutput\":true,\"\":{\"riad\":\"datafpkleieafpvbslly\",\"uylsk\":\"datanbofeucctppbgzf\",\"trqsobusurxv\":\"datavvwd\",\"tknywxpmef\":\"datadxlbsnskcksf\"}},\"name\":\"nccbvchozkmifyxd\",\"description\":\"gbi\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"rkw\",\"dependencyConditions\":[\"Succeeded\",\"Skipped\",\"Completed\",\"Failed\"],\"\":{\"syhnfqnek\":\"databulvk\",\"deahfg\":\"dataxd\",\"lq\":\"datajahnsmktk\",\"xnlaurviyntc\":\"dataxjdolobtzr\"}},{\"activity\":\"lpbzo\",\"dependencyConditions\":[\"Completed\",\"Succeeded\"],\"\":{\"daxttoenf\":\"databfktelblbungrkj\",\"jfywmmqzbznr\":\"datahip\"}},{\"activity\":\"w\",\"dependencyConditions\":[\"Skipped\",\"Skipped\",\"Succeeded\"],\"\":{\"wotpiaklefw\":\"datagnkxjdaxdiundz\",\"dcgd\":\"dataiabfntrmkeawmfe\",\"ngiuzbpgskg\":\"datajbnfwdff\"}},{\"activity\":\"wspxhhnvxpzjtik\",\"dependencyConditions\":[\"Failed\"],\"\":{\"akgzcmbgw\":\"datawefstize\",\"jpxpwxabvxwoa\":\"datalnmddflckum\",\"ozkm\":\"dataoeillszdgy\",\"yrwdmgrfhvew\":\"databzuilynbdvbuxlji\"}}],\"userProperties\":[{\"name\":\"mybokqpfhswbpjz\",\"value\":\"datayzydlys\"},{\"name\":\"thpnw\",\"value\":\"datapkisefygdaume\"},{\"name\":\"kgmgqynejqk\",\"value\":\"datasxiczvfxoihc\"}],\"\":{\"ecwyrtluujyespcg\":\"dataxbksaf\",\"iwiaqrc\":\"dataszwvooxieyyww\",\"w\":\"datafybktbviaqvzzszc\",\"vygdefpy\":\"datarxo\"}}") - .toObject(LookupActivity.class); - Assertions.assertEquals("nccbvchozkmifyxd", model.name()); - Assertions.assertEquals("gbi", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("rkw", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("mybokqpfhswbpjz", model.userProperties().get(0).name()); - Assertions.assertEquals("vunvnggqacforuw", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1577241932, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - Assertions.assertEquals("yldtt", model.dataset().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LookupActivity model = - new LookupActivity() - .withName("nccbvchozkmifyxd") - .withDescription("gbi") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("rkw") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.SUCCEEDED, - DependencyCondition.SKIPPED, - DependencyCondition.COMPLETED, - DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("lpbzo") - .withDependencyConditions( - Arrays.asList(DependencyCondition.COMPLETED, DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("w") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.SKIPPED, - DependencyCondition.SKIPPED, - DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("wspxhhnvxpzjtik") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays - .asList( - new UserProperty().withName("mybokqpfhswbpjz").withValue("datayzydlys"), - new UserProperty().withName("thpnw").withValue("datapkisefygdaume"), - new UserProperty().withName("kgmgqynejqk").withValue("datasxiczvfxoihc"))) - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("vunvnggqacforuw") - .withParameters( - mapOf( - "ruuscb", - "datand", - "vofo", - "datattjdioevifzqq", - "jxsofsiritp", - "datappphwvduuzpiooa", - "nrl", - "dataqp"))) - .withPolicy( - new ActivityPolicy() - .withTimeout("dataxevizzcjnfyubctw") - .withRetry("datan") - .withRetryIntervalInSeconds(1577241932) - .withSecureInput(true) - .withSecureOutput(true) - .withAdditionalProperties(mapOf())) - .withSource( - new CopySource() - .withSourceRetryCount("databx") - .withSourceRetryWait("dataygmqnuyusnhnnek") - .withMaxConcurrentConnections("datadlbcucwfcbugtc") - .withDisableMetricsCollection("dataydldavozmibtk") - .withAdditionalProperties(mapOf("type", "CopySource"))) - .withDataset( - new DatasetReference() - .withReferenceName("yldtt") - .withParameters( - mapOf( - "myc", - "datapqmkpobenaahdj", - "qhpphjimo", - "datatvpeirhstwpbvw", - "js", - "datacqpqkpnvsuaizxdl", - "gfejiu", - "dataxotyjgx"))) - .withFirstRowOnly("datadsftmllc"); - model = BinaryData.fromObject(model).toObject(LookupActivity.class); - Assertions.assertEquals("nccbvchozkmifyxd", model.name()); - Assertions.assertEquals("gbi", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("rkw", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("mybokqpfhswbpjz", model.userProperties().get(0).name()); - Assertions.assertEquals("vunvnggqacforuw", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1577241932, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - Assertions.assertEquals("yldtt", model.dataset().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LookupActivityTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LookupActivityTypePropertiesTests.java deleted file mode 100644 index 1f0ddc4b20fc..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LookupActivityTypePropertiesTests.java +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.LookupActivityTypeProperties; -import com.azure.resourcemanager.datafactory.models.CopySource; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class LookupActivityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LookupActivityTypeProperties model = - BinaryData - .fromString( - "{\"source\":{\"type\":\"CopySource\",\"sourceRetryCount\":\"datawwaxx\",\"sourceRetryWait\":\"datardsmra\",\"maxConcurrentConnections\":\"datat\",\"disableMetricsCollection\":\"datapxmdwdlboc\",\"\":{\"wbyrkxzebv\":\"datanqcgbijyp\",\"wzzeumadl\":\"datauzchegeogdkcrc\"}},\"dataset\":{\"referenceName\":\"xirewhuqk\",\"parameters\":{\"lbq\":\"datamyykmk\",\"dvksigxak\":\"datanrmgefxkattpkkw\",\"ooqobpnkvn\":\"dataoptb\"}},\"firstRowOnly\":\"datajrxbbxkh\"}") - .toObject(LookupActivityTypeProperties.class); - Assertions.assertEquals("xirewhuqk", model.dataset().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LookupActivityTypeProperties model = - new LookupActivityTypeProperties() - .withSource( - new CopySource() - .withSourceRetryCount("datawwaxx") - .withSourceRetryWait("datardsmra") - .withMaxConcurrentConnections("datat") - .withDisableMetricsCollection("datapxmdwdlboc") - .withAdditionalProperties(mapOf("type", "CopySource"))) - .withDataset( - new DatasetReference() - .withReferenceName("xirewhuqk") - .withParameters( - mapOf("lbq", "datamyykmk", "dvksigxak", "datanrmgefxkattpkkw", "ooqobpnkvn", "dataoptb"))) - .withFirstRowOnly("datajrxbbxkh"); - model = BinaryData.fromObject(model).toObject(LookupActivityTypeProperties.class); - Assertions.assertEquals("xirewhuqk", model.dataset().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MagentoObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MagentoObjectDatasetTests.java deleted file mode 100644 index 4ede61e0d30d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MagentoObjectDatasetTests.java +++ /dev/null @@ -1,79 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.MagentoObjectDataset; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class MagentoObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MagentoObjectDataset model = - BinaryData - .fromString( - "{\"type\":\"MagentoObject\",\"typeProperties\":{\"tableName\":\"dataznlf\"},\"description\":\"fzx\",\"structure\":\"dataz\",\"schema\":\"dataugtkxncwdytnlr\",\"linkedServiceName\":{\"referenceName\":\"cmwbejywwwvn\",\"parameters\":{\"dfyziruqvgnjxi\":\"datakrmqevrhhafqf\",\"gikyluyu\":\"datakgyjmzbm\",\"c\":\"datambrdcvoloxtv\"}},\"parameters\":{\"vokkyankxvcpt\":{\"type\":\"Object\",\"defaultValue\":\"datammglvnbenkp\"},\"rdxpcpautfzptr\":{\"type\":\"Int\",\"defaultValue\":\"databhnkxasomafegazh\"}},\"annotations\":[\"dataytrtffvpkdx\",\"datayuwenbq\"],\"folder\":{\"name\":\"awvoqatdjkal\"},\"\":{\"smxfzynfemqy\":\"datae\",\"wgssdquupirnb\":\"datakkp\",\"irzyudrq\":\"datalqyvdsqxkjwdzp\"}}") - .toObject(MagentoObjectDataset.class); - Assertions.assertEquals("fzx", model.description()); - Assertions.assertEquals("cmwbejywwwvn", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("vokkyankxvcpt").type()); - Assertions.assertEquals("awvoqatdjkal", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MagentoObjectDataset model = - new MagentoObjectDataset() - .withDescription("fzx") - .withStructure("dataz") - .withSchema("dataugtkxncwdytnlr") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("cmwbejywwwvn") - .withParameters( - mapOf( - "dfyziruqvgnjxi", - "datakrmqevrhhafqf", - "gikyluyu", - "datakgyjmzbm", - "c", - "datambrdcvoloxtv"))) - .withParameters( - mapOf( - "vokkyankxvcpt", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datammglvnbenkp"), - "rdxpcpautfzptr", - new ParameterSpecification() - .withType(ParameterType.INT) - .withDefaultValue("databhnkxasomafegazh"))) - .withAnnotations(Arrays.asList("dataytrtffvpkdx", "datayuwenbq")) - .withFolder(new DatasetFolder().withName("awvoqatdjkal")) - .withTableName("dataznlf"); - model = BinaryData.fromObject(model).toObject(MagentoObjectDataset.class); - Assertions.assertEquals("fzx", model.description()); - Assertions.assertEquals("cmwbejywwwvn", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("vokkyankxvcpt").type()); - Assertions.assertEquals("awvoqatdjkal", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MagentoSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MagentoSourceTests.java deleted file mode 100644 index 85183b0bb2f4..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MagentoSourceTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.MagentoSource; - -public final class MagentoSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MagentoSource model = - BinaryData - .fromString( - "{\"type\":\"MagentoSource\",\"query\":\"dataqpifzavct\",\"queryTimeout\":\"dataappaczprz\",\"additionalColumns\":\"dataq\",\"sourceRetryCount\":\"datagvnpgsqlanuh\",\"sourceRetryWait\":\"datarnpsoagho\",\"maxConcurrentConnections\":\"dataiwpdx\",\"disableMetricsCollection\":\"datalsoaj\",\"\":{\"bwl\":\"dataplhstopy\",\"gqjdoglec\":\"datasvpi\"}}") - .toObject(MagentoSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MagentoSource model = - new MagentoSource() - .withSourceRetryCount("datagvnpgsqlanuh") - .withSourceRetryWait("datarnpsoagho") - .withMaxConcurrentConnections("dataiwpdx") - .withDisableMetricsCollection("datalsoaj") - .withQueryTimeout("dataappaczprz") - .withAdditionalColumns("dataq") - .withQuery("dataqpifzavct"); - model = BinaryData.fromObject(model).toObject(MagentoSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedIdentityCredentialResourceInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedIdentityCredentialResourceInnerTests.java deleted file mode 100644 index cbe366011185..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedIdentityCredentialResourceInnerTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.ManagedIdentityCredentialResourceInner; -import com.azure.resourcemanager.datafactory.models.ManagedIdentityCredential; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ManagedIdentityCredentialResourceInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ManagedIdentityCredentialResourceInner model = - BinaryData - .fromString( - "{\"properties\":{\"type\":\"ManagedIdentity\",\"typeProperties\":{\"resourceId\":\"gpgdphtvdulaj\"},\"description\":\"ejchcsrlz\",\"annotations\":[\"datazlanrupdwvnph\",\"datanzqtpjhmqrhvt\"],\"\":{\"xetlgydlhqv\":\"dataiwdcxsmlzzhzd\",\"pxy\":\"datan\",\"klbyulidwcw\":\"dataafiqgeaarbgjekg\",\"hj\":\"datamzegjon\"}},\"name\":\"wgdnqzbr\",\"type\":\"spzhzmtksjc\",\"etag\":\"digsxcdgl\",\"id\":\"lkeuac\"}") - .toObject(ManagedIdentityCredentialResourceInner.class); - Assertions.assertEquals("lkeuac", model.id()); - Assertions.assertEquals("ejchcsrlz", model.properties().description()); - Assertions.assertEquals("gpgdphtvdulaj", model.properties().resourceId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ManagedIdentityCredentialResourceInner model = - new ManagedIdentityCredentialResourceInner() - .withId("lkeuac") - .withProperties( - new ManagedIdentityCredential() - .withDescription("ejchcsrlz") - .withAnnotations(Arrays.asList("datazlanrupdwvnph", "datanzqtpjhmqrhvt")) - .withResourceId("gpgdphtvdulaj")); - model = BinaryData.fromObject(model).toObject(ManagedIdentityCredentialResourceInner.class); - Assertions.assertEquals("lkeuac", model.id()); - Assertions.assertEquals("ejchcsrlz", model.properties().description()); - Assertions.assertEquals("gpgdphtvdulaj", model.properties().resourceId()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedIdentityCredentialTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedIdentityCredentialTests.java deleted file mode 100644 index 348a2f5e8047..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedIdentityCredentialTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ManagedIdentityCredential; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ManagedIdentityCredentialTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ManagedIdentityCredential model = - BinaryData - .fromString( - "{\"type\":\"ManagedIdentity\",\"typeProperties\":{\"resourceId\":\"mflrytswfpfmdgyc\"},\"description\":\"mskwhqjjysl\",\"annotations\":[\"datapshhkvpedwqslsr\",\"datampqvwwsk\",\"datandcbrwi\",\"datauvqejosovyrrle\"],\"\":{\"bbpihehcecy\":\"datainuqtljq\",\"kfrexcrseqwjks\":\"datamrqbrjbbmpxdlv\",\"zhxogjggsvo\":\"datahud\",\"hrkmdyomkxfbvfbh\":\"datajkxibda\"}}") - .toObject(ManagedIdentityCredential.class); - Assertions.assertEquals("mskwhqjjysl", model.description()); - Assertions.assertEquals("mflrytswfpfmdgyc", model.resourceId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ManagedIdentityCredential model = - new ManagedIdentityCredential() - .withDescription("mskwhqjjysl") - .withAnnotations( - Arrays.asList("datapshhkvpedwqslsr", "datampqvwwsk", "datandcbrwi", "datauvqejosovyrrle")) - .withResourceId("mflrytswfpfmdgyc"); - model = BinaryData.fromObject(model).toObject(ManagedIdentityCredential.class); - Assertions.assertEquals("mskwhqjjysl", model.description()); - Assertions.assertEquals("mflrytswfpfmdgyc", model.resourceId()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedIdentityTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedIdentityTypePropertiesTests.java deleted file mode 100644 index 2b443a5dd978..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedIdentityTypePropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.ManagedIdentityTypeProperties; -import org.junit.jupiter.api.Assertions; - -public final class ManagedIdentityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ManagedIdentityTypeProperties model = - BinaryData.fromString("{\"resourceId\":\"i\"}").toObject(ManagedIdentityTypeProperties.class); - Assertions.assertEquals("i", model.resourceId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ManagedIdentityTypeProperties model = new ManagedIdentityTypeProperties().withResourceId("i"); - model = BinaryData.fromObject(model).toObject(ManagedIdentityTypeProperties.class); - Assertions.assertEquals("i", model.resourceId()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointListResponseTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointListResponseTests.java deleted file mode 100644 index 497b8c7c63f3..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointListResponseTests.java +++ /dev/null @@ -1,89 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.ManagedPrivateEndpointResourceInner; -import com.azure.resourcemanager.datafactory.models.ConnectionStateProperties; -import com.azure.resourcemanager.datafactory.models.ManagedPrivateEndpoint; -import com.azure.resourcemanager.datafactory.models.ManagedPrivateEndpointListResponse; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ManagedPrivateEndpointListResponseTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ManagedPrivateEndpointListResponse model = - BinaryData - .fromString( - "{\"value\":[{\"properties\":{\"connectionState\":{\"actionsRequired\":\"wdkqzeqy\",\"description\":\"eziunjxdfzant\",\"status\":\"cegyamlbnseqacj\"},\"fqdns\":[\"ilguooqjagmditg\",\"eiookjbsah\",\"tdtpdelqacslmo\"],\"groupId\":\"ebnfxofvc\",\"isReserved\":false,\"privateLinkResourceId\":\"irazftxejwabmd\",\"provisioningState\":\"tmvcop\",\"\":{\"urbuhhlkyqltq\":\"datam\"}},\"name\":\"ogtu\",\"type\":\"ffdjktsysidfvclg\",\"etag\":\"n\",\"id\":\"ijtk\"},{\"properties\":{\"connectionState\":{\"actionsRequired\":\"qogsfikayian\",\"description\":\"arujt\",\"status\":\"qxfzyjqttvwk\"},\"fqdns\":[\"j\",\"enuygbq\",\"qqekewvnqvcdlgu\"],\"groupId\":\"cmfdjwnlax\",\"isReserved\":false,\"privateLinkResourceId\":\"qikczvvita\",\"provisioningState\":\"xmfcsserxhtv\",\"\":{\"sxypruuu\":\"datahlwntsjgq\"}},\"name\":\"nchrszizoyu\",\"type\":\"yetnd\",\"etag\":\"fqyggagflnlgmtr\",\"id\":\"hzjmucftbyrp\"},{\"properties\":{\"connectionState\":{\"actionsRequired\":\"hkpigqfusuckzmkw\",\"description\":\"snoxaxmqeqa\",\"status\":\"hjnhgwydyynfsvk\"},\"fqdns\":[\"vqtanarfdlpuk\"],\"groupId\":\"yrneizjcpeo\",\"isReserved\":true,\"privateLinkResourceId\":\"mgbro\",\"provisioningState\":\"ddbhf\",\"\":{\"zoyw\":\"datapaz\",\"htuevrhrljy\":\"dataxhpdulontacnpqwt\",\"reur\":\"dataogwxhnsduugwb\",\"fuarenlvhht\":\"dataq\"}},\"name\":\"nvnaf\",\"type\":\"kyfede\",\"etag\":\"bo\",\"id\":\"cqxypokkhminq\"}],\"nextLink\":\"mczngn\"}") - .toObject(ManagedPrivateEndpointListResponse.class); - Assertions.assertEquals("ijtk", model.value().get(0).id()); - Assertions.assertEquals("ilguooqjagmditg", model.value().get(0).properties().fqdns().get(0)); - Assertions.assertEquals("ebnfxofvc", model.value().get(0).properties().groupId()); - Assertions.assertEquals("irazftxejwabmd", model.value().get(0).properties().privateLinkResourceId()); - Assertions.assertEquals("mczngn", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ManagedPrivateEndpointListResponse model = - new ManagedPrivateEndpointListResponse() - .withValue( - Arrays - .asList( - new ManagedPrivateEndpointResourceInner() - .withId("ijtk") - .withProperties( - new ManagedPrivateEndpoint() - .withConnectionState(new ConnectionStateProperties()) - .withFqdns(Arrays.asList("ilguooqjagmditg", "eiookjbsah", "tdtpdelqacslmo")) - .withGroupId("ebnfxofvc") - .withPrivateLinkResourceId("irazftxejwabmd") - .withAdditionalProperties( - mapOf("isReserved", false, "provisioningState", "tmvcop"))), - new ManagedPrivateEndpointResourceInner() - .withId("hzjmucftbyrp") - .withProperties( - new ManagedPrivateEndpoint() - .withConnectionState(new ConnectionStateProperties()) - .withFqdns(Arrays.asList("j", "enuygbq", "qqekewvnqvcdlgu")) - .withGroupId("cmfdjwnlax") - .withPrivateLinkResourceId("qikczvvita") - .withAdditionalProperties( - mapOf("isReserved", false, "provisioningState", "xmfcsserxhtv"))), - new ManagedPrivateEndpointResourceInner() - .withId("cqxypokkhminq") - .withProperties( - new ManagedPrivateEndpoint() - .withConnectionState(new ConnectionStateProperties()) - .withFqdns(Arrays.asList("vqtanarfdlpuk")) - .withGroupId("yrneizjcpeo") - .withPrivateLinkResourceId("mgbro") - .withAdditionalProperties( - mapOf("isReserved", true, "provisioningState", "ddbhf"))))) - .withNextLink("mczngn"); - model = BinaryData.fromObject(model).toObject(ManagedPrivateEndpointListResponse.class); - Assertions.assertEquals("ijtk", model.value().get(0).id()); - Assertions.assertEquals("ilguooqjagmditg", model.value().get(0).properties().fqdns().get(0)); - Assertions.assertEquals("ebnfxofvc", model.value().get(0).properties().groupId()); - Assertions.assertEquals("irazftxejwabmd", model.value().get(0).properties().privateLinkResourceId()); - Assertions.assertEquals("mczngn", model.nextLink()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointResourceInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointResourceInnerTests.java deleted file mode 100644 index a2bd8c287044..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointResourceInnerTests.java +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.ManagedPrivateEndpointResourceInner; -import com.azure.resourcemanager.datafactory.models.ConnectionStateProperties; -import com.azure.resourcemanager.datafactory.models.ManagedPrivateEndpoint; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ManagedPrivateEndpointResourceInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ManagedPrivateEndpointResourceInner model = - BinaryData - .fromString( - "{\"properties\":{\"connectionState\":{\"actionsRequired\":\"x\",\"description\":\"unin\",\"status\":\"db\"},\"fqdns\":[\"qdtvqecrqctmxx\",\"tddmf\",\"huytxzvtzn\",\"pxbannovvoxc\"],\"groupId\":\"tprwnw\",\"isReserved\":true,\"privateLinkResourceId\":\"vytlyokrrrouuxvn\",\"provisioningState\":\"sbcrymodizrxklo\",\"\":{\"lmv\":\"datanazpmk\",\"zxlioh\":\"datavfxzopjh\",\"dtfgxqbawpcbb\":\"datad\"}},\"name\":\"qcy\",\"type\":\"apqofyuicdhz\",\"etag\":\"ybww\",\"id\":\"d\"}") - .toObject(ManagedPrivateEndpointResourceInner.class); - Assertions.assertEquals("d", model.id()); - Assertions.assertEquals("qdtvqecrqctmxx", model.properties().fqdns().get(0)); - Assertions.assertEquals("tprwnw", model.properties().groupId()); - Assertions.assertEquals("vytlyokrrrouuxvn", model.properties().privateLinkResourceId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ManagedPrivateEndpointResourceInner model = - new ManagedPrivateEndpointResourceInner() - .withId("d") - .withProperties( - new ManagedPrivateEndpoint() - .withConnectionState(new ConnectionStateProperties()) - .withFqdns(Arrays.asList("qdtvqecrqctmxx", "tddmf", "huytxzvtzn", "pxbannovvoxc")) - .withGroupId("tprwnw") - .withPrivateLinkResourceId("vytlyokrrrouuxvn") - .withAdditionalProperties(mapOf("isReserved", true, "provisioningState", "sbcrymodizrxklo"))); - model = BinaryData.fromObject(model).toObject(ManagedPrivateEndpointResourceInner.class); - Assertions.assertEquals("d", model.id()); - Assertions.assertEquals("qdtvqecrqctmxx", model.properties().fqdns().get(0)); - Assertions.assertEquals("tprwnw", model.properties().groupId()); - Assertions.assertEquals("vytlyokrrrouuxvn", model.properties().privateLinkResourceId()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointTests.java deleted file mode 100644 index 19a660bd0511..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointTests.java +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ConnectionStateProperties; -import com.azure.resourcemanager.datafactory.models.ManagedPrivateEndpoint; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ManagedPrivateEndpointTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ManagedPrivateEndpoint model = - BinaryData - .fromString( - "{\"connectionState\":{\"actionsRequired\":\"idmhmwf\",\"description\":\"lfmu\",\"status\":\"pckc\"},\"fqdns\":[\"vwe\"],\"groupId\":\"xoy\",\"isReserved\":false,\"privateLinkResourceId\":\"haim\",\"provisioningState\":\"iroqbosh\",\"\":{\"pavbo\":\"datagapyyrmfsv\"}}") - .toObject(ManagedPrivateEndpoint.class); - Assertions.assertEquals("vwe", model.fqdns().get(0)); - Assertions.assertEquals("xoy", model.groupId()); - Assertions.assertEquals("haim", model.privateLinkResourceId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ManagedPrivateEndpoint model = - new ManagedPrivateEndpoint() - .withConnectionState(new ConnectionStateProperties()) - .withFqdns(Arrays.asList("vwe")) - .withGroupId("xoy") - .withPrivateLinkResourceId("haim") - .withAdditionalProperties(mapOf("isReserved", false, "provisioningState", "iroqbosh")); - model = BinaryData.fromObject(model).toObject(ManagedPrivateEndpoint.class); - Assertions.assertEquals("vwe", model.fqdns().get(0)); - Assertions.assertEquals("xoy", model.groupId()); - Assertions.assertEquals("haim", model.privateLinkResourceId()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointsCreateOrUpdateWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointsCreateOrUpdateWithResponseMockTests.java deleted file mode 100644 index c7aefb926588..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointsCreateOrUpdateWithResponseMockTests.java +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.ConnectionStateProperties; -import com.azure.resourcemanager.datafactory.models.ManagedPrivateEndpoint; -import com.azure.resourcemanager.datafactory.models.ManagedPrivateEndpointResource; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class ManagedPrivateEndpointsCreateOrUpdateWithResponseMockTests { - @Test - public void testCreateOrUpdateWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"connectionState\":{\"actionsRequired\":\"zzm\",\"description\":\"mh\",\"status\":\"caizxuiyuzufdms\"},\"fqdns\":[\"gnfljvra\",\"k\",\"ecozfauhnxxd\"],\"groupId\":\"hlgrz\",\"isReserved\":true,\"privateLinkResourceId\":\"zmh\",\"provisioningState\":\"twjimlfrkmy\",\"\":{\"wzc\":\"datamglbxoeghordccpk\",\"iqq\":\"datalvqlccaiphsart\",\"vq\":\"datadgyshpvva\",\"oxweuo\":\"datawrchwdxdkvqqtfjj\"}},\"name\":\"w\",\"type\":\"e\",\"etag\":\"ndheocjc\",\"id\":\"cunanwutve\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - ManagedPrivateEndpointResource response = - manager - .managedPrivateEndpoints() - .define("bczlrewfrmq") - .withExistingManagedVirtualNetwork("lokn", "adqf", "nrdagmihxjpflzpu") - .withProperties( - new ManagedPrivateEndpoint() - .withConnectionState(new ConnectionStateProperties()) - .withFqdns(Arrays.asList("eelkv", "kig")) - .withGroupId("rkwgsq") - .withPrivateLinkResourceId("cxwthkljk") - .withAdditionalProperties(mapOf("isReserved", true, "provisioningState", "jfcr"))) - .withIfMatch("bmedzfo") - .create(); - - Assertions.assertEquals("cunanwutve", response.id()); - Assertions.assertEquals("gnfljvra", response.properties().fqdns().get(0)); - Assertions.assertEquals("hlgrz", response.properties().groupId()); - Assertions.assertEquals("zmh", response.properties().privateLinkResourceId()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointsDeleteWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointsDeleteWithResponseMockTests.java deleted file mode 100644 index 9a5cbac93508..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointsDeleteWithResponseMockTests.java +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class ManagedPrivateEndpointsDeleteWithResponseMockTests { - @Test - public void testDeleteWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager - .managedPrivateEndpoints() - .deleteWithResponse("orlaudemzr", "dnus", "jb", "bbg", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointsGetWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointsGetWithResponseMockTests.java deleted file mode 100644 index 63976dc261fc..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointsGetWithResponseMockTests.java +++ /dev/null @@ -1,73 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.ManagedPrivateEndpointResource; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class ManagedPrivateEndpointsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"connectionState\":{\"actionsRequired\":\"blomidvic\",\"description\":\"ufjahu\",\"status\":\"ebdtcklthsu\"},\"fqdns\":[\"xdhlovktrf\"],\"groupId\":\"p\",\"isReserved\":false,\"privateLinkResourceId\":\"xosbydr\",\"provisioningState\":\"svexpzsxb\",\"\":{\"uah\":\"datajjwtynpbirltz\",\"sdtysnlxw\":\"datalxcdpj\"}},\"name\":\"zezfhfjjjzcxtz\",\"type\":\"loosceuk\",\"etag\":\"oqhphjqkkacw\",\"id\":\"qmxkxfmwbrvsl\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - ManagedPrivateEndpointResource response = - manager - .managedPrivateEndpoints() - .getWithResponse("il", "ixwx", "aquuvb", "hgxsfeslxwlmxzo", "bi", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("qmxkxfmwbrvsl", response.id()); - Assertions.assertEquals("xdhlovktrf", response.properties().fqdns().get(0)); - Assertions.assertEquals("p", response.properties().groupId()); - Assertions.assertEquals("xosbydr", response.properties().privateLinkResourceId()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointsListByFactoryMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointsListByFactoryMockTests.java deleted file mode 100644 index 9dd52e58ffa5..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointsListByFactoryMockTests.java +++ /dev/null @@ -1,73 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.ManagedPrivateEndpointResource; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class ManagedPrivateEndpointsListByFactoryMockTests { - @Test - public void testListByFactory() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"properties\":{\"connectionState\":{\"actionsRequired\":\"hinjnwpiv\",\"description\":\"lbajqecngw\",\"status\":\"uaxsrmadakjs\"},\"fqdns\":[\"vyvobkkek\"],\"groupId\":\"xc\",\"isReserved\":true,\"privateLinkResourceId\":\"nhotwqkgvrz\",\"provisioningState\":\"mzsutmsmdib\",\"\":{\"dcwtnzfleghnf\":\"datatempsaykcxu\"}},\"name\":\"jwwhsfjqxlbclvp\",\"type\":\"utyrsravsscb\",\"etag\":\"xmscafgdtuzcl\",\"id\":\"vvuy\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = - manager - .managedPrivateEndpoints() - .listByFactory("pwf", "twgnmeq", "rxwkomjsfkdvb", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("vvuy", response.iterator().next().id()); - Assertions.assertEquals("vyvobkkek", response.iterator().next().properties().fqdns().get(0)); - Assertions.assertEquals("xc", response.iterator().next().properties().groupId()); - Assertions.assertEquals("nhotwqkgvrz", response.iterator().next().properties().privateLinkResourceId()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworkListResponseTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworkListResponseTests.java deleted file mode 100644 index aae823dad94f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworkListResponseTests.java +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.ManagedVirtualNetworkResourceInner; -import com.azure.resourcemanager.datafactory.models.ManagedVirtualNetwork; -import com.azure.resourcemanager.datafactory.models.ManagedVirtualNetworkListResponse; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ManagedVirtualNetworkListResponseTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ManagedVirtualNetworkListResponse model = - BinaryData - .fromString( - "{\"value\":[{\"properties\":{\"vNetId\":\"o\",\"alias\":\"vmfqhppubo\",\"\":{\"juahokqto\":\"datapdfgkmtdherngbt\",\"hfphwpnulaiywze\":\"datakauxof\",\"wrpqafgfugsnnf\":\"dataywhslwkojpllndnp\",\"coc\":\"datayetefyp\"}},\"name\":\"jgtixr\",\"type\":\"zuyt\",\"etag\":\"mlmuowol\",\"id\":\"uir\"}],\"nextLink\":\"ionszonwp\"}") - .toObject(ManagedVirtualNetworkListResponse.class); - Assertions.assertEquals("uir", model.value().get(0).id()); - Assertions.assertEquals("ionszonwp", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ManagedVirtualNetworkListResponse model = - new ManagedVirtualNetworkListResponse() - .withValue( - Arrays - .asList( - new ManagedVirtualNetworkResourceInner() - .withId("uir") - .withProperties( - new ManagedVirtualNetwork() - .withAdditionalProperties(mapOf("vNetId", "o", "alias", "vmfqhppubo"))))) - .withNextLink("ionszonwp"); - model = BinaryData.fromObject(model).toObject(ManagedVirtualNetworkListResponse.class); - Assertions.assertEquals("uir", model.value().get(0).id()); - Assertions.assertEquals("ionszonwp", model.nextLink()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworkReferenceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworkReferenceTests.java deleted file mode 100644 index c032021a8104..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworkReferenceTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ManagedVirtualNetworkReference; -import com.azure.resourcemanager.datafactory.models.ManagedVirtualNetworkReferenceType; -import org.junit.jupiter.api.Assertions; - -public final class ManagedVirtualNetworkReferenceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ManagedVirtualNetworkReference model = - BinaryData - .fromString("{\"type\":\"ManagedVirtualNetworkReference\",\"referenceName\":\"xawqy\"}") - .toObject(ManagedVirtualNetworkReference.class); - Assertions.assertEquals(ManagedVirtualNetworkReferenceType.MANAGED_VIRTUAL_NETWORK_REFERENCE, model.type()); - Assertions.assertEquals("xawqy", model.referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ManagedVirtualNetworkReference model = - new ManagedVirtualNetworkReference() - .withType(ManagedVirtualNetworkReferenceType.MANAGED_VIRTUAL_NETWORK_REFERENCE) - .withReferenceName("xawqy"); - model = BinaryData.fromObject(model).toObject(ManagedVirtualNetworkReference.class); - Assertions.assertEquals(ManagedVirtualNetworkReferenceType.MANAGED_VIRTUAL_NETWORK_REFERENCE, model.type()); - Assertions.assertEquals("xawqy", model.referenceName()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworkResourceInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworkResourceInnerTests.java deleted file mode 100644 index 04e3f2d8e2b3..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworkResourceInnerTests.java +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.ManagedVirtualNetworkResourceInner; -import com.azure.resourcemanager.datafactory.models.ManagedVirtualNetwork; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ManagedVirtualNetworkResourceInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ManagedVirtualNetworkResourceInner model = - BinaryData - .fromString( - "{\"properties\":{\"vNetId\":\"ajinnixjawrtmjfj\",\"alias\":\"ccxlzhcoxovnek\",\"\":{\"jvidttge\":\"datalusfnrdtjxtxrdcq\",\"iesfuug\":\"datauslvyjtcvuwkasi\"}},\"name\":\"uqfecj\",\"type\":\"ygtuhx\",\"etag\":\"cbuewmrswnjlxuz\",\"id\":\"wpusxjbaqehg\"}") - .toObject(ManagedVirtualNetworkResourceInner.class); - Assertions.assertEquals("wpusxjbaqehg", model.id()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ManagedVirtualNetworkResourceInner model = - new ManagedVirtualNetworkResourceInner() - .withId("wpusxjbaqehg") - .withProperties( - new ManagedVirtualNetwork() - .withAdditionalProperties(mapOf("vNetId", "ajinnixjawrtmjfj", "alias", "ccxlzhcoxovnek"))); - model = BinaryData.fromObject(model).toObject(ManagedVirtualNetworkResourceInner.class); - Assertions.assertEquals("wpusxjbaqehg", model.id()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworkTests.java deleted file mode 100644 index 8eff556045ec..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworkTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ManagedVirtualNetwork; -import java.util.HashMap; -import java.util.Map; - -public final class ManagedVirtualNetworkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ManagedVirtualNetwork model = - BinaryData - .fromString( - "{\"vNetId\":\"ohzjqatucoigeb\",\"alias\":\"cnwfepbnwgfmxjg\",\"\":{\"qbctqha\":\"datajbgdlfgtdysnaquf\"}}") - .toObject(ManagedVirtualNetwork.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ManagedVirtualNetwork model = - new ManagedVirtualNetwork() - .withAdditionalProperties(mapOf("vNetId", "ohzjqatucoigeb", "alias", "cnwfepbnwgfmxjg")); - model = BinaryData.fromObject(model).toObject(ManagedVirtualNetwork.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworksCreateOrUpdateWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworksCreateOrUpdateWithResponseMockTests.java deleted file mode 100644 index 00f37d9c26cf..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworksCreateOrUpdateWithResponseMockTests.java +++ /dev/null @@ -1,90 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.ManagedVirtualNetwork; -import com.azure.resourcemanager.datafactory.models.ManagedVirtualNetworkResource; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class ManagedVirtualNetworksCreateOrUpdateWithResponseMockTests { - @Test - public void testCreateOrUpdateWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"vNetId\":\"jxqintjhvcorobmq\",\"alias\":\"zipzkkleazkc\",\"\":{\"vofhpgu\":\"dataq\",\"wyfsqg\":\"dataibk\",\"cxazvrmu\":\"datass\"}},\"name\":\"jegohp\",\"type\":\"rmh\",\"etag\":\"tknbruszq\",\"id\":\"dmefsxmdmlowesi\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - ManagedVirtualNetworkResource response = - manager - .managedVirtualNetworks() - .define("ncvnoqwgnllicovv") - .withExistingFactory("fm", "psvww") - .withProperties( - new ManagedVirtualNetwork() - .withAdditionalProperties(mapOf("vNetId", "obfnbdpaoijxqgf", "alias", "trvvhxjfkpu"))) - .withIfMatch("uxo") - .create(); - - Assertions.assertEquals("dmefsxmdmlowesi", response.id()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworksGetWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworksGetWithResponseMockTests.java deleted file mode 100644 index f156b74c6d06..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworksGetWithResponseMockTests.java +++ /dev/null @@ -1,71 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.ManagedVirtualNetworkResource; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class ManagedVirtualNetworksGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"vNetId\":\"xvndqh\",\"alias\":\"wxqaggb\",\"\":{\"lmdhuu\":\"datajhaicyu\",\"tjqjtoeaug\":\"datatiecnpka\"}},\"name\":\"srywpfcqleniaf\",\"type\":\"zdecgiomdcolwq\",\"etag\":\"rrjudgnph\",\"id\":\"dqt\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - ManagedVirtualNetworkResource response = - manager - .managedVirtualNetworks() - .getWithResponse( - "trivif", "jjmtkwgdgfjvit", "payoesx", "mvslhncaspwvg", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("dqt", response.id()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworksListByFactoryMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworksListByFactoryMockTests.java deleted file mode 100644 index cacf930fbd1c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworksListByFactoryMockTests.java +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.ManagedVirtualNetworkResource; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class ManagedVirtualNetworksListByFactoryMockTests { - @Test - public void testListByFactory() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"properties\":{\"vNetId\":\"ummwpqcdmfrj\",\"alias\":\"emgdkx\",\"\":{\"ompwtevqbcdjlnn\":\"datarvfyjvk\",\"typoqqakpb\":\"datahbejutupgmmt\",\"xdrgxhrtansjbo\":\"datawqavxljaybgxx\"}},\"name\":\"qixbf\",\"type\":\"vkttusyxz\",\"etag\":\"fw\",\"id\":\"qj\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = - manager.managedVirtualNetworks().listByFactory("uwrtubemp", "xmuejl", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("qj", response.iterator().next().id()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperAttributeMappingTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperAttributeMappingTests.java deleted file mode 100644 index 559d70cc2d50..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperAttributeMappingTests.java +++ /dev/null @@ -1,90 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ConnectionType; -import com.azure.resourcemanager.datafactory.models.MapperAttributeMapping; -import com.azure.resourcemanager.datafactory.models.MapperAttributeReference; -import com.azure.resourcemanager.datafactory.models.MapperConnectionReference; -import com.azure.resourcemanager.datafactory.models.MappingType; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class MapperAttributeMappingTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MapperAttributeMapping model = - BinaryData - .fromString( - "{\"name\":\"czwciidjsllfryvd\",\"type\":\"Derived\",\"functionName\":\"dqacfrgnawbabgf\",\"expression\":\"t\",\"attributeReference\":{\"name\":\"fczlfsyqkfrbzgow\",\"entity\":\"qmje\",\"entityConnectionReference\":{\"connectionName\":\"xnyqgxhlusr\",\"type\":\"linkedservicetype\"}},\"attributeReferences\":[{\"name\":\"jceagb\",\"entity\":\"vl\",\"entityConnectionReference\":{\"connectionName\":\"ywzash\",\"type\":\"linkedservicetype\"}}]}") - .toObject(MapperAttributeMapping.class); - Assertions.assertEquals("czwciidjsllfryvd", model.name()); - Assertions.assertEquals(MappingType.DERIVED, model.type()); - Assertions.assertEquals("dqacfrgnawbabgf", model.functionName()); - Assertions.assertEquals("t", model.expression()); - Assertions.assertEquals("fczlfsyqkfrbzgow", model.attributeReference().name()); - Assertions.assertEquals("qmje", model.attributeReference().entity()); - Assertions.assertEquals("xnyqgxhlusr", model.attributeReference().entityConnectionReference().connectionName()); - Assertions - .assertEquals( - ConnectionType.LINKEDSERVICETYPE, model.attributeReference().entityConnectionReference().type()); - Assertions.assertEquals("jceagb", model.attributeReferences().get(0).name()); - Assertions.assertEquals("vl", model.attributeReferences().get(0).entity()); - Assertions - .assertEquals("ywzash", model.attributeReferences().get(0).entityConnectionReference().connectionName()); - Assertions - .assertEquals( - ConnectionType.LINKEDSERVICETYPE, - model.attributeReferences().get(0).entityConnectionReference().type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MapperAttributeMapping model = - new MapperAttributeMapping() - .withName("czwciidjsllfryvd") - .withType(MappingType.DERIVED) - .withFunctionName("dqacfrgnawbabgf") - .withExpression("t") - .withAttributeReference( - new MapperAttributeReference() - .withName("fczlfsyqkfrbzgow") - .withEntity("qmje") - .withEntityConnectionReference( - new MapperConnectionReference() - .withConnectionName("xnyqgxhlusr") - .withType(ConnectionType.LINKEDSERVICETYPE))) - .withAttributeReferences( - Arrays - .asList( - new MapperAttributeReference() - .withName("jceagb") - .withEntity("vl") - .withEntityConnectionReference( - new MapperConnectionReference() - .withConnectionName("ywzash") - .withType(ConnectionType.LINKEDSERVICETYPE)))); - model = BinaryData.fromObject(model).toObject(MapperAttributeMapping.class); - Assertions.assertEquals("czwciidjsllfryvd", model.name()); - Assertions.assertEquals(MappingType.DERIVED, model.type()); - Assertions.assertEquals("dqacfrgnawbabgf", model.functionName()); - Assertions.assertEquals("t", model.expression()); - Assertions.assertEquals("fczlfsyqkfrbzgow", model.attributeReference().name()); - Assertions.assertEquals("qmje", model.attributeReference().entity()); - Assertions.assertEquals("xnyqgxhlusr", model.attributeReference().entityConnectionReference().connectionName()); - Assertions - .assertEquals( - ConnectionType.LINKEDSERVICETYPE, model.attributeReference().entityConnectionReference().type()); - Assertions.assertEquals("jceagb", model.attributeReferences().get(0).name()); - Assertions.assertEquals("vl", model.attributeReferences().get(0).entity()); - Assertions - .assertEquals("ywzash", model.attributeReferences().get(0).entityConnectionReference().connectionName()); - Assertions - .assertEquals( - ConnectionType.LINKEDSERVICETYPE, - model.attributeReferences().get(0).entityConnectionReference().type()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperAttributeMappingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperAttributeMappingsTests.java deleted file mode 100644 index 5b5f6c041595..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperAttributeMappingsTests.java +++ /dev/null @@ -1,200 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ConnectionType; -import com.azure.resourcemanager.datafactory.models.MapperAttributeMapping; -import com.azure.resourcemanager.datafactory.models.MapperAttributeMappings; -import com.azure.resourcemanager.datafactory.models.MapperAttributeReference; -import com.azure.resourcemanager.datafactory.models.MapperConnectionReference; -import com.azure.resourcemanager.datafactory.models.MappingType; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class MapperAttributeMappingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MapperAttributeMappings model = - BinaryData - .fromString( - "{\"attributeMappings\":[{\"name\":\"q\",\"type\":\"Direct\",\"functionName\":\"nrgmqsorhce\",\"expression\":\"gnlykm\",\"attributeReference\":{\"name\":\"wzvmdoksqd\",\"entity\":\"wlwxlboncqbazqic\",\"entityConnectionReference\":{\"connectionName\":\"ygtvxbyjanepub\",\"type\":\"linkedservicetype\"}},\"attributeReferences\":[{\"name\":\"vgxiaodetvo\",\"entity\":\"xdxuwsaifmc\",\"entityConnectionReference\":{\"connectionName\":\"s\",\"type\":\"linkedservicetype\"}},{\"name\":\"hg\",\"entity\":\"kb\",\"entityConnectionReference\":{\"connectionName\":\"jolgjyyxpvels\",\"type\":\"linkedservicetype\"}}]},{\"name\":\"zevxoqein\",\"type\":\"Derived\",\"functionName\":\"ljgl\",\"expression\":\"blqwaafrqulhmzy\",\"attributeReference\":{\"name\":\"dvaf\",\"entity\":\"qpjiyrqjcr\",\"entityConnectionReference\":{\"connectionName\":\"wmzwdfkbnrzorpdl\",\"type\":\"linkedservicetype\"}},\"attributeReferences\":[{\"name\":\"jfgxxsaetg\",\"entity\":\"gvpyigdaqqilzdc\",\"entityConnectionReference\":{\"connectionName\":\"joedx\",\"type\":\"linkedservicetype\"}},{\"name\":\"aifpaurwwgil\",\"entity\":\"qqa\",\"entityConnectionReference\":{\"connectionName\":\"kxwxdcvjwcyziake\",\"type\":\"linkedservicetype\"}},{\"name\":\"h\",\"entity\":\"tuicds\",\"entityConnectionReference\":{\"connectionName\":\"fmmp\",\"type\":\"linkedservicetype\"}}]},{\"name\":\"wvywr\",\"type\":\"Aggregate\",\"functionName\":\"ydg\",\"expression\":\"x\",\"attributeReference\":{\"name\":\"kiqaondjr\",\"entity\":\"lamgglvlmfejdo\",\"entityConnectionReference\":{\"connectionName\":\"kgltyg\",\"type\":\"linkedservicetype\"}},\"attributeReferences\":[{\"name\":\"ka\",\"entity\":\"jsxtlgflwfgziiuc\",\"entityConnectionReference\":{\"connectionName\":\"ceatlijjjrtvamca\",\"type\":\"linkedservicetype\"}},{\"name\":\"xk\",\"entity\":\"cxetyvkunmignoh\",\"entityConnectionReference\":{\"connectionName\":\"gqogjwpindedva\",\"type\":\"linkedservicetype\"}},{\"name\":\"hmedeilbjywfcfxz\",\"entity\":\"zzihvwy\",\"entityConnectionReference\":{\"connectionName\":\"u\",\"type\":\"linkedservicetype\"}}]}]}") - .toObject(MapperAttributeMappings.class); - Assertions.assertEquals("q", model.attributeMappings().get(0).name()); - Assertions.assertEquals(MappingType.DIRECT, model.attributeMappings().get(0).type()); - Assertions.assertEquals("nrgmqsorhce", model.attributeMappings().get(0).functionName()); - Assertions.assertEquals("gnlykm", model.attributeMappings().get(0).expression()); - Assertions.assertEquals("wzvmdoksqd", model.attributeMappings().get(0).attributeReference().name()); - Assertions.assertEquals("wlwxlboncqbazqic", model.attributeMappings().get(0).attributeReference().entity()); - Assertions - .assertEquals( - "ygtvxbyjanepub", - model.attributeMappings().get(0).attributeReference().entityConnectionReference().connectionName()); - Assertions - .assertEquals( - ConnectionType.LINKEDSERVICETYPE, - model.attributeMappings().get(0).attributeReference().entityConnectionReference().type()); - Assertions.assertEquals("vgxiaodetvo", model.attributeMappings().get(0).attributeReferences().get(0).name()); - Assertions.assertEquals("xdxuwsaifmc", model.attributeMappings().get(0).attributeReferences().get(0).entity()); - Assertions - .assertEquals( - "s", - model - .attributeMappings() - .get(0) - .attributeReferences() - .get(0) - .entityConnectionReference() - .connectionName()); - Assertions - .assertEquals( - ConnectionType.LINKEDSERVICETYPE, - model.attributeMappings().get(0).attributeReferences().get(0).entityConnectionReference().type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MapperAttributeMappings model = - new MapperAttributeMappings() - .withAttributeMappings( - Arrays - .asList( - new MapperAttributeMapping() - .withName("q") - .withType(MappingType.DIRECT) - .withFunctionName("nrgmqsorhce") - .withExpression("gnlykm") - .withAttributeReference( - new MapperAttributeReference() - .withName("wzvmdoksqd") - .withEntity("wlwxlboncqbazqic") - .withEntityConnectionReference( - new MapperConnectionReference() - .withConnectionName("ygtvxbyjanepub") - .withType(ConnectionType.LINKEDSERVICETYPE))) - .withAttributeReferences( - Arrays - .asList( - new MapperAttributeReference() - .withName("vgxiaodetvo") - .withEntity("xdxuwsaifmc") - .withEntityConnectionReference( - new MapperConnectionReference() - .withConnectionName("s") - .withType(ConnectionType.LINKEDSERVICETYPE)), - new MapperAttributeReference() - .withName("hg") - .withEntity("kb") - .withEntityConnectionReference( - new MapperConnectionReference() - .withConnectionName("jolgjyyxpvels") - .withType(ConnectionType.LINKEDSERVICETYPE)))), - new MapperAttributeMapping() - .withName("zevxoqein") - .withType(MappingType.DERIVED) - .withFunctionName("ljgl") - .withExpression("blqwaafrqulhmzy") - .withAttributeReference( - new MapperAttributeReference() - .withName("dvaf") - .withEntity("qpjiyrqjcr") - .withEntityConnectionReference( - new MapperConnectionReference() - .withConnectionName("wmzwdfkbnrzorpdl") - .withType(ConnectionType.LINKEDSERVICETYPE))) - .withAttributeReferences( - Arrays - .asList( - new MapperAttributeReference() - .withName("jfgxxsaetg") - .withEntity("gvpyigdaqqilzdc") - .withEntityConnectionReference( - new MapperConnectionReference() - .withConnectionName("joedx") - .withType(ConnectionType.LINKEDSERVICETYPE)), - new MapperAttributeReference() - .withName("aifpaurwwgil") - .withEntity("qqa") - .withEntityConnectionReference( - new MapperConnectionReference() - .withConnectionName("kxwxdcvjwcyziake") - .withType(ConnectionType.LINKEDSERVICETYPE)), - new MapperAttributeReference() - .withName("h") - .withEntity("tuicds") - .withEntityConnectionReference( - new MapperConnectionReference() - .withConnectionName("fmmp") - .withType(ConnectionType.LINKEDSERVICETYPE)))), - new MapperAttributeMapping() - .withName("wvywr") - .withType(MappingType.AGGREGATE) - .withFunctionName("ydg") - .withExpression("x") - .withAttributeReference( - new MapperAttributeReference() - .withName("kiqaondjr") - .withEntity("lamgglvlmfejdo") - .withEntityConnectionReference( - new MapperConnectionReference() - .withConnectionName("kgltyg") - .withType(ConnectionType.LINKEDSERVICETYPE))) - .withAttributeReferences( - Arrays - .asList( - new MapperAttributeReference() - .withName("ka") - .withEntity("jsxtlgflwfgziiuc") - .withEntityConnectionReference( - new MapperConnectionReference() - .withConnectionName("ceatlijjjrtvamca") - .withType(ConnectionType.LINKEDSERVICETYPE)), - new MapperAttributeReference() - .withName("xk") - .withEntity("cxetyvkunmignoh") - .withEntityConnectionReference( - new MapperConnectionReference() - .withConnectionName("gqogjwpindedva") - .withType(ConnectionType.LINKEDSERVICETYPE)), - new MapperAttributeReference() - .withName("hmedeilbjywfcfxz") - .withEntity("zzihvwy") - .withEntityConnectionReference( - new MapperConnectionReference() - .withConnectionName("u") - .withType(ConnectionType.LINKEDSERVICETYPE)))))); - model = BinaryData.fromObject(model).toObject(MapperAttributeMappings.class); - Assertions.assertEquals("q", model.attributeMappings().get(0).name()); - Assertions.assertEquals(MappingType.DIRECT, model.attributeMappings().get(0).type()); - Assertions.assertEquals("nrgmqsorhce", model.attributeMappings().get(0).functionName()); - Assertions.assertEquals("gnlykm", model.attributeMappings().get(0).expression()); - Assertions.assertEquals("wzvmdoksqd", model.attributeMappings().get(0).attributeReference().name()); - Assertions.assertEquals("wlwxlboncqbazqic", model.attributeMappings().get(0).attributeReference().entity()); - Assertions - .assertEquals( - "ygtvxbyjanepub", - model.attributeMappings().get(0).attributeReference().entityConnectionReference().connectionName()); - Assertions - .assertEquals( - ConnectionType.LINKEDSERVICETYPE, - model.attributeMappings().get(0).attributeReference().entityConnectionReference().type()); - Assertions.assertEquals("vgxiaodetvo", model.attributeMappings().get(0).attributeReferences().get(0).name()); - Assertions.assertEquals("xdxuwsaifmc", model.attributeMappings().get(0).attributeReferences().get(0).entity()); - Assertions - .assertEquals( - "s", - model - .attributeMappings() - .get(0) - .attributeReferences() - .get(0) - .entityConnectionReference() - .connectionName()); - Assertions - .assertEquals( - ConnectionType.LINKEDSERVICETYPE, - model.attributeMappings().get(0).attributeReferences().get(0).entityConnectionReference().type()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperAttributeReferenceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperAttributeReferenceTests.java deleted file mode 100644 index ae4f4c8439d2..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperAttributeReferenceTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ConnectionType; -import com.azure.resourcemanager.datafactory.models.MapperAttributeReference; -import com.azure.resourcemanager.datafactory.models.MapperConnectionReference; -import org.junit.jupiter.api.Assertions; - -public final class MapperAttributeReferenceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MapperAttributeReference model = - BinaryData - .fromString( - "{\"name\":\"oyjfqipu\",\"entity\":\"znclkfkeebgv\",\"entityConnectionReference\":{\"connectionName\":\"m\",\"type\":\"linkedservicetype\"}}") - .toObject(MapperAttributeReference.class); - Assertions.assertEquals("oyjfqipu", model.name()); - Assertions.assertEquals("znclkfkeebgv", model.entity()); - Assertions.assertEquals("m", model.entityConnectionReference().connectionName()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, model.entityConnectionReference().type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MapperAttributeReference model = - new MapperAttributeReference() - .withName("oyjfqipu") - .withEntity("znclkfkeebgv") - .withEntityConnectionReference( - new MapperConnectionReference().withConnectionName("m").withType(ConnectionType.LINKEDSERVICETYPE)); - model = BinaryData.fromObject(model).toObject(MapperAttributeReference.class); - Assertions.assertEquals("oyjfqipu", model.name()); - Assertions.assertEquals("znclkfkeebgv", model.entity()); - Assertions.assertEquals("m", model.entityConnectionReference().connectionName()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, model.entityConnectionReference().type()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperConnectionReferenceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperConnectionReferenceTests.java deleted file mode 100644 index a0bc3180a190..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperConnectionReferenceTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ConnectionType; -import com.azure.resourcemanager.datafactory.models.MapperConnectionReference; -import org.junit.jupiter.api.Assertions; - -public final class MapperConnectionReferenceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MapperConnectionReference model = - BinaryData - .fromString("{\"connectionName\":\"k\",\"type\":\"linkedservicetype\"}") - .toObject(MapperConnectionReference.class); - Assertions.assertEquals("k", model.connectionName()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, model.type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MapperConnectionReference model = - new MapperConnectionReference().withConnectionName("k").withType(ConnectionType.LINKEDSERVICETYPE); - model = BinaryData.fromObject(model).toObject(MapperConnectionReference.class); - Assertions.assertEquals("k", model.connectionName()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, model.type()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperConnectionTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperConnectionTests.java deleted file mode 100644 index 8d7a3768ec53..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperConnectionTests.java +++ /dev/null @@ -1,69 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ConnectionType; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.MapperConnection; -import com.azure.resourcemanager.datafactory.models.MapperDslConnectorProperties; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class MapperConnectionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MapperConnection model = - BinaryData - .fromString( - "{\"linkedService\":{\"referenceName\":\"sdtcjbctvivuzqym\",\"parameters\":{\"zvbrzcdbanfzndsc\":\"datawogtgitsq\"}},\"linkedServiceType\":\"xeatkd\",\"type\":\"linkedservicetype\",\"isInlineDataset\":false,\"commonDslConnectorProperties\":[{\"name\":\"yibqbnao\",\"value\":\"datajrmkuhmaxljalf\"},{\"name\":\"cjmobcanc\",\"value\":\"dataxxqcwgaxf\"},{\"name\":\"aknokzwjjzrl\",\"value\":\"dataxldzyyfytpqsix\"},{\"name\":\"m\",\"value\":\"datajivyqlkjuv\"}]}") - .toObject(MapperConnection.class); - Assertions.assertEquals("sdtcjbctvivuzqym", model.linkedService().referenceName()); - Assertions.assertEquals("xeatkd", model.linkedServiceType()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, model.type()); - Assertions.assertEquals(false, model.isInlineDataset()); - Assertions.assertEquals("yibqbnao", model.commonDslConnectorProperties().get(0).name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MapperConnection model = - new MapperConnection() - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("sdtcjbctvivuzqym") - .withParameters(mapOf("zvbrzcdbanfzndsc", "datawogtgitsq"))) - .withLinkedServiceType("xeatkd") - .withType(ConnectionType.LINKEDSERVICETYPE) - .withIsInlineDataset(false) - .withCommonDslConnectorProperties( - Arrays - .asList( - new MapperDslConnectorProperties().withName("yibqbnao").withValue("datajrmkuhmaxljalf"), - new MapperDslConnectorProperties().withName("cjmobcanc").withValue("dataxxqcwgaxf"), - new MapperDslConnectorProperties().withName("aknokzwjjzrl").withValue("dataxldzyyfytpqsix"), - new MapperDslConnectorProperties().withName("m").withValue("datajivyqlkjuv"))); - model = BinaryData.fromObject(model).toObject(MapperConnection.class); - Assertions.assertEquals("sdtcjbctvivuzqym", model.linkedService().referenceName()); - Assertions.assertEquals("xeatkd", model.linkedServiceType()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, model.type()); - Assertions.assertEquals(false, model.isInlineDataset()); - Assertions.assertEquals("yibqbnao", model.commonDslConnectorProperties().get(0).name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperDslConnectorPropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperDslConnectorPropertiesTests.java deleted file mode 100644 index 069fb943608c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperDslConnectorPropertiesTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.MapperDslConnectorProperties; -import org.junit.jupiter.api.Assertions; - -public final class MapperDslConnectorPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MapperDslConnectorProperties model = - BinaryData - .fromString("{\"name\":\"lkwq\",\"value\":\"datatv\"}") - .toObject(MapperDslConnectorProperties.class); - Assertions.assertEquals("lkwq", model.name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MapperDslConnectorProperties model = new MapperDslConnectorProperties().withName("lkwq").withValue("datatv"); - model = BinaryData.fromObject(model).toObject(MapperDslConnectorProperties.class); - Assertions.assertEquals("lkwq", model.name()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperPolicyRecurrenceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperPolicyRecurrenceTests.java deleted file mode 100644 index 9c8027eec36e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperPolicyRecurrenceTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.FrequencyType; -import com.azure.resourcemanager.datafactory.models.MapperPolicyRecurrence; -import org.junit.jupiter.api.Assertions; - -public final class MapperPolicyRecurrenceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MapperPolicyRecurrence model = - BinaryData - .fromString("{\"frequency\":\"Hour\",\"interval\":1799145797}") - .toObject(MapperPolicyRecurrence.class); - Assertions.assertEquals(FrequencyType.HOUR, model.frequency()); - Assertions.assertEquals(1799145797, model.interval()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MapperPolicyRecurrence model = - new MapperPolicyRecurrence().withFrequency(FrequencyType.HOUR).withInterval(1799145797); - model = BinaryData.fromObject(model).toObject(MapperPolicyRecurrence.class); - Assertions.assertEquals(FrequencyType.HOUR, model.frequency()); - Assertions.assertEquals(1799145797, model.interval()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperPolicyTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperPolicyTests.java deleted file mode 100644 index d33cf2575b7d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperPolicyTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.FrequencyType; -import com.azure.resourcemanager.datafactory.models.MapperPolicy; -import com.azure.resourcemanager.datafactory.models.MapperPolicyRecurrence; -import org.junit.jupiter.api.Assertions; - -public final class MapperPolicyTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MapperPolicy model = - BinaryData - .fromString("{\"mode\":\"ujlyegq\",\"recurrence\":{\"frequency\":\"Second\",\"interval\":1397511481}}") - .toObject(MapperPolicy.class); - Assertions.assertEquals("ujlyegq", model.mode()); - Assertions.assertEquals(FrequencyType.SECOND, model.recurrence().frequency()); - Assertions.assertEquals(1397511481, model.recurrence().interval()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MapperPolicy model = - new MapperPolicy() - .withMode("ujlyegq") - .withRecurrence( - new MapperPolicyRecurrence().withFrequency(FrequencyType.SECOND).withInterval(1397511481)); - model = BinaryData.fromObject(model).toObject(MapperPolicy.class); - Assertions.assertEquals("ujlyegq", model.mode()); - Assertions.assertEquals(FrequencyType.SECOND, model.recurrence().frequency()); - Assertions.assertEquals(1397511481, model.recurrence().interval()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperSourceConnectionsInfoTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperSourceConnectionsInfoTests.java deleted file mode 100644 index 99410ed58b65..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperSourceConnectionsInfoTests.java +++ /dev/null @@ -1,107 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ConnectionType; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.MapperConnection; -import com.azure.resourcemanager.datafactory.models.MapperDslConnectorProperties; -import com.azure.resourcemanager.datafactory.models.MapperSourceConnectionsInfo; -import com.azure.resourcemanager.datafactory.models.MapperTable; -import com.azure.resourcemanager.datafactory.models.MapperTableSchema; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class MapperSourceConnectionsInfoTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MapperSourceConnectionsInfo model = - BinaryData - .fromString( - "{\"sourceEntities\":[{\"name\":\"epmywbormcqm\",\"properties\":{\"schema\":[{\"name\":\"qpkzfbojxjmcsmy\",\"dataType\":\"ixvcpwnkwywzwo\"},{\"name\":\"lickduoi\",\"dataType\":\"amt\"},{\"name\":\"sknxrwzawnvsbcf\",\"dataType\":\"agxnvhycvdimw\"},{\"name\":\"regzgyufutrwpwer\",\"dataType\":\"kzkdhmeott\"}],\"dslConnectorProperties\":[{\"name\":\"osxw\",\"value\":\"datanhjtf\"},{\"name\":\"n\",\"value\":\"datamiljpnwynud\"}]}}],\"connection\":{\"linkedService\":{\"referenceName\":\"zsauzp\",\"parameters\":{\"ezxlskihm\":\"dataeehuxiqhzlray\"}},\"linkedServiceType\":\"fdsajred\",\"type\":\"linkedservicetype\",\"isInlineDataset\":true,\"commonDslConnectorProperties\":[{\"name\":\"uwg\",\"value\":\"datavuafpwzyifr\"},{\"name\":\"wltxeqipxgzdyims\",\"value\":\"datayorpr\"}]}}") - .toObject(MapperSourceConnectionsInfo.class); - Assertions.assertEquals("epmywbormcqm", model.sourceEntities().get(0).name()); - Assertions.assertEquals("qpkzfbojxjmcsmy", model.sourceEntities().get(0).schema().get(0).name()); - Assertions.assertEquals("ixvcpwnkwywzwo", model.sourceEntities().get(0).schema().get(0).dataType()); - Assertions.assertEquals("osxw", model.sourceEntities().get(0).dslConnectorProperties().get(0).name()); - Assertions.assertEquals("zsauzp", model.connection().linkedService().referenceName()); - Assertions.assertEquals("fdsajred", model.connection().linkedServiceType()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, model.connection().type()); - Assertions.assertEquals(true, model.connection().isInlineDataset()); - Assertions.assertEquals("uwg", model.connection().commonDslConnectorProperties().get(0).name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MapperSourceConnectionsInfo model = - new MapperSourceConnectionsInfo() - .withSourceEntities( - Arrays - .asList( - new MapperTable() - .withName("epmywbormcqm") - .withSchema( - Arrays - .asList( - new MapperTableSchema() - .withName("qpkzfbojxjmcsmy") - .withDataType("ixvcpwnkwywzwo"), - new MapperTableSchema().withName("lickduoi").withDataType("amt"), - new MapperTableSchema() - .withName("sknxrwzawnvsbcf") - .withDataType("agxnvhycvdimw"), - new MapperTableSchema() - .withName("regzgyufutrwpwer") - .withDataType("kzkdhmeott"))) - .withDslConnectorProperties( - Arrays - .asList( - new MapperDslConnectorProperties().withName("osxw").withValue("datanhjtf"), - new MapperDslConnectorProperties() - .withName("n") - .withValue("datamiljpnwynud"))))) - .withConnection( - new MapperConnection() - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("zsauzp") - .withParameters(mapOf("ezxlskihm", "dataeehuxiqhzlray"))) - .withLinkedServiceType("fdsajred") - .withType(ConnectionType.LINKEDSERVICETYPE) - .withIsInlineDataset(true) - .withCommonDslConnectorProperties( - Arrays - .asList( - new MapperDslConnectorProperties().withName("uwg").withValue("datavuafpwzyifr"), - new MapperDslConnectorProperties() - .withName("wltxeqipxgzdyims") - .withValue("datayorpr")))); - model = BinaryData.fromObject(model).toObject(MapperSourceConnectionsInfo.class); - Assertions.assertEquals("epmywbormcqm", model.sourceEntities().get(0).name()); - Assertions.assertEquals("qpkzfbojxjmcsmy", model.sourceEntities().get(0).schema().get(0).name()); - Assertions.assertEquals("ixvcpwnkwywzwo", model.sourceEntities().get(0).schema().get(0).dataType()); - Assertions.assertEquals("osxw", model.sourceEntities().get(0).dslConnectorProperties().get(0).name()); - Assertions.assertEquals("zsauzp", model.connection().linkedService().referenceName()); - Assertions.assertEquals("fdsajred", model.connection().linkedServiceType()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, model.connection().type()); - Assertions.assertEquals(true, model.connection().isInlineDataset()); - Assertions.assertEquals("uwg", model.connection().commonDslConnectorProperties().get(0).name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperTablePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperTablePropertiesTests.java deleted file mode 100644 index 89e02f2f818f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperTablePropertiesTests.java +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.MapperTableProperties; -import com.azure.resourcemanager.datafactory.models.MapperDslConnectorProperties; -import com.azure.resourcemanager.datafactory.models.MapperTableSchema; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class MapperTablePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MapperTableProperties model = - BinaryData - .fromString( - "{\"schema\":[{\"name\":\"toi\",\"dataType\":\"gygvfltgvdiho\"},{\"name\":\"krxwet\",\"dataType\":\"drcyrucpcun\"}],\"dslConnectorProperties\":[{\"name\":\"qumoeno\",\"value\":\"dataaienhqhsknd\"},{\"name\":\"lqkaadlknwf\",\"value\":\"datanniyopetxi\"}]}") - .toObject(MapperTableProperties.class); - Assertions.assertEquals("toi", model.schema().get(0).name()); - Assertions.assertEquals("gygvfltgvdiho", model.schema().get(0).dataType()); - Assertions.assertEquals("qumoeno", model.dslConnectorProperties().get(0).name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MapperTableProperties model = - new MapperTableProperties() - .withSchema( - Arrays - .asList( - new MapperTableSchema().withName("toi").withDataType("gygvfltgvdiho"), - new MapperTableSchema().withName("krxwet").withDataType("drcyrucpcun"))) - .withDslConnectorProperties( - Arrays - .asList( - new MapperDslConnectorProperties().withName("qumoeno").withValue("dataaienhqhsknd"), - new MapperDslConnectorProperties().withName("lqkaadlknwf").withValue("datanniyopetxi"))); - model = BinaryData.fromObject(model).toObject(MapperTableProperties.class); - Assertions.assertEquals("toi", model.schema().get(0).name()); - Assertions.assertEquals("gygvfltgvdiho", model.schema().get(0).dataType()); - Assertions.assertEquals("qumoeno", model.dslConnectorProperties().get(0).name()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperTableSchemaTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperTableSchemaTests.java deleted file mode 100644 index 729187d32a0f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperTableSchemaTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.MapperTableSchema; -import org.junit.jupiter.api.Assertions; - -public final class MapperTableSchemaTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MapperTableSchema model = - BinaryData.fromString("{\"name\":\"nrlyxnuc\",\"dataType\":\"p\"}").toObject(MapperTableSchema.class); - Assertions.assertEquals("nrlyxnuc", model.name()); - Assertions.assertEquals("p", model.dataType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MapperTableSchema model = new MapperTableSchema().withName("nrlyxnuc").withDataType("p"); - model = BinaryData.fromObject(model).toObject(MapperTableSchema.class); - Assertions.assertEquals("nrlyxnuc", model.name()); - Assertions.assertEquals("p", model.dataType()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperTableTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperTableTests.java deleted file mode 100644 index 013c3fcdccf3..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperTableTests.java +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.MapperDslConnectorProperties; -import com.azure.resourcemanager.datafactory.models.MapperTable; -import com.azure.resourcemanager.datafactory.models.MapperTableSchema; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class MapperTableTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MapperTable model = - BinaryData - .fromString( - "{\"name\":\"kj\",\"properties\":{\"schema\":[{\"name\":\"abnsmj\",\"dataType\":\"ynq\"}],\"dslConnectorProperties\":[{\"name\":\"qs\",\"value\":\"datavwjtqpkevmyltjc\"},{\"name\":\"pxklurccl\",\"value\":\"dataxa\"},{\"name\":\"noytzposewxigp\",\"value\":\"datakqma\"},{\"name\":\"xvpif\",\"value\":\"dataaifyzyzeyuubeids\"}]}}") - .toObject(MapperTable.class); - Assertions.assertEquals("kj", model.name()); - Assertions.assertEquals("abnsmj", model.schema().get(0).name()); - Assertions.assertEquals("ynq", model.schema().get(0).dataType()); - Assertions.assertEquals("qs", model.dslConnectorProperties().get(0).name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MapperTable model = - new MapperTable() - .withName("kj") - .withSchema(Arrays.asList(new MapperTableSchema().withName("abnsmj").withDataType("ynq"))) - .withDslConnectorProperties( - Arrays - .asList( - new MapperDslConnectorProperties().withName("qs").withValue("datavwjtqpkevmyltjc"), - new MapperDslConnectorProperties().withName("pxklurccl").withValue("dataxa"), - new MapperDslConnectorProperties().withName("noytzposewxigp").withValue("datakqma"), - new MapperDslConnectorProperties().withName("xvpif").withValue("dataaifyzyzeyuubeids"))); - model = BinaryData.fromObject(model).toObject(MapperTable.class); - Assertions.assertEquals("kj", model.name()); - Assertions.assertEquals("abnsmj", model.schema().get(0).name()); - Assertions.assertEquals("ynq", model.schema().get(0).dataType()); - Assertions.assertEquals("qs", model.dslConnectorProperties().get(0).name()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperTargetConnectionsInfoTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperTargetConnectionsInfoTests.java deleted file mode 100644 index 1d9644fd238e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperTargetConnectionsInfoTests.java +++ /dev/null @@ -1,283 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ConnectionType; -import com.azure.resourcemanager.datafactory.models.DataMapperMapping; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.MapperAttributeMapping; -import com.azure.resourcemanager.datafactory.models.MapperAttributeMappings; -import com.azure.resourcemanager.datafactory.models.MapperAttributeReference; -import com.azure.resourcemanager.datafactory.models.MapperConnection; -import com.azure.resourcemanager.datafactory.models.MapperConnectionReference; -import com.azure.resourcemanager.datafactory.models.MapperDslConnectorProperties; -import com.azure.resourcemanager.datafactory.models.MapperTable; -import com.azure.resourcemanager.datafactory.models.MapperTableSchema; -import com.azure.resourcemanager.datafactory.models.MapperTargetConnectionsInfo; -import com.azure.resourcemanager.datafactory.models.MappingType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class MapperTargetConnectionsInfoTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MapperTargetConnectionsInfo model = - BinaryData - .fromString( - "{\"targetEntities\":[{\"name\":\"slzoyov\",\"properties\":{\"schema\":[{\"name\":\"qvybefg\",\"dataType\":\"x\"},{\"name\":\"kcvtl\",\"dataType\":\"seskvcuar\"},{\"name\":\"hunlpirykycnd\",\"dataType\":\"qi\"}],\"dslConnectorProperties\":[{\"name\":\"uykbbmn\",\"value\":\"datagltbxoeeo\"},{\"name\":\"lnf\",\"value\":\"datay\"},{\"name\":\"vqdbpbhfck\",\"value\":\"dataezcrcssbzhddubb\"},{\"name\":\"fblhkalehp\",\"value\":\"dataawugiqjti\"}]}},{\"name\":\"qgdm\",\"properties\":{\"schema\":[{\"name\":\"teajohiyg\",\"dataType\":\"n\"},{\"name\":\"n\",\"dataType\":\"czykmktpvw\"},{\"name\":\"csehchkhufm\",\"dataType\":\"umqy\"}],\"dslConnectorProperties\":[{\"name\":\"zulo\",\"value\":\"dataaeuzanh\"},{\"name\":\"nhsenwphpzfng\",\"value\":\"dataclid\"},{\"name\":\"u\",\"value\":\"datajj\"},{\"name\":\"wbeqrkuor\",\"value\":\"datassruqnmdvhazcvj\"}]}},{\"name\":\"iqswbqer\",\"properties\":{\"schema\":[{\"name\":\"txtd\",\"dataType\":\"kvlbpktgdstyoua\"},{\"name\":\"ewres\",\"dataType\":\"owegmmutey\"}],\"dslConnectorProperties\":[{\"name\":\"uqi\",\"value\":\"datajiitnspxlzdesygr\"},{\"name\":\"waiufanra\",\"value\":\"datafueqfrojs\"},{\"name\":\"grhydk\",\"value\":\"dataywezskiecafyg\"},{\"name\":\"xieqv\",\"value\":\"datamakli\"}]}}],\"connection\":{\"linkedService\":{\"referenceName\":\"ah\",\"parameters\":{\"tblxpkkwjdjodqhy\":\"dataalybxawoijpo\",\"mehllizhceu\":\"dataincnr\",\"ibngqladyw\":\"dataoqodkadpp\",\"ds\":\"dataxwhydtluvv\"}},\"linkedServiceType\":\"snuyemlowuowhl\",\"type\":\"linkedservicetype\",\"isInlineDataset\":false,\"commonDslConnectorProperties\":[{\"name\":\"ouvblgmo\",\"value\":\"datakltrfow\"},{\"name\":\"vrfmvlihcvjd\",\"value\":\"datacrjidhftukv\"}]},\"dataMapperMappings\":[{\"targetEntityName\":\"wyojbfqzdkfnjyi\",\"sourceEntityName\":\"afr\",\"sourceConnectionReference\":{\"connectionName\":\"xmbjroum\",\"type\":\"linkedservicetype\"},\"attributeMappingInfo\":{\"attributeMappings\":[{\"name\":\"jrhuzgf\",\"type\":\"Aggregate\",\"functionName\":\"tpusllywp\",\"expression\":\"iotzbpdbollgryfq\",\"attributeReference\":{},\"attributeReferences\":[{},{},{},{}]}]},\"sourceDenormalizeInfo\":\"datagrowsoc\"},{\"targetEntityName\":\"quygdjboqgrmtq\",\"sourceEntityName\":\"qevadrmmw\",\"sourceConnectionReference\":{\"connectionName\":\"wvcmj\",\"type\":\"linkedservicetype\"},\"attributeMappingInfo\":{\"attributeMappings\":[{\"name\":\"scz\",\"type\":\"Aggregate\",\"functionName\":\"woqiqazugamxzkrr\",\"expression\":\"iisb\",\"attributeReference\":{},\"attributeReferences\":[{}]},{\"name\":\"ccek\",\"type\":\"Derived\",\"functionName\":\"sbezaxyfukzxuizh\",\"expression\":\"nepk\",\"attributeReference\":{},\"attributeReferences\":[{},{},{},{}]},{\"name\":\"rx\",\"type\":\"Direct\",\"functionName\":\"xdukecpxd\",\"expression\":\"v\",\"attributeReference\":{},\"attributeReferences\":[{},{}]}]},\"sourceDenormalizeInfo\":\"datamkoszudbl\"}],\"relationships\":[\"datatrpc\",\"dataqkio\",\"datakb\"]}") - .toObject(MapperTargetConnectionsInfo.class); - Assertions.assertEquals("slzoyov", model.targetEntities().get(0).name()); - Assertions.assertEquals("qvybefg", model.targetEntities().get(0).schema().get(0).name()); - Assertions.assertEquals("x", model.targetEntities().get(0).schema().get(0).dataType()); - Assertions.assertEquals("uykbbmn", model.targetEntities().get(0).dslConnectorProperties().get(0).name()); - Assertions.assertEquals("ah", model.connection().linkedService().referenceName()); - Assertions.assertEquals("snuyemlowuowhl", model.connection().linkedServiceType()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, model.connection().type()); - Assertions.assertEquals(false, model.connection().isInlineDataset()); - Assertions.assertEquals("ouvblgmo", model.connection().commonDslConnectorProperties().get(0).name()); - Assertions.assertEquals("wyojbfqzdkfnjyi", model.dataMapperMappings().get(0).targetEntityName()); - Assertions.assertEquals("afr", model.dataMapperMappings().get(0).sourceEntityName()); - Assertions - .assertEquals("xmbjroum", model.dataMapperMappings().get(0).sourceConnectionReference().connectionName()); - Assertions - .assertEquals( - ConnectionType.LINKEDSERVICETYPE, model.dataMapperMappings().get(0).sourceConnectionReference().type()); - Assertions - .assertEquals( - "jrhuzgf", model.dataMapperMappings().get(0).attributeMappingInfo().attributeMappings().get(0).name()); - Assertions - .assertEquals( - MappingType.AGGREGATE, - model.dataMapperMappings().get(0).attributeMappingInfo().attributeMappings().get(0).type()); - Assertions - .assertEquals( - "tpusllywp", - model.dataMapperMappings().get(0).attributeMappingInfo().attributeMappings().get(0).functionName()); - Assertions - .assertEquals( - "iotzbpdbollgryfq", - model.dataMapperMappings().get(0).attributeMappingInfo().attributeMappings().get(0).expression()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MapperTargetConnectionsInfo model = - new MapperTargetConnectionsInfo() - .withTargetEntities( - Arrays - .asList( - new MapperTable() - .withName("slzoyov") - .withSchema( - Arrays - .asList( - new MapperTableSchema().withName("qvybefg").withDataType("x"), - new MapperTableSchema().withName("kcvtl").withDataType("seskvcuar"), - new MapperTableSchema().withName("hunlpirykycnd").withDataType("qi"))) - .withDslConnectorProperties( - Arrays - .asList( - new MapperDslConnectorProperties() - .withName("uykbbmn") - .withValue("datagltbxoeeo"), - new MapperDslConnectorProperties().withName("lnf").withValue("datay"), - new MapperDslConnectorProperties() - .withName("vqdbpbhfck") - .withValue("dataezcrcssbzhddubb"), - new MapperDslConnectorProperties() - .withName("fblhkalehp") - .withValue("dataawugiqjti"))), - new MapperTable() - .withName("qgdm") - .withSchema( - Arrays - .asList( - new MapperTableSchema().withName("teajohiyg").withDataType("n"), - new MapperTableSchema().withName("n").withDataType("czykmktpvw"), - new MapperTableSchema().withName("csehchkhufm").withDataType("umqy"))) - .withDslConnectorProperties( - Arrays - .asList( - new MapperDslConnectorProperties() - .withName("zulo") - .withValue("dataaeuzanh"), - new MapperDslConnectorProperties() - .withName("nhsenwphpzfng") - .withValue("dataclid"), - new MapperDslConnectorProperties().withName("u").withValue("datajj"), - new MapperDslConnectorProperties() - .withName("wbeqrkuor") - .withValue("datassruqnmdvhazcvj"))), - new MapperTable() - .withName("iqswbqer") - .withSchema( - Arrays - .asList( - new MapperTableSchema().withName("txtd").withDataType("kvlbpktgdstyoua"), - new MapperTableSchema().withName("ewres").withDataType("owegmmutey"))) - .withDslConnectorProperties( - Arrays - .asList( - new MapperDslConnectorProperties() - .withName("uqi") - .withValue("datajiitnspxlzdesygr"), - new MapperDslConnectorProperties() - .withName("waiufanra") - .withValue("datafueqfrojs"), - new MapperDslConnectorProperties() - .withName("grhydk") - .withValue("dataywezskiecafyg"), - new MapperDslConnectorProperties() - .withName("xieqv") - .withValue("datamakli"))))) - .withConnection( - new MapperConnection() - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("ah") - .withParameters( - mapOf( - "tblxpkkwjdjodqhy", - "dataalybxawoijpo", - "mehllizhceu", - "dataincnr", - "ibngqladyw", - "dataoqodkadpp", - "ds", - "dataxwhydtluvv"))) - .withLinkedServiceType("snuyemlowuowhl") - .withType(ConnectionType.LINKEDSERVICETYPE) - .withIsInlineDataset(false) - .withCommonDslConnectorProperties( - Arrays - .asList( - new MapperDslConnectorProperties().withName("ouvblgmo").withValue("datakltrfow"), - new MapperDslConnectorProperties() - .withName("vrfmvlihcvjd") - .withValue("datacrjidhftukv")))) - .withDataMapperMappings( - Arrays - .asList( - new DataMapperMapping() - .withTargetEntityName("wyojbfqzdkfnjyi") - .withSourceEntityName("afr") - .withSourceConnectionReference( - new MapperConnectionReference() - .withConnectionName("xmbjroum") - .withType(ConnectionType.LINKEDSERVICETYPE)) - .withAttributeMappingInfo( - new MapperAttributeMappings() - .withAttributeMappings( - Arrays - .asList( - new MapperAttributeMapping() - .withName("jrhuzgf") - .withType(MappingType.AGGREGATE) - .withFunctionName("tpusllywp") - .withExpression("iotzbpdbollgryfq") - .withAttributeReference(new MapperAttributeReference()) - .withAttributeReferences( - Arrays - .asList( - new MapperAttributeReference(), - new MapperAttributeReference(), - new MapperAttributeReference(), - new MapperAttributeReference()))))) - .withSourceDenormalizeInfo("datagrowsoc"), - new DataMapperMapping() - .withTargetEntityName("quygdjboqgrmtq") - .withSourceEntityName("qevadrmmw") - .withSourceConnectionReference( - new MapperConnectionReference() - .withConnectionName("wvcmj") - .withType(ConnectionType.LINKEDSERVICETYPE)) - .withAttributeMappingInfo( - new MapperAttributeMappings() - .withAttributeMappings( - Arrays - .asList( - new MapperAttributeMapping() - .withName("scz") - .withType(MappingType.AGGREGATE) - .withFunctionName("woqiqazugamxzkrr") - .withExpression("iisb") - .withAttributeReference(new MapperAttributeReference()) - .withAttributeReferences( - Arrays.asList(new MapperAttributeReference())), - new MapperAttributeMapping() - .withName("ccek") - .withType(MappingType.DERIVED) - .withFunctionName("sbezaxyfukzxuizh") - .withExpression("nepk") - .withAttributeReference(new MapperAttributeReference()) - .withAttributeReferences( - Arrays - .asList( - new MapperAttributeReference(), - new MapperAttributeReference(), - new MapperAttributeReference(), - new MapperAttributeReference())), - new MapperAttributeMapping() - .withName("rx") - .withType(MappingType.DIRECT) - .withFunctionName("xdukecpxd") - .withExpression("v") - .withAttributeReference(new MapperAttributeReference()) - .withAttributeReferences( - Arrays - .asList( - new MapperAttributeReference(), - new MapperAttributeReference()))))) - .withSourceDenormalizeInfo("datamkoszudbl"))) - .withRelationships(Arrays.asList("datatrpc", "dataqkio", "datakb")); - model = BinaryData.fromObject(model).toObject(MapperTargetConnectionsInfo.class); - Assertions.assertEquals("slzoyov", model.targetEntities().get(0).name()); - Assertions.assertEquals("qvybefg", model.targetEntities().get(0).schema().get(0).name()); - Assertions.assertEquals("x", model.targetEntities().get(0).schema().get(0).dataType()); - Assertions.assertEquals("uykbbmn", model.targetEntities().get(0).dslConnectorProperties().get(0).name()); - Assertions.assertEquals("ah", model.connection().linkedService().referenceName()); - Assertions.assertEquals("snuyemlowuowhl", model.connection().linkedServiceType()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, model.connection().type()); - Assertions.assertEquals(false, model.connection().isInlineDataset()); - Assertions.assertEquals("ouvblgmo", model.connection().commonDslConnectorProperties().get(0).name()); - Assertions.assertEquals("wyojbfqzdkfnjyi", model.dataMapperMappings().get(0).targetEntityName()); - Assertions.assertEquals("afr", model.dataMapperMappings().get(0).sourceEntityName()); - Assertions - .assertEquals("xmbjroum", model.dataMapperMappings().get(0).sourceConnectionReference().connectionName()); - Assertions - .assertEquals( - ConnectionType.LINKEDSERVICETYPE, model.dataMapperMappings().get(0).sourceConnectionReference().type()); - Assertions - .assertEquals( - "jrhuzgf", model.dataMapperMappings().get(0).attributeMappingInfo().attributeMappings().get(0).name()); - Assertions - .assertEquals( - MappingType.AGGREGATE, - model.dataMapperMappings().get(0).attributeMappingInfo().attributeMappings().get(0).type()); - Assertions - .assertEquals( - "tpusllywp", - model.dataMapperMappings().get(0).attributeMappingInfo().attributeMappings().get(0).functionName()); - Assertions - .assertEquals( - "iotzbpdbollgryfq", - model.dataMapperMappings().get(0).attributeMappingInfo().attributeMappings().get(0).expression()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MappingDataFlowTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MappingDataFlowTests.java deleted file mode 100644 index 9d10004b2a49..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MappingDataFlowTests.java +++ /dev/null @@ -1,498 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DataFlowFolder; -import com.azure.resourcemanager.datafactory.models.DataFlowReference; -import com.azure.resourcemanager.datafactory.models.DataFlowReferenceType; -import com.azure.resourcemanager.datafactory.models.DataFlowSink; -import com.azure.resourcemanager.datafactory.models.DataFlowSource; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.MappingDataFlow; -import com.azure.resourcemanager.datafactory.models.Transformation; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class MappingDataFlowTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MappingDataFlow model = - BinaryData - .fromString( - "{\"type\":\"MappingDataFlow\",\"typeProperties\":{\"sources\":[{\"schemaLinkedService\":{\"referenceName\":\"wdyjqurykcrrauee\",\"parameters\":{\"cbcbgydlqidy\":\"datauehogdd\"}},\"name\":\"mhmpty\",\"description\":\"lkfbnrqqxvztpb\",\"dataset\":{\"referenceName\":\"nqtxjtomalswbnf\",\"parameters\":{\"qjn\":\"datapld\"}},\"linkedService\":{\"referenceName\":\"zygleexahvm\",\"parameters\":{\"sjjzyvoaqajuveh\":\"datasbrcary\",\"be\":\"dataptdmkrrbhmpful\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"bpmfbfununmpzkrv\",\"datasetParameters\":\"dataifkdschlzvf\",\"parameters\":{\"rtogmhmj\":\"datankjjwgcwnphbkgf\",\"fp\":\"datajsc\",\"fv\":\"dataqwtygevgwmseharx\",\"x\":\"datan\"},\"\":{\"wjhrsidqpxlbtpa\":\"datapjptn\",\"ngatwmy\":\"dataf\",\"mfjhpycvjqdvdwkq\":\"datayutrymd\",\"n\":\"dataldrlefgnaavua\"}}},{\"schemaLinkedService\":{\"referenceName\":\"taoutnpdct\",\"parameters\":{\"y\":\"datapfe\",\"tybkcgs\":\"datahduyeuyldph\",\"x\":\"datathhllnmwyne\",\"fciatxtjrr\":\"datax\"}},\"name\":\"kmdskjhhxd\",\"description\":\"jfoxcxscvslxl\",\"dataset\":{\"referenceName\":\"a\",\"parameters\":{\"yjmkxettc\":\"datamuk\",\"xjhqxcsqhtkb\":\"datalojfkqidnqto\",\"dmbi\":\"datanqlrng\",\"qkzn\":\"datapsnaww\"}},\"linkedService\":{\"referenceName\":\"hllxricctkw\",\"parameters\":{\"xhdctrceqnk\":\"dataqoajxeiyglesrwva\",\"lj\":\"datarupobehd\",\"bibnzpphepifex\":\"dataacvumepj\",\"cjclykcgxv\":\"dataeqir\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"lvczu\",\"datasetParameters\":\"dataac\",\"parameters\":{\"koynuiylpckae\":\"dataettepdjxqe\",\"nzhctmjtsgh\":\"datasedveskwxegqphrg\",\"rpzeqac\":\"databcbcpz\",\"zshnuqndaizup\":\"dataldtzmpypefcp\"},\"\":{\"gw\":\"datauytuszxhmtvtv\",\"haokgkskjiv\":\"dataiukvzwydwt\"}}},{\"schemaLinkedService\":{\"referenceName\":\"shajqf\",\"parameters\":{\"hwu\":\"dataeexpgeumi\",\"dbzsx\":\"datatrdexyionofnin\",\"bzbcyksiv\":\"datawqqrsmpcbbprtuga\",\"rftsjcwjjxs\":\"datafogdrtbfcm\"}},\"name\":\"mb\",\"description\":\"vifdxkecifhocjx\",\"dataset\":{\"referenceName\":\"loozrvt\",\"parameters\":{\"cpxxvirye\":\"datamufun\",\"lpmcrdc\":\"datangjgvrquvpyg\",\"x\":\"dataeljtiahxmfqryarv\"}},\"linkedService\":{\"referenceName\":\"bglcjkayspthzodu\",\"parameters\":{\"djxyxgbkkqvjcteo\":\"datamjtgblioskkfmkm\",\"pxvjnzd\":\"datadlrslskk\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"cojhpcnabx\",\"datasetParameters\":\"datasnggytexvzilmhiv\",\"parameters\":{\"cknrzda\":\"dataww\",\"eucyrth\":\"datalskzptjxul\"},\"\":{\"n\":\"dataehmcgcje\",\"qnttmbq\":\"dataehokamvfej\",\"kpysthhzagjf\":\"dataabzfivf\",\"ejgvkvebaqszllrz\":\"datayyrlhgenu\"}}}],\"sinks\":[{\"schemaLinkedService\":{\"referenceName\":\"dqgmih\",\"parameters\":{\"inklogxs\":\"datamcqrhnxt\",\"bjwzzos\":\"datatzarhzvqnsqktc\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"kybtglwkzpgajsqj\",\"parameters\":{\"uqrebluimmbwx\":\"dataqbmfuvqarwz\",\"kraokq\":\"datafgtdmbvx\",\"aokbavlyttaaknwf\":\"databudbt\"}},\"name\":\"ke\",\"description\":\"mhpdu\",\"dataset\":{\"referenceName\":\"igatolekscbctna\",\"parameters\":{\"dpkawnsnl\":\"datamwbzxpdc\",\"bicziuswswj\":\"dataimouxwksqmudmfco\",\"fwbivqvo\":\"datakbqsjhbtqqvyfscy\",\"wvbhlimbyq\":\"datafuy\"}},\"linkedService\":{\"referenceName\":\"r\",\"parameters\":{\"asaxxo\":\"datalikcdrd\",\"kwiy\":\"datasm\",\"ukosrn\":\"datav\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"vzmlnkoywsxv\",\"datasetParameters\":\"databjqqaxuyvymcn\",\"parameters\":{\"wxqweuipmpvksmi\":\"datadoabhj\",\"krdpqgfhyrfr\":\"datansqxtltc\",\"rcwfcmfcnrjajq\":\"datakkld\",\"zqgxx\":\"dataatxjtiel\"},\"\":{\"prnzc\":\"databmtlpqagyno\",\"ryqxzxa\":\"datalin\",\"mqimiymqru\":\"datazi\",\"asvvoqsbpkfl\":\"dataguhfupe\"}}},{\"schemaLinkedService\":{\"referenceName\":\"fkg\",\"parameters\":{\"puohdkcprgukxrz\":\"dataaowuzo\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"ochlu\",\"parameters\":{\"izcbfzmcrunfhiuc\":\"datamqrud\",\"u\":\"datamfbcpaqktkrum\",\"kxiuxqggvqr\":\"datadkyzbfvxov\"}},\"name\":\"hyhlwcjsqg\",\"description\":\"hffbxrq\",\"dataset\":{\"referenceName\":\"ijpeuql\",\"parameters\":{\"swenawwa\":\"dataeqztvxwmwwm\"}},\"linkedService\":{\"referenceName\":\"cleqioulndhzyo\",\"parameters\":{\"llhsvidmyt\":\"dataht\",\"glxpnovyoanfbcsw\":\"datal\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"ywv\",\"datasetParameters\":\"dataigvjrktp\",\"parameters\":{\"mwhqnucsklh\":\"dataukyawoh\",\"sjt\":\"datai\"},\"\":{\"uoeedwjcci\":\"databninjgazlsvbzfc\",\"yehqbeivdlhydwb\":\"datalhsyekrdrenxolr\",\"mpathubtah\":\"databfgrlpunytjlkes\",\"niiwllbvgwz\":\"datae\"}}},{\"schemaLinkedService\":{\"referenceName\":\"ft\",\"parameters\":{\"ktjtgra\":\"dataus\",\"fkbebauzl\":\"dataaqo\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"txxwpfh\",\"parameters\":{\"oywhczzqrhmngqbe\":\"dataudrtpzkgme\",\"nykdi\":\"dataygisrz\"}},\"name\":\"jch\",\"description\":\"mpwctoflds\",\"dataset\":{\"referenceName\":\"cdhz\",\"parameters\":{\"ewhfjsrwqrxetf\":\"databrfgdrwji\",\"r\":\"datacwv\",\"ax\":\"datadqntycnawthv\"}},\"linkedService\":{\"referenceName\":\"u\",\"parameters\":{\"k\":\"datamcmhudfjeceh\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"qtwloes\",\"datasetParameters\":\"dataggvrbnyrukoilaci\",\"parameters\":{\"lh\":\"datajleip\",\"whbgxvellvul\":\"datayxpzruzythqk\"},\"\":{\"vm\":\"datamnitmujd\"}}},{\"schemaLinkedService\":{\"referenceName\":\"yymffhmjp\",\"parameters\":{\"zuvrzmzqmz\":\"datayx\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"rb\",\"parameters\":{\"tjpp\":\"datanmdyfoebo\",\"t\":\"datalaohoqkp\",\"lmhxdqaolfylnk\":\"dataqjilaywkdcwmqsyr\"}},\"name\":\"bjpjvlyw\",\"description\":\"mfwo\",\"dataset\":{\"referenceName\":\"jw\",\"parameters\":{\"nqzocrdzg\":\"datayj\",\"xdncaqtt\":\"datazeunt\",\"gyrihlgm\":\"dataekoifuvnyttzgi\",\"lkndrndpgfjodh\":\"databehlqtxnr\"}},\"linkedService\":{\"referenceName\":\"qotwfh\",\"parameters\":{\"zafczuumljci\":\"datawgsabvcipo\",\"veitit\":\"datavpefyc\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"xzajlnsjhwjuyxxb\",\"datasetParameters\":\"datavmv\",\"parameters\":{\"pntghyks\":\"datatuadxkxeqb\",\"t\":\"datarcdrnxsluvlzlad\",\"rhwzdanojisg\":\"datakpbqhvfdqqjw\",\"ztjctibpvbkae\":\"datalmvokat\"},\"\":{\"dfwakwseivmak\":\"datamzy\"}}}],\"transformations\":[{\"name\":\"so\",\"description\":\"juxlkbectvtfjm\",\"dataset\":{\"referenceName\":\"dchmaiubavlz\",\"parameters\":{\"jqafkmkro\":\"datagmfalkzazmgoked\",\"pqrtvaoznqni\":\"datazrthqet\",\"eituugedhfpjs\":\"dataiezeagm\",\"syjdeolctae\":\"datalzmb\"}},\"linkedService\":{\"referenceName\":\"syrled\",\"parameters\":{\"xzvsgeafgf\":\"datastbvtqig\",\"kkwa\":\"datasehxlzsxezp\",\"yfjlpzeqto\":\"dataes\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"lixlajmllpque\",\"datasetParameters\":\"dataam\",\"parameters\":{\"mkekxpkzwaqxo\":\"datagwb\"},\"\":{\"fidusztekxbyjgm\":\"datavchiqbpl\",\"hrdicxdwyjfo\":\"datafepxyihpqadag\",\"ukdveksbuhoduc\":\"dataxwyovcxjsgbip\",\"scrdp\":\"datav\"}}},{\"name\":\"bfdyjduss\",\"description\":\"szekbh\",\"dataset\":{\"referenceName\":\"kaaggkreh\",\"parameters\":{\"ybff\":\"datan\",\"sqtaadusrexxfa\":\"datajfiimreoa\",\"psimsf\":\"datasqwudohzilfmnli\"}},\"linkedService\":{\"referenceName\":\"pofqpmbhy\",\"parameters\":{\"erhsmvgohtw\":\"datadrmmttjxoph\",\"wwmhkruwae\":\"datamqilrixysfnimsqy\",\"in\":\"datarympmlq\",\"njdiqfliejhpcl\":\"datazduewihapfjii\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"dfsbwceivb\",\"datasetParameters\":\"dataipbwxgooo\",\"parameters\":{\"s\":\"datarad\",\"g\":\"dataxknpdgz\",\"wwnbafoctohz\":\"datasugswhgsaod\",\"hoadhrsxqvzv\":\"dataaquvwsxbgnvkervq\"},\"\":{\"klrxhjnltce\":\"databdsrgfajglzrsu\",\"ie\":\"datajdvqy\"}}}],\"script\":\"kw\",\"scriptLines\":[\"wdxvqzxoebwg\",\"xbibanbaupw\",\"zvpaklozkxbzrpej\",\"lssan\"]},\"description\":\"ttkgsux\",\"annotations\":[\"dataswgkpjhboyikebh\",\"datahkslgwlokhueoij\",\"datazcqypzqzufgsyf\",\"datajyvdwtfxptpqayam\"],\"folder\":{\"name\":\"fgybmxs\"}}") - .toObject(MappingDataFlow.class); - Assertions.assertEquals("ttkgsux", model.description()); - Assertions.assertEquals("fgybmxs", model.folder().name()); - Assertions.assertEquals("mhmpty", model.sources().get(0).name()); - Assertions.assertEquals("lkfbnrqqxvztpb", model.sources().get(0).description()); - Assertions.assertEquals("nqtxjtomalswbnf", model.sources().get(0).dataset().referenceName()); - Assertions.assertEquals("zygleexahvm", model.sources().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sources().get(0).flowlet().type()); - Assertions.assertEquals("bpmfbfununmpzkrv", model.sources().get(0).flowlet().referenceName()); - Assertions.assertEquals("wdyjqurykcrrauee", model.sources().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("ke", model.sinks().get(0).name()); - Assertions.assertEquals("mhpdu", model.sinks().get(0).description()); - Assertions.assertEquals("igatolekscbctna", model.sinks().get(0).dataset().referenceName()); - Assertions.assertEquals("r", model.sinks().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sinks().get(0).flowlet().type()); - Assertions.assertEquals("vzmlnkoywsxv", model.sinks().get(0).flowlet().referenceName()); - Assertions.assertEquals("dqgmih", model.sinks().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("kybtglwkzpgajsqj", model.sinks().get(0).rejectedDataLinkedService().referenceName()); - Assertions.assertEquals("so", model.transformations().get(0).name()); - Assertions.assertEquals("juxlkbectvtfjm", model.transformations().get(0).description()); - Assertions.assertEquals("dchmaiubavlz", model.transformations().get(0).dataset().referenceName()); - Assertions.assertEquals("syrled", model.transformations().get(0).linkedService().referenceName()); - Assertions - .assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.transformations().get(0).flowlet().type()); - Assertions.assertEquals("lixlajmllpque", model.transformations().get(0).flowlet().referenceName()); - Assertions.assertEquals("kw", model.script()); - Assertions.assertEquals("wdxvqzxoebwg", model.scriptLines().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MappingDataFlow model = - new MappingDataFlow() - .withDescription("ttkgsux") - .withAnnotations( - Arrays - .asList( - "dataswgkpjhboyikebh", "datahkslgwlokhueoij", "datazcqypzqzufgsyf", "datajyvdwtfxptpqayam")) - .withFolder(new DataFlowFolder().withName("fgybmxs")) - .withSources( - Arrays - .asList( - new DataFlowSource() - .withName("mhmpty") - .withDescription("lkfbnrqqxvztpb") - .withDataset( - new DatasetReference() - .withReferenceName("nqtxjtomalswbnf") - .withParameters(mapOf("qjn", "datapld"))) - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("zygleexahvm") - .withParameters( - mapOf("sjjzyvoaqajuveh", "datasbrcary", "be", "dataptdmkrrbhmpful"))) - .withFlowlet( - new DataFlowReference() - .withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("bpmfbfununmpzkrv") - .withDatasetParameters("dataifkdschlzvf") - .withParameters( - mapOf( - "rtogmhmj", - "datankjjwgcwnphbkgf", - "fp", - "datajsc", - "fv", - "dataqwtygevgwmseharx", - "x", - "datan")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService( - new LinkedServiceReference() - .withReferenceName("wdyjqurykcrrauee") - .withParameters(mapOf("cbcbgydlqidy", "datauehogdd"))), - new DataFlowSource() - .withName("kmdskjhhxd") - .withDescription("jfoxcxscvslxl") - .withDataset( - new DatasetReference() - .withReferenceName("a") - .withParameters( - mapOf( - "yjmkxettc", - "datamuk", - "xjhqxcsqhtkb", - "datalojfkqidnqto", - "dmbi", - "datanqlrng", - "qkzn", - "datapsnaww"))) - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("hllxricctkw") - .withParameters( - mapOf( - "xhdctrceqnk", - "dataqoajxeiyglesrwva", - "lj", - "datarupobehd", - "bibnzpphepifex", - "dataacvumepj", - "cjclykcgxv", - "dataeqir"))) - .withFlowlet( - new DataFlowReference() - .withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("lvczu") - .withDatasetParameters("dataac") - .withParameters( - mapOf( - "koynuiylpckae", - "dataettepdjxqe", - "nzhctmjtsgh", - "datasedveskwxegqphrg", - "rpzeqac", - "databcbcpz", - "zshnuqndaizup", - "dataldtzmpypefcp")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService( - new LinkedServiceReference() - .withReferenceName("taoutnpdct") - .withParameters( - mapOf( - "y", - "datapfe", - "tybkcgs", - "datahduyeuyldph", - "x", - "datathhllnmwyne", - "fciatxtjrr", - "datax"))), - new DataFlowSource() - .withName("mb") - .withDescription("vifdxkecifhocjx") - .withDataset( - new DatasetReference() - .withReferenceName("loozrvt") - .withParameters( - mapOf( - "cpxxvirye", - "datamufun", - "lpmcrdc", - "datangjgvrquvpyg", - "x", - "dataeljtiahxmfqryarv"))) - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("bglcjkayspthzodu") - .withParameters( - mapOf( - "djxyxgbkkqvjcteo", "datamjtgblioskkfmkm", "pxvjnzd", "datadlrslskk"))) - .withFlowlet( - new DataFlowReference() - .withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("cojhpcnabx") - .withDatasetParameters("datasnggytexvzilmhiv") - .withParameters(mapOf("cknrzda", "dataww", "eucyrth", "datalskzptjxul")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService( - new LinkedServiceReference() - .withReferenceName("shajqf") - .withParameters( - mapOf( - "hwu", - "dataeexpgeumi", - "dbzsx", - "datatrdexyionofnin", - "bzbcyksiv", - "datawqqrsmpcbbprtuga", - "rftsjcwjjxs", - "datafogdrtbfcm"))))) - .withSinks( - Arrays - .asList( - new DataFlowSink() - .withName("ke") - .withDescription("mhpdu") - .withDataset( - new DatasetReference() - .withReferenceName("igatolekscbctna") - .withParameters( - mapOf( - "dpkawnsnl", - "datamwbzxpdc", - "bicziuswswj", - "dataimouxwksqmudmfco", - "fwbivqvo", - "datakbqsjhbtqqvyfscy", - "wvbhlimbyq", - "datafuy"))) - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("r") - .withParameters( - mapOf("asaxxo", "datalikcdrd", "kwiy", "datasm", "ukosrn", "datav"))) - .withFlowlet( - new DataFlowReference() - .withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("vzmlnkoywsxv") - .withDatasetParameters("databjqqaxuyvymcn") - .withParameters( - mapOf( - "wxqweuipmpvksmi", - "datadoabhj", - "krdpqgfhyrfr", - "datansqxtltc", - "rcwfcmfcnrjajq", - "datakkld", - "zqgxx", - "dataatxjtiel")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService( - new LinkedServiceReference() - .withReferenceName("dqgmih") - .withParameters( - mapOf("inklogxs", "datamcqrhnxt", "bjwzzos", "datatzarhzvqnsqktc"))) - .withRejectedDataLinkedService( - new LinkedServiceReference() - .withReferenceName("kybtglwkzpgajsqj") - .withParameters( - mapOf( - "uqrebluimmbwx", - "dataqbmfuvqarwz", - "kraokq", - "datafgtdmbvx", - "aokbavlyttaaknwf", - "databudbt"))), - new DataFlowSink() - .withName("hyhlwcjsqg") - .withDescription("hffbxrq") - .withDataset( - new DatasetReference() - .withReferenceName("ijpeuql") - .withParameters(mapOf("swenawwa", "dataeqztvxwmwwm"))) - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("cleqioulndhzyo") - .withParameters(mapOf("llhsvidmyt", "dataht", "glxpnovyoanfbcsw", "datal"))) - .withFlowlet( - new DataFlowReference() - .withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("ywv") - .withDatasetParameters("dataigvjrktp") - .withParameters(mapOf("mwhqnucsklh", "dataukyawoh", "sjt", "datai")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService( - new LinkedServiceReference() - .withReferenceName("fkg") - .withParameters(mapOf("puohdkcprgukxrz", "dataaowuzo"))) - .withRejectedDataLinkedService( - new LinkedServiceReference() - .withReferenceName("ochlu") - .withParameters( - mapOf( - "izcbfzmcrunfhiuc", - "datamqrud", - "u", - "datamfbcpaqktkrum", - "kxiuxqggvqr", - "datadkyzbfvxov"))), - new DataFlowSink() - .withName("jch") - .withDescription("mpwctoflds") - .withDataset( - new DatasetReference() - .withReferenceName("cdhz") - .withParameters( - mapOf( - "ewhfjsrwqrxetf", - "databrfgdrwji", - "r", - "datacwv", - "ax", - "datadqntycnawthv"))) - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("u") - .withParameters(mapOf("k", "datamcmhudfjeceh"))) - .withFlowlet( - new DataFlowReference() - .withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("qtwloes") - .withDatasetParameters("dataggvrbnyrukoilaci") - .withParameters(mapOf("lh", "datajleip", "whbgxvellvul", "datayxpzruzythqk")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService( - new LinkedServiceReference() - .withReferenceName("ft") - .withParameters(mapOf("ktjtgra", "dataus", "fkbebauzl", "dataaqo"))) - .withRejectedDataLinkedService( - new LinkedServiceReference() - .withReferenceName("txxwpfh") - .withParameters( - mapOf("oywhczzqrhmngqbe", "dataudrtpzkgme", "nykdi", "dataygisrz"))), - new DataFlowSink() - .withName("bjpjvlyw") - .withDescription("mfwo") - .withDataset( - new DatasetReference() - .withReferenceName("jw") - .withParameters( - mapOf( - "nqzocrdzg", - "datayj", - "xdncaqtt", - "datazeunt", - "gyrihlgm", - "dataekoifuvnyttzgi", - "lkndrndpgfjodh", - "databehlqtxnr"))) - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("qotwfh") - .withParameters( - mapOf("zafczuumljci", "datawgsabvcipo", "veitit", "datavpefyc"))) - .withFlowlet( - new DataFlowReference() - .withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("xzajlnsjhwjuyxxb") - .withDatasetParameters("datavmv") - .withParameters( - mapOf( - "pntghyks", - "datatuadxkxeqb", - "t", - "datarcdrnxsluvlzlad", - "rhwzdanojisg", - "datakpbqhvfdqqjw", - "ztjctibpvbkae", - "datalmvokat")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService( - new LinkedServiceReference() - .withReferenceName("yymffhmjp") - .withParameters(mapOf("zuvrzmzqmz", "datayx"))) - .withRejectedDataLinkedService( - new LinkedServiceReference() - .withReferenceName("rb") - .withParameters( - mapOf( - "tjpp", - "datanmdyfoebo", - "t", - "datalaohoqkp", - "lmhxdqaolfylnk", - "dataqjilaywkdcwmqsyr"))))) - .withTransformations( - Arrays - .asList( - new Transformation() - .withName("so") - .withDescription("juxlkbectvtfjm") - .withDataset( - new DatasetReference() - .withReferenceName("dchmaiubavlz") - .withParameters( - mapOf( - "jqafkmkro", - "datagmfalkzazmgoked", - "pqrtvaoznqni", - "datazrthqet", - "eituugedhfpjs", - "dataiezeagm", - "syjdeolctae", - "datalzmb"))) - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("syrled") - .withParameters( - mapOf( - "xzvsgeafgf", - "datastbvtqig", - "kkwa", - "datasehxlzsxezp", - "yfjlpzeqto", - "dataes"))) - .withFlowlet( - new DataFlowReference() - .withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("lixlajmllpque") - .withDatasetParameters("dataam") - .withParameters(mapOf("mkekxpkzwaqxo", "datagwb")) - .withAdditionalProperties(mapOf())), - new Transformation() - .withName("bfdyjduss") - .withDescription("szekbh") - .withDataset( - new DatasetReference() - .withReferenceName("kaaggkreh") - .withParameters( - mapOf( - "ybff", - "datan", - "sqtaadusrexxfa", - "datajfiimreoa", - "psimsf", - "datasqwudohzilfmnli"))) - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("pofqpmbhy") - .withParameters( - mapOf( - "erhsmvgohtw", - "datadrmmttjxoph", - "wwmhkruwae", - "datamqilrixysfnimsqy", - "in", - "datarympmlq", - "njdiqfliejhpcl", - "datazduewihapfjii"))) - .withFlowlet( - new DataFlowReference() - .withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("dfsbwceivb") - .withDatasetParameters("dataipbwxgooo") - .withParameters( - mapOf( - "s", - "datarad", - "g", - "dataxknpdgz", - "wwnbafoctohz", - "datasugswhgsaod", - "hoadhrsxqvzv", - "dataaquvwsxbgnvkervq")) - .withAdditionalProperties(mapOf())))) - .withScript("kw") - .withScriptLines(Arrays.asList("wdxvqzxoebwg", "xbibanbaupw", "zvpaklozkxbzrpej", "lssan")); - model = BinaryData.fromObject(model).toObject(MappingDataFlow.class); - Assertions.assertEquals("ttkgsux", model.description()); - Assertions.assertEquals("fgybmxs", model.folder().name()); - Assertions.assertEquals("mhmpty", model.sources().get(0).name()); - Assertions.assertEquals("lkfbnrqqxvztpb", model.sources().get(0).description()); - Assertions.assertEquals("nqtxjtomalswbnf", model.sources().get(0).dataset().referenceName()); - Assertions.assertEquals("zygleexahvm", model.sources().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sources().get(0).flowlet().type()); - Assertions.assertEquals("bpmfbfununmpzkrv", model.sources().get(0).flowlet().referenceName()); - Assertions.assertEquals("wdyjqurykcrrauee", model.sources().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("ke", model.sinks().get(0).name()); - Assertions.assertEquals("mhpdu", model.sinks().get(0).description()); - Assertions.assertEquals("igatolekscbctna", model.sinks().get(0).dataset().referenceName()); - Assertions.assertEquals("r", model.sinks().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sinks().get(0).flowlet().type()); - Assertions.assertEquals("vzmlnkoywsxv", model.sinks().get(0).flowlet().referenceName()); - Assertions.assertEquals("dqgmih", model.sinks().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("kybtglwkzpgajsqj", model.sinks().get(0).rejectedDataLinkedService().referenceName()); - Assertions.assertEquals("so", model.transformations().get(0).name()); - Assertions.assertEquals("juxlkbectvtfjm", model.transformations().get(0).description()); - Assertions.assertEquals("dchmaiubavlz", model.transformations().get(0).dataset().referenceName()); - Assertions.assertEquals("syrled", model.transformations().get(0).linkedService().referenceName()); - Assertions - .assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.transformations().get(0).flowlet().type()); - Assertions.assertEquals("lixlajmllpque", model.transformations().get(0).flowlet().referenceName()); - Assertions.assertEquals("kw", model.script()); - Assertions.assertEquals("wdxvqzxoebwg", model.scriptLines().get(0)); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MappingDataFlowTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MappingDataFlowTypePropertiesTests.java deleted file mode 100644 index 35fb89c683d9..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MappingDataFlowTypePropertiesTests.java +++ /dev/null @@ -1,524 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.MappingDataFlowTypeProperties; -import com.azure.resourcemanager.datafactory.models.DataFlowReference; -import com.azure.resourcemanager.datafactory.models.DataFlowReferenceType; -import com.azure.resourcemanager.datafactory.models.DataFlowSink; -import com.azure.resourcemanager.datafactory.models.DataFlowSource; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.Transformation; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class MappingDataFlowTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MappingDataFlowTypeProperties model = - BinaryData - .fromString( - "{\"sources\":[{\"schemaLinkedService\":{\"referenceName\":\"uullojkp\",\"parameters\":{\"wdjuxdbdljzgdy\":\"datag\"}},\"name\":\"cvuq\",\"description\":\"gzlrqhbj\",\"dataset\":{\"referenceName\":\"ogdxwbsfpyxxtjlf\",\"parameters\":{\"xdhilz\":\"dataominxojjlu\",\"za\":\"datadzzqjmu\",\"otokhtvwtaznk\":\"dataovribq\",\"wjyofgwhnkbtl\":\"dataqww\"}},\"linkedService\":{\"referenceName\":\"jssmctsnldkpwo\",\"parameters\":{\"bxbteogfgfiijry\":\"datas\",\"m\":\"datawlefksxqceazfpxg\",\"aiossscyvaifp\":\"datavzvluyq\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"cvfyeowpsfxtjdhs\",\"datasetParameters\":\"datamhpv\",\"parameters\":{\"pboujs\":\"dataftteh\",\"suenyg\":\"datakfvvdshxcde\",\"nquktrfnslnlrxs\":\"dataxcgjtf\",\"wntfmtbgwjdxwna\":\"dataylt\"},\"\":{\"wjwzzqseuzuukykc\":\"datarrdreyzjwhset\",\"tewfopazdazgbsq\":\"dataqhyqqzzdcykey\",\"c\":\"datapew\",\"qjbknl\":\"datautmdpvozg\"}}},{\"schemaLinkedService\":{\"referenceName\":\"lctzeyowmndcovd\",\"parameters\":{\"kvfruwkudr\":\"dataauxzanh\",\"udqyemeb\":\"datacpft\"}},\"name\":\"naucmcirtnee\",\"description\":\"jauwcgxefnohaitr\",\"dataset\":{\"referenceName\":\"izerw\",\"parameters\":{\"ocefhpriylfmpzt\":\"dataasmxubvfbngf\",\"vhl\":\"dataaud\"}},\"linkedService\":{\"referenceName\":\"culregpqt\",\"parameters\":{\"shqrdgrt\":\"datahvrztnvg\",\"fa\":\"datamewjzlpyk\",\"zrransyb\":\"datazwjcaye\",\"nkfscjfn\":\"datalpolwzrghsrle\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"vuagfqwtl\",\"datasetParameters\":\"datagvmreuptrklzmi\",\"parameters\":{\"xfsv\":\"datawo\",\"nwlslrcigtzjcvbx\":\"dataghmp\",\"yxpavidnie\":\"datalapsnsso\",\"slpuxgcbdsva\":\"datawffcvvye\"},\"\":{\"vnjobfelhldiuhzz\":\"dataptwtrkxgpazwugxy\"}}},{\"schemaLinkedService\":{\"referenceName\":\"lmfaewzgiudjp\",\"parameters\":{\"mhk\":\"datahttqh\",\"gcruxspinym\":\"dataezsdsuxheq\",\"zfbmjxuv\":\"dataqgwokmikp\"}},\"name\":\"ipfdvhaxdvwzaehp\",\"description\":\"thd\",\"dataset\":{\"referenceName\":\"mvetatlakfq\",\"parameters\":{\"rpogwphchg\":\"datawgiksbbvtoo\",\"htukfac\":\"datat\"}},\"linkedService\":{\"referenceName\":\"mbf\",\"parameters\":{\"wcgasgom\":\"datameezbxvqxbnu\",\"qgo\":\"datamjzwx\",\"gfredmlscg\":\"datasxpwwztjfmkkh\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"ccnaov\",\"datasetParameters\":\"datawazhpabaco\",\"parameters\":{\"nmvceb\":\"dataotgkwsxnsrqorcg\",\"dcqjkedwqurc\":\"dataeetqujxcxxq\",\"qqrsil\":\"dataojmrvvxwjongzse\",\"sbvr\":\"datachskxxka\"},\"\":{\"ojrulfuctejrt\":\"datagv\",\"ubqjro\":\"datacfjzhxl\",\"beqrztrx\":\"datatvrjeqmtz\"}}},{\"schemaLinkedService\":{\"referenceName\":\"xrd\",\"parameters\":{\"kkvyanxk\":\"datasrwrsnrhpqati\",\"qxetqmmlivrjjx\":\"datavcsemsvuvdj\",\"gfquwz\":\"datawxdchpojxlehzlx\",\"ibelwcerwkw\":\"dataw\"}},\"name\":\"pjxljtxb\",\"description\":\"qtbxxniuisdzh\",\"dataset\":{\"referenceName\":\"d\",\"parameters\":{\"r\":\"dataagsecnadbuw\",\"zoellnkkiiwvmtum\":\"dataxfllmqiyn\",\"oqvqpilr\":\"datapymdjfuax\"}},\"linkedService\":{\"referenceName\":\"ncanlduwzor\",\"parameters\":{\"kqv\":\"datamxaqklxym\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"pdxcltuubwy\",\"datasetParameters\":\"datajbowcpj\",\"parameters\":{\"exkydfb\":\"dataqgi\",\"vhuerkjddvrglieg\":\"datalj\"},\"\":{\"fgmwd\":\"datavbiiftksdwgdnk\",\"buvczldbglzoutb\":\"datac\",\"orbjg\":\"dataaqgzekajclyzgs\"}}}],\"sinks\":[{\"schemaLinkedService\":{\"referenceName\":\"otvmrxk\",\"parameters\":{\"yfluiyuosnuudte\":\"databvvjbhvhdiq\",\"buubpyrowt\":\"datavhyibdrqrsw\",\"czevjnn\":\"dataoxztfwfqch\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"agfyvrtpqpe\",\"parameters\":{\"wqwemvxqabckmze\":\"datacgkrepdqhqy\"}},\"name\":\"xin\",\"description\":\"re\",\"dataset\":{\"referenceName\":\"twhlpuzjpce\",\"parameters\":{\"phmsexroq\":\"datazangprbfaxyxzlbc\",\"nfee\":\"datandktxfv\",\"bgnixxoww\":\"datagpkrie\"}},\"linkedService\":{\"referenceName\":\"yfwnw\",\"parameters\":{\"icrmpepkldmaxxi\":\"dataxe\",\"ws\":\"datavs\",\"wrasekw\":\"datagkjgya\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"voinwo\",\"datasetParameters\":\"datartwy\",\"parameters\":{\"msfobjlquvj\":\"datacladvatdavuqmcb\"},\"\":{\"mvpsimioyo\":\"dataj\",\"clibbfqpsp\":\"dataglkmiqwnnr\"}}},{\"schemaLinkedService\":{\"referenceName\":\"adydg\",\"parameters\":{\"mnmabeddqil\":\"datautwukexzg\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"d\",\"parameters\":{\"vstclg\":\"dataqfp\"}},\"name\":\"rvwerfwxbsmtb\",\"description\":\"jehhci\",\"dataset\":{\"referenceName\":\"wdv\",\"parameters\":{\"hsqhtf\":\"datarek\",\"yejuwyqwdqigmghg\":\"datawpq\",\"jcmrnkfm\":\"datanztxlujkh\"}},\"linkedService\":{\"referenceName\":\"cqtwmlmhjnqtq\",\"parameters\":{\"dvragpokddxejhh\":\"dataj\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"uavt\",\"datasetParameters\":\"databkew\",\"parameters\":{\"pgb\":\"datan\"},\"\":{\"kmyrljialzbnobr\":\"datafbkkwvdxaexq\",\"yudivbxnhsqeaeo\":\"datalpbcjtrpz\",\"ogatmoljiy\":\"dataqelwgdhuruzytza\",\"knsjulugd\":\"datampinmzvfkneerzzt\"}}},{\"schemaLinkedService\":{\"referenceName\":\"nhrxlel\",\"parameters\":{\"izcpihtdmiw\":\"datak\",\"caydbjzcqymlcfnz\":\"dataekpt\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"hsurlgw\",\"parameters\":{\"tauolawiubmom\":\"datammzp\",\"ohewjj\":\"datagvvjhvvlr\"}},\"name\":\"ajnkdflqionswae\",\"description\":\"zfz\",\"dataset\":{\"referenceName\":\"jo\",\"parameters\":{\"otryegp\":\"datah\",\"rmexznlwkb\":\"datah\",\"fgjblcd\":\"dataokxkhupzer\"}},\"linkedService\":{\"referenceName\":\"yfcemftz\",\"parameters\":{\"ugekdfqn\":\"datakya\",\"owrczfjjnnuxxr\":\"datattw\",\"frhjulrsulwzp\":\"datakmhmnulwempdc\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"snawmhhgzotfri\",\"datasetParameters\":\"datagkoekvzwxxyxh\",\"parameters\":{\"y\":\"datactxbxmolpcqyd\",\"rjeizik\":\"datavskiczd\",\"ycqsxr\":\"dataqaboohxbms\",\"ewuyqa\":\"datad\"},\"\":{\"hhdau\":\"datapjhgejkb\",\"exbkhx\":\"dataghoox\"}}}],\"transformations\":[{\"name\":\"oez\",\"description\":\"xrkdknkobektm\",\"dataset\":{\"referenceName\":\"z\",\"parameters\":{\"gwcd\":\"datazamicb\",\"m\":\"datazseznuxkeuairaa\",\"ihzbdnpxpk\":\"datalqjbedpfixlhupmo\"}},\"linkedService\":{\"referenceName\":\"pre\",\"parameters\":{\"ssjyghsfx\":\"datalyicghflru\",\"ammgmqfmefgv\":\"datakb\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"dwj\",\"datasetParameters\":\"datauxweyslandkd\",\"parameters\":{\"hcgawn\":\"datahunh\",\"ireimseobf\":\"datarnquoxso\",\"xcjzlquze\":\"dataxstcyilbvzm\"},\"\":{\"b\":\"datajxebj\",\"v\":\"datainzabwmvoglj\"}}},{\"name\":\"pgidnw\",\"description\":\"haqidoyzltgiomqo\",\"dataset\":{\"referenceName\":\"epiaeapfsergd\",\"parameters\":{\"b\":\"dataqnacyheq\"}},\"linkedService\":{\"referenceName\":\"qncjubkhjozfymcw\",\"parameters\":{\"li\":\"datapyvqy\",\"hddzydisnuepy\":\"dataiipsejbsvsiaies\",\"dpxot\":\"datayjln\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"i\",\"datasetParameters\":\"datacqibzj\",\"parameters\":{\"iphryvcjwqwo\":\"dataee\",\"pijhfrzgdkk\":\"datasratjhdhzyb\",\"ukhsusmmorf\":\"datagv\"},\"\":{\"neyttl\":\"datawilzzhnijmriprlk\",\"bkut\":\"datacxiv\"}}},{\"name\":\"umltwjflu\",\"description\":\"nbpvzlq\",\"dataset\":{\"referenceName\":\"auyqnj\",\"parameters\":{\"u\":\"datamocgjshg\",\"xqqggljky\":\"datarhwv\",\"rbctbhpjhxpcvrd\":\"datasjrclrvtzq\"}},\"linkedService\":{\"referenceName\":\"eitaneqadynzjahw\",\"parameters\":{\"xwspcaxikhfjq\":\"dataomzczfkiceevsa\",\"ysemtmesrfsvpin\":\"databglcxkxgzzromvy\",\"swxspvckojaz\":\"datazpatqtd\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"spftesubzpv\",\"datasetParameters\":\"datadylytcovq\",\"parameters\":{\"lbmuos\":\"datasrfjbdxzfxnx\"},\"\":{\"yzlwhbwzjnufzrf\":\"datamdihdcy\",\"qgnnbz\":\"datam\",\"ubjtvgjsxmtyjjv\":\"datatftedz\",\"sffofwanmhksca\":\"datavdpwwobtdphti\"}}},{\"name\":\"w\",\"description\":\"cgwdfriwgybjp\",\"dataset\":{\"referenceName\":\"ok\",\"parameters\":{\"k\":\"datagllixdgbyfgwew\",\"xlcskltez\":\"datavxprwpxsoohu\",\"srtmdylperpiltt\":\"dataugggzlfbgrdcgu\"}},\"linkedService\":{\"referenceName\":\"gczfc\",\"parameters\":{\"uvftwaivmuqk\":\"datafbodetresrgvts\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"gjypanhxmpdxxze\",\"datasetParameters\":\"datawzjwotnxlkfhg\",\"parameters\":{\"pcs\":\"datafoxqwecrsn\"},\"\":{\"rmlccmet\":\"dataxovppqibukklvzr\",\"vfqbqna\":\"datascz\",\"yvdgxlyzk\":\"datadsyenzsieuscpl\"}}}],\"script\":\"tdsh\",\"scriptLines\":[\"vkolrupjovmo\",\"sayebra\"]}") - .toObject(MappingDataFlowTypeProperties.class); - Assertions.assertEquals("cvuq", model.sources().get(0).name()); - Assertions.assertEquals("gzlrqhbj", model.sources().get(0).description()); - Assertions.assertEquals("ogdxwbsfpyxxtjlf", model.sources().get(0).dataset().referenceName()); - Assertions.assertEquals("jssmctsnldkpwo", model.sources().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sources().get(0).flowlet().type()); - Assertions.assertEquals("cvfyeowpsfxtjdhs", model.sources().get(0).flowlet().referenceName()); - Assertions.assertEquals("uullojkp", model.sources().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("xin", model.sinks().get(0).name()); - Assertions.assertEquals("re", model.sinks().get(0).description()); - Assertions.assertEquals("twhlpuzjpce", model.sinks().get(0).dataset().referenceName()); - Assertions.assertEquals("yfwnw", model.sinks().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sinks().get(0).flowlet().type()); - Assertions.assertEquals("voinwo", model.sinks().get(0).flowlet().referenceName()); - Assertions.assertEquals("otvmrxk", model.sinks().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("agfyvrtpqpe", model.sinks().get(0).rejectedDataLinkedService().referenceName()); - Assertions.assertEquals("oez", model.transformations().get(0).name()); - Assertions.assertEquals("xrkdknkobektm", model.transformations().get(0).description()); - Assertions.assertEquals("z", model.transformations().get(0).dataset().referenceName()); - Assertions.assertEquals("pre", model.transformations().get(0).linkedService().referenceName()); - Assertions - .assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.transformations().get(0).flowlet().type()); - Assertions.assertEquals("dwj", model.transformations().get(0).flowlet().referenceName()); - Assertions.assertEquals("tdsh", model.script()); - Assertions.assertEquals("vkolrupjovmo", model.scriptLines().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MappingDataFlowTypeProperties model = - new MappingDataFlowTypeProperties() - .withSources( - Arrays - .asList( - new DataFlowSource() - .withName("cvuq") - .withDescription("gzlrqhbj") - .withDataset( - new DatasetReference() - .withReferenceName("ogdxwbsfpyxxtjlf") - .withParameters( - mapOf( - "xdhilz", - "dataominxojjlu", - "za", - "datadzzqjmu", - "otokhtvwtaznk", - "dataovribq", - "wjyofgwhnkbtl", - "dataqww"))) - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("jssmctsnldkpwo") - .withParameters( - mapOf( - "bxbteogfgfiijry", - "datas", - "m", - "datawlefksxqceazfpxg", - "aiossscyvaifp", - "datavzvluyq"))) - .withFlowlet( - new DataFlowReference() - .withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("cvfyeowpsfxtjdhs") - .withDatasetParameters("datamhpv") - .withParameters( - mapOf( - "pboujs", - "dataftteh", - "suenyg", - "datakfvvdshxcde", - "nquktrfnslnlrxs", - "dataxcgjtf", - "wntfmtbgwjdxwna", - "dataylt")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService( - new LinkedServiceReference() - .withReferenceName("uullojkp") - .withParameters(mapOf("wdjuxdbdljzgdy", "datag"))), - new DataFlowSource() - .withName("naucmcirtnee") - .withDescription("jauwcgxefnohaitr") - .withDataset( - new DatasetReference() - .withReferenceName("izerw") - .withParameters(mapOf("ocefhpriylfmpzt", "dataasmxubvfbngf", "vhl", "dataaud"))) - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("culregpqt") - .withParameters( - mapOf( - "shqrdgrt", - "datahvrztnvg", - "fa", - "datamewjzlpyk", - "zrransyb", - "datazwjcaye", - "nkfscjfn", - "datalpolwzrghsrle"))) - .withFlowlet( - new DataFlowReference() - .withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("vuagfqwtl") - .withDatasetParameters("datagvmreuptrklzmi") - .withParameters( - mapOf( - "xfsv", - "datawo", - "nwlslrcigtzjcvbx", - "dataghmp", - "yxpavidnie", - "datalapsnsso", - "slpuxgcbdsva", - "datawffcvvye")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService( - new LinkedServiceReference() - .withReferenceName("lctzeyowmndcovd") - .withParameters(mapOf("kvfruwkudr", "dataauxzanh", "udqyemeb", "datacpft"))), - new DataFlowSource() - .withName("ipfdvhaxdvwzaehp") - .withDescription("thd") - .withDataset( - new DatasetReference() - .withReferenceName("mvetatlakfq") - .withParameters(mapOf("rpogwphchg", "datawgiksbbvtoo", "htukfac", "datat"))) - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("mbf") - .withParameters( - mapOf( - "wcgasgom", - "datameezbxvqxbnu", - "qgo", - "datamjzwx", - "gfredmlscg", - "datasxpwwztjfmkkh"))) - .withFlowlet( - new DataFlowReference() - .withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("ccnaov") - .withDatasetParameters("datawazhpabaco") - .withParameters( - mapOf( - "nmvceb", - "dataotgkwsxnsrqorcg", - "dcqjkedwqurc", - "dataeetqujxcxxq", - "qqrsil", - "dataojmrvvxwjongzse", - "sbvr", - "datachskxxka")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService( - new LinkedServiceReference() - .withReferenceName("lmfaewzgiudjp") - .withParameters( - mapOf( - "mhk", - "datahttqh", - "gcruxspinym", - "dataezsdsuxheq", - "zfbmjxuv", - "dataqgwokmikp"))), - new DataFlowSource() - .withName("pjxljtxb") - .withDescription("qtbxxniuisdzh") - .withDataset( - new DatasetReference() - .withReferenceName("d") - .withParameters( - mapOf( - "r", - "dataagsecnadbuw", - "zoellnkkiiwvmtum", - "dataxfllmqiyn", - "oqvqpilr", - "datapymdjfuax"))) - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("ncanlduwzor") - .withParameters(mapOf("kqv", "datamxaqklxym"))) - .withFlowlet( - new DataFlowReference() - .withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("pdxcltuubwy") - .withDatasetParameters("datajbowcpj") - .withParameters(mapOf("exkydfb", "dataqgi", "vhuerkjddvrglieg", "datalj")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService( - new LinkedServiceReference() - .withReferenceName("xrd") - .withParameters( - mapOf( - "kkvyanxk", - "datasrwrsnrhpqati", - "qxetqmmlivrjjx", - "datavcsemsvuvdj", - "gfquwz", - "datawxdchpojxlehzlx", - "ibelwcerwkw", - "dataw"))))) - .withSinks( - Arrays - .asList( - new DataFlowSink() - .withName("xin") - .withDescription("re") - .withDataset( - new DatasetReference() - .withReferenceName("twhlpuzjpce") - .withParameters( - mapOf( - "phmsexroq", - "datazangprbfaxyxzlbc", - "nfee", - "datandktxfv", - "bgnixxoww", - "datagpkrie"))) - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("yfwnw") - .withParameters( - mapOf( - "icrmpepkldmaxxi", "dataxe", "ws", "datavs", "wrasekw", "datagkjgya"))) - .withFlowlet( - new DataFlowReference() - .withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("voinwo") - .withDatasetParameters("datartwy") - .withParameters(mapOf("msfobjlquvj", "datacladvatdavuqmcb")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService( - new LinkedServiceReference() - .withReferenceName("otvmrxk") - .withParameters( - mapOf( - "yfluiyuosnuudte", - "databvvjbhvhdiq", - "buubpyrowt", - "datavhyibdrqrsw", - "czevjnn", - "dataoxztfwfqch"))) - .withRejectedDataLinkedService( - new LinkedServiceReference() - .withReferenceName("agfyvrtpqpe") - .withParameters(mapOf("wqwemvxqabckmze", "datacgkrepdqhqy"))), - new DataFlowSink() - .withName("rvwerfwxbsmtb") - .withDescription("jehhci") - .withDataset( - new DatasetReference() - .withReferenceName("wdv") - .withParameters( - mapOf( - "hsqhtf", - "datarek", - "yejuwyqwdqigmghg", - "datawpq", - "jcmrnkfm", - "datanztxlujkh"))) - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("cqtwmlmhjnqtq") - .withParameters(mapOf("dvragpokddxejhh", "dataj"))) - .withFlowlet( - new DataFlowReference() - .withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("uavt") - .withDatasetParameters("databkew") - .withParameters(mapOf("pgb", "datan")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService( - new LinkedServiceReference() - .withReferenceName("adydg") - .withParameters(mapOf("mnmabeddqil", "datautwukexzg"))) - .withRejectedDataLinkedService( - new LinkedServiceReference() - .withReferenceName("d") - .withParameters(mapOf("vstclg", "dataqfp"))), - new DataFlowSink() - .withName("ajnkdflqionswae") - .withDescription("zfz") - .withDataset( - new DatasetReference() - .withReferenceName("jo") - .withParameters( - mapOf( - "otryegp", - "datah", - "rmexznlwkb", - "datah", - "fgjblcd", - "dataokxkhupzer"))) - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("yfcemftz") - .withParameters( - mapOf( - "ugekdfqn", - "datakya", - "owrczfjjnnuxxr", - "datattw", - "frhjulrsulwzp", - "datakmhmnulwempdc"))) - .withFlowlet( - new DataFlowReference() - .withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("snawmhhgzotfri") - .withDatasetParameters("datagkoekvzwxxyxh") - .withParameters( - mapOf( - "y", - "datactxbxmolpcqyd", - "rjeizik", - "datavskiczd", - "ycqsxr", - "dataqaboohxbms", - "ewuyqa", - "datad")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService( - new LinkedServiceReference() - .withReferenceName("nhrxlel") - .withParameters(mapOf("izcpihtdmiw", "datak", "caydbjzcqymlcfnz", "dataekpt"))) - .withRejectedDataLinkedService( - new LinkedServiceReference() - .withReferenceName("hsurlgw") - .withParameters( - mapOf("tauolawiubmom", "datammzp", "ohewjj", "datagvvjhvvlr"))))) - .withTransformations( - Arrays - .asList( - new Transformation() - .withName("oez") - .withDescription("xrkdknkobektm") - .withDataset( - new DatasetReference() - .withReferenceName("z") - .withParameters( - mapOf( - "gwcd", - "datazamicb", - "m", - "datazseznuxkeuairaa", - "ihzbdnpxpk", - "datalqjbedpfixlhupmo"))) - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("pre") - .withParameters(mapOf("ssjyghsfx", "datalyicghflru", "ammgmqfmefgv", "datakb"))) - .withFlowlet( - new DataFlowReference() - .withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("dwj") - .withDatasetParameters("datauxweyslandkd") - .withParameters( - mapOf( - "hcgawn", - "datahunh", - "ireimseobf", - "datarnquoxso", - "xcjzlquze", - "dataxstcyilbvzm")) - .withAdditionalProperties(mapOf())), - new Transformation() - .withName("pgidnw") - .withDescription("haqidoyzltgiomqo") - .withDataset( - new DatasetReference() - .withReferenceName("epiaeapfsergd") - .withParameters(mapOf("b", "dataqnacyheq"))) - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("qncjubkhjozfymcw") - .withParameters( - mapOf( - "li", - "datapyvqy", - "hddzydisnuepy", - "dataiipsejbsvsiaies", - "dpxot", - "datayjln"))) - .withFlowlet( - new DataFlowReference() - .withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("i") - .withDatasetParameters("datacqibzj") - .withParameters( - mapOf( - "iphryvcjwqwo", - "dataee", - "pijhfrzgdkk", - "datasratjhdhzyb", - "ukhsusmmorf", - "datagv")) - .withAdditionalProperties(mapOf())), - new Transformation() - .withName("umltwjflu") - .withDescription("nbpvzlq") - .withDataset( - new DatasetReference() - .withReferenceName("auyqnj") - .withParameters( - mapOf( - "u", - "datamocgjshg", - "xqqggljky", - "datarhwv", - "rbctbhpjhxpcvrd", - "datasjrclrvtzq"))) - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("eitaneqadynzjahw") - .withParameters( - mapOf( - "xwspcaxikhfjq", - "dataomzczfkiceevsa", - "ysemtmesrfsvpin", - "databglcxkxgzzromvy", - "swxspvckojaz", - "datazpatqtd"))) - .withFlowlet( - new DataFlowReference() - .withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("spftesubzpv") - .withDatasetParameters("datadylytcovq") - .withParameters(mapOf("lbmuos", "datasrfjbdxzfxnx")) - .withAdditionalProperties(mapOf())), - new Transformation() - .withName("w") - .withDescription("cgwdfriwgybjp") - .withDataset( - new DatasetReference() - .withReferenceName("ok") - .withParameters( - mapOf( - "k", - "datagllixdgbyfgwew", - "xlcskltez", - "datavxprwpxsoohu", - "srtmdylperpiltt", - "dataugggzlfbgrdcgu"))) - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("gczfc") - .withParameters(mapOf("uvftwaivmuqk", "datafbodetresrgvts"))) - .withFlowlet( - new DataFlowReference() - .withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("gjypanhxmpdxxze") - .withDatasetParameters("datawzjwotnxlkfhg") - .withParameters(mapOf("pcs", "datafoxqwecrsn")) - .withAdditionalProperties(mapOf())))) - .withScript("tdsh") - .withScriptLines(Arrays.asList("vkolrupjovmo", "sayebra")); - model = BinaryData.fromObject(model).toObject(MappingDataFlowTypeProperties.class); - Assertions.assertEquals("cvuq", model.sources().get(0).name()); - Assertions.assertEquals("gzlrqhbj", model.sources().get(0).description()); - Assertions.assertEquals("ogdxwbsfpyxxtjlf", model.sources().get(0).dataset().referenceName()); - Assertions.assertEquals("jssmctsnldkpwo", model.sources().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sources().get(0).flowlet().type()); - Assertions.assertEquals("cvfyeowpsfxtjdhs", model.sources().get(0).flowlet().referenceName()); - Assertions.assertEquals("uullojkp", model.sources().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("xin", model.sinks().get(0).name()); - Assertions.assertEquals("re", model.sinks().get(0).description()); - Assertions.assertEquals("twhlpuzjpce", model.sinks().get(0).dataset().referenceName()); - Assertions.assertEquals("yfwnw", model.sinks().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sinks().get(0).flowlet().type()); - Assertions.assertEquals("voinwo", model.sinks().get(0).flowlet().referenceName()); - Assertions.assertEquals("otvmrxk", model.sinks().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("agfyvrtpqpe", model.sinks().get(0).rejectedDataLinkedService().referenceName()); - Assertions.assertEquals("oez", model.transformations().get(0).name()); - Assertions.assertEquals("xrkdknkobektm", model.transformations().get(0).description()); - Assertions.assertEquals("z", model.transformations().get(0).dataset().referenceName()); - Assertions.assertEquals("pre", model.transformations().get(0).linkedService().referenceName()); - Assertions - .assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.transformations().get(0).flowlet().type()); - Assertions.assertEquals("dwj", model.transformations().get(0).flowlet().referenceName()); - Assertions.assertEquals("tdsh", model.script()); - Assertions.assertEquals("vkolrupjovmo", model.scriptLines().get(0)); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MariaDBSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MariaDBSourceTests.java deleted file mode 100644 index 1afd3e97c069..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MariaDBSourceTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.MariaDBSource; - -public final class MariaDBSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MariaDBSource model = - BinaryData - .fromString( - "{\"type\":\"MariaDBSource\",\"query\":\"datagyivsiirx\",\"queryTimeout\":\"datappqpsiniidaxbesb\",\"additionalColumns\":\"dataizyjch\",\"sourceRetryCount\":\"dataasjrseqpo\",\"sourceRetryWait\":\"datahgksqwzuosyyxl\",\"maxConcurrentConnections\":\"dataxzudfarzayrdyrow\",\"disableMetricsCollection\":\"datakpdpudqiwhvxb\",\"\":{\"deffrbxzjedy\":\"dataoeuufws\",\"no\":\"datajisxspnmfydphls\",\"vjlqfzlbpe\":\"dataqb\",\"nlxstp\":\"datavjpgllr\"}}") - .toObject(MariaDBSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MariaDBSource model = - new MariaDBSource() - .withSourceRetryCount("dataasjrseqpo") - .withSourceRetryWait("datahgksqwzuosyyxl") - .withMaxConcurrentConnections("dataxzudfarzayrdyrow") - .withDisableMetricsCollection("datakpdpudqiwhvxb") - .withQueryTimeout("datappqpsiniidaxbesb") - .withAdditionalColumns("dataizyjch") - .withQuery("datagyivsiirx"); - model = BinaryData.fromObject(model).toObject(MariaDBSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MariaDBTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MariaDBTableDatasetTests.java deleted file mode 100644 index 3fc5a0427b16..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MariaDBTableDatasetTests.java +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.MariaDBTableDataset; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class MariaDBTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MariaDBTableDataset model = - BinaryData - .fromString( - "{\"type\":\"MariaDBTable\",\"typeProperties\":{\"tableName\":\"datax\"},\"description\":\"mlfouqpskva\",\"structure\":\"databpmr\",\"schema\":\"datayjxcqcaczzvw\",\"linkedServiceName\":{\"referenceName\":\"ezttqjqyfy\",\"parameters\":{\"lrzhshhkbchcazk\":\"datayyslgyfybdsvk\"}},\"parameters\":{\"fyyqjc\":{\"type\":\"Float\",\"defaultValue\":\"dataprgfwhfzhhrurm\"},\"sddcuqddlda\":{\"type\":\"Bool\",\"defaultValue\":\"datazq\"},\"ojesxjhtyzzwqocy\":{\"type\":\"Int\",\"defaultValue\":\"datafztqewq\"},\"trgu\":{\"type\":\"Bool\",\"defaultValue\":\"dataineuaxpmez\"}},\"annotations\":[\"dataeo\",\"dataxfoa\",\"datazdypz\"],\"folder\":{\"name\":\"mndhgwhlbpju\"},\"\":{\"mitnwlyhbujysvd\":\"dataqxa\",\"dbhatmabtpgn\":\"datayy\"}}") - .toObject(MariaDBTableDataset.class); - Assertions.assertEquals("mlfouqpskva", model.description()); - Assertions.assertEquals("ezttqjqyfy", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("fyyqjc").type()); - Assertions.assertEquals("mndhgwhlbpju", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MariaDBTableDataset model = - new MariaDBTableDataset() - .withDescription("mlfouqpskva") - .withStructure("databpmr") - .withSchema("datayjxcqcaczzvw") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("ezttqjqyfy") - .withParameters(mapOf("lrzhshhkbchcazk", "datayyslgyfybdsvk"))) - .withParameters( - mapOf( - "fyyqjc", - new ParameterSpecification() - .withType(ParameterType.FLOAT) - .withDefaultValue("dataprgfwhfzhhrurm"), - "sddcuqddlda", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datazq"), - "ojesxjhtyzzwqocy", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datafztqewq"), - "trgu", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("dataineuaxpmez"))) - .withAnnotations(Arrays.asList("dataeo", "dataxfoa", "datazdypz")) - .withFolder(new DatasetFolder().withName("mndhgwhlbpju")) - .withTableName("datax"); - model = BinaryData.fromObject(model).toObject(MariaDBTableDataset.class); - Assertions.assertEquals("mlfouqpskva", model.description()); - Assertions.assertEquals("ezttqjqyfy", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("fyyqjc").type()); - Assertions.assertEquals("mndhgwhlbpju", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MarketoObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MarketoObjectDatasetTests.java deleted file mode 100644 index 6360fe74c26e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MarketoObjectDatasetTests.java +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.MarketoObjectDataset; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class MarketoObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MarketoObjectDataset model = - BinaryData - .fromString( - "{\"type\":\"MarketoObject\",\"typeProperties\":{\"tableName\":\"dataomeqg\"},\"description\":\"wisp\",\"structure\":\"datagdblwj\",\"schema\":\"dataaqxaxtuxi\",\"linkedServiceName\":{\"referenceName\":\"ppbiichl\",\"parameters\":{\"zdxywabkitnipapt\":\"datavuixwonkrn\"}},\"parameters\":{\"ewltono\":{\"type\":\"Bool\",\"defaultValue\":\"datayjukkajn\"},\"di\":{\"type\":\"Int\",\"defaultValue\":\"dataemiwfhhawbabhzbf\"},\"zsuspaywvslq\":{\"type\":\"SecureString\",\"defaultValue\":\"dataxydgzfoi\"}},\"annotations\":[\"datanzea\",\"datakxfmu\",\"datadbvytq\"],\"folder\":{\"name\":\"uymkdeuqxlvzpfd\"},\"\":{\"rrmtrxgjmpdvrjz\":\"datagbiwpgopqlktthb\"}}") - .toObject(MarketoObjectDataset.class); - Assertions.assertEquals("wisp", model.description()); - Assertions.assertEquals("ppbiichl", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("ewltono").type()); - Assertions.assertEquals("uymkdeuqxlvzpfd", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MarketoObjectDataset model = - new MarketoObjectDataset() - .withDescription("wisp") - .withStructure("datagdblwj") - .withSchema("dataaqxaxtuxi") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("ppbiichl") - .withParameters(mapOf("zdxywabkitnipapt", "datavuixwonkrn"))) - .withParameters( - mapOf( - "ewltono", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datayjukkajn"), - "di", - new ParameterSpecification() - .withType(ParameterType.INT) - .withDefaultValue("dataemiwfhhawbabhzbf"), - "zsuspaywvslq", - new ParameterSpecification() - .withType(ParameterType.SECURE_STRING) - .withDefaultValue("dataxydgzfoi"))) - .withAnnotations(Arrays.asList("datanzea", "datakxfmu", "datadbvytq")) - .withFolder(new DatasetFolder().withName("uymkdeuqxlvzpfd")) - .withTableName("dataomeqg"); - model = BinaryData.fromObject(model).toObject(MarketoObjectDataset.class); - Assertions.assertEquals("wisp", model.description()); - Assertions.assertEquals("ppbiichl", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("ewltono").type()); - Assertions.assertEquals("uymkdeuqxlvzpfd", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MarketoSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MarketoSourceTests.java deleted file mode 100644 index 293eac7b6ff7..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MarketoSourceTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.MarketoSource; - -public final class MarketoSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MarketoSource model = - BinaryData - .fromString( - "{\"type\":\"MarketoSource\",\"query\":\"datafplgxc\",\"queryTimeout\":\"datactbxpuisfjamgn\",\"additionalColumns\":\"dataosusiyycoflj\",\"sourceRetryCount\":\"datadmwa\",\"sourceRetryWait\":\"datapbuqkdieuopwsa\",\"maxConcurrentConnections\":\"datahmizcfk\",\"disableMetricsCollection\":\"datafmoonnria\",\"\":{\"dvbbuuipelo\":\"datagzkdbmjzob\",\"x\":\"dataptteojxhwgja\",\"sl\":\"datarpwjgkxvkjd\"}}") - .toObject(MarketoSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MarketoSource model = - new MarketoSource() - .withSourceRetryCount("datadmwa") - .withSourceRetryWait("datapbuqkdieuopwsa") - .withMaxConcurrentConnections("datahmizcfk") - .withDisableMetricsCollection("datafmoonnria") - .withQueryTimeout("datactbxpuisfjamgn") - .withAdditionalColumns("dataosusiyycoflj") - .withQuery("datafplgxc"); - model = BinaryData.fromObject(model).toObject(MarketoSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MetadataItemTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MetadataItemTests.java deleted file mode 100644 index fb85590e4c99..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MetadataItemTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.MetadataItem; - -public final class MetadataItemTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MetadataItem model = - BinaryData - .fromString("{\"name\":\"dataselwszqveakd\",\"value\":\"dataljjzdbzk\"}") - .toObject(MetadataItem.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MetadataItem model = new MetadataItem().withName("dataselwszqveakd").withValue("dataljjzdbzk"); - model = BinaryData.fromObject(model).toObject(MetadataItem.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MicrosoftAccessSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MicrosoftAccessSinkTests.java deleted file mode 100644 index 91a96ce04af0..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MicrosoftAccessSinkTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.MicrosoftAccessSink; - -public final class MicrosoftAccessSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MicrosoftAccessSink model = - BinaryData - .fromString( - "{\"type\":\"MicrosoftAccessSink\",\"preCopyScript\":\"datavsozjfnpwx\",\"writeBatchSize\":\"dataciotlbpuemqetmo\",\"writeBatchTimeout\":\"datavhhedc\",\"sinkRetryCount\":\"datalycrldwccas\",\"sinkRetryWait\":\"databdvsorvhbygw\",\"maxConcurrentConnections\":\"dataxqlzzkbx\",\"disableMetricsCollection\":\"datacgg\",\"\":{\"hlexvqhbnwmokz\":\"databtqizydaiolnkk\",\"pqjfoujeiagny\":\"dataylt\",\"jssay\":\"datae\"}}") - .toObject(MicrosoftAccessSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MicrosoftAccessSink model = - new MicrosoftAccessSink() - .withWriteBatchSize("dataciotlbpuemqetmo") - .withWriteBatchTimeout("datavhhedc") - .withSinkRetryCount("datalycrldwccas") - .withSinkRetryWait("databdvsorvhbygw") - .withMaxConcurrentConnections("dataxqlzzkbx") - .withDisableMetricsCollection("datacgg") - .withPreCopyScript("datavsozjfnpwx"); - model = BinaryData.fromObject(model).toObject(MicrosoftAccessSink.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MicrosoftAccessSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MicrosoftAccessSourceTests.java deleted file mode 100644 index d4baedcce886..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MicrosoftAccessSourceTests.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.MicrosoftAccessSource; - -public final class MicrosoftAccessSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MicrosoftAccessSource model = - BinaryData - .fromString( - "{\"type\":\"MicrosoftAccessSource\",\"query\":\"datadtuhdoimojcm\",\"additionalColumns\":\"datacd\",\"sourceRetryCount\":\"datavorzhzfoc\",\"sourceRetryWait\":\"datayltornv\",\"maxConcurrentConnections\":\"datauy\",\"disableMetricsCollection\":\"datawifbdwyvvcywb\",\"\":{\"okeqeowbp\":\"datathrexzvejqzyuik\",\"tgwerbpobvj\":\"dataiehvgchsg\",\"vvmdtkllqhznutrx\":\"dataunicgrxce\"}}") - .toObject(MicrosoftAccessSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MicrosoftAccessSource model = - new MicrosoftAccessSource() - .withSourceRetryCount("datavorzhzfoc") - .withSourceRetryWait("datayltornv") - .withMaxConcurrentConnections("datauy") - .withDisableMetricsCollection("datawifbdwyvvcywb") - .withQuery("datadtuhdoimojcm") - .withAdditionalColumns("datacd"); - model = BinaryData.fromObject(model).toObject(MicrosoftAccessSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MicrosoftAccessTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MicrosoftAccessTableDatasetTests.java deleted file mode 100644 index 8b289217c55a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MicrosoftAccessTableDatasetTests.java +++ /dev/null @@ -1,85 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.MicrosoftAccessTableDataset; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class MicrosoftAccessTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MicrosoftAccessTableDataset model = - BinaryData - .fromString( - "{\"type\":\"MicrosoftAccessTable\",\"typeProperties\":{\"tableName\":\"dataxamqecjrzvlcivqx\"},\"description\":\"mklphxwww\",\"structure\":\"datajkbgnfbr\",\"schema\":\"datavfsunhaevla\",\"linkedServiceName\":{\"referenceName\":\"xczywywu\",\"parameters\":{\"rfgimomggewdqbxe\":\"datacorewcnnaaxqjfda\",\"sfx\":\"datafyznvussuqksl\",\"wpmohnrtlikffyd\":\"datayzqbye\",\"fwvzdteqjm\":\"datatkqrfbgyn\"}},\"parameters\":{\"jyoxxjxb\":{\"type\":\"Array\",\"defaultValue\":\"datagkaxnypr\"},\"emqom\":{\"type\":\"Int\",\"defaultValue\":\"datarrlccklyfpjmspa\"},\"hcaptkhjx\":{\"type\":\"Int\",\"defaultValue\":\"datalknuyapvibzicyvi\"}},\"annotations\":[\"databnvfccklzhznfgv\"],\"folder\":{\"name\":\"xmnctigpksywi\"},\"\":{\"efuhb\":\"dataktgkdprtqjytdc\",\"caytnpkvbpbltcws\":\"datawbvjsbgmlamoa\"}}") - .toObject(MicrosoftAccessTableDataset.class); - Assertions.assertEquals("mklphxwww", model.description()); - Assertions.assertEquals("xczywywu", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("jyoxxjxb").type()); - Assertions.assertEquals("xmnctigpksywi", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MicrosoftAccessTableDataset model = - new MicrosoftAccessTableDataset() - .withDescription("mklphxwww") - .withStructure("datajkbgnfbr") - .withSchema("datavfsunhaevla") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("xczywywu") - .withParameters( - mapOf( - "rfgimomggewdqbxe", - "datacorewcnnaaxqjfda", - "sfx", - "datafyznvussuqksl", - "wpmohnrtlikffyd", - "datayzqbye", - "fwvzdteqjm", - "datatkqrfbgyn"))) - .withParameters( - mapOf( - "jyoxxjxb", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datagkaxnypr"), - "emqom", - new ParameterSpecification() - .withType(ParameterType.INT) - .withDefaultValue("datarrlccklyfpjmspa"), - "hcaptkhjx", - new ParameterSpecification() - .withType(ParameterType.INT) - .withDefaultValue("datalknuyapvibzicyvi"))) - .withAnnotations(Arrays.asList("databnvfccklzhznfgv")) - .withFolder(new DatasetFolder().withName("xmnctigpksywi")) - .withTableName("dataxamqecjrzvlcivqx"); - model = BinaryData.fromObject(model).toObject(MicrosoftAccessTableDataset.class); - Assertions.assertEquals("mklphxwww", model.description()); - Assertions.assertEquals("xczywywu", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("jyoxxjxb").type()); - Assertions.assertEquals("xmnctigpksywi", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MicrosoftAccessTableDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MicrosoftAccessTableDatasetTypePropertiesTests.java deleted file mode 100644 index 3bf054d3a483..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MicrosoftAccessTableDatasetTypePropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.MicrosoftAccessTableDatasetTypeProperties; - -public final class MicrosoftAccessTableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MicrosoftAccessTableDatasetTypeProperties model = - BinaryData - .fromString("{\"tableName\":\"dataheeocnqoubve\"}") - .toObject(MicrosoftAccessTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MicrosoftAccessTableDatasetTypeProperties model = - new MicrosoftAccessTableDatasetTypeProperties().withTableName("dataheeocnqoubve"); - model = BinaryData.fromObject(model).toObject(MicrosoftAccessTableDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbAtlasCollectionDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbAtlasCollectionDatasetTests.java deleted file mode 100644 index 402991ec5a26..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbAtlasCollectionDatasetTests.java +++ /dev/null @@ -1,79 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.MongoDbAtlasCollectionDataset; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class MongoDbAtlasCollectionDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MongoDbAtlasCollectionDataset model = - BinaryData - .fromString( - "{\"type\":\"MongoDbAtlasCollection\",\"typeProperties\":{\"collection\":\"datafpohimgckycjpeeb\"},\"description\":\"bznxsuloutnpbm\",\"structure\":\"dataoqohgp\",\"schema\":\"datadmwk\",\"linkedServiceName\":{\"referenceName\":\"upf\",\"parameters\":{\"dzauiunyev\":\"datad\",\"uynfxkcgsfcmvh\":\"datayzdsytcikswhcam\",\"atvyrkljqkqws\":\"datadrp\",\"bypnkteiidlbov\":\"datajtvjkowggxawwd\"}},\"parameters\":{\"rekyjulskwwn\":{\"type\":\"String\",\"defaultValue\":\"datargeganihkjcn\"}},\"annotations\":[\"datalqgpwxtvceba\"],\"folder\":{\"name\":\"vxwve\"},\"\":{\"csmwevguy\":\"datalr\",\"rj\":\"datalnxe\",\"owwe\":\"datafzcde\",\"sfqbirtybcelfjn\":\"datahyfkdilbwqlqa\"}}") - .toObject(MongoDbAtlasCollectionDataset.class); - Assertions.assertEquals("bznxsuloutnpbm", model.description()); - Assertions.assertEquals("upf", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("rekyjulskwwn").type()); - Assertions.assertEquals("vxwve", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MongoDbAtlasCollectionDataset model = - new MongoDbAtlasCollectionDataset() - .withDescription("bznxsuloutnpbm") - .withStructure("dataoqohgp") - .withSchema("datadmwk") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("upf") - .withParameters( - mapOf( - "dzauiunyev", - "datad", - "uynfxkcgsfcmvh", - "datayzdsytcikswhcam", - "atvyrkljqkqws", - "datadrp", - "bypnkteiidlbov", - "datajtvjkowggxawwd"))) - .withParameters( - mapOf( - "rekyjulskwwn", - new ParameterSpecification() - .withType(ParameterType.STRING) - .withDefaultValue("datargeganihkjcn"))) - .withAnnotations(Arrays.asList("datalqgpwxtvceba")) - .withFolder(new DatasetFolder().withName("vxwve")) - .withCollection("datafpohimgckycjpeeb"); - model = BinaryData.fromObject(model).toObject(MongoDbAtlasCollectionDataset.class); - Assertions.assertEquals("bznxsuloutnpbm", model.description()); - Assertions.assertEquals("upf", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("rekyjulskwwn").type()); - Assertions.assertEquals("vxwve", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbAtlasCollectionDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbAtlasCollectionDatasetTypePropertiesTests.java deleted file mode 100644 index c721458edb0b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbAtlasCollectionDatasetTypePropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.MongoDbAtlasCollectionDatasetTypeProperties; - -public final class MongoDbAtlasCollectionDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MongoDbAtlasCollectionDatasetTypeProperties model = - BinaryData - .fromString("{\"collection\":\"dataodnjyhzfaxskdv\"}") - .toObject(MongoDbAtlasCollectionDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MongoDbAtlasCollectionDatasetTypeProperties model = - new MongoDbAtlasCollectionDatasetTypeProperties().withCollection("dataodnjyhzfaxskdv"); - model = BinaryData.fromObject(model).toObject(MongoDbAtlasCollectionDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbAtlasLinkedServiceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbAtlasLinkedServiceTests.java deleted file mode 100644 index c8c9f3f192a6..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbAtlasLinkedServiceTests.java +++ /dev/null @@ -1,81 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeReference; -import com.azure.resourcemanager.datafactory.models.MongoDbAtlasLinkedService; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class MongoDbAtlasLinkedServiceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MongoDbAtlasLinkedService model = - BinaryData - .fromString( - "{\"type\":\"MongoDbAtlas\",\"typeProperties\":{\"connectionString\":\"datamu\",\"database\":\"datajabpnxohagcojgmy\",\"driverVersion\":\"datad\"},\"connectVia\":{\"referenceName\":\"qehrqtgdipb\",\"parameters\":{\"kbfykgmwurcx\":\"dataweyuigyzse\",\"vjgovbbn\":\"datajyxyunypf\",\"aqgmztlru\":\"datajxr\",\"ou\":\"datank\"}},\"description\":\"qffgjsqq\",\"parameters\":{\"bdqiuppavqov\":{\"type\":\"SecureString\",\"defaultValue\":\"dataoglwuj\"},\"tfbibtrwglj\":{\"type\":\"String\",\"defaultValue\":\"datamegnkr\"},\"phgimyomje\":{\"type\":\"String\",\"defaultValue\":\"dataezdxqhj\"},\"fxxx\":{\"type\":\"Object\",\"defaultValue\":\"datanieeqj\"}},\"annotations\":[\"datauxkepga\",\"datarijbiterqfu\"],\"\":{\"wpg\":\"datarcanlpfqdd\"}}") - .toObject(MongoDbAtlasLinkedService.class); - Assertions.assertEquals("qehrqtgdipb", model.connectVia().referenceName()); - Assertions.assertEquals("qffgjsqq", model.description()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("bdqiuppavqov").type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MongoDbAtlasLinkedService model = - new MongoDbAtlasLinkedService() - .withConnectVia( - new IntegrationRuntimeReference() - .withReferenceName("qehrqtgdipb") - .withParameters( - mapOf( - "kbfykgmwurcx", - "dataweyuigyzse", - "vjgovbbn", - "datajyxyunypf", - "aqgmztlru", - "datajxr", - "ou", - "datank"))) - .withDescription("qffgjsqq") - .withParameters( - mapOf( - "bdqiuppavqov", - new ParameterSpecification() - .withType(ParameterType.SECURE_STRING) - .withDefaultValue("dataoglwuj"), - "tfbibtrwglj", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datamegnkr"), - "phgimyomje", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("dataezdxqhj"), - "fxxx", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datanieeqj"))) - .withAnnotations(Arrays.asList("datauxkepga", "datarijbiterqfu")) - .withConnectionString("datamu") - .withDatabase("datajabpnxohagcojgmy") - .withDriverVersion("datad"); - model = BinaryData.fromObject(model).toObject(MongoDbAtlasLinkedService.class); - Assertions.assertEquals("qehrqtgdipb", model.connectVia().referenceName()); - Assertions.assertEquals("qffgjsqq", model.description()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("bdqiuppavqov").type()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbAtlasLinkedServiceTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbAtlasLinkedServiceTypePropertiesTests.java deleted file mode 100644 index 4bdcc7a3d0fd..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbAtlasLinkedServiceTypePropertiesTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.MongoDbAtlasLinkedServiceTypeProperties; - -public final class MongoDbAtlasLinkedServiceTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MongoDbAtlasLinkedServiceTypeProperties model = - BinaryData - .fromString( - "{\"connectionString\":\"dataqawupqkvmy\",\"database\":\"dataueefrxzwvcvtjd\",\"driverVersion\":\"dataagw\"}") - .toObject(MongoDbAtlasLinkedServiceTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MongoDbAtlasLinkedServiceTypeProperties model = - new MongoDbAtlasLinkedServiceTypeProperties() - .withConnectionString("dataqawupqkvmy") - .withDatabase("dataueefrxzwvcvtjd") - .withDriverVersion("dataagw"); - model = BinaryData.fromObject(model).toObject(MongoDbAtlasLinkedServiceTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbAtlasSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbAtlasSinkTests.java deleted file mode 100644 index 7568356ddbe8..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbAtlasSinkTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.MongoDbAtlasSink; - -public final class MongoDbAtlasSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MongoDbAtlasSink model = - BinaryData - .fromString( - "{\"type\":\"MongoDbAtlasSink\",\"writeBehavior\":\"datarvtaul\",\"writeBatchSize\":\"dataqvtpkodijcn\",\"writeBatchTimeout\":\"datao\",\"sinkRetryCount\":\"datavcyqjjxhijbfi\",\"sinkRetryWait\":\"datahoxule\",\"maxConcurrentConnections\":\"datadbirhgjmph\",\"disableMetricsCollection\":\"datacdhjmpnvgkx\",\"\":{\"b\":\"dataljtkuyvytfuqzst\",\"i\":\"datapyfawkj\",\"zvsc\":\"datakf\",\"cokafaqqipvnvdz\":\"datadbkl\"}}") - .toObject(MongoDbAtlasSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MongoDbAtlasSink model = - new MongoDbAtlasSink() - .withWriteBatchSize("dataqvtpkodijcn") - .withWriteBatchTimeout("datao") - .withSinkRetryCount("datavcyqjjxhijbfi") - .withSinkRetryWait("datahoxule") - .withMaxConcurrentConnections("datadbirhgjmph") - .withDisableMetricsCollection("datacdhjmpnvgkx") - .withWriteBehavior("datarvtaul"); - model = BinaryData.fromObject(model).toObject(MongoDbAtlasSink.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbAtlasSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbAtlasSourceTests.java deleted file mode 100644 index 1381f3bacd74..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbAtlasSourceTests.java +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.MongoDbAtlasSource; -import com.azure.resourcemanager.datafactory.models.MongoDbCursorMethodsProperties; -import java.util.HashMap; -import java.util.Map; - -public final class MongoDbAtlasSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MongoDbAtlasSource model = - BinaryData - .fromString( - "{\"type\":\"MongoDbAtlasSource\",\"filter\":\"dataodwqzbiuk\",\"cursorMethods\":{\"project\":\"datayfvyzaofai\",\"sort\":\"datanfvexiuuqaf\",\"skip\":\"dataseyxpgkmlnj\",\"limit\":\"dataaywgc\",\"\":{\"wv\":\"datafafpyglnfwjs\"}},\"batchSize\":\"datablucpmqwkfgmkp\",\"queryTimeout\":\"datakstzqz\",\"additionalColumns\":\"datawrcajfers\",\"sourceRetryCount\":\"dataxlkcw\",\"sourceRetryWait\":\"dataejssksgxykdepqcy\",\"maxConcurrentConnections\":\"datahwsxpzkmotgmd\",\"disableMetricsCollection\":\"datawwqevbiuntp\",\"\":{\"qgywr\":\"datawjxlycelf\",\"ruldt\":\"datau\"}}") - .toObject(MongoDbAtlasSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MongoDbAtlasSource model = - new MongoDbAtlasSource() - .withSourceRetryCount("dataxlkcw") - .withSourceRetryWait("dataejssksgxykdepqcy") - .withMaxConcurrentConnections("datahwsxpzkmotgmd") - .withDisableMetricsCollection("datawwqevbiuntp") - .withFilter("dataodwqzbiuk") - .withCursorMethods( - new MongoDbCursorMethodsProperties() - .withProject("datayfvyzaofai") - .withSort("datanfvexiuuqaf") - .withSkip("dataseyxpgkmlnj") - .withLimit("dataaywgc") - .withAdditionalProperties(mapOf())) - .withBatchSize("datablucpmqwkfgmkp") - .withQueryTimeout("datakstzqz") - .withAdditionalColumns("datawrcajfers"); - model = BinaryData.fromObject(model).toObject(MongoDbAtlasSource.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbCollectionDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbCollectionDatasetTests.java deleted file mode 100644 index 58aed86b4787..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbCollectionDatasetTests.java +++ /dev/null @@ -1,87 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.MongoDbCollectionDataset; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class MongoDbCollectionDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MongoDbCollectionDataset model = - BinaryData - .fromString( - "{\"type\":\"MongoDbCollection\",\"typeProperties\":{\"collectionName\":\"datad\"},\"description\":\"sjqb\",\"structure\":\"dataqmxv\",\"schema\":\"datariwbwggij\",\"linkedServiceName\":{\"referenceName\":\"spzjn\",\"parameters\":{\"htrgz\":\"dataikwsbzrhdugq\",\"jfhrjhiycbause\":\"dataru\",\"ihvtuwyjsqw\":\"datanczk\",\"oszjgz\":\"datas\"}},\"parameters\":{\"hczavojmsl\":{\"type\":\"String\",\"defaultValue\":\"datayskwwun\"},\"uqalpcufjjfxt\":{\"type\":\"Array\",\"defaultValue\":\"datacukvbljpxprrvchy\"},\"rcwbaae\":{\"type\":\"Object\",\"defaultValue\":\"dataqdstahhhsaaxxsri\"},\"xwoqotiiqbgpasr\":{\"type\":\"Bool\",\"defaultValue\":\"dataef\"}},\"annotations\":[\"datatistyikjhorlx\",\"datapypkennycntrq\",\"dataxwtdmbqjtsuhqh\"],\"folder\":{\"name\":\"tdyqav\"},\"\":{\"npaami\":\"dataqmzxsyaks\",\"hvwt\":\"datawb\",\"kiy\":\"datapbgchcgsfzhb\",\"cfferznzc\":\"dataqbjsdjpgxeysgw\"}}") - .toObject(MongoDbCollectionDataset.class); - Assertions.assertEquals("sjqb", model.description()); - Assertions.assertEquals("spzjn", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("hczavojmsl").type()); - Assertions.assertEquals("tdyqav", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MongoDbCollectionDataset model = - new MongoDbCollectionDataset() - .withDescription("sjqb") - .withStructure("dataqmxv") - .withSchema("datariwbwggij") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("spzjn") - .withParameters( - mapOf( - "htrgz", - "dataikwsbzrhdugq", - "jfhrjhiycbause", - "dataru", - "ihvtuwyjsqw", - "datanczk", - "oszjgz", - "datas"))) - .withParameters( - mapOf( - "hczavojmsl", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datayskwwun"), - "uqalpcufjjfxt", - new ParameterSpecification() - .withType(ParameterType.ARRAY) - .withDefaultValue("datacukvbljpxprrvchy"), - "rcwbaae", - new ParameterSpecification() - .withType(ParameterType.OBJECT) - .withDefaultValue("dataqdstahhhsaaxxsri"), - "xwoqotiiqbgpasr", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("dataef"))) - .withAnnotations(Arrays.asList("datatistyikjhorlx", "datapypkennycntrq", "dataxwtdmbqjtsuhqh")) - .withFolder(new DatasetFolder().withName("tdyqav")) - .withCollectionName("datad"); - model = BinaryData.fromObject(model).toObject(MongoDbCollectionDataset.class); - Assertions.assertEquals("sjqb", model.description()); - Assertions.assertEquals("spzjn", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("hczavojmsl").type()); - Assertions.assertEquals("tdyqav", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbCollectionDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbCollectionDatasetTypePropertiesTests.java deleted file mode 100644 index c1093cc123d9..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbCollectionDatasetTypePropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.MongoDbCollectionDatasetTypeProperties; - -public final class MongoDbCollectionDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MongoDbCollectionDatasetTypeProperties model = - BinaryData - .fromString("{\"collectionName\":\"dataivoveomkhfeqcoop\"}") - .toObject(MongoDbCollectionDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MongoDbCollectionDatasetTypeProperties model = - new MongoDbCollectionDatasetTypeProperties().withCollectionName("dataivoveomkhfeqcoop"); - model = BinaryData.fromObject(model).toObject(MongoDbCollectionDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbCursorMethodsPropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbCursorMethodsPropertiesTests.java deleted file mode 100644 index f48f23c21799..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbCursorMethodsPropertiesTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.MongoDbCursorMethodsProperties; -import java.util.HashMap; -import java.util.Map; - -public final class MongoDbCursorMethodsPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MongoDbCursorMethodsProperties model = - BinaryData - .fromString( - "{\"project\":\"datacnk\",\"sort\":\"datamiecfmqc\",\"skip\":\"datapcdbvcxo\",\"limit\":\"datahefuhnbdl\",\"\":{\"cmpnk\":\"dataectzjjgvcbt\",\"ejytrvlg\":\"datavuj\"}}") - .toObject(MongoDbCursorMethodsProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MongoDbCursorMethodsProperties model = - new MongoDbCursorMethodsProperties() - .withProject("datacnk") - .withSort("datamiecfmqc") - .withSkip("datapcdbvcxo") - .withLimit("datahefuhnbdl") - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(MongoDbCursorMethodsProperties.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbSourceTests.java deleted file mode 100644 index 274832223ec0..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbSourceTests.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.MongoDbSource; - -public final class MongoDbSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MongoDbSource model = - BinaryData - .fromString( - "{\"type\":\"MongoDbSource\",\"query\":\"datav\",\"additionalColumns\":\"dataak\",\"sourceRetryCount\":\"datapaexllt\",\"sourceRetryWait\":\"datakkaei\",\"maxConcurrentConnections\":\"datahr\",\"disableMetricsCollection\":\"datasgvsrtqlta\",\"\":{\"ubx\":\"dataraleglpynsblnwiw\",\"lhbrwaltvkyl\":\"datayr\",\"baeghakssc\":\"datajopqtegkrjo\",\"lxt\":\"datasmrnneklfibnysf\"}}") - .toObject(MongoDbSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MongoDbSource model = - new MongoDbSource() - .withSourceRetryCount("datapaexllt") - .withSourceRetryWait("datakkaei") - .withMaxConcurrentConnections("datahr") - .withDisableMetricsCollection("datasgvsrtqlta") - .withQuery("datav") - .withAdditionalColumns("dataak"); - model = BinaryData.fromObject(model).toObject(MongoDbSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbV2CollectionDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbV2CollectionDatasetTests.java deleted file mode 100644 index 517b02115f83..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbV2CollectionDatasetTests.java +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.MongoDbV2CollectionDataset; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class MongoDbV2CollectionDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MongoDbV2CollectionDataset model = - BinaryData - .fromString( - "{\"type\":\"MongoDbV2Collection\",\"typeProperties\":{\"collection\":\"datael\"},\"description\":\"odpegq\",\"structure\":\"dataorchazrqoxzyh\",\"schema\":\"dataeqvhskbmpw\",\"linkedServiceName\":{\"referenceName\":\"slajgg\",\"parameters\":{\"hawkmibuydwi\":\"dataae\"}},\"parameters\":{\"u\":{\"type\":\"Int\",\"defaultValue\":\"dataupdyttqm\"},\"s\":{\"type\":\"Array\",\"defaultValue\":\"datal\"}},\"annotations\":[\"datahhtuqmtxynof\",\"dataqobfixngxebihe\"],\"folder\":{\"name\":\"kingiqcdolrpgu\"},\"\":{\"dafbncuy\":\"datalbsm\",\"fzxjzi\":\"dataeykcnhpplzh\",\"wnuwkkfzzetl\":\"dataucrln\",\"vwywjvrlgqpwwlzp\":\"datahdyxz\"}}") - .toObject(MongoDbV2CollectionDataset.class); - Assertions.assertEquals("odpegq", model.description()); - Assertions.assertEquals("slajgg", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("u").type()); - Assertions.assertEquals("kingiqcdolrpgu", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MongoDbV2CollectionDataset model = - new MongoDbV2CollectionDataset() - .withDescription("odpegq") - .withStructure("dataorchazrqoxzyh") - .withSchema("dataeqvhskbmpw") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("slajgg") - .withParameters(mapOf("hawkmibuydwi", "dataae"))) - .withParameters( - mapOf( - "u", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("dataupdyttqm"), - "s", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datal"))) - .withAnnotations(Arrays.asList("datahhtuqmtxynof", "dataqobfixngxebihe")) - .withFolder(new DatasetFolder().withName("kingiqcdolrpgu")) - .withCollection("datael"); - model = BinaryData.fromObject(model).toObject(MongoDbV2CollectionDataset.class); - Assertions.assertEquals("odpegq", model.description()); - Assertions.assertEquals("slajgg", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("u").type()); - Assertions.assertEquals("kingiqcdolrpgu", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbV2CollectionDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbV2CollectionDatasetTypePropertiesTests.java deleted file mode 100644 index e2c7a034193c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbV2CollectionDatasetTypePropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.MongoDbV2CollectionDatasetTypeProperties; - -public final class MongoDbV2CollectionDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MongoDbV2CollectionDatasetTypeProperties model = - BinaryData - .fromString("{\"collection\":\"datadarcb\"}") - .toObject(MongoDbV2CollectionDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MongoDbV2CollectionDatasetTypeProperties model = - new MongoDbV2CollectionDatasetTypeProperties().withCollection("datadarcb"); - model = BinaryData.fromObject(model).toObject(MongoDbV2CollectionDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbV2LinkedServiceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbV2LinkedServiceTests.java deleted file mode 100644 index 397deaeae9a4..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbV2LinkedServiceTests.java +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeReference; -import com.azure.resourcemanager.datafactory.models.MongoDbV2LinkedService; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class MongoDbV2LinkedServiceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MongoDbV2LinkedService model = - BinaryData - .fromString( - "{\"type\":\"MongoDbV2\",\"typeProperties\":{\"connectionString\":\"datajafbdvpcdzdbjz\",\"database\":\"datarpxj\"},\"connectVia\":{\"referenceName\":\"aup\",\"parameters\":{\"nkaqngvgjgcww\":\"datad\",\"n\":\"datausjjhtcy\",\"svwq\":\"datahighnxhgmfrnk\"}},\"description\":\"r\",\"parameters\":{\"uksttxime\":{\"type\":\"String\",\"defaultValue\":\"dataujmmkni\"},\"weo\":{\"type\":\"Float\",\"defaultValue\":\"datasflgme\"},\"agigbpabacpleirj\":{\"type\":\"Bool\",\"defaultValue\":\"datarptjwvzapybde\"}},\"annotations\":[\"datak\"],\"\":{\"bdukid\":\"datadubmazlx\",\"kpardo\":\"dataqeyqrlgpkypb\",\"yhbzmgzsyt\":\"datadtedxz\",\"sqsbq\":\"datapfslrx\"}}") - .toObject(MongoDbV2LinkedService.class); - Assertions.assertEquals("aup", model.connectVia().referenceName()); - Assertions.assertEquals("r", model.description()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("uksttxime").type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MongoDbV2LinkedService model = - new MongoDbV2LinkedService() - .withConnectVia( - new IntegrationRuntimeReference() - .withReferenceName("aup") - .withParameters( - mapOf("nkaqngvgjgcww", "datad", "n", "datausjjhtcy", "svwq", "datahighnxhgmfrnk"))) - .withDescription("r") - .withParameters( - mapOf( - "uksttxime", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("dataujmmkni"), - "weo", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datasflgme"), - "agigbpabacpleirj", - new ParameterSpecification() - .withType(ParameterType.BOOL) - .withDefaultValue("datarptjwvzapybde"))) - .withAnnotations(Arrays.asList("datak")) - .withConnectionString("datajafbdvpcdzdbjz") - .withDatabase("datarpxj"); - model = BinaryData.fromObject(model).toObject(MongoDbV2LinkedService.class); - Assertions.assertEquals("aup", model.connectVia().referenceName()); - Assertions.assertEquals("r", model.description()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("uksttxime").type()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbV2LinkedServiceTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbV2LinkedServiceTypePropertiesTests.java deleted file mode 100644 index 27879c2a084a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbV2LinkedServiceTypePropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.MongoDbV2LinkedServiceTypeProperties; - -public final class MongoDbV2LinkedServiceTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MongoDbV2LinkedServiceTypeProperties model = - BinaryData - .fromString("{\"connectionString\":\"dataq\",\"database\":\"datapi\"}") - .toObject(MongoDbV2LinkedServiceTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MongoDbV2LinkedServiceTypeProperties model = - new MongoDbV2LinkedServiceTypeProperties().withConnectionString("dataq").withDatabase("datapi"); - model = BinaryData.fromObject(model).toObject(MongoDbV2LinkedServiceTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbV2SinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbV2SinkTests.java deleted file mode 100644 index 6433f0f117fa..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbV2SinkTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.MongoDbV2Sink; - -public final class MongoDbV2SinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MongoDbV2Sink model = - BinaryData - .fromString( - "{\"type\":\"MongoDbV2Sink\",\"writeBehavior\":\"datassncghgid\",\"writeBatchSize\":\"dataotx\",\"writeBatchTimeout\":\"databxzhad\",\"sinkRetryCount\":\"datajnnoot\",\"sinkRetryWait\":\"datayupaqdoodhnzkmj\",\"maxConcurrentConnections\":\"databyogwjr\",\"disableMetricsCollection\":\"datanrykkh\",\"\":{\"zv\":\"dataohsjewxphnlwe\",\"cjgjuopvkr\":\"dataixcveserltl\"}}") - .toObject(MongoDbV2Sink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MongoDbV2Sink model = - new MongoDbV2Sink() - .withWriteBatchSize("dataotx") - .withWriteBatchTimeout("databxzhad") - .withSinkRetryCount("datajnnoot") - .withSinkRetryWait("datayupaqdoodhnzkmj") - .withMaxConcurrentConnections("databyogwjr") - .withDisableMetricsCollection("datanrykkh") - .withWriteBehavior("datassncghgid"); - model = BinaryData.fromObject(model).toObject(MongoDbV2Sink.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbV2SourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbV2SourceTests.java deleted file mode 100644 index 85fab8bd23f3..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbV2SourceTests.java +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.MongoDbCursorMethodsProperties; -import com.azure.resourcemanager.datafactory.models.MongoDbV2Source; -import java.util.HashMap; -import java.util.Map; - -public final class MongoDbV2SourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MongoDbV2Source model = - BinaryData - .fromString( - "{\"type\":\"MongoDbV2Source\",\"filter\":\"datasbrngnbqhmuqyz\",\"cursorMethods\":{\"project\":\"datarmrcjshtcfnbffda\",\"sort\":\"datayhxp\",\"skip\":\"dataoehuboqozxn\",\"limit\":\"dataamxikhrxikglyn\",\"\":{\"nywgtsodnx\":\"dataeojecboggwtih\",\"htzgduvoaxq\":\"datairjtwjimcf\",\"zyqbggxcyram\":\"datacalptfp\"}},\"batchSize\":\"datauaxt\",\"queryTimeout\":\"dataqnyurxlpuwxslzql\",\"additionalColumns\":\"dataxbnrurtnwb\",\"sourceRetryCount\":\"dataysupck\",\"sourceRetryWait\":\"databm\",\"maxConcurrentConnections\":\"datamohlshmaaoofltbs\",\"disableMetricsCollection\":\"datavmwaejxzkqcmd\",\"\":{\"yrt\":\"datatn\"}}") - .toObject(MongoDbV2Source.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MongoDbV2Source model = - new MongoDbV2Source() - .withSourceRetryCount("dataysupck") - .withSourceRetryWait("databm") - .withMaxConcurrentConnections("datamohlshmaaoofltbs") - .withDisableMetricsCollection("datavmwaejxzkqcmd") - .withFilter("datasbrngnbqhmuqyz") - .withCursorMethods( - new MongoDbCursorMethodsProperties() - .withProject("datarmrcjshtcfnbffda") - .withSort("datayhxp") - .withSkip("dataoehuboqozxn") - .withLimit("dataamxikhrxikglyn") - .withAdditionalProperties(mapOf())) - .withBatchSize("datauaxt") - .withQueryTimeout("dataqnyurxlpuwxslzql") - .withAdditionalColumns("dataxbnrurtnwb"); - model = BinaryData.fromObject(model).toObject(MongoDbV2Source.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MultiplePipelineTriggerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MultiplePipelineTriggerTests.java deleted file mode 100644 index 648656d95e65..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MultiplePipelineTriggerTests.java +++ /dev/null @@ -1,75 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.MultiplePipelineTrigger; -import com.azure.resourcemanager.datafactory.models.PipelineReference; -import com.azure.resourcemanager.datafactory.models.TriggerPipelineReference; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class MultiplePipelineTriggerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MultiplePipelineTrigger model = - BinaryData - .fromString( - "{\"type\":\"MultiplePipelineTrigger\",\"pipelines\":[{\"pipelineReference\":{\"referenceName\":\"knehpuhljmlu\",\"name\":\"tptpjabszqczig\"},\"parameters\":{\"scrpabaw\":\"dataqkoxbghp\",\"x\":\"datavawmrmwrzmfnjs\",\"vragr\":\"datanst\"}},{\"pipelineReference\":{\"referenceName\":\"munmgtkyzup\",\"name\":\"qmjmpx\"},\"parameters\":{\"mpydaxgwgbpbls\":\"dataxie\",\"lfxf\":\"datas\"}},{\"pipelineReference\":{\"referenceName\":\"fybpwzgwhntkmutt\",\"name\":\"obrx\"},\"parameters\":{\"scbgarfbx\":\"dataft\",\"nshlu\":\"dataalpig\"}},{\"pipelineReference\":{\"referenceName\":\"lm\",\"name\":\"ncats\"},\"parameters\":{\"gtxpbvmc\":\"datatxgtibmxhudpjn\"}}],\"description\":\"sahpswspyifg\",\"runtimeState\":\"Disabled\",\"annotations\":[\"datah\",\"datadybjgyxbwhuta\",\"datahmckzbuadoxlle\",\"datahvcyyvpobcxnrwaz\"],\"\":{\"xnbkcwee\":\"datahaajhllnkwquw\",\"rwospsok\":\"datakg\",\"ydywwjsqdchbuvi\":\"datatdrvihuifih\"}}") - .toObject(MultiplePipelineTrigger.class); - Assertions.assertEquals("sahpswspyifg", model.description()); - Assertions.assertEquals("knehpuhljmlu", model.pipelines().get(0).pipelineReference().referenceName()); - Assertions.assertEquals("tptpjabszqczig", model.pipelines().get(0).pipelineReference().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MultiplePipelineTrigger model = - new MultiplePipelineTrigger() - .withDescription("sahpswspyifg") - .withAnnotations( - Arrays.asList("datah", "datadybjgyxbwhuta", "datahmckzbuadoxlle", "datahvcyyvpobcxnrwaz")) - .withPipelines( - Arrays - .asList( - new TriggerPipelineReference() - .withPipelineReference( - new PipelineReference() - .withReferenceName("knehpuhljmlu") - .withName("tptpjabszqczig")) - .withParameters( - mapOf("scrpabaw", "dataqkoxbghp", "x", "datavawmrmwrzmfnjs", "vragr", "datanst")), - new TriggerPipelineReference() - .withPipelineReference( - new PipelineReference().withReferenceName("munmgtkyzup").withName("qmjmpx")) - .withParameters(mapOf("mpydaxgwgbpbls", "dataxie", "lfxf", "datas")), - new TriggerPipelineReference() - .withPipelineReference( - new PipelineReference().withReferenceName("fybpwzgwhntkmutt").withName("obrx")) - .withParameters(mapOf("scbgarfbx", "dataft", "nshlu", "dataalpig")), - new TriggerPipelineReference() - .withPipelineReference( - new PipelineReference().withReferenceName("lm").withName("ncats")) - .withParameters(mapOf("gtxpbvmc", "datatxgtibmxhudpjn")))); - model = BinaryData.fromObject(model).toObject(MultiplePipelineTrigger.class); - Assertions.assertEquals("sahpswspyifg", model.description()); - Assertions.assertEquals("knehpuhljmlu", model.pipelines().get(0).pipelineReference().referenceName()); - Assertions.assertEquals("tptpjabszqczig", model.pipelines().get(0).pipelineReference().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MySqlSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MySqlSourceTests.java deleted file mode 100644 index 298c32280c40..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MySqlSourceTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.MySqlSource; - -public final class MySqlSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MySqlSource model = - BinaryData - .fromString( - "{\"type\":\"MySqlSource\",\"query\":\"dataulslfiuzytxeaq\",\"queryTimeout\":\"datamqntutetdtgci\",\"additionalColumns\":\"datarjwiwou\",\"sourceRetryCount\":\"dataaqnfyhgrcm\",\"sourceRetryWait\":\"datappledxyect\",\"maxConcurrentConnections\":\"databtwelutr\",\"disableMetricsCollection\":\"datazhwpxpsc\",\"\":{\"yavysfmndrdqq\":\"datatslfc\",\"gbmldkcih\":\"datak\",\"h\":\"datarz\"}}") - .toObject(MySqlSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MySqlSource model = - new MySqlSource() - .withSourceRetryCount("dataaqnfyhgrcm") - .withSourceRetryWait("datappledxyect") - .withMaxConcurrentConnections("databtwelutr") - .withDisableMetricsCollection("datazhwpxpsc") - .withQueryTimeout("datamqntutetdtgci") - .withAdditionalColumns("datarjwiwou") - .withQuery("dataulslfiuzytxeaq"); - model = BinaryData.fromObject(model).toObject(MySqlSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MySqlTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MySqlTableDatasetTests.java deleted file mode 100644 index b544044bd287..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MySqlTableDatasetTests.java +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.MySqlTableDataset; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class MySqlTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MySqlTableDataset model = - BinaryData - .fromString( - "{\"type\":\"MySqlTable\",\"typeProperties\":{\"tableName\":\"databtownoljdkx\"},\"description\":\"ewy\",\"structure\":\"datalclzxkrdpuy\",\"schema\":\"databpkrpk\",\"linkedServiceName\":{\"referenceName\":\"qetp\",\"parameters\":{\"fpc\":\"dataefno\",\"yrxowv\":\"datarx\"}},\"parameters\":{\"ozfrfawtnnsv\":{\"type\":\"Int\",\"defaultValue\":\"datauajwblxph\"},\"gzqzhluc\":{\"type\":\"Array\",\"defaultValue\":\"datajynihtibu\"},\"cgyo\":{\"type\":\"Float\",\"defaultValue\":\"datafehb\"},\"ebldxagmdfjwc\":{\"type\":\"String\",\"defaultValue\":\"datameqljxdumhycxo\"}},\"annotations\":[\"datawxjsjquv\"],\"folder\":{\"name\":\"fzdtsrpjuvgz\"},\"\":{\"huqczouanbfulv\":\"datazhnsbylgmg\"}}") - .toObject(MySqlTableDataset.class); - Assertions.assertEquals("ewy", model.description()); - Assertions.assertEquals("qetp", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("ozfrfawtnnsv").type()); - Assertions.assertEquals("fzdtsrpjuvgz", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MySqlTableDataset model = - new MySqlTableDataset() - .withDescription("ewy") - .withStructure("datalclzxkrdpuy") - .withSchema("databpkrpk") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("qetp") - .withParameters(mapOf("fpc", "dataefno", "yrxowv", "datarx"))) - .withParameters( - mapOf( - "ozfrfawtnnsv", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datauajwblxph"), - "gzqzhluc", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datajynihtibu"), - "cgyo", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datafehb"), - "ebldxagmdfjwc", - new ParameterSpecification() - .withType(ParameterType.STRING) - .withDefaultValue("datameqljxdumhycxo"))) - .withAnnotations(Arrays.asList("datawxjsjquv")) - .withFolder(new DatasetFolder().withName("fzdtsrpjuvgz")) - .withTableName("databtownoljdkx"); - model = BinaryData.fromObject(model).toObject(MySqlTableDataset.class); - Assertions.assertEquals("ewy", model.description()); - Assertions.assertEquals("qetp", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("ozfrfawtnnsv").type()); - Assertions.assertEquals("fzdtsrpjuvgz", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MySqlTableDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MySqlTableDatasetTypePropertiesTests.java deleted file mode 100644 index 18b960e61218..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MySqlTableDatasetTypePropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.MySqlTableDatasetTypeProperties; - -public final class MySqlTableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MySqlTableDatasetTypeProperties model = - BinaryData - .fromString("{\"tableName\":\"dataglxoqwbztilqb\"}") - .toObject(MySqlTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MySqlTableDatasetTypeProperties model = - new MySqlTableDatasetTypeProperties().withTableName("dataglxoqwbztilqb"); - model = BinaryData.fromObject(model).toObject(MySqlTableDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/NetezzaPartitionSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/NetezzaPartitionSettingsTests.java deleted file mode 100644 index bee066bb0f06..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/NetezzaPartitionSettingsTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.NetezzaPartitionSettings; - -public final class NetezzaPartitionSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - NetezzaPartitionSettings model = - BinaryData - .fromString( - "{\"partitionColumnName\":\"datalferjwhonn\",\"partitionUpperBound\":\"datadexnicq\",\"partitionLowerBound\":\"datafqttfqgdoowgqooi\"}") - .toObject(NetezzaPartitionSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - NetezzaPartitionSettings model = - new NetezzaPartitionSettings() - .withPartitionColumnName("datalferjwhonn") - .withPartitionUpperBound("datadexnicq") - .withPartitionLowerBound("datafqttfqgdoowgqooi"); - model = BinaryData.fromObject(model).toObject(NetezzaPartitionSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/NetezzaSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/NetezzaSourceTests.java deleted file mode 100644 index 504951b68cbf..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/NetezzaSourceTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.NetezzaPartitionSettings; -import com.azure.resourcemanager.datafactory.models.NetezzaSource; - -public final class NetezzaSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - NetezzaSource model = - BinaryData - .fromString( - "{\"type\":\"NetezzaSource\",\"query\":\"datatu\",\"partitionOption\":\"datazvlhibr\",\"partitionSettings\":{\"partitionColumnName\":\"datagwuv\",\"partitionUpperBound\":\"dataymoqv\",\"partitionLowerBound\":\"datakrynziudmhed\"},\"queryTimeout\":\"dataygwagvuioxjwztr\",\"additionalColumns\":\"datatll\",\"sourceRetryCount\":\"datacv\",\"sourceRetryWait\":\"datanbccffsbz\",\"maxConcurrentConnections\":\"datatfxq\",\"disableMetricsCollection\":\"dataj\",\"\":{\"vbchpzvq\":\"datadjctt\"}}") - .toObject(NetezzaSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - NetezzaSource model = - new NetezzaSource() - .withSourceRetryCount("datacv") - .withSourceRetryWait("datanbccffsbz") - .withMaxConcurrentConnections("datatfxq") - .withDisableMetricsCollection("dataj") - .withQueryTimeout("dataygwagvuioxjwztr") - .withAdditionalColumns("datatll") - .withQuery("datatu") - .withPartitionOption("datazvlhibr") - .withPartitionSettings( - new NetezzaPartitionSettings() - .withPartitionColumnName("datagwuv") - .withPartitionUpperBound("dataymoqv") - .withPartitionLowerBound("datakrynziudmhed")); - model = BinaryData.fromObject(model).toObject(NetezzaSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/NetezzaTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/NetezzaTableDatasetTests.java deleted file mode 100644 index 9e2654f51928..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/NetezzaTableDatasetTests.java +++ /dev/null @@ -1,83 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.NetezzaTableDataset; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class NetezzaTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - NetezzaTableDataset model = - BinaryData - .fromString( - "{\"type\":\"NetezzaTable\",\"typeProperties\":{\"tableName\":\"datadvfjd\",\"table\":\"dataephtoshqtuar\",\"schema\":\"datagujrcnxaeypyq\"},\"description\":\"zfyasyddqbws\",\"structure\":\"datawyyeomiflrvfe\",\"schema\":\"datactshwfrhhasabvau\",\"linkedServiceName\":{\"referenceName\":\"nwwumkbpg\",\"parameters\":{\"rpdgitenyuksli\":\"databwtpwbjlpfwuq\",\"amrplanch\":\"datampnxg\",\"z\":\"dataotmmxlmxejwyv\",\"sbeqieiuxhj\":\"datajwvtuekbbypqsm\"}},\"parameters\":{\"zyxvta\":{\"type\":\"String\",\"defaultValue\":\"datalnjjhrgkjjpcpih\"},\"urdgc\":{\"type\":\"Float\",\"defaultValue\":\"dataatoidne\"}},\"annotations\":[\"datanaqve\",\"datagnpuelrnanbrpkoc\",\"dataxfbagegjtjltcki\"],\"folder\":{\"name\":\"gfagijxmdbo\"},\"\":{\"invzsod\":\"datahxhahuq\"}}") - .toObject(NetezzaTableDataset.class); - Assertions.assertEquals("zfyasyddqbws", model.description()); - Assertions.assertEquals("nwwumkbpg", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("zyxvta").type()); - Assertions.assertEquals("gfagijxmdbo", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - NetezzaTableDataset model = - new NetezzaTableDataset() - .withDescription("zfyasyddqbws") - .withStructure("datawyyeomiflrvfe") - .withSchema("datactshwfrhhasabvau") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("nwwumkbpg") - .withParameters( - mapOf( - "rpdgitenyuksli", - "databwtpwbjlpfwuq", - "amrplanch", - "datampnxg", - "z", - "dataotmmxlmxejwyv", - "sbeqieiuxhj", - "datajwvtuekbbypqsm"))) - .withParameters( - mapOf( - "zyxvta", - new ParameterSpecification() - .withType(ParameterType.STRING) - .withDefaultValue("datalnjjhrgkjjpcpih"), - "urdgc", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("dataatoidne"))) - .withAnnotations(Arrays.asList("datanaqve", "datagnpuelrnanbrpkoc", "dataxfbagegjtjltcki")) - .withFolder(new DatasetFolder().withName("gfagijxmdbo")) - .withTableName("datadvfjd") - .withTable("dataephtoshqtuar") - .withSchemaTypePropertiesSchema("datagujrcnxaeypyq"); - model = BinaryData.fromObject(model).toObject(NetezzaTableDataset.class); - Assertions.assertEquals("zfyasyddqbws", model.description()); - Assertions.assertEquals("nwwumkbpg", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("zyxvta").type()); - Assertions.assertEquals("gfagijxmdbo", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/NetezzaTableDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/NetezzaTableDatasetTypePropertiesTests.java deleted file mode 100644 index 2c7453de677f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/NetezzaTableDatasetTypePropertiesTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.NetezzaTableDatasetTypeProperties; - -public final class NetezzaTableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - NetezzaTableDatasetTypeProperties model = - BinaryData - .fromString( - "{\"tableName\":\"datakrqdbsgkqy\",\"table\":\"dataotypcjxh\",\"schema\":\"datazlocjhzppdbr\"}") - .toObject(NetezzaTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - NetezzaTableDatasetTypeProperties model = - new NetezzaTableDatasetTypeProperties() - .withTableName("datakrqdbsgkqy") - .withTable("dataotypcjxh") - .withSchema("datazlocjhzppdbr"); - model = BinaryData.fromObject(model).toObject(NetezzaTableDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/NotebookParameterTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/NotebookParameterTests.java deleted file mode 100644 index a42fad61f816..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/NotebookParameterTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.NotebookParameter; -import com.azure.resourcemanager.datafactory.models.NotebookParameterType; -import org.junit.jupiter.api.Assertions; - -public final class NotebookParameterTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - NotebookParameter model = - BinaryData.fromString("{\"value\":\"datauhnwcqvel\",\"type\":\"float\"}").toObject(NotebookParameter.class); - Assertions.assertEquals(NotebookParameterType.FLOAT, model.type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - NotebookParameter model = - new NotebookParameter().withValue("datauhnwcqvel").withType(NotebookParameterType.FLOAT); - model = BinaryData.fromObject(model).toObject(NotebookParameter.class); - Assertions.assertEquals(NotebookParameterType.FLOAT, model.type()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ODataResourceDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ODataResourceDatasetTests.java deleted file mode 100644 index 2b3ca851ce92..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ODataResourceDatasetTests.java +++ /dev/null @@ -1,81 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ODataResourceDataset; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ODataResourceDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ODataResourceDataset model = - BinaryData - .fromString( - "{\"type\":\"ODataResource\",\"typeProperties\":{\"path\":\"dataicovj\"},\"description\":\"vwrmjx\",\"structure\":\"datauod\",\"schema\":\"dataczbassqfyylwpp\",\"linkedServiceName\":{\"referenceName\":\"ygkbzb\",\"parameters\":{\"pmhttuvsqjsrvjnq\":\"datasybxhqvov\",\"qbfkceincnrecjbi\":\"dataaqg\",\"sqsvzvmxtc\":\"datawevsfgdrmnszdosm\",\"hgsulwvgs\":\"dataghndae\"}},\"parameters\":{\"jjuzk\":{\"type\":\"Float\",\"defaultValue\":\"datav\"},\"vljlbzdlby\":{\"type\":\"Bool\",\"defaultValue\":\"dataciwuhyzekypy\"},\"ov\":{\"type\":\"String\",\"defaultValue\":\"dataxhpzy\"}},\"annotations\":[\"databhanz\"],\"folder\":{\"name\":\"fhsh\"},\"\":{\"zpbyfyvynpmggq\":\"dataahn\",\"izorbloejzs\":\"dataagenvqbugihcdvf\"}}") - .toObject(ODataResourceDataset.class); - Assertions.assertEquals("vwrmjx", model.description()); - Assertions.assertEquals("ygkbzb", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("jjuzk").type()); - Assertions.assertEquals("fhsh", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ODataResourceDataset model = - new ODataResourceDataset() - .withDescription("vwrmjx") - .withStructure("datauod") - .withSchema("dataczbassqfyylwpp") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("ygkbzb") - .withParameters( - mapOf( - "pmhttuvsqjsrvjnq", - "datasybxhqvov", - "qbfkceincnrecjbi", - "dataaqg", - "sqsvzvmxtc", - "datawevsfgdrmnszdosm", - "hgsulwvgs", - "dataghndae"))) - .withParameters( - mapOf( - "jjuzk", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datav"), - "vljlbzdlby", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("dataciwuhyzekypy"), - "ov", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("dataxhpzy"))) - .withAnnotations(Arrays.asList("databhanz")) - .withFolder(new DatasetFolder().withName("fhsh")) - .withPath("dataicovj"); - model = BinaryData.fromObject(model).toObject(ODataResourceDataset.class); - Assertions.assertEquals("vwrmjx", model.description()); - Assertions.assertEquals("ygkbzb", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("jjuzk").type()); - Assertions.assertEquals("fhsh", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ODataResourceDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ODataResourceDatasetTypePropertiesTests.java deleted file mode 100644 index 6d05c7575703..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ODataResourceDatasetTypePropertiesTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.ODataResourceDatasetTypeProperties; - -public final class ODataResourceDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ODataResourceDatasetTypeProperties model = - BinaryData.fromString("{\"path\":\"datazgkqwvde\"}").toObject(ODataResourceDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ODataResourceDatasetTypeProperties model = new ODataResourceDatasetTypeProperties().withPath("datazgkqwvde"); - model = BinaryData.fromObject(model).toObject(ODataResourceDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ODataSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ODataSourceTests.java deleted file mode 100644 index 7b94da442295..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ODataSourceTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ODataSource; - -public final class ODataSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ODataSource model = - BinaryData - .fromString( - "{\"type\":\"ODataSource\",\"query\":\"dataqjneszxte\",\"httpRequestTimeout\":\"datahxphxokdbv\",\"additionalColumns\":\"dataqttusuxxb\",\"sourceRetryCount\":\"datapvue\",\"sourceRetryWait\":\"datarnnwgrxzcn\",\"maxConcurrentConnections\":\"datauezxluimkwbwmg\",\"disableMetricsCollection\":\"dataqlsn\",\"\":{\"cfvinjxciun\":\"datahpcjztziuuuyv\",\"zbp\":\"datatcxgdgqkletlwav\",\"drqgionm\":\"dataxxvft\"}}") - .toObject(ODataSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ODataSource model = - new ODataSource() - .withSourceRetryCount("datapvue") - .withSourceRetryWait("datarnnwgrxzcn") - .withMaxConcurrentConnections("datauezxluimkwbwmg") - .withDisableMetricsCollection("dataqlsn") - .withQuery("dataqjneszxte") - .withHttpRequestTimeout("datahxphxokdbv") - .withAdditionalColumns("dataqttusuxxb"); - model = BinaryData.fromObject(model).toObject(ODataSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OdbcSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OdbcSinkTests.java deleted file mode 100644 index 11ce6266f4e5..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OdbcSinkTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.OdbcSink; - -public final class OdbcSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OdbcSink model = - BinaryData - .fromString( - "{\"type\":\"OdbcSink\",\"preCopyScript\":\"datatsnqjcmk\",\"writeBatchSize\":\"databckjrfkwclqmyowd\",\"writeBatchTimeout\":\"datatwaxobdzatqocvrd\",\"sinkRetryCount\":\"datavsclwpsteuvjdnh\",\"sinkRetryWait\":\"datayvymvnlaehit\",\"maxConcurrentConnections\":\"dataibfomohcynorhhbv\",\"disableMetricsCollection\":\"dataxtktkeuapomoof\",\"\":{\"mathiydmkyvsxc\":\"datahptraljcqpu\",\"fmkp\":\"dataivghajpddgfozn\",\"mwptdrrruy\":\"dataoesozcuhunmfz\"}}") - .toObject(OdbcSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OdbcSink model = - new OdbcSink() - .withWriteBatchSize("databckjrfkwclqmyowd") - .withWriteBatchTimeout("datatwaxobdzatqocvrd") - .withSinkRetryCount("datavsclwpsteuvjdnh") - .withSinkRetryWait("datayvymvnlaehit") - .withMaxConcurrentConnections("dataibfomohcynorhhbv") - .withDisableMetricsCollection("dataxtktkeuapomoof") - .withPreCopyScript("datatsnqjcmk"); - model = BinaryData.fromObject(model).toObject(OdbcSink.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OdbcSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OdbcSourceTests.java deleted file mode 100644 index 552b579c504a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OdbcSourceTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.OdbcSource; - -public final class OdbcSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OdbcSource model = - BinaryData - .fromString( - "{\"type\":\"OdbcSource\",\"query\":\"dataodrvwnqbpxyofft\",\"queryTimeout\":\"dataovbhqelsslfxejp\",\"additionalColumns\":\"datasgigs\",\"sourceRetryCount\":\"datatx\",\"sourceRetryWait\":\"datayjwmglgstrzfh\",\"maxConcurrentConnections\":\"datadzovkbcbefohny\",\"disableMetricsCollection\":\"datahmlj\",\"\":{\"szxdbgl\":\"datagfvzvmtjcxig\",\"ivmbu\":\"dataeet\",\"wfhfptbdxtvl\":\"dataizw\"}}") - .toObject(OdbcSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OdbcSource model = - new OdbcSource() - .withSourceRetryCount("datatx") - .withSourceRetryWait("datayjwmglgstrzfh") - .withMaxConcurrentConnections("datadzovkbcbefohny") - .withDisableMetricsCollection("datahmlj") - .withQueryTimeout("dataovbhqelsslfxejp") - .withAdditionalColumns("datasgigs") - .withQuery("dataodrvwnqbpxyofft"); - model = BinaryData.fromObject(model).toObject(OdbcSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OdbcTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OdbcTableDatasetTests.java deleted file mode 100644 index 4493cc307ac5..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OdbcTableDatasetTests.java +++ /dev/null @@ -1,77 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.OdbcTableDataset; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class OdbcTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OdbcTableDataset model = - BinaryData - .fromString( - "{\"type\":\"OdbcTable\",\"typeProperties\":{\"tableName\":\"dataizp\"},\"description\":\"fxzspfyvslazippl\",\"structure\":\"datatdumjtycildrzn\",\"schema\":\"dataxozqthkwxfugfziz\",\"linkedServiceName\":{\"referenceName\":\"xduyjnqzbrqcakm\",\"parameters\":{\"nsbqoitwhmuc\":\"dataviyjuca\",\"xy\":\"dataiuh\",\"ycudus\":\"dataehyklelyqdvpqfbx\",\"vfopkyl\":\"datamtxqlefnohey\"}},\"parameters\":{\"w\":{\"type\":\"SecureString\",\"defaultValue\":\"datanj\"}},\"annotations\":[\"datafwtwrsvevc\",\"datae\",\"dataswxhqhgkhtbzv\"],\"folder\":{\"name\":\"evvjncpmyhtxg\"},\"\":{\"bcyjrtalqee\":\"dataghcmixmlwkfe\",\"tomsgoihlqwbywaa\":\"dataudfyimooaez\"}}") - .toObject(OdbcTableDataset.class); - Assertions.assertEquals("fxzspfyvslazippl", model.description()); - Assertions.assertEquals("xduyjnqzbrqcakm", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("w").type()); - Assertions.assertEquals("evvjncpmyhtxg", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OdbcTableDataset model = - new OdbcTableDataset() - .withDescription("fxzspfyvslazippl") - .withStructure("datatdumjtycildrzn") - .withSchema("dataxozqthkwxfugfziz") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("xduyjnqzbrqcakm") - .withParameters( - mapOf( - "nsbqoitwhmuc", - "dataviyjuca", - "xy", - "dataiuh", - "ycudus", - "dataehyklelyqdvpqfbx", - "vfopkyl", - "datamtxqlefnohey"))) - .withParameters( - mapOf( - "w", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("datanj"))) - .withAnnotations(Arrays.asList("datafwtwrsvevc", "datae", "dataswxhqhgkhtbzv")) - .withFolder(new DatasetFolder().withName("evvjncpmyhtxg")) - .withTableName("dataizp"); - model = BinaryData.fromObject(model).toObject(OdbcTableDataset.class); - Assertions.assertEquals("fxzspfyvslazippl", model.description()); - Assertions.assertEquals("xduyjnqzbrqcakm", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("w").type()); - Assertions.assertEquals("evvjncpmyhtxg", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OdbcTableDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OdbcTableDatasetTypePropertiesTests.java deleted file mode 100644 index 61cb938d221b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OdbcTableDatasetTypePropertiesTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.OdbcTableDatasetTypeProperties; - -public final class OdbcTableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OdbcTableDatasetTypeProperties model = - BinaryData.fromString("{\"tableName\":\"dataaeeekfztvna\"}").toObject(OdbcTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OdbcTableDatasetTypeProperties model = new OdbcTableDatasetTypeProperties().withTableName("dataaeeekfztvna"); - model = BinaryData.fromObject(model).toObject(OdbcTableDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/Office365DatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/Office365DatasetTests.java deleted file mode 100644 index 8321bd46f6a2..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/Office365DatasetTests.java +++ /dev/null @@ -1,83 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.Office365Dataset; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class Office365DatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - Office365Dataset model = - BinaryData - .fromString( - "{\"type\":\"Office365Table\",\"typeProperties\":{\"tableName\":\"datavovoa\",\"predicate\":\"datagjsmbc\"},\"description\":\"oygsabdgdheronsd\",\"structure\":\"datarkzvz\",\"schema\":\"datatqhgz\",\"linkedServiceName\":{\"referenceName\":\"yxtrvfdbqsk\",\"parameters\":{\"ptpvsffavdhpiw\":\"databvi\",\"bwxyldqtmggcpd\":\"datamuwkgjwbyfdw\",\"zctwymzsk\":\"datamegaj\"}},\"parameters\":{\"gliupqscoob\":{\"type\":\"Object\",\"defaultValue\":\"dataeseip\"},\"incev\":{\"type\":\"Object\",\"defaultValue\":\"datacaxsqcomjiq\"},\"duvtvod\":{\"type\":\"Int\",\"defaultValue\":\"datadevpximziizmeq\"},\"hm\":{\"type\":\"SecureString\",\"defaultValue\":\"datap\"}},\"annotations\":[\"datab\",\"datablmcvrjaznotdof\",\"datavpbqsdqkpsbqs\",\"databmitaftazgcxsvq\"],\"folder\":{\"name\":\"ufylamxowbg\"},\"\":{\"xiknsgofuns\":\"datayutehlkarvtipquk\",\"xn\":\"datahpcekggvmfnnb\"}}") - .toObject(Office365Dataset.class); - Assertions.assertEquals("oygsabdgdheronsd", model.description()); - Assertions.assertEquals("yxtrvfdbqsk", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("gliupqscoob").type()); - Assertions.assertEquals("ufylamxowbg", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Office365Dataset model = - new Office365Dataset() - .withDescription("oygsabdgdheronsd") - .withStructure("datarkzvz") - .withSchema("datatqhgz") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("yxtrvfdbqsk") - .withParameters( - mapOf( - "ptpvsffavdhpiw", - "databvi", - "bwxyldqtmggcpd", - "datamuwkgjwbyfdw", - "zctwymzsk", - "datamegaj"))) - .withParameters( - mapOf( - "gliupqscoob", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("dataeseip"), - "incev", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datacaxsqcomjiq"), - "duvtvod", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datadevpximziizmeq"), - "hm", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("datap"))) - .withAnnotations( - Arrays.asList("datab", "datablmcvrjaznotdof", "datavpbqsdqkpsbqs", "databmitaftazgcxsvq")) - .withFolder(new DatasetFolder().withName("ufylamxowbg")) - .withTableName("datavovoa") - .withPredicate("datagjsmbc"); - model = BinaryData.fromObject(model).toObject(Office365Dataset.class); - Assertions.assertEquals("oygsabdgdheronsd", model.description()); - Assertions.assertEquals("yxtrvfdbqsk", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("gliupqscoob").type()); - Assertions.assertEquals("ufylamxowbg", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/Office365DatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/Office365DatasetTypePropertiesTests.java deleted file mode 100644 index 0835ca25b043..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/Office365DatasetTypePropertiesTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.Office365DatasetTypeProperties; - -public final class Office365DatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - Office365DatasetTypeProperties model = - BinaryData - .fromString("{\"tableName\":\"datadfkkedeetxtpwcv\",\"predicate\":\"datafwsunjzijaciwmm\"}") - .toObject(Office365DatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Office365DatasetTypeProperties model = - new Office365DatasetTypeProperties() - .withTableName("datadfkkedeetxtpwcv") - .withPredicate("datafwsunjzijaciwmm"); - model = BinaryData.fromObject(model).toObject(Office365DatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/Office365SourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/Office365SourceTests.java deleted file mode 100644 index da07ade0b318..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/Office365SourceTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.Office365Source; - -public final class Office365SourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - Office365Source model = - BinaryData - .fromString( - "{\"type\":\"Office365Source\",\"allowedGroups\":\"datachkkwah\",\"userScopeFilterUri\":\"datayrdlvbomhfqsjz\",\"dateFilterColumn\":\"dataktk\",\"startTime\":\"dataxtee\",\"endTime\":\"datahxgnlpjytle\",\"outputColumns\":\"datamijhnjk\",\"sourceRetryCount\":\"dataohhuw\",\"sourceRetryWait\":\"datankzbdeyhw\",\"maxConcurrentConnections\":\"datahobdocfvajmmdmby\",\"disableMetricsCollection\":\"datandtqujfzxsazu\",\"\":{\"shsxhtvnqcmrr\":\"datawwtlerhpfrarqnj\",\"csddlcnwbijxf\":\"datamlwgomh\",\"rowh\":\"datangeffrghwd\",\"cwawlmsiklzomd\":\"datarguvdrgg\"}}") - .toObject(Office365Source.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Office365Source model = - new Office365Source() - .withSourceRetryCount("dataohhuw") - .withSourceRetryWait("datankzbdeyhw") - .withMaxConcurrentConnections("datahobdocfvajmmdmby") - .withDisableMetricsCollection("datandtqujfzxsazu") - .withAllowedGroups("datachkkwah") - .withUserScopeFilterUri("datayrdlvbomhfqsjz") - .withDateFilterColumn("dataktk") - .withStartTime("dataxtee") - .withEndTime("datahxgnlpjytle") - .withOutputColumns("datamijhnjk"); - model = BinaryData.fromObject(model).toObject(Office365Source.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OperationDisplayTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OperationDisplayTests.java deleted file mode 100644 index dbd687953e59..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OperationDisplayTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.OperationDisplay; -import org.junit.jupiter.api.Assertions; - -public final class OperationDisplayTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OperationDisplay model = - BinaryData - .fromString( - "{\"description\":\"xinpmqnjaq\",\"provider\":\"xj\",\"resource\":\"r\",\"operation\":\"vcputegj\"}") - .toObject(OperationDisplay.class); - Assertions.assertEquals("xinpmqnjaq", model.description()); - Assertions.assertEquals("xj", model.provider()); - Assertions.assertEquals("r", model.resource()); - Assertions.assertEquals("vcputegj", model.operation()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OperationDisplay model = - new OperationDisplay() - .withDescription("xinpmqnjaq") - .withProvider("xj") - .withResource("r") - .withOperation("vcputegj"); - model = BinaryData.fromObject(model).toObject(OperationDisplay.class); - Assertions.assertEquals("xinpmqnjaq", model.description()); - Assertions.assertEquals("xj", model.provider()); - Assertions.assertEquals("r", model.resource()); - Assertions.assertEquals("vcputegj", model.operation()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OperationInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OperationInnerTests.java deleted file mode 100644 index 499d1a67dbfa..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OperationInnerTests.java +++ /dev/null @@ -1,132 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.OperationInner; -import com.azure.resourcemanager.datafactory.models.OperationDisplay; -import com.azure.resourcemanager.datafactory.models.OperationLogSpecification; -import com.azure.resourcemanager.datafactory.models.OperationMetricAvailability; -import com.azure.resourcemanager.datafactory.models.OperationMetricDimension; -import com.azure.resourcemanager.datafactory.models.OperationMetricSpecification; -import com.azure.resourcemanager.datafactory.models.OperationServiceSpecification; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class OperationInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OperationInner model = - BinaryData - .fromString( - "{\"name\":\"itjz\",\"origin\":\"lusarh\",\"display\":{\"description\":\"cqhsm\",\"provider\":\"rkdtmlxh\",\"resource\":\"uksjtxukcdmp\",\"operation\":\"cryuan\"},\"properties\":{\"serviceSpecification\":{\"logSpecifications\":[{\"name\":\"xtayr\",\"displayName\":\"m\",\"blobDuration\":\"fp\"},{\"name\":\"qobmtukk\",\"displayName\":\"yrtih\",\"blobDuration\":\"tijbpzvgnwzsymgl\"},{\"name\":\"fcyzkohdbihanufh\",\"displayName\":\"bj\",\"blobDuration\":\"a\"},{\"name\":\"th\",\"displayName\":\"hab\",\"blobDuration\":\"pikxwczbyscnpqxu\"}],\"metricSpecifications\":[{\"name\":\"qniwbybrkxvdumj\",\"displayName\":\"tfwvukxgaudc\",\"displayDescription\":\"nhsjcnyej\",\"unit\":\"ryhtnapczwlokjy\",\"aggregationType\":\"kkvnipjox\",\"enableRegionalMdmAccount\":\"nchgej\",\"sourceMdmAccount\":\"odmailzyd\",\"sourceMdmNamespace\":\"o\",\"availabilities\":[{},{}],\"dimensions\":[{},{},{}]}]}}}") - .toObject(OperationInner.class); - Assertions.assertEquals("itjz", model.name()); - Assertions.assertEquals("lusarh", model.origin()); - Assertions.assertEquals("cqhsm", model.display().description()); - Assertions.assertEquals("rkdtmlxh", model.display().provider()); - Assertions.assertEquals("uksjtxukcdmp", model.display().resource()); - Assertions.assertEquals("cryuan", model.display().operation()); - Assertions.assertEquals("xtayr", model.serviceSpecification().logSpecifications().get(0).name()); - Assertions.assertEquals("m", model.serviceSpecification().logSpecifications().get(0).displayName()); - Assertions.assertEquals("fp", model.serviceSpecification().logSpecifications().get(0).blobDuration()); - Assertions.assertEquals("qniwbybrkxvdumj", model.serviceSpecification().metricSpecifications().get(0).name()); - Assertions - .assertEquals("tfwvukxgaudc", model.serviceSpecification().metricSpecifications().get(0).displayName()); - Assertions - .assertEquals("nhsjcnyej", model.serviceSpecification().metricSpecifications().get(0).displayDescription()); - Assertions.assertEquals("ryhtnapczwlokjy", model.serviceSpecification().metricSpecifications().get(0).unit()); - Assertions - .assertEquals("kkvnipjox", model.serviceSpecification().metricSpecifications().get(0).aggregationType()); - Assertions - .assertEquals( - "nchgej", model.serviceSpecification().metricSpecifications().get(0).enableRegionalMdmAccount()); - Assertions - .assertEquals("odmailzyd", model.serviceSpecification().metricSpecifications().get(0).sourceMdmAccount()); - Assertions.assertEquals("o", model.serviceSpecification().metricSpecifications().get(0).sourceMdmNamespace()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OperationInner model = - new OperationInner() - .withName("itjz") - .withOrigin("lusarh") - .withDisplay( - new OperationDisplay() - .withDescription("cqhsm") - .withProvider("rkdtmlxh") - .withResource("uksjtxukcdmp") - .withOperation("cryuan")) - .withServiceSpecification( - new OperationServiceSpecification() - .withLogSpecifications( - Arrays - .asList( - new OperationLogSpecification() - .withName("xtayr") - .withDisplayName("m") - .withBlobDuration("fp"), - new OperationLogSpecification() - .withName("qobmtukk") - .withDisplayName("yrtih") - .withBlobDuration("tijbpzvgnwzsymgl"), - new OperationLogSpecification() - .withName("fcyzkohdbihanufh") - .withDisplayName("bj") - .withBlobDuration("a"), - new OperationLogSpecification() - .withName("th") - .withDisplayName("hab") - .withBlobDuration("pikxwczbyscnpqxu"))) - .withMetricSpecifications( - Arrays - .asList( - new OperationMetricSpecification() - .withName("qniwbybrkxvdumj") - .withDisplayName("tfwvukxgaudc") - .withDisplayDescription("nhsjcnyej") - .withUnit("ryhtnapczwlokjy") - .withAggregationType("kkvnipjox") - .withEnableRegionalMdmAccount("nchgej") - .withSourceMdmAccount("odmailzyd") - .withSourceMdmNamespace("o") - .withAvailabilities( - Arrays - .asList( - new OperationMetricAvailability(), - new OperationMetricAvailability())) - .withDimensions( - Arrays - .asList( - new OperationMetricDimension(), - new OperationMetricDimension(), - new OperationMetricDimension()))))); - model = BinaryData.fromObject(model).toObject(OperationInner.class); - Assertions.assertEquals("itjz", model.name()); - Assertions.assertEquals("lusarh", model.origin()); - Assertions.assertEquals("cqhsm", model.display().description()); - Assertions.assertEquals("rkdtmlxh", model.display().provider()); - Assertions.assertEquals("uksjtxukcdmp", model.display().resource()); - Assertions.assertEquals("cryuan", model.display().operation()); - Assertions.assertEquals("xtayr", model.serviceSpecification().logSpecifications().get(0).name()); - Assertions.assertEquals("m", model.serviceSpecification().logSpecifications().get(0).displayName()); - Assertions.assertEquals("fp", model.serviceSpecification().logSpecifications().get(0).blobDuration()); - Assertions.assertEquals("qniwbybrkxvdumj", model.serviceSpecification().metricSpecifications().get(0).name()); - Assertions - .assertEquals("tfwvukxgaudc", model.serviceSpecification().metricSpecifications().get(0).displayName()); - Assertions - .assertEquals("nhsjcnyej", model.serviceSpecification().metricSpecifications().get(0).displayDescription()); - Assertions.assertEquals("ryhtnapczwlokjy", model.serviceSpecification().metricSpecifications().get(0).unit()); - Assertions - .assertEquals("kkvnipjox", model.serviceSpecification().metricSpecifications().get(0).aggregationType()); - Assertions - .assertEquals( - "nchgej", model.serviceSpecification().metricSpecifications().get(0).enableRegionalMdmAccount()); - Assertions - .assertEquals("odmailzyd", model.serviceSpecification().metricSpecifications().get(0).sourceMdmAccount()); - Assertions.assertEquals("o", model.serviceSpecification().metricSpecifications().get(0).sourceMdmNamespace()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OperationListResponseTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OperationListResponseTests.java deleted file mode 100644 index 9e4fe9d60687..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OperationListResponseTests.java +++ /dev/null @@ -1,113 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.OperationInner; -import com.azure.resourcemanager.datafactory.models.OperationDisplay; -import com.azure.resourcemanager.datafactory.models.OperationListResponse; -import com.azure.resourcemanager.datafactory.models.OperationLogSpecification; -import com.azure.resourcemanager.datafactory.models.OperationMetricSpecification; -import com.azure.resourcemanager.datafactory.models.OperationServiceSpecification; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class OperationListResponseTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OperationListResponse model = - BinaryData - .fromString( - "{\"value\":[{\"name\":\"quvgjxpybczme\",\"origin\":\"tzopbsphrupidgsy\",\"display\":{\"description\":\"jhphoyc\",\"provider\":\"xaobhdxbmtqioqjz\",\"resource\":\"tbmufpo\",\"operation\":\"oizh\"},\"properties\":{\"serviceSpecification\":{\"logSpecifications\":[{},{},{}],\"metricSpecifications\":[{},{},{}]}}},{\"name\":\"oqijgkdmbpaz\",\"origin\":\"bc\",\"display\":{\"description\":\"dznrbtcqq\",\"provider\":\"qglhq\",\"resource\":\"ufo\",\"operation\":\"jywif\"},\"properties\":{\"serviceSpecification\":{\"logSpecifications\":[{},{}],\"metricSpecifications\":[{}]}}},{\"name\":\"f\",\"origin\":\"lzl\",\"display\":{\"description\":\"rifkwm\",\"provider\":\"ktsizntocipaou\",\"resource\":\"psqucmpoyf\",\"operation\":\"fogknygjofjdde\"},\"properties\":{\"serviceSpecification\":{\"logSpecifications\":[{},{},{},{}],\"metricSpecifications\":[{},{}]}}}],\"nextLink\":\"wnw\"}") - .toObject(OperationListResponse.class); - Assertions.assertEquals("quvgjxpybczme", model.value().get(0).name()); - Assertions.assertEquals("tzopbsphrupidgsy", model.value().get(0).origin()); - Assertions.assertEquals("jhphoyc", model.value().get(0).display().description()); - Assertions.assertEquals("xaobhdxbmtqioqjz", model.value().get(0).display().provider()); - Assertions.assertEquals("tbmufpo", model.value().get(0).display().resource()); - Assertions.assertEquals("oizh", model.value().get(0).display().operation()); - Assertions.assertEquals("wnw", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OperationListResponse model = - new OperationListResponse() - .withValue( - Arrays - .asList( - new OperationInner() - .withName("quvgjxpybczme") - .withOrigin("tzopbsphrupidgsy") - .withDisplay( - new OperationDisplay() - .withDescription("jhphoyc") - .withProvider("xaobhdxbmtqioqjz") - .withResource("tbmufpo") - .withOperation("oizh")) - .withServiceSpecification( - new OperationServiceSpecification() - .withLogSpecifications( - Arrays - .asList( - new OperationLogSpecification(), - new OperationLogSpecification(), - new OperationLogSpecification())) - .withMetricSpecifications( - Arrays - .asList( - new OperationMetricSpecification(), - new OperationMetricSpecification(), - new OperationMetricSpecification()))), - new OperationInner() - .withName("oqijgkdmbpaz") - .withOrigin("bc") - .withDisplay( - new OperationDisplay() - .withDescription("dznrbtcqq") - .withProvider("qglhq") - .withResource("ufo") - .withOperation("jywif")) - .withServiceSpecification( - new OperationServiceSpecification() - .withLogSpecifications( - Arrays - .asList( - new OperationLogSpecification(), new OperationLogSpecification())) - .withMetricSpecifications(Arrays.asList(new OperationMetricSpecification()))), - new OperationInner() - .withName("f") - .withOrigin("lzl") - .withDisplay( - new OperationDisplay() - .withDescription("rifkwm") - .withProvider("ktsizntocipaou") - .withResource("psqucmpoyf") - .withOperation("fogknygjofjdde")) - .withServiceSpecification( - new OperationServiceSpecification() - .withLogSpecifications( - Arrays - .asList( - new OperationLogSpecification(), - new OperationLogSpecification(), - new OperationLogSpecification(), - new OperationLogSpecification())) - .withMetricSpecifications( - Arrays - .asList( - new OperationMetricSpecification(), - new OperationMetricSpecification()))))) - .withNextLink("wnw"); - model = BinaryData.fromObject(model).toObject(OperationListResponse.class); - Assertions.assertEquals("quvgjxpybczme", model.value().get(0).name()); - Assertions.assertEquals("tzopbsphrupidgsy", model.value().get(0).origin()); - Assertions.assertEquals("jhphoyc", model.value().get(0).display().description()); - Assertions.assertEquals("xaobhdxbmtqioqjz", model.value().get(0).display().provider()); - Assertions.assertEquals("tbmufpo", model.value().get(0).display().resource()); - Assertions.assertEquals("oizh", model.value().get(0).display().operation()); - Assertions.assertEquals("wnw", model.nextLink()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OperationLogSpecificationTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OperationLogSpecificationTests.java deleted file mode 100644 index 2e26ad226ade..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OperationLogSpecificationTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.OperationLogSpecification; -import org.junit.jupiter.api.Assertions; - -public final class OperationLogSpecificationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OperationLogSpecification model = - BinaryData - .fromString( - "{\"name\":\"ifiyipjxsqwpgrj\",\"displayName\":\"norcjxvsnbyxqab\",\"blobDuration\":\"ocpcy\"}") - .toObject(OperationLogSpecification.class); - Assertions.assertEquals("ifiyipjxsqwpgrj", model.name()); - Assertions.assertEquals("norcjxvsnbyxqab", model.displayName()); - Assertions.assertEquals("ocpcy", model.blobDuration()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OperationLogSpecification model = - new OperationLogSpecification() - .withName("ifiyipjxsqwpgrj") - .withDisplayName("norcjxvsnbyxqab") - .withBlobDuration("ocpcy"); - model = BinaryData.fromObject(model).toObject(OperationLogSpecification.class); - Assertions.assertEquals("ifiyipjxsqwpgrj", model.name()); - Assertions.assertEquals("norcjxvsnbyxqab", model.displayName()); - Assertions.assertEquals("ocpcy", model.blobDuration()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OperationMetricAvailabilityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OperationMetricAvailabilityTests.java deleted file mode 100644 index c06e6c848750..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OperationMetricAvailabilityTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.OperationMetricAvailability; -import org.junit.jupiter.api.Assertions; - -public final class OperationMetricAvailabilityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OperationMetricAvailability model = - BinaryData - .fromString("{\"timeGrain\":\"ddntwndei\",\"blobDuration\":\"twnpzaoqvuhrhcf\"}") - .toObject(OperationMetricAvailability.class); - Assertions.assertEquals("ddntwndei", model.timeGrain()); - Assertions.assertEquals("twnpzaoqvuhrhcf", model.blobDuration()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OperationMetricAvailability model = - new OperationMetricAvailability().withTimeGrain("ddntwndei").withBlobDuration("twnpzaoqvuhrhcf"); - model = BinaryData.fromObject(model).toObject(OperationMetricAvailability.class); - Assertions.assertEquals("ddntwndei", model.timeGrain()); - Assertions.assertEquals("twnpzaoqvuhrhcf", model.blobDuration()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OperationMetricDimensionTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OperationMetricDimensionTests.java deleted file mode 100644 index 3c4fd8f66374..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OperationMetricDimensionTests.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.OperationMetricDimension; -import org.junit.jupiter.api.Assertions; - -public final class OperationMetricDimensionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OperationMetricDimension model = - BinaryData - .fromString("{\"name\":\"yd\",\"displayName\":\"lmjthjq\",\"toBeExportedForShoebox\":false}") - .toObject(OperationMetricDimension.class); - Assertions.assertEquals("yd", model.name()); - Assertions.assertEquals("lmjthjq", model.displayName()); - Assertions.assertEquals(false, model.toBeExportedForShoebox()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OperationMetricDimension model = - new OperationMetricDimension().withName("yd").withDisplayName("lmjthjq").withToBeExportedForShoebox(false); - model = BinaryData.fromObject(model).toObject(OperationMetricDimension.class); - Assertions.assertEquals("yd", model.name()); - Assertions.assertEquals("lmjthjq", model.displayName()); - Assertions.assertEquals(false, model.toBeExportedForShoebox()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OperationMetricSpecificationTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OperationMetricSpecificationTests.java deleted file mode 100644 index bdda3f473c4b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OperationMetricSpecificationTests.java +++ /dev/null @@ -1,87 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.OperationMetricAvailability; -import com.azure.resourcemanager.datafactory.models.OperationMetricDimension; -import com.azure.resourcemanager.datafactory.models.OperationMetricSpecification; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class OperationMetricSpecificationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OperationMetricSpecification model = - BinaryData - .fromString( - "{\"name\":\"urzafb\",\"displayName\":\"j\",\"displayDescription\":\"btoqcjmkljavbqid\",\"unit\":\"ajzyul\",\"aggregationType\":\"u\",\"enableRegionalMdmAccount\":\"krlkhbzhfepg\",\"sourceMdmAccount\":\"qex\",\"sourceMdmNamespace\":\"ocxscpaierhhbcs\",\"availabilities\":[{\"timeGrain\":\"majtjaod\",\"blobDuration\":\"bnbdxkqpxokajion\"},{\"timeGrain\":\"mexgstxgcp\",\"blobDuration\":\"gmaajrm\"},{\"timeGrain\":\"jwzrl\",\"blobDuration\":\"mcl\"}],\"dimensions\":[{\"name\":\"coejctbzaqs\",\"displayName\":\"y\",\"toBeExportedForShoebox\":false},{\"name\":\"fkgukdkexxppof\",\"displayName\":\"axcfjpgddtocjjx\",\"toBeExportedForShoebox\":true},{\"name\":\"o\",\"displayName\":\"xhdzxibqeojnx\",\"toBeExportedForShoebox\":true}]}") - .toObject(OperationMetricSpecification.class); - Assertions.assertEquals("urzafb", model.name()); - Assertions.assertEquals("j", model.displayName()); - Assertions.assertEquals("btoqcjmkljavbqid", model.displayDescription()); - Assertions.assertEquals("ajzyul", model.unit()); - Assertions.assertEquals("u", model.aggregationType()); - Assertions.assertEquals("krlkhbzhfepg", model.enableRegionalMdmAccount()); - Assertions.assertEquals("qex", model.sourceMdmAccount()); - Assertions.assertEquals("ocxscpaierhhbcs", model.sourceMdmNamespace()); - Assertions.assertEquals("majtjaod", model.availabilities().get(0).timeGrain()); - Assertions.assertEquals("bnbdxkqpxokajion", model.availabilities().get(0).blobDuration()); - Assertions.assertEquals("coejctbzaqs", model.dimensions().get(0).name()); - Assertions.assertEquals("y", model.dimensions().get(0).displayName()); - Assertions.assertEquals(false, model.dimensions().get(0).toBeExportedForShoebox()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OperationMetricSpecification model = - new OperationMetricSpecification() - .withName("urzafb") - .withDisplayName("j") - .withDisplayDescription("btoqcjmkljavbqid") - .withUnit("ajzyul") - .withAggregationType("u") - .withEnableRegionalMdmAccount("krlkhbzhfepg") - .withSourceMdmAccount("qex") - .withSourceMdmNamespace("ocxscpaierhhbcs") - .withAvailabilities( - Arrays - .asList( - new OperationMetricAvailability() - .withTimeGrain("majtjaod") - .withBlobDuration("bnbdxkqpxokajion"), - new OperationMetricAvailability().withTimeGrain("mexgstxgcp").withBlobDuration("gmaajrm"), - new OperationMetricAvailability().withTimeGrain("jwzrl").withBlobDuration("mcl"))) - .withDimensions( - Arrays - .asList( - new OperationMetricDimension() - .withName("coejctbzaqs") - .withDisplayName("y") - .withToBeExportedForShoebox(false), - new OperationMetricDimension() - .withName("fkgukdkexxppof") - .withDisplayName("axcfjpgddtocjjx") - .withToBeExportedForShoebox(true), - new OperationMetricDimension() - .withName("o") - .withDisplayName("xhdzxibqeojnx") - .withToBeExportedForShoebox(true))); - model = BinaryData.fromObject(model).toObject(OperationMetricSpecification.class); - Assertions.assertEquals("urzafb", model.name()); - Assertions.assertEquals("j", model.displayName()); - Assertions.assertEquals("btoqcjmkljavbqid", model.displayDescription()); - Assertions.assertEquals("ajzyul", model.unit()); - Assertions.assertEquals("u", model.aggregationType()); - Assertions.assertEquals("krlkhbzhfepg", model.enableRegionalMdmAccount()); - Assertions.assertEquals("qex", model.sourceMdmAccount()); - Assertions.assertEquals("ocxscpaierhhbcs", model.sourceMdmNamespace()); - Assertions.assertEquals("majtjaod", model.availabilities().get(0).timeGrain()); - Assertions.assertEquals("bnbdxkqpxokajion", model.availabilities().get(0).blobDuration()); - Assertions.assertEquals("coejctbzaqs", model.dimensions().get(0).name()); - Assertions.assertEquals("y", model.dimensions().get(0).displayName()); - Assertions.assertEquals(false, model.dimensions().get(0).toBeExportedForShoebox()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OperationPropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OperationPropertiesTests.java deleted file mode 100644 index ac1aeab8fd7c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OperationPropertiesTests.java +++ /dev/null @@ -1,229 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.OperationProperties; -import com.azure.resourcemanager.datafactory.models.OperationLogSpecification; -import com.azure.resourcemanager.datafactory.models.OperationMetricAvailability; -import com.azure.resourcemanager.datafactory.models.OperationMetricDimension; -import com.azure.resourcemanager.datafactory.models.OperationMetricSpecification; -import com.azure.resourcemanager.datafactory.models.OperationServiceSpecification; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class OperationPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OperationProperties model = - BinaryData - .fromString( - "{\"serviceSpecification\":{\"logSpecifications\":[{\"name\":\"atscmd\",\"displayName\":\"jhulsuuvmkjo\",\"blobDuration\":\"rwfndiod\"},{\"name\":\"slwejdpvw\",\"displayName\":\"oqpsoa\",\"blobDuration\":\"tazak\"}],\"metricSpecifications\":[{\"name\":\"hbcryffdfdosyge\",\"displayName\":\"aojakhmsbzjhcrz\",\"displayDescription\":\"dphlxaolt\",\"unit\":\"trg\",\"aggregationType\":\"bpf\",\"enableRegionalMdmAccount\":\"s\",\"sourceMdmAccount\":\"zgvfcjrwz\",\"sourceMdmNamespace\":\"xjtfelluwfzit\",\"availabilities\":[{\"timeGrain\":\"qfpjk\",\"blobDuration\":\"xofpdvhpfxxypi\"},{\"timeGrain\":\"nmayhuybb\",\"blobDuration\":\"odepoogin\"},{\"timeGrain\":\"amiheognarxz\",\"blobDuration\":\"heotusiv\"}],\"dimensions\":[{\"name\":\"ciqihnhung\",\"displayName\":\"jzrnf\",\"toBeExportedForShoebox\":true}]},{\"name\":\"ispe\",\"displayName\":\"tzfkufubl\",\"displayDescription\":\"fxqeof\",\"unit\":\"e\",\"aggregationType\":\"hqjbasvmsmj\",\"enableRegionalMdmAccount\":\"lngsntnbybkzgcwr\",\"sourceMdmAccount\":\"lxxwrljdouskc\",\"sourceMdmNamespace\":\"kocrcjdkwtnhx\",\"availabilities\":[{\"timeGrain\":\"iksqr\",\"blobDuration\":\"ssainqpjwnzll\"},{\"timeGrain\":\"mppeebvmgxs\",\"blobDuration\":\"kyqduujit\"},{\"timeGrain\":\"czdzev\",\"blobDuration\":\"hkr\"},{\"timeGrain\":\"d\",\"blobDuration\":\"p\"}],\"dimensions\":[{\"name\":\"kvwrwjfeu\",\"displayName\":\"hutje\",\"toBeExportedForShoebox\":false},{\"name\":\"ldhugjzzdatqxh\",\"displayName\":\"dgeablgphu\",\"toBeExportedForShoebox\":true},{\"name\":\"dvkaozw\",\"displayName\":\"ftyhxhurokf\",\"toBeExportedForShoebox\":true}]},{\"name\":\"lniwpwcukjfkgiaw\",\"displayName\":\"lryplwckbasyy\",\"displayDescription\":\"ddhsgcbacphe\",\"unit\":\"ot\",\"aggregationType\":\"qgoulznd\",\"enableRegionalMdmAccount\":\"kwy\",\"sourceMdmAccount\":\"gfgibm\",\"sourceMdmNamespace\":\"gakeqsr\",\"availabilities\":[{\"timeGrain\":\"qqedqytbciqfou\",\"blobDuration\":\"mmnkzsmodmgl\"},{\"timeGrain\":\"gpbkwtmut\",\"blobDuration\":\"qktapspwgcuert\"},{\"timeGrain\":\"kdosvqw\",\"blobDuration\":\"mdgbbjfdd\"},{\"timeGrain\":\"bmbexppbhtqqro\",\"blobDuration\":\"p\"}],\"dimensions\":[{\"name\":\"lgbquxig\",\"displayName\":\"jgzjaoyfhrtx\",\"toBeExportedForShoebox\":false}]}]}}") - .toObject(OperationProperties.class); - Assertions.assertEquals("atscmd", model.serviceSpecification().logSpecifications().get(0).name()); - Assertions.assertEquals("jhulsuuvmkjo", model.serviceSpecification().logSpecifications().get(0).displayName()); - Assertions.assertEquals("rwfndiod", model.serviceSpecification().logSpecifications().get(0).blobDuration()); - Assertions.assertEquals("hbcryffdfdosyge", model.serviceSpecification().metricSpecifications().get(0).name()); - Assertions - .assertEquals("aojakhmsbzjhcrz", model.serviceSpecification().metricSpecifications().get(0).displayName()); - Assertions - .assertEquals("dphlxaolt", model.serviceSpecification().metricSpecifications().get(0).displayDescription()); - Assertions.assertEquals("trg", model.serviceSpecification().metricSpecifications().get(0).unit()); - Assertions.assertEquals("bpf", model.serviceSpecification().metricSpecifications().get(0).aggregationType()); - Assertions - .assertEquals("s", model.serviceSpecification().metricSpecifications().get(0).enableRegionalMdmAccount()); - Assertions - .assertEquals("zgvfcjrwz", model.serviceSpecification().metricSpecifications().get(0).sourceMdmAccount()); - Assertions - .assertEquals( - "xjtfelluwfzit", model.serviceSpecification().metricSpecifications().get(0).sourceMdmNamespace()); - Assertions - .assertEquals( - "qfpjk", - model.serviceSpecification().metricSpecifications().get(0).availabilities().get(0).timeGrain()); - Assertions - .assertEquals( - "xofpdvhpfxxypi", - model.serviceSpecification().metricSpecifications().get(0).availabilities().get(0).blobDuration()); - Assertions - .assertEquals( - "ciqihnhung", model.serviceSpecification().metricSpecifications().get(0).dimensions().get(0).name()); - Assertions - .assertEquals( - "jzrnf", model.serviceSpecification().metricSpecifications().get(0).dimensions().get(0).displayName()); - Assertions - .assertEquals( - true, - model - .serviceSpecification() - .metricSpecifications() - .get(0) - .dimensions() - .get(0) - .toBeExportedForShoebox()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OperationProperties model = - new OperationProperties() - .withServiceSpecification( - new OperationServiceSpecification() - .withLogSpecifications( - Arrays - .asList( - new OperationLogSpecification() - .withName("atscmd") - .withDisplayName("jhulsuuvmkjo") - .withBlobDuration("rwfndiod"), - new OperationLogSpecification() - .withName("slwejdpvw") - .withDisplayName("oqpsoa") - .withBlobDuration("tazak"))) - .withMetricSpecifications( - Arrays - .asList( - new OperationMetricSpecification() - .withName("hbcryffdfdosyge") - .withDisplayName("aojakhmsbzjhcrz") - .withDisplayDescription("dphlxaolt") - .withUnit("trg") - .withAggregationType("bpf") - .withEnableRegionalMdmAccount("s") - .withSourceMdmAccount("zgvfcjrwz") - .withSourceMdmNamespace("xjtfelluwfzit") - .withAvailabilities( - Arrays - .asList( - new OperationMetricAvailability() - .withTimeGrain("qfpjk") - .withBlobDuration("xofpdvhpfxxypi"), - new OperationMetricAvailability() - .withTimeGrain("nmayhuybb") - .withBlobDuration("odepoogin"), - new OperationMetricAvailability() - .withTimeGrain("amiheognarxz") - .withBlobDuration("heotusiv"))) - .withDimensions( - Arrays - .asList( - new OperationMetricDimension() - .withName("ciqihnhung") - .withDisplayName("jzrnf") - .withToBeExportedForShoebox(true))), - new OperationMetricSpecification() - .withName("ispe") - .withDisplayName("tzfkufubl") - .withDisplayDescription("fxqeof") - .withUnit("e") - .withAggregationType("hqjbasvmsmj") - .withEnableRegionalMdmAccount("lngsntnbybkzgcwr") - .withSourceMdmAccount("lxxwrljdouskc") - .withSourceMdmNamespace("kocrcjdkwtnhx") - .withAvailabilities( - Arrays - .asList( - new OperationMetricAvailability() - .withTimeGrain("iksqr") - .withBlobDuration("ssainqpjwnzll"), - new OperationMetricAvailability() - .withTimeGrain("mppeebvmgxs") - .withBlobDuration("kyqduujit"), - new OperationMetricAvailability() - .withTimeGrain("czdzev") - .withBlobDuration("hkr"), - new OperationMetricAvailability() - .withTimeGrain("d") - .withBlobDuration("p"))) - .withDimensions( - Arrays - .asList( - new OperationMetricDimension() - .withName("kvwrwjfeu") - .withDisplayName("hutje") - .withToBeExportedForShoebox(false), - new OperationMetricDimension() - .withName("ldhugjzzdatqxh") - .withDisplayName("dgeablgphu") - .withToBeExportedForShoebox(true), - new OperationMetricDimension() - .withName("dvkaozw") - .withDisplayName("ftyhxhurokf") - .withToBeExportedForShoebox(true))), - new OperationMetricSpecification() - .withName("lniwpwcukjfkgiaw") - .withDisplayName("lryplwckbasyy") - .withDisplayDescription("ddhsgcbacphe") - .withUnit("ot") - .withAggregationType("qgoulznd") - .withEnableRegionalMdmAccount("kwy") - .withSourceMdmAccount("gfgibm") - .withSourceMdmNamespace("gakeqsr") - .withAvailabilities( - Arrays - .asList( - new OperationMetricAvailability() - .withTimeGrain("qqedqytbciqfou") - .withBlobDuration("mmnkzsmodmgl"), - new OperationMetricAvailability() - .withTimeGrain("gpbkwtmut") - .withBlobDuration("qktapspwgcuert"), - new OperationMetricAvailability() - .withTimeGrain("kdosvqw") - .withBlobDuration("mdgbbjfdd"), - new OperationMetricAvailability() - .withTimeGrain("bmbexppbhtqqro") - .withBlobDuration("p"))) - .withDimensions( - Arrays - .asList( - new OperationMetricDimension() - .withName("lgbquxig") - .withDisplayName("jgzjaoyfhrtx") - .withToBeExportedForShoebox(false)))))); - model = BinaryData.fromObject(model).toObject(OperationProperties.class); - Assertions.assertEquals("atscmd", model.serviceSpecification().logSpecifications().get(0).name()); - Assertions.assertEquals("jhulsuuvmkjo", model.serviceSpecification().logSpecifications().get(0).displayName()); - Assertions.assertEquals("rwfndiod", model.serviceSpecification().logSpecifications().get(0).blobDuration()); - Assertions.assertEquals("hbcryffdfdosyge", model.serviceSpecification().metricSpecifications().get(0).name()); - Assertions - .assertEquals("aojakhmsbzjhcrz", model.serviceSpecification().metricSpecifications().get(0).displayName()); - Assertions - .assertEquals("dphlxaolt", model.serviceSpecification().metricSpecifications().get(0).displayDescription()); - Assertions.assertEquals("trg", model.serviceSpecification().metricSpecifications().get(0).unit()); - Assertions.assertEquals("bpf", model.serviceSpecification().metricSpecifications().get(0).aggregationType()); - Assertions - .assertEquals("s", model.serviceSpecification().metricSpecifications().get(0).enableRegionalMdmAccount()); - Assertions - .assertEquals("zgvfcjrwz", model.serviceSpecification().metricSpecifications().get(0).sourceMdmAccount()); - Assertions - .assertEquals( - "xjtfelluwfzit", model.serviceSpecification().metricSpecifications().get(0).sourceMdmNamespace()); - Assertions - .assertEquals( - "qfpjk", - model.serviceSpecification().metricSpecifications().get(0).availabilities().get(0).timeGrain()); - Assertions - .assertEquals( - "xofpdvhpfxxypi", - model.serviceSpecification().metricSpecifications().get(0).availabilities().get(0).blobDuration()); - Assertions - .assertEquals( - "ciqihnhung", model.serviceSpecification().metricSpecifications().get(0).dimensions().get(0).name()); - Assertions - .assertEquals( - "jzrnf", model.serviceSpecification().metricSpecifications().get(0).dimensions().get(0).displayName()); - Assertions - .assertEquals( - true, - model - .serviceSpecification() - .metricSpecifications() - .get(0) - .dimensions() - .get(0) - .toBeExportedForShoebox()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OperationServiceSpecificationTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OperationServiceSpecificationTests.java deleted file mode 100644 index 5a61e5cc7090..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OperationServiceSpecificationTests.java +++ /dev/null @@ -1,110 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.OperationLogSpecification; -import com.azure.resourcemanager.datafactory.models.OperationMetricAvailability; -import com.azure.resourcemanager.datafactory.models.OperationMetricDimension; -import com.azure.resourcemanager.datafactory.models.OperationMetricSpecification; -import com.azure.resourcemanager.datafactory.models.OperationServiceSpecification; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class OperationServiceSpecificationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OperationServiceSpecification model = - BinaryData - .fromString( - "{\"logSpecifications\":[{\"name\":\"ujysvle\",\"displayName\":\"vfqawrlyxwjkcpr\",\"blobDuration\":\"wbxgjvt\"},{\"name\":\"p\",\"displayName\":\"szdnr\",\"blobDuration\":\"qguhmuo\"}],\"metricSpecifications\":[{\"name\":\"rwzwbng\",\"displayName\":\"tnwu\",\"displayDescription\":\"gazxuf\",\"unit\":\"uckyf\",\"aggregationType\":\"rfidfvzwdz\",\"enableRegionalMdmAccount\":\"tymw\",\"sourceMdmAccount\":\"dkfthwxmnt\",\"sourceMdmNamespace\":\"waopvkmijcmmxd\",\"availabilities\":[{\"timeGrain\":\"fsrpymzidnse\",\"blobDuration\":\"xtbzsgfyccsne\"},{\"timeGrain\":\"dwzjeiach\",\"blobDuration\":\"osfln\"},{\"timeGrain\":\"sfqpteehz\",\"blobDuration\":\"ypyqrimzinp\"}],\"dimensions\":[{\"name\":\"dkirsoodqxhcr\",\"displayName\":\"ohjtckw\",\"toBeExportedForShoebox\":true}]}]}") - .toObject(OperationServiceSpecification.class); - Assertions.assertEquals("ujysvle", model.logSpecifications().get(0).name()); - Assertions.assertEquals("vfqawrlyxwjkcpr", model.logSpecifications().get(0).displayName()); - Assertions.assertEquals("wbxgjvt", model.logSpecifications().get(0).blobDuration()); - Assertions.assertEquals("rwzwbng", model.metricSpecifications().get(0).name()); - Assertions.assertEquals("tnwu", model.metricSpecifications().get(0).displayName()); - Assertions.assertEquals("gazxuf", model.metricSpecifications().get(0).displayDescription()); - Assertions.assertEquals("uckyf", model.metricSpecifications().get(0).unit()); - Assertions.assertEquals("rfidfvzwdz", model.metricSpecifications().get(0).aggregationType()); - Assertions.assertEquals("tymw", model.metricSpecifications().get(0).enableRegionalMdmAccount()); - Assertions.assertEquals("dkfthwxmnt", model.metricSpecifications().get(0).sourceMdmAccount()); - Assertions.assertEquals("waopvkmijcmmxd", model.metricSpecifications().get(0).sourceMdmNamespace()); - Assertions - .assertEquals("fsrpymzidnse", model.metricSpecifications().get(0).availabilities().get(0).timeGrain()); - Assertions - .assertEquals("xtbzsgfyccsne", model.metricSpecifications().get(0).availabilities().get(0).blobDuration()); - Assertions.assertEquals("dkirsoodqxhcr", model.metricSpecifications().get(0).dimensions().get(0).name()); - Assertions.assertEquals("ohjtckw", model.metricSpecifications().get(0).dimensions().get(0).displayName()); - Assertions.assertEquals(true, model.metricSpecifications().get(0).dimensions().get(0).toBeExportedForShoebox()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OperationServiceSpecification model = - new OperationServiceSpecification() - .withLogSpecifications( - Arrays - .asList( - new OperationLogSpecification() - .withName("ujysvle") - .withDisplayName("vfqawrlyxwjkcpr") - .withBlobDuration("wbxgjvt"), - new OperationLogSpecification() - .withName("p") - .withDisplayName("szdnr") - .withBlobDuration("qguhmuo"))) - .withMetricSpecifications( - Arrays - .asList( - new OperationMetricSpecification() - .withName("rwzwbng") - .withDisplayName("tnwu") - .withDisplayDescription("gazxuf") - .withUnit("uckyf") - .withAggregationType("rfidfvzwdz") - .withEnableRegionalMdmAccount("tymw") - .withSourceMdmAccount("dkfthwxmnt") - .withSourceMdmNamespace("waopvkmijcmmxd") - .withAvailabilities( - Arrays - .asList( - new OperationMetricAvailability() - .withTimeGrain("fsrpymzidnse") - .withBlobDuration("xtbzsgfyccsne"), - new OperationMetricAvailability() - .withTimeGrain("dwzjeiach") - .withBlobDuration("osfln"), - new OperationMetricAvailability() - .withTimeGrain("sfqpteehz") - .withBlobDuration("ypyqrimzinp"))) - .withDimensions( - Arrays - .asList( - new OperationMetricDimension() - .withName("dkirsoodqxhcr") - .withDisplayName("ohjtckw") - .withToBeExportedForShoebox(true))))); - model = BinaryData.fromObject(model).toObject(OperationServiceSpecification.class); - Assertions.assertEquals("ujysvle", model.logSpecifications().get(0).name()); - Assertions.assertEquals("vfqawrlyxwjkcpr", model.logSpecifications().get(0).displayName()); - Assertions.assertEquals("wbxgjvt", model.logSpecifications().get(0).blobDuration()); - Assertions.assertEquals("rwzwbng", model.metricSpecifications().get(0).name()); - Assertions.assertEquals("tnwu", model.metricSpecifications().get(0).displayName()); - Assertions.assertEquals("gazxuf", model.metricSpecifications().get(0).displayDescription()); - Assertions.assertEquals("uckyf", model.metricSpecifications().get(0).unit()); - Assertions.assertEquals("rfidfvzwdz", model.metricSpecifications().get(0).aggregationType()); - Assertions.assertEquals("tymw", model.metricSpecifications().get(0).enableRegionalMdmAccount()); - Assertions.assertEquals("dkfthwxmnt", model.metricSpecifications().get(0).sourceMdmAccount()); - Assertions.assertEquals("waopvkmijcmmxd", model.metricSpecifications().get(0).sourceMdmNamespace()); - Assertions - .assertEquals("fsrpymzidnse", model.metricSpecifications().get(0).availabilities().get(0).timeGrain()); - Assertions - .assertEquals("xtbzsgfyccsne", model.metricSpecifications().get(0).availabilities().get(0).blobDuration()); - Assertions.assertEquals("dkirsoodqxhcr", model.metricSpecifications().get(0).dimensions().get(0).name()); - Assertions.assertEquals("ohjtckw", model.metricSpecifications().get(0).dimensions().get(0).displayName()); - Assertions.assertEquals(true, model.metricSpecifications().get(0).dimensions().get(0).toBeExportedForShoebox()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OperationsListMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OperationsListMockTests.java deleted file mode 100644 index 713c873aa9fb..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OperationsListMockTests.java +++ /dev/null @@ -1,117 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.Operation; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class OperationsListMockTests { - @Test - public void testList() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"name\":\"mjlkknw\",\"origin\":\"avmrnrhsvkj\",\"display\":{\"description\":\"rmiivk\",\"provider\":\"cqynvfekjvclbkk\",\"resource\":\"frbdlsjftqahfvpm\",\"operation\":\"mu\"},\"properties\":{\"serviceSpecification\":{\"logSpecifications\":[{\"name\":\"wkyhn\",\"displayName\":\"tknpb\",\"blobDuration\":\"tkwstumjtg\"}],\"metricSpecifications\":[{\"name\":\"psnldjjg\",\"displayName\":\"bbon\",\"displayDescription\":\"m\",\"unit\":\"seykprgpqnesu\",\"aggregationType\":\"smtgzadpwhldx\",\"enableRegionalMdmAccount\":\"rytthzsgmugzssgz\",\"sourceMdmAccount\":\"vvqetvc\",\"sourceMdmNamespace\":\"bz\",\"availabilities\":[{},{}],\"dimensions\":[{}]},{\"name\":\"tmabrhiaomld\",\"displayName\":\"qoajpxtkraf\",\"displayDescription\":\"iquir\",\"unit\":\"qusdznnhhjdfy\",\"aggregationType\":\"iupdmbhaumpw\",\"enableRegionalMdmAccount\":\"ero\",\"sourceMdmAccount\":\"nvjouzjkjxbraqz\",\"sourceMdmNamespace\":\"vogfmpdlm\",\"availabilities\":[{},{},{},{}],\"dimensions\":[{},{},{},{}]}]}}}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.operations().list(com.azure.core.util.Context.NONE); - - Assertions.assertEquals("mjlkknw", response.iterator().next().name()); - Assertions.assertEquals("avmrnrhsvkj", response.iterator().next().origin()); - Assertions.assertEquals("rmiivk", response.iterator().next().display().description()); - Assertions.assertEquals("cqynvfekjvclbkk", response.iterator().next().display().provider()); - Assertions.assertEquals("frbdlsjftqahfvpm", response.iterator().next().display().resource()); - Assertions.assertEquals("mu", response.iterator().next().display().operation()); - Assertions - .assertEquals("wkyhn", response.iterator().next().serviceSpecification().logSpecifications().get(0).name()); - Assertions - .assertEquals( - "tknpb", response.iterator().next().serviceSpecification().logSpecifications().get(0).displayName()); - Assertions - .assertEquals( - "tkwstumjtg", - response.iterator().next().serviceSpecification().logSpecifications().get(0).blobDuration()); - Assertions - .assertEquals( - "psnldjjg", response.iterator().next().serviceSpecification().metricSpecifications().get(0).name()); - Assertions - .assertEquals( - "bbon", response.iterator().next().serviceSpecification().metricSpecifications().get(0).displayName()); - Assertions - .assertEquals( - "m", - response.iterator().next().serviceSpecification().metricSpecifications().get(0).displayDescription()); - Assertions - .assertEquals( - "seykprgpqnesu", - response.iterator().next().serviceSpecification().metricSpecifications().get(0).unit()); - Assertions - .assertEquals( - "smtgzadpwhldx", - response.iterator().next().serviceSpecification().metricSpecifications().get(0).aggregationType()); - Assertions - .assertEquals( - "rytthzsgmugzssgz", - response - .iterator() - .next() - .serviceSpecification() - .metricSpecifications() - .get(0) - .enableRegionalMdmAccount()); - Assertions - .assertEquals( - "vvqetvc", - response.iterator().next().serviceSpecification().metricSpecifications().get(0).sourceMdmAccount()); - Assertions - .assertEquals( - "bz", - response.iterator().next().serviceSpecification().metricSpecifications().get(0).sourceMdmNamespace()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OracleCloudStorageLocationTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OracleCloudStorageLocationTests.java deleted file mode 100644 index 5b070eae13c8..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OracleCloudStorageLocationTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.OracleCloudStorageLocation; - -public final class OracleCloudStorageLocationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OracleCloudStorageLocation model = - BinaryData - .fromString( - "{\"type\":\"OracleCloudStorageLocation\",\"bucketName\":\"datamdofgeoagfuoft\",\"version\":\"dataodwxmdajwiygmgs\",\"folderPath\":\"datamdmze\",\"fileName\":\"datarstgfczljdnc\",\"\":{\"cvucgytoxu\":\"datajvamyyznmrgcdo\"}}") - .toObject(OracleCloudStorageLocation.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OracleCloudStorageLocation model = - new OracleCloudStorageLocation() - .withFolderPath("datamdmze") - .withFileName("datarstgfczljdnc") - .withBucketName("datamdofgeoagfuoft") - .withVersion("dataodwxmdajwiygmgs"); - model = BinaryData.fromObject(model).toObject(OracleCloudStorageLocation.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OracleCloudStorageReadSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OracleCloudStorageReadSettingsTests.java deleted file mode 100644 index aa99b3f21c24..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OracleCloudStorageReadSettingsTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.OracleCloudStorageReadSettings; - -public final class OracleCloudStorageReadSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OracleCloudStorageReadSettings model = - BinaryData - .fromString( - "{\"type\":\"OracleCloudStorageReadSettings\",\"recursive\":\"datauazoblxxks\",\"wildcardFolderPath\":\"datatiz\",\"wildcardFileName\":\"datavihg\",\"prefix\":\"datadolodfodokh\",\"fileListPath\":\"datag\",\"enablePartitionDiscovery\":\"datadhlnar\",\"partitionRootPath\":\"datauoa\",\"deleteFilesAfterCompletion\":\"datairiccuyqtjvrz\",\"modifiedDatetimeStart\":\"datagmgfa\",\"modifiedDatetimeEnd\":\"datab\",\"maxConcurrentConnections\":\"dataaenvpzd\",\"disableMetricsCollection\":\"datapizgaujvc\",\"\":{\"trkdno\":\"dataybxorrceomsqar\"}}") - .toObject(OracleCloudStorageReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OracleCloudStorageReadSettings model = - new OracleCloudStorageReadSettings() - .withMaxConcurrentConnections("dataaenvpzd") - .withDisableMetricsCollection("datapizgaujvc") - .withRecursive("datauazoblxxks") - .withWildcardFolderPath("datatiz") - .withWildcardFileName("datavihg") - .withPrefix("datadolodfodokh") - .withFileListPath("datag") - .withEnablePartitionDiscovery("datadhlnar") - .withPartitionRootPath("datauoa") - .withDeleteFilesAfterCompletion("datairiccuyqtjvrz") - .withModifiedDatetimeStart("datagmgfa") - .withModifiedDatetimeEnd("datab"); - model = BinaryData.fromObject(model).toObject(OracleCloudStorageReadSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OraclePartitionSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OraclePartitionSettingsTests.java deleted file mode 100644 index 209d5404890e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OraclePartitionSettingsTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.OraclePartitionSettings; - -public final class OraclePartitionSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OraclePartitionSettings model = - BinaryData - .fromString( - "{\"partitionNames\":\"datarjooepfb\",\"partitionColumnName\":\"databffxansgntjmnl\",\"partitionUpperBound\":\"datalrjdkyp\",\"partitionLowerBound\":\"datavilgn\"}") - .toObject(OraclePartitionSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OraclePartitionSettings model = - new OraclePartitionSettings() - .withPartitionNames("datarjooepfb") - .withPartitionColumnName("databffxansgntjmnl") - .withPartitionUpperBound("datalrjdkyp") - .withPartitionLowerBound("datavilgn"); - model = BinaryData.fromObject(model).toObject(OraclePartitionSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OracleServiceCloudObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OracleServiceCloudObjectDatasetTests.java deleted file mode 100644 index 1825a6ce133d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OracleServiceCloudObjectDatasetTests.java +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.OracleServiceCloudObjectDataset; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class OracleServiceCloudObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OracleServiceCloudObjectDataset model = - BinaryData - .fromString( - "{\"type\":\"OracleServiceCloudObject\",\"typeProperties\":{\"tableName\":\"datakkv\"},\"description\":\"aehjjirvjq\",\"structure\":\"datavqmdmrac\",\"schema\":\"dataffdralihhs\",\"linkedServiceName\":{\"referenceName\":\"cygyzhcv\",\"parameters\":{\"dxrmyzvti\":\"datayrjl\"}},\"parameters\":{\"xoyjyhutwedigiv\":{\"type\":\"Float\",\"defaultValue\":\"datarubx\"},\"mcaxbqpmfhji\":{\"type\":\"Array\",\"defaultValue\":\"dataccxfnatn\"},\"lzvrchmy\":{\"type\":\"Array\",\"defaultValue\":\"datanbdqitghnm\"},\"h\":{\"type\":\"String\",\"defaultValue\":\"datarmwy\"}},\"annotations\":[\"dataplgqqqgrbr\",\"datahvipgt\"],\"folder\":{\"name\":\"aoylwhfm\"},\"\":{\"gypjixdmobadydw\":\"dataea\",\"wdvclsx\":\"datae\",\"xr\":\"dataqdchnzib\"}}") - .toObject(OracleServiceCloudObjectDataset.class); - Assertions.assertEquals("aehjjirvjq", model.description()); - Assertions.assertEquals("cygyzhcv", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("xoyjyhutwedigiv").type()); - Assertions.assertEquals("aoylwhfm", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OracleServiceCloudObjectDataset model = - new OracleServiceCloudObjectDataset() - .withDescription("aehjjirvjq") - .withStructure("datavqmdmrac") - .withSchema("dataffdralihhs") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("cygyzhcv") - .withParameters(mapOf("dxrmyzvti", "datayrjl"))) - .withParameters( - mapOf( - "xoyjyhutwedigiv", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datarubx"), - "mcaxbqpmfhji", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("dataccxfnatn"), - "lzvrchmy", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datanbdqitghnm"), - "h", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datarmwy"))) - .withAnnotations(Arrays.asList("dataplgqqqgrbr", "datahvipgt")) - .withFolder(new DatasetFolder().withName("aoylwhfm")) - .withTableName("datakkv"); - model = BinaryData.fromObject(model).toObject(OracleServiceCloudObjectDataset.class); - Assertions.assertEquals("aehjjirvjq", model.description()); - Assertions.assertEquals("cygyzhcv", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("xoyjyhutwedigiv").type()); - Assertions.assertEquals("aoylwhfm", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OracleServiceCloudSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OracleServiceCloudSourceTests.java deleted file mode 100644 index 235b81f2ffa8..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OracleServiceCloudSourceTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.OracleServiceCloudSource; - -public final class OracleServiceCloudSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OracleServiceCloudSource model = - BinaryData - .fromString( - "{\"type\":\"OracleServiceCloudSource\",\"query\":\"datasdeequovanag\",\"queryTimeout\":\"dataacsfbmb\",\"additionalColumns\":\"dataefqku\",\"sourceRetryCount\":\"datayumoamqxwluslxyt\",\"sourceRetryWait\":\"databjledjxblobknfpd\",\"maxConcurrentConnections\":\"datahzgj\",\"disableMetricsCollection\":\"dataomctbgoccypxsrh\",\"\":{\"kzexhbpyo\":\"databnuflfzaw\",\"clboi\":\"datafbj\",\"ythxzrvjfsmfk\":\"datajpjnhwwyhx\"}}") - .toObject(OracleServiceCloudSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OracleServiceCloudSource model = - new OracleServiceCloudSource() - .withSourceRetryCount("datayumoamqxwluslxyt") - .withSourceRetryWait("databjledjxblobknfpd") - .withMaxConcurrentConnections("datahzgj") - .withDisableMetricsCollection("dataomctbgoccypxsrh") - .withQueryTimeout("dataacsfbmb") - .withAdditionalColumns("dataefqku") - .withQuery("datasdeequovanag"); - model = BinaryData.fromObject(model).toObject(OracleServiceCloudSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OracleSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OracleSinkTests.java deleted file mode 100644 index 7d40caca3c97..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OracleSinkTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.OracleSink; - -public final class OracleSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OracleSink model = - BinaryData - .fromString( - "{\"type\":\"OracleSink\",\"preCopyScript\":\"datawiawbwzyvbuifh\",\"writeBatchSize\":\"dataatoplqc\",\"writeBatchTimeout\":\"datasrlzwuqkprf\",\"sinkRetryCount\":\"datacowtoqfwbsbkob\",\"sinkRetryWait\":\"datassj\",\"maxConcurrentConnections\":\"datahfcxwrjbrxm\",\"disableMetricsCollection\":\"dataetttul\",\"\":{\"mosiskihf\":\"datajbhespf\"}}") - .toObject(OracleSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OracleSink model = - new OracleSink() - .withWriteBatchSize("dataatoplqc") - .withWriteBatchTimeout("datasrlzwuqkprf") - .withSinkRetryCount("datacowtoqfwbsbkob") - .withSinkRetryWait("datassj") - .withMaxConcurrentConnections("datahfcxwrjbrxm") - .withDisableMetricsCollection("dataetttul") - .withPreCopyScript("datawiawbwzyvbuifh"); - model = BinaryData.fromObject(model).toObject(OracleSink.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OracleSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OracleSourceTests.java deleted file mode 100644 index d46019e73223..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OracleSourceTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.OraclePartitionSettings; -import com.azure.resourcemanager.datafactory.models.OracleSource; - -public final class OracleSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OracleSource model = - BinaryData - .fromString( - "{\"type\":\"OracleSource\",\"oracleReaderQuery\":\"dataeyrnbubyabtowbu\",\"queryTimeout\":\"datalwbgvzuxfsmf\",\"partitionOption\":\"datazuoq\",\"partitionSettings\":{\"partitionNames\":\"datafv\",\"partitionColumnName\":\"datayl\",\"partitionUpperBound\":\"datajylhv\",\"partitionLowerBound\":\"datajzrqwjtswemotj\"},\"additionalColumns\":\"datajyavkyjvctq\",\"sourceRetryCount\":\"datacz\",\"sourceRetryWait\":\"datapaeyklxsvcbr\",\"maxConcurrentConnections\":\"datalt\",\"disableMetricsCollection\":\"datamdsngoaofmrph\",\"\":{\"exibo\":\"datafrunkcgdnha\"}}") - .toObject(OracleSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OracleSource model = - new OracleSource() - .withSourceRetryCount("datacz") - .withSourceRetryWait("datapaeyklxsvcbr") - .withMaxConcurrentConnections("datalt") - .withDisableMetricsCollection("datamdsngoaofmrph") - .withOracleReaderQuery("dataeyrnbubyabtowbu") - .withQueryTimeout("datalwbgvzuxfsmf") - .withPartitionOption("datazuoq") - .withPartitionSettings( - new OraclePartitionSettings() - .withPartitionNames("datafv") - .withPartitionColumnName("datayl") - .withPartitionUpperBound("datajylhv") - .withPartitionLowerBound("datajzrqwjtswemotj")) - .withAdditionalColumns("datajyavkyjvctq"); - model = BinaryData.fromObject(model).toObject(OracleSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OracleTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OracleTableDatasetTests.java deleted file mode 100644 index df5c1f24ecf1..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OracleTableDatasetTests.java +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.OracleTableDataset; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class OracleTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OracleTableDataset model = - BinaryData - .fromString( - "{\"type\":\"OracleTable\",\"typeProperties\":{\"tableName\":\"datanaphifkfrpmpl\",\"schema\":\"datap\",\"table\":\"datarmj\"},\"description\":\"fpghtbttpkim\",\"structure\":\"datahnkkhbykrs\",\"schema\":\"datarcmelycpgokut\",\"linkedServiceName\":{\"referenceName\":\"rvybnz\",\"parameters\":{\"ixlvzcgul\":\"datamshfuzzlap\",\"wjt\":\"dataebxiauqsuptessj\",\"skxgxqaygas\":\"datatpvb\",\"wpvlcjbvyezjwjkq\":\"datakvc\"}},\"parameters\":{\"fpucwn\":{\"type\":\"Bool\",\"defaultValue\":\"dataiieyozvrc\"}},\"annotations\":[\"dataqefgzjvbx\",\"datacbgoarxtuuciagv\",\"datadlhuduklbjo\",\"datafmjfexulv\"],\"folder\":{\"name\":\"kna\"},\"\":{\"leqfgkxenvszg\":\"dataiancsqoacbuqdgsa\",\"eszsuuv\":\"datavya\",\"brveci\":\"datalaqcwggchxvlqg\"}}") - .toObject(OracleTableDataset.class); - Assertions.assertEquals("fpghtbttpkim", model.description()); - Assertions.assertEquals("rvybnz", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("fpucwn").type()); - Assertions.assertEquals("kna", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OracleTableDataset model = - new OracleTableDataset() - .withDescription("fpghtbttpkim") - .withStructure("datahnkkhbykrs") - .withSchema("datarcmelycpgokut") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("rvybnz") - .withParameters( - mapOf( - "ixlvzcgul", - "datamshfuzzlap", - "wjt", - "dataebxiauqsuptessj", - "skxgxqaygas", - "datatpvb", - "wpvlcjbvyezjwjkq", - "datakvc"))) - .withParameters( - mapOf( - "fpucwn", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("dataiieyozvrc"))) - .withAnnotations( - Arrays.asList("dataqefgzjvbx", "datacbgoarxtuuciagv", "datadlhuduklbjo", "datafmjfexulv")) - .withFolder(new DatasetFolder().withName("kna")) - .withTableName("datanaphifkfrpmpl") - .withSchemaTypePropertiesSchema("datap") - .withTable("datarmj"); - model = BinaryData.fromObject(model).toObject(OracleTableDataset.class); - Assertions.assertEquals("fpghtbttpkim", model.description()); - Assertions.assertEquals("rvybnz", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("fpucwn").type()); - Assertions.assertEquals("kna", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OracleTableDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OracleTableDatasetTypePropertiesTests.java deleted file mode 100644 index 72ba25102d6d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OracleTableDatasetTypePropertiesTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.OracleTableDatasetTypeProperties; - -public final class OracleTableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OracleTableDatasetTypeProperties model = - BinaryData - .fromString("{\"tableName\":\"dataov\",\"schema\":\"datairlzbipiunn\",\"table\":\"datakwzzzkueruwc\"}") - .toObject(OracleTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OracleTableDatasetTypeProperties model = - new OracleTableDatasetTypeProperties() - .withTableName("dataov") - .withSchema("datairlzbipiunn") - .withTable("datakwzzzkueruwc"); - model = BinaryData.fromObject(model).toObject(OracleTableDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OrcFormatTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OrcFormatTests.java deleted file mode 100644 index 2fadbf3cd39b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OrcFormatTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.OrcFormat; - -public final class OrcFormatTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OrcFormat model = - BinaryData - .fromString( - "{\"type\":\"OrcFormat\",\"serializer\":\"datalbsnosnqliw\",\"deserializer\":\"dataz\",\"\":{\"mknazgbjbhrpgiq\":\"dataetyalht\",\"aixpqj\":\"datattcucrcm\"}}") - .toObject(OrcFormat.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OrcFormat model = new OrcFormat().withSerializer("datalbsnosnqliw").withDeserializer("dataz"); - model = BinaryData.fromObject(model).toObject(OrcFormat.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OrcSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OrcSinkTests.java deleted file mode 100644 index 349df8f06306..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OrcSinkTests.java +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.OrcSink; -import com.azure.resourcemanager.datafactory.models.OrcWriteSettings; -import com.azure.resourcemanager.datafactory.models.StoreWriteSettings; -import java.util.HashMap; -import java.util.Map; - -public final class OrcSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OrcSink model = - BinaryData - .fromString( - "{\"type\":\"OrcSink\",\"storeSettings\":{\"type\":\"StoreWriteSettings\",\"maxConcurrentConnections\":\"datagwv\",\"disableMetricsCollection\":\"datasqlyahlaoqkcit\",\"copyBehavior\":\"datauzvaxltrznwh\",\"\":{\"ddkkoyzsyjvk\":\"datasauvprqzpfpbxl\",\"hczqm\":\"dataldonsekazxewnlpc\",\"zzcbohbbavode\":\"dataxmyfrmfclkyncjya\",\"bvhxnjorvpc\":\"dataduabqbverbjcts\"}},\"formatSettings\":{\"type\":\"OrcWriteSettings\",\"maxRowsPerFile\":\"datalppuknnmnp\",\"fileNamePrefix\":\"datanm\",\"\":{\"efivozrdzrik\":\"datadh\",\"gozoelamerpbctrw\":\"dataiucvvrkxpb\",\"ywq\":\"datavnscmacb\"}},\"writeBatchSize\":\"dataztlf\",\"writeBatchTimeout\":\"datalgxrsn\",\"sinkRetryCount\":\"datarooaahhvsf\",\"sinkRetryWait\":\"datawkinkhvtxngme\",\"maxConcurrentConnections\":\"dataninjhdkvkqjjouh\",\"disableMetricsCollection\":\"datakcttpcctvcjdrmkn\",\"\":{\"zbmyftzbxfgo\":\"datavcrj\",\"egursbzmixwaxtn\":\"datarbullqnfz\",\"gsuqmrkyaovcbds\":\"datavtzdvxsgdaajl\",\"j\":\"dataxhpqlxnb\"}}") - .toObject(OrcSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OrcSink model = - new OrcSink() - .withWriteBatchSize("dataztlf") - .withWriteBatchTimeout("datalgxrsn") - .withSinkRetryCount("datarooaahhvsf") - .withSinkRetryWait("datawkinkhvtxngme") - .withMaxConcurrentConnections("dataninjhdkvkqjjouh") - .withDisableMetricsCollection("datakcttpcctvcjdrmkn") - .withStoreSettings( - new StoreWriteSettings() - .withMaxConcurrentConnections("datagwv") - .withDisableMetricsCollection("datasqlyahlaoqkcit") - .withCopyBehavior("datauzvaxltrznwh") - .withAdditionalProperties(mapOf("type", "StoreWriteSettings"))) - .withFormatSettings( - new OrcWriteSettings().withMaxRowsPerFile("datalppuknnmnp").withFileNamePrefix("datanm")); - model = BinaryData.fromObject(model).toObject(OrcSink.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OrcSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OrcSourceTests.java deleted file mode 100644 index 0e4da0a09e55..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OrcSourceTests.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.OrcSource; -import com.azure.resourcemanager.datafactory.models.StoreReadSettings; -import java.util.HashMap; -import java.util.Map; - -public final class OrcSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OrcSource model = - BinaryData - .fromString( - "{\"type\":\"OrcSource\",\"storeSettings\":{\"type\":\"StoreReadSettings\",\"maxConcurrentConnections\":\"datareiwdskie\",\"disableMetricsCollection\":\"dataaenalepta\",\"\":{\"aodbhgxbadbo\":\"dataol\"}},\"additionalColumns\":\"datakmihggv\",\"sourceRetryCount\":\"dataqwyxbatr\",\"sourceRetryWait\":\"dataynlslgxif\",\"maxConcurrentConnections\":\"datasclqwk\",\"disableMetricsCollection\":\"datage\",\"\":{\"ueq\":\"dataambzfxgshaq\"}}") - .toObject(OrcSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OrcSource model = - new OrcSource() - .withSourceRetryCount("dataqwyxbatr") - .withSourceRetryWait("dataynlslgxif") - .withMaxConcurrentConnections("datasclqwk") - .withDisableMetricsCollection("datage") - .withStoreSettings( - new StoreReadSettings() - .withMaxConcurrentConnections("datareiwdskie") - .withDisableMetricsCollection("dataaenalepta") - .withAdditionalProperties(mapOf("type", "StoreReadSettings"))) - .withAdditionalColumns("datakmihggv"); - model = BinaryData.fromObject(model).toObject(OrcSource.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OrcWriteSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OrcWriteSettingsTests.java deleted file mode 100644 index a388319bd1ec..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OrcWriteSettingsTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.OrcWriteSettings; - -public final class OrcWriteSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OrcWriteSettings model = - BinaryData - .fromString( - "{\"type\":\"OrcWriteSettings\",\"maxRowsPerFile\":\"datamkakgwl\",\"fileNamePrefix\":\"datano\",\"\":{\"oxe\":\"datagyheyayktutflhe\",\"jqzmqjhghih\":\"datasahmdcoeexwgzs\"}}") - .toObject(OrcWriteSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OrcWriteSettings model = new OrcWriteSettings().withMaxRowsPerFile("datamkakgwl").withFileNamePrefix("datano"); - model = BinaryData.fromObject(model).toObject(OrcWriteSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PackageStoreTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PackageStoreTests.java deleted file mode 100644 index 288c6ced198f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PackageStoreTests.java +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.EntityReference; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeEntityReferenceType; -import com.azure.resourcemanager.datafactory.models.PackageStore; -import org.junit.jupiter.api.Assertions; - -public final class PackageStoreTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PackageStore model = - BinaryData - .fromString( - "{\"name\":\"ubru\",\"packageStoreLinkedService\":{\"type\":\"IntegrationRuntimeReference\",\"referenceName\":\"uoyrbdkgqdm\"}}") - .toObject(PackageStore.class); - Assertions.assertEquals("ubru", model.name()); - Assertions - .assertEquals( - IntegrationRuntimeEntityReferenceType.INTEGRATION_RUNTIME_REFERENCE, - model.packageStoreLinkedService().type()); - Assertions.assertEquals("uoyrbdkgqdm", model.packageStoreLinkedService().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PackageStore model = - new PackageStore() - .withName("ubru") - .withPackageStoreLinkedService( - new EntityReference() - .withType(IntegrationRuntimeEntityReferenceType.INTEGRATION_RUNTIME_REFERENCE) - .withReferenceName("uoyrbdkgqdm")); - model = BinaryData.fromObject(model).toObject(PackageStore.class); - Assertions.assertEquals("ubru", model.name()); - Assertions - .assertEquals( - IntegrationRuntimeEntityReferenceType.INTEGRATION_RUNTIME_REFERENCE, - model.packageStoreLinkedService().type()); - Assertions.assertEquals("uoyrbdkgqdm", model.packageStoreLinkedService().referenceName()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ParameterSpecificationTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ParameterSpecificationTests.java deleted file mode 100644 index 9db9fa65845c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ParameterSpecificationTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import org.junit.jupiter.api.Assertions; - -public final class ParameterSpecificationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ParameterSpecification model = - BinaryData - .fromString("{\"type\":\"Int\",\"defaultValue\":\"datasmond\"}") - .toObject(ParameterSpecification.class); - Assertions.assertEquals(ParameterType.INT, model.type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ParameterSpecification model = - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datasmond"); - model = BinaryData.fromObject(model).toObject(ParameterSpecification.class); - Assertions.assertEquals(ParameterType.INT, model.type()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ParquetFormatTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ParquetFormatTests.java deleted file mode 100644 index 14ef5a54aa54..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ParquetFormatTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ParquetFormat; - -public final class ParquetFormatTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ParquetFormat model = - BinaryData - .fromString( - "{\"type\":\"ParquetFormat\",\"serializer\":\"dataifhb\",\"deserializer\":\"dataldtt\",\"\":{\"iqikvllr\":\"dataclnaihtg\",\"wrqkza\":\"datatpmglxkoikmtr\",\"paklw\":\"databun\"}}") - .toObject(ParquetFormat.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ParquetFormat model = new ParquetFormat().withSerializer("dataifhb").withDeserializer("dataldtt"); - model = BinaryData.fromObject(model).toObject(ParquetFormat.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ParquetSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ParquetSinkTests.java deleted file mode 100644 index 28acdd850a12..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ParquetSinkTests.java +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ParquetSink; -import com.azure.resourcemanager.datafactory.models.ParquetWriteSettings; -import com.azure.resourcemanager.datafactory.models.StoreWriteSettings; -import java.util.HashMap; -import java.util.Map; - -public final class ParquetSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ParquetSink model = - BinaryData - .fromString( - "{\"type\":\"ParquetSink\",\"storeSettings\":{\"type\":\"StoreWriteSettings\",\"maxConcurrentConnections\":\"datakhgatynkih\",\"disableMetricsCollection\":\"dataixyb\",\"copyBehavior\":\"datawjzo\",\"\":{\"unvwvaolfg\":\"dataaenlzjxztgdu\",\"zht\":\"datatczzv\",\"chsrp\":\"dataeuiptud\",\"iokdrjdeyfnq\":\"datajkqfabjuaktshwup\"}},\"formatSettings\":{\"type\":\"ParquetWriteSettings\",\"maxRowsPerFile\":\"dataa\",\"fileNamePrefix\":\"datazpqctuplpkj\",\"\":{\"lu\":\"datanrnzl\",\"varfqverxelquqze\":\"dataoeftrbxomaa\"}},\"writeBatchSize\":\"datavjmllzykalbaum\",\"writeBatchTimeout\":\"datadwqiucpj\",\"sinkRetryCount\":\"datatbss\",\"sinkRetryWait\":\"datajw\",\"maxConcurrentConnections\":\"datal\",\"disableMetricsCollection\":\"dataftt\",\"\":{\"av\":\"datalvrofhhitjhh\",\"uahllmbllshkfdri\":\"datar\",\"r\":\"dataoopfrdfjjrhx\",\"evxbqyavcxjols\":\"datauoqpobwarsdxkwm\"}}") - .toObject(ParquetSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ParquetSink model = - new ParquetSink() - .withWriteBatchSize("datavjmllzykalbaum") - .withWriteBatchTimeout("datadwqiucpj") - .withSinkRetryCount("datatbss") - .withSinkRetryWait("datajw") - .withMaxConcurrentConnections("datal") - .withDisableMetricsCollection("dataftt") - .withStoreSettings( - new StoreWriteSettings() - .withMaxConcurrentConnections("datakhgatynkih") - .withDisableMetricsCollection("dataixyb") - .withCopyBehavior("datawjzo") - .withAdditionalProperties(mapOf("type", "StoreWriteSettings"))) - .withFormatSettings( - new ParquetWriteSettings().withMaxRowsPerFile("dataa").withFileNamePrefix("datazpqctuplpkj")); - model = BinaryData.fromObject(model).toObject(ParquetSink.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ParquetSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ParquetSourceTests.java deleted file mode 100644 index a2c312a4dce0..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ParquetSourceTests.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ParquetSource; -import com.azure.resourcemanager.datafactory.models.StoreReadSettings; -import java.util.HashMap; -import java.util.Map; - -public final class ParquetSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ParquetSource model = - BinaryData - .fromString( - "{\"type\":\"ParquetSource\",\"storeSettings\":{\"type\":\"StoreReadSettings\",\"maxConcurrentConnections\":\"datayph\",\"disableMetricsCollection\":\"datarxrpahp\",\"\":{\"qllolnxhsupilhx\":\"datakfenmiflky\",\"y\":\"dataabli\",\"isydhardx\":\"dataomgse\"}},\"additionalColumns\":\"dataluqfffglf\",\"sourceRetryCount\":\"dataqakierxuvprbjxew\",\"sourceRetryWait\":\"datacuveljfarinu\",\"maxConcurrentConnections\":\"dataiztgddah\",\"disableMetricsCollection\":\"datavkkjtdhmigkwa\",\"\":{\"ylsijqygof\":\"datagie\",\"af\":\"datahdaehxvvifd\",\"uxs\":\"datakysym\",\"szrbttz\":\"datamllbpegcetezaap\"}}") - .toObject(ParquetSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ParquetSource model = - new ParquetSource() - .withSourceRetryCount("dataqakierxuvprbjxew") - .withSourceRetryWait("datacuveljfarinu") - .withMaxConcurrentConnections("dataiztgddah") - .withDisableMetricsCollection("datavkkjtdhmigkwa") - .withStoreSettings( - new StoreReadSettings() - .withMaxConcurrentConnections("datayph") - .withDisableMetricsCollection("datarxrpahp") - .withAdditionalProperties(mapOf("type", "StoreReadSettings"))) - .withAdditionalColumns("dataluqfffglf"); - model = BinaryData.fromObject(model).toObject(ParquetSource.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ParquetWriteSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ParquetWriteSettingsTests.java deleted file mode 100644 index 30c35ebb53d3..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ParquetWriteSettingsTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ParquetWriteSettings; - -public final class ParquetWriteSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ParquetWriteSettings model = - BinaryData - .fromString( - "{\"type\":\"ParquetWriteSettings\",\"maxRowsPerFile\":\"datajldwxdqt\",\"fileNamePrefix\":\"datatgn\",\"\":{\"dymlsuuhwuoxe\":\"datajvmdkgv\",\"izzjotmygzjr\":\"datai\",\"bjxxcruleim\":\"dataslqbaf\"}}") - .toObject(ParquetWriteSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ParquetWriteSettings model = - new ParquetWriteSettings().withMaxRowsPerFile("datajldwxdqt").withFileNamePrefix("datatgn"); - model = BinaryData.fromObject(model).toObject(ParquetWriteSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PaypalObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PaypalObjectDatasetTests.java deleted file mode 100644 index 6ffcbd0efbf7..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PaypalObjectDatasetTests.java +++ /dev/null @@ -1,78 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.PaypalObjectDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class PaypalObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PaypalObjectDataset model = - BinaryData - .fromString( - "{\"type\":\"PaypalObject\",\"typeProperties\":{\"tableName\":\"datape\"},\"description\":\"j\",\"structure\":\"datasdjuzmuijtickzo\",\"schema\":\"datau\",\"linkedServiceName\":{\"referenceName\":\"p\",\"parameters\":{\"opq\":\"datahhboigzx\",\"atzw\":\"datarzhtocjzfppexu\",\"it\":\"datakjwg\"}},\"parameters\":{\"bjoypplodaqrbkpo\":{\"type\":\"Array\",\"defaultValue\":\"datambmswskb\"},\"crqaxlmbrtvtgolm\":{\"type\":\"SecureString\",\"defaultValue\":\"datasobggva\"},\"yxhxj\":{\"type\":\"Array\",\"defaultValue\":\"datagtla\"},\"bqnjcsbozvcdq\":{\"type\":\"SecureString\",\"defaultValue\":\"datasxaqqjhdfhfa\"}},\"annotations\":[\"dataydvwr\",\"databivyw\"],\"folder\":{\"name\":\"njuvtz\"},\"\":{\"tjfdzfmnpbdrc\":\"datadlxbaeyocpkv\",\"vdtuoamqobqeh\":\"databjxnnnoztn\",\"f\":\"datapshtisy\",\"zeb\":\"dataoctrzjwnzwc\"}}") - .toObject(PaypalObjectDataset.class); - Assertions.assertEquals("j", model.description()); - Assertions.assertEquals("p", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("bjoypplodaqrbkpo").type()); - Assertions.assertEquals("njuvtz", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PaypalObjectDataset model = - new PaypalObjectDataset() - .withDescription("j") - .withStructure("datasdjuzmuijtickzo") - .withSchema("datau") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("p") - .withParameters(mapOf("opq", "datahhboigzx", "atzw", "datarzhtocjzfppexu", "it", "datakjwg"))) - .withParameters( - mapOf( - "bjoypplodaqrbkpo", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datambmswskb"), - "crqaxlmbrtvtgolm", - new ParameterSpecification() - .withType(ParameterType.SECURE_STRING) - .withDefaultValue("datasobggva"), - "yxhxj", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datagtla"), - "bqnjcsbozvcdq", - new ParameterSpecification() - .withType(ParameterType.SECURE_STRING) - .withDefaultValue("datasxaqqjhdfhfa"))) - .withAnnotations(Arrays.asList("dataydvwr", "databivyw")) - .withFolder(new DatasetFolder().withName("njuvtz")) - .withTableName("datape"); - model = BinaryData.fromObject(model).toObject(PaypalObjectDataset.class); - Assertions.assertEquals("j", model.description()); - Assertions.assertEquals("p", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("bjoypplodaqrbkpo").type()); - Assertions.assertEquals("njuvtz", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PaypalSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PaypalSourceTests.java deleted file mode 100644 index bb5f9f279ed0..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PaypalSourceTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.PaypalSource; - -public final class PaypalSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PaypalSource model = - BinaryData - .fromString( - "{\"type\":\"PaypalSource\",\"query\":\"datamm\",\"queryTimeout\":\"datatzxsvwqiwgjwrhu\",\"additionalColumns\":\"dataaaaxigafa\",\"sourceRetryCount\":\"datatoo\",\"sourceRetryWait\":\"datazdoblpdtcyv\",\"maxConcurrentConnections\":\"datahboplavgfbvro\",\"disableMetricsCollection\":\"datauexqweyslwlppoh\",\"\":{\"gb\":\"datagalexyiygkadtwd\",\"vxcjdobsgv\":\"dataxt\"}}") - .toObject(PaypalSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PaypalSource model = - new PaypalSource() - .withSourceRetryCount("datatoo") - .withSourceRetryWait("datazdoblpdtcyv") - .withMaxConcurrentConnections("datahboplavgfbvro") - .withDisableMetricsCollection("datauexqweyslwlppoh") - .withQueryTimeout("datatzxsvwqiwgjwrhu") - .withAdditionalColumns("dataaaaxigafa") - .withQuery("datamm"); - model = BinaryData.fromObject(model).toObject(PaypalSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PhoenixDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PhoenixDatasetTypePropertiesTests.java deleted file mode 100644 index e009512183d0..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PhoenixDatasetTypePropertiesTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.PhoenixDatasetTypeProperties; - -public final class PhoenixDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PhoenixDatasetTypeProperties model = - BinaryData - .fromString( - "{\"tableName\":\"datagvzlzjsbkpcu\",\"table\":\"dataaziydpoknse\",\"schema\":\"datambdqra\"}") - .toObject(PhoenixDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PhoenixDatasetTypeProperties model = - new PhoenixDatasetTypeProperties() - .withTableName("datagvzlzjsbkpcu") - .withTable("dataaziydpoknse") - .withSchema("datambdqra"); - model = BinaryData.fromObject(model).toObject(PhoenixDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PhoenixObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PhoenixObjectDatasetTests.java deleted file mode 100644 index 9ccda1f508bc..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PhoenixObjectDatasetTests.java +++ /dev/null @@ -1,85 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.PhoenixObjectDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class PhoenixObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PhoenixObjectDataset model = - BinaryData - .fromString( - "{\"type\":\"PhoenixObject\",\"typeProperties\":{\"tableName\":\"datawdxgyypm\",\"table\":\"datazlmln\",\"schema\":\"datacatkuhs\"},\"description\":\"gdkvviilyeshoxf\",\"structure\":\"datajdmu\",\"schema\":\"datausx\",\"linkedServiceName\":{\"referenceName\":\"ugozwplxzgzumnot\",\"parameters\":{\"giq\":\"datakkbyg\",\"izonzsur\":\"datawyshybbnhtt\",\"asfzhzzcarc\":\"dataco\",\"nhwsgns\":\"datauoxyipdthjf\"}},\"parameters\":{\"fbbach\":{\"type\":\"Array\",\"defaultValue\":\"datalfchnufssjg\"},\"kbuxlepghcnuqhq\":{\"type\":\"Array\",\"defaultValue\":\"datazzunfnbphceei\"},\"fscl\":{\"type\":\"String\",\"defaultValue\":\"datawt\"}},\"annotations\":[\"datagygn\",\"databfytnhdnihuzzjuz\",\"datawgbzdtorbi\",\"datanyfzdpxct\"],\"folder\":{\"name\":\"rxdtej\"},\"\":{\"pjhltylyuud\":\"datazrlwtidcnzalgmp\"}}") - .toObject(PhoenixObjectDataset.class); - Assertions.assertEquals("gdkvviilyeshoxf", model.description()); - Assertions.assertEquals("ugozwplxzgzumnot", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("fbbach").type()); - Assertions.assertEquals("rxdtej", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PhoenixObjectDataset model = - new PhoenixObjectDataset() - .withDescription("gdkvviilyeshoxf") - .withStructure("datajdmu") - .withSchema("datausx") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("ugozwplxzgzumnot") - .withParameters( - mapOf( - "giq", - "datakkbyg", - "izonzsur", - "datawyshybbnhtt", - "asfzhzzcarc", - "dataco", - "nhwsgns", - "datauoxyipdthjf"))) - .withParameters( - mapOf( - "fbbach", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datalfchnufssjg"), - "kbuxlepghcnuqhq", - new ParameterSpecification() - .withType(ParameterType.ARRAY) - .withDefaultValue("datazzunfnbphceei"), - "fscl", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datawt"))) - .withAnnotations(Arrays.asList("datagygn", "databfytnhdnihuzzjuz", "datawgbzdtorbi", "datanyfzdpxct")) - .withFolder(new DatasetFolder().withName("rxdtej")) - .withTableName("datawdxgyypm") - .withTable("datazlmln") - .withSchemaTypePropertiesSchema("datacatkuhs"); - model = BinaryData.fromObject(model).toObject(PhoenixObjectDataset.class); - Assertions.assertEquals("gdkvviilyeshoxf", model.description()); - Assertions.assertEquals("ugozwplxzgzumnot", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("fbbach").type()); - Assertions.assertEquals("rxdtej", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PhoenixSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PhoenixSourceTests.java deleted file mode 100644 index be22eeebd4bc..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PhoenixSourceTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.PhoenixSource; - -public final class PhoenixSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PhoenixSource model = - BinaryData - .fromString( - "{\"type\":\"PhoenixSource\",\"query\":\"datajkwltnsnhuvmok\",\"queryTimeout\":\"datasclpnbidnlodk\",\"additionalColumns\":\"dataqnkptixa\",\"sourceRetryCount\":\"datay\",\"sourceRetryWait\":\"dataaevry\",\"maxConcurrentConnections\":\"datagccpzmh\",\"disableMetricsCollection\":\"datalqtzgtpsbym\",\"\":{\"rqzbqy\":\"datat\",\"ahbynlbwcnnfp\":\"datagfqqrarolc\"}}") - .toObject(PhoenixSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PhoenixSource model = - new PhoenixSource() - .withSourceRetryCount("datay") - .withSourceRetryWait("dataaevry") - .withMaxConcurrentConnections("datagccpzmh") - .withDisableMetricsCollection("datalqtzgtpsbym") - .withQueryTimeout("datasclpnbidnlodk") - .withAdditionalColumns("dataqnkptixa") - .withQuery("datajkwltnsnhuvmok"); - model = BinaryData.fromObject(model).toObject(PhoenixSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineElapsedTimeMetricPolicyTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineElapsedTimeMetricPolicyTests.java deleted file mode 100644 index 4b4917dbfc18..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineElapsedTimeMetricPolicyTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.PipelineElapsedTimeMetricPolicy; - -public final class PipelineElapsedTimeMetricPolicyTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PipelineElapsedTimeMetricPolicy model = - BinaryData - .fromString("{\"duration\":\"datahwagohbuffkmrqe\"}") - .toObject(PipelineElapsedTimeMetricPolicy.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PipelineElapsedTimeMetricPolicy model = - new PipelineElapsedTimeMetricPolicy().withDuration("datahwagohbuffkmrqe"); - model = BinaryData.fromObject(model).toObject(PipelineElapsedTimeMetricPolicy.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineExternalComputeScalePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineExternalComputeScalePropertiesTests.java deleted file mode 100644 index 1c5d3d2925bd..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineExternalComputeScalePropertiesTests.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.PipelineExternalComputeScaleProperties; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class PipelineExternalComputeScalePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PipelineExternalComputeScaleProperties model = - BinaryData - .fromString( - "{\"timeToLive\":884089930,\"numberOfPipelineNodes\":1584028452,\"numberOfExternalNodes\":1614566160,\"\":{\"f\":\"datadnlbyi\"}}") - .toObject(PipelineExternalComputeScaleProperties.class); - Assertions.assertEquals(884089930, model.timeToLive()); - Assertions.assertEquals(1584028452, model.numberOfPipelineNodes()); - Assertions.assertEquals(1614566160, model.numberOfExternalNodes()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PipelineExternalComputeScaleProperties model = - new PipelineExternalComputeScaleProperties() - .withTimeToLive(884089930) - .withNumberOfPipelineNodes(1584028452) - .withNumberOfExternalNodes(1614566160) - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(PipelineExternalComputeScaleProperties.class); - Assertions.assertEquals(884089930, model.timeToLive()); - Assertions.assertEquals(1584028452, model.numberOfPipelineNodes()); - Assertions.assertEquals(1614566160, model.numberOfExternalNodes()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineFolderTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineFolderTests.java deleted file mode 100644 index 9e9845015545..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineFolderTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.PipelineFolder; -import org.junit.jupiter.api.Assertions; - -public final class PipelineFolderTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PipelineFolder model = BinaryData.fromString("{\"name\":\"rnntiewdjcv\"}").toObject(PipelineFolder.class); - Assertions.assertEquals("rnntiewdjcv", model.name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PipelineFolder model = new PipelineFolder().withName("rnntiewdjcv"); - model = BinaryData.fromObject(model).toObject(PipelineFolder.class); - Assertions.assertEquals("rnntiewdjcv", model.name()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineListResponseTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineListResponseTests.java deleted file mode 100644 index d06b2942410e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineListResponseTests.java +++ /dev/null @@ -1,205 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.PipelineResourceInner; -import com.azure.resourcemanager.datafactory.models.Activity; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.PipelineElapsedTimeMetricPolicy; -import com.azure.resourcemanager.datafactory.models.PipelineFolder; -import com.azure.resourcemanager.datafactory.models.PipelineListResponse; -import com.azure.resourcemanager.datafactory.models.PipelinePolicy; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import com.azure.resourcemanager.datafactory.models.VariableSpecification; -import com.azure.resourcemanager.datafactory.models.VariableType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class PipelineListResponseTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PipelineListResponse model = - BinaryData - .fromString( - "{\"value\":[{\"properties\":{\"description\":\"xrbuukzclew\",\"activities\":[{\"type\":\"Activity\",\"name\":\"lw\",\"description\":\"ztzp\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"yfzqwhxxbu\",\"dependencyConditions\":[]},{\"activity\":\"qa\",\"dependencyConditions\":[]},{\"activity\":\"zfeqztppri\",\"dependencyConditions\":[]},{\"activity\":\"lxorjaltolmncws\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"wcsdbnwdcfhucq\",\"value\":\"datapfuvglsbjjca\"},{\"name\":\"vxb\",\"value\":\"datat\"},{\"name\":\"udutnco\",\"value\":\"datamr\"},{\"name\":\"xqtvcofu\",\"value\":\"dataf\"}],\"\":{\"bgdknnqv\":\"datagj\",\"sgsahmkycgr\":\"dataaznqntoru\",\"s\":\"datauwjuetaeburuvdmo\",\"tpuqujmq\":\"datazlxwabmqoefkifr\"}},{\"type\":\"Activity\",\"name\":\"gkfbtndoaong\",\"description\":\"cn\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"ed\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"waezkojvd\",\"value\":\"datapzfoqoui\"}],\"\":{\"p\":\"dataxarzgszufoxciq\",\"xkhnzbonlwnto\":\"datadoamciodhkha\",\"zcmrvexztvb\":\"datagokdwbwhks\",\"lmnguxaw\":\"dataqgsfraoyzkoow\"}}],\"parameters\":{\"bykutw\":{\"type\":\"Int\",\"defaultValue\":\"datayuuximerqfobwyzn\"},\"sd\":{\"type\":\"Float\",\"defaultValue\":\"datapagmhrskdsnf\"},\"zev\":{\"type\":\"String\",\"defaultValue\":\"datagtdlmk\"},\"ejdcngqqmoakuf\":{\"type\":\"String\",\"defaultValue\":\"dataewpusdsttwvogvb\"}},\"variables\":{\"grtwae\":{\"type\":\"Array\",\"defaultValue\":\"datawr\"},\"inrfdwoyu\":{\"type\":\"String\",\"defaultValue\":\"datazkopb\"},\"mzqhoftrmaequi\":{\"type\":\"Bool\",\"defaultValue\":\"dataiuiefozbhdmsm\"}},\"concurrency\":1964875083,\"annotations\":[\"dataslfaoqzpiyyl\",\"dataalnswhccsphk\",\"dataivwitqscywugg\",\"dataoluhczbwemh\"],\"runDimensions\":{\"wmsweypqwd\":\"datasbrgz\",\"mkttlstvlzywem\":\"dataggicccnxqhue\",\"lusiy\":\"datazrncsdt\"},\"folder\":{\"name\":\"fgytguslfeadcyg\"},\"policy\":{\"elapsedTimeMetric\":{\"duration\":\"datahejhzisx\"}}},\"name\":\"pelol\",\"type\":\"vk\",\"etag\":\"pqvujzraehtwdwrf\",\"\":{\"cdl\":\"dataiby\"},\"id\":\"shfwpracstwity\"}],\"nextLink\":\"evxccedcp\"}") - .toObject(PipelineListResponse.class); - Assertions.assertEquals("shfwpracstwity", model.value().get(0).id()); - Assertions.assertEquals("xrbuukzclew", model.value().get(0).description()); - Assertions.assertEquals("lw", model.value().get(0).activities().get(0).name()); - Assertions.assertEquals("ztzp", model.value().get(0).activities().get(0).description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.value().get(0).activities().get(0).state()); - Assertions - .assertEquals( - ActivityOnInactiveMarkAs.SKIPPED, model.value().get(0).activities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("yfzqwhxxbu", model.value().get(0).activities().get(0).dependsOn().get(0).activity()); - Assertions - .assertEquals("wcsdbnwdcfhucq", model.value().get(0).activities().get(0).userProperties().get(0).name()); - Assertions.assertEquals(ParameterType.INT, model.value().get(0).parameters().get("bykutw").type()); - Assertions.assertEquals(VariableType.ARRAY, model.value().get(0).variables().get("grtwae").type()); - Assertions.assertEquals(1964875083, model.value().get(0).concurrency()); - Assertions.assertEquals("fgytguslfeadcyg", model.value().get(0).folder().name()); - Assertions.assertEquals("evxccedcp", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PipelineListResponse model = - new PipelineListResponse() - .withValue( - Arrays - .asList( - new PipelineResourceInner() - .withId("shfwpracstwity") - .withDescription("xrbuukzclew") - .withActivities( - Arrays - .asList( - new Activity() - .withName("lw") - .withDescription("ztzp") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("yfzqwhxxbu") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("qa") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("zfeqztppri") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("lxorjaltolmncws") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays - .asList( - new UserProperty() - .withName("wcsdbnwdcfhucq") - .withValue("datapfuvglsbjjca"), - new UserProperty().withName("vxb").withValue("datat"), - new UserProperty().withName("udutnco").withValue("datamr"), - new UserProperty().withName("xqtvcofu").withValue("dataf"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity() - .withName("gkfbtndoaong") - .withDescription("cn") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("ed") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays - .asList( - new UserProperty() - .withName("waezkojvd") - .withValue("datapzfoqoui"))) - .withAdditionalProperties(mapOf("type", "Activity")))) - .withParameters( - mapOf( - "bykutw", - new ParameterSpecification() - .withType(ParameterType.INT) - .withDefaultValue("datayuuximerqfobwyzn"), - "sd", - new ParameterSpecification() - .withType(ParameterType.FLOAT) - .withDefaultValue("datapagmhrskdsnf"), - "zev", - new ParameterSpecification() - .withType(ParameterType.STRING) - .withDefaultValue("datagtdlmk"), - "ejdcngqqmoakuf", - new ParameterSpecification() - .withType(ParameterType.STRING) - .withDefaultValue("dataewpusdsttwvogvb"))) - .withVariables( - mapOf( - "grtwae", - new VariableSpecification() - .withType(VariableType.ARRAY) - .withDefaultValue("datawr"), - "inrfdwoyu", - new VariableSpecification() - .withType(VariableType.STRING) - .withDefaultValue("datazkopb"), - "mzqhoftrmaequi", - new VariableSpecification() - .withType(VariableType.BOOL) - .withDefaultValue("dataiuiefozbhdmsm"))) - .withConcurrency(1964875083) - .withAnnotations( - Arrays - .asList( - "dataslfaoqzpiyyl", - "dataalnswhccsphk", - "dataivwitqscywugg", - "dataoluhczbwemh")) - .withRunDimensions( - mapOf( - "wmsweypqwd", - "datasbrgz", - "mkttlstvlzywem", - "dataggicccnxqhue", - "lusiy", - "datazrncsdt")) - .withFolder(new PipelineFolder().withName("fgytguslfeadcyg")) - .withPolicy( - new PipelinePolicy() - .withElapsedTimeMetric( - new PipelineElapsedTimeMetricPolicy().withDuration("datahejhzisx"))) - .withAdditionalProperties( - mapOf("name", "pelol", "etag", "pqvujzraehtwdwrf", "type", "vk")))) - .withNextLink("evxccedcp"); - model = BinaryData.fromObject(model).toObject(PipelineListResponse.class); - Assertions.assertEquals("shfwpracstwity", model.value().get(0).id()); - Assertions.assertEquals("xrbuukzclew", model.value().get(0).description()); - Assertions.assertEquals("lw", model.value().get(0).activities().get(0).name()); - Assertions.assertEquals("ztzp", model.value().get(0).activities().get(0).description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.value().get(0).activities().get(0).state()); - Assertions - .assertEquals( - ActivityOnInactiveMarkAs.SKIPPED, model.value().get(0).activities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("yfzqwhxxbu", model.value().get(0).activities().get(0).dependsOn().get(0).activity()); - Assertions - .assertEquals("wcsdbnwdcfhucq", model.value().get(0).activities().get(0).userProperties().get(0).name()); - Assertions.assertEquals(ParameterType.INT, model.value().get(0).parameters().get("bykutw").type()); - Assertions.assertEquals(VariableType.ARRAY, model.value().get(0).variables().get("grtwae").type()); - Assertions.assertEquals(1964875083, model.value().get(0).concurrency()); - Assertions.assertEquals("fgytguslfeadcyg", model.value().get(0).folder().name()); - Assertions.assertEquals("evxccedcp", model.nextLink()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelinePolicyTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelinePolicyTests.java deleted file mode 100644 index a96dff07663d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelinePolicyTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.PipelineElapsedTimeMetricPolicy; -import com.azure.resourcemanager.datafactory.models.PipelinePolicy; - -public final class PipelinePolicyTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PipelinePolicy model = - BinaryData.fromString("{\"elapsedTimeMetric\":{\"duration\":\"datawr\"}}").toObject(PipelinePolicy.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PipelinePolicy model = - new PipelinePolicy().withElapsedTimeMetric(new PipelineElapsedTimeMetricPolicy().withDuration("datawr")); - model = BinaryData.fromObject(model).toObject(PipelinePolicy.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineReferenceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineReferenceTests.java deleted file mode 100644 index 6b60fe18c12d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineReferenceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.PipelineReference; -import org.junit.jupiter.api.Assertions; - -public final class PipelineReferenceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PipelineReference model = - BinaryData - .fromString("{\"referenceName\":\"pisqqzlgcndhzx\",\"name\":\"fcfsrhkhgsnx\"}") - .toObject(PipelineReference.class); - Assertions.assertEquals("pisqqzlgcndhzx", model.referenceName()); - Assertions.assertEquals("fcfsrhkhgsnx", model.name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PipelineReference model = new PipelineReference().withReferenceName("pisqqzlgcndhzx").withName("fcfsrhkhgsnx"); - model = BinaryData.fromObject(model).toObject(PipelineReference.class); - Assertions.assertEquals("pisqqzlgcndhzx", model.referenceName()); - Assertions.assertEquals("fcfsrhkhgsnx", model.name()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineResourceInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineResourceInnerTests.java deleted file mode 100644 index db10bda25eb6..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineResourceInnerTests.java +++ /dev/null @@ -1,241 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.PipelineResourceInner; -import com.azure.resourcemanager.datafactory.models.Activity; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.PipelineElapsedTimeMetricPolicy; -import com.azure.resourcemanager.datafactory.models.PipelineFolder; -import com.azure.resourcemanager.datafactory.models.PipelinePolicy; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import com.azure.resourcemanager.datafactory.models.VariableSpecification; -import com.azure.resourcemanager.datafactory.models.VariableType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class PipelineResourceInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PipelineResourceInner model = - BinaryData - .fromString( - "{\"properties\":{\"description\":\"dyodnwzxltj\",\"activities\":[{\"type\":\"Activity\",\"name\":\"hlt\",\"description\":\"gcxn\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"byqunyow\",\"dependencyConditions\":[\"Completed\",\"Completed\"],\"\":{\"acizsjqlhkrr\":\"datarkvfgbvfvpdbo\",\"hvxndzwmkrefajpj\":\"databdeibqipqk\",\"yhgbijtjivfx\":\"datarwkq\",\"stawfsdjpvkv\":\"datasjabibs\"}},{\"activity\":\"bjxbkzbzk\",\"dependencyConditions\":[\"Succeeded\",\"Completed\",\"Completed\"],\"\":{\"jjklff\":\"dataudurgkakmokz\",\"bizikayuhq\":\"datamouwqlgzrfzeey\",\"wrv\":\"databjbsybb\"}},{\"activity\":\"ldgmfpgvmpip\",\"dependencyConditions\":[\"Succeeded\",\"Skipped\"],\"\":{\"dsrezpdrhneuyow\":\"dataqfxssmwutw\",\"t\":\"datakdw\"}},{\"activity\":\"sibircgpi\",\"dependencyConditions\":[\"Skipped\",\"Failed\",\"Skipped\",\"Failed\"],\"\":{\"nokixrjqcirgz\":\"dataanlfzxiavrmbz\"}}],\"userProperties\":[{\"name\":\"lazszrn\",\"value\":\"dataoiindfpwpjy\"},{\"name\":\"wbtlhflsjcdh\",\"value\":\"datazfjvfbgofe\"},{\"name\":\"jagrqmqhldvr\",\"value\":\"dataiiojnal\"}],\"\":{\"ueluqhhahhxvrhmz\":\"datakvtvsexso\"}},{\"type\":\"Activity\",\"name\":\"wpjgwws\",\"description\":\"ghftqsxhqxujxuk\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"jguufzdm\",\"dependencyConditions\":[\"Completed\",\"Succeeded\"],\"\":{\"phoszqz\":\"datahwhbotzingamv\",\"kfwynw\":\"datadphqamv\",\"tnvyqiatkzwp\":\"datavtbvkayh\",\"vvsccyajguq\":\"datanpwzcjaes\"}},{\"activity\":\"hwyg\",\"dependencyConditions\":[\"Skipped\",\"Failed\"],\"\":{\"uh\":\"datafxusemdwzr\"}},{\"activity\":\"pfcqdp\",\"dependencyConditions\":[\"Succeeded\",\"Skipped\",\"Skipped\",\"Skipped\"],\"\":{\"qlmfeoker\":\"datauoymgccelvezry\"}},{\"activity\":\"wkyhkobopgxe\",\"dependencyConditions\":[\"Skipped\"],\"\":{\"vcdwxlpqekftn\":\"datapbqpcrfkbwccsn\",\"fq\":\"datahtjsying\",\"gszywk\":\"datatmtdhtmdvypgik\"}}],\"userProperties\":[{\"name\":\"ryuzh\",\"value\":\"datahkjoqr\"},{\"name\":\"qqaatjinrvgou\",\"value\":\"datamfiibfggj\"},{\"name\":\"ool\",\"value\":\"datarwxkvtkkgl\"}],\"\":{\"hvkzuh\":\"datajygvjayvbl\",\"gsopbyrqufegxu\":\"dataxvvy\",\"bnhlmc\":\"datawz\",\"dn\":\"datal\"}},{\"type\":\"Activity\",\"name\":\"itvgbmhrixkwm\",\"description\":\"jejveg\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"xexccbdreaxhcexd\",\"dependencyConditions\":[\"Skipped\",\"Completed\",\"Failed\",\"Succeeded\"],\"\":{\"jnhyjsvf\":\"dataghtpw\",\"mtg\":\"datacxzbfvoowvr\",\"y\":\"dataqp\"}},{\"activity\":\"s\",\"dependencyConditions\":[\"Succeeded\",\"Succeeded\",\"Succeeded\"],\"\":{\"ekrrjr\":\"datahgfipnsxkmcw\",\"jglikkxwslolb\":\"dataafxtsgum\",\"elfk\":\"datapvuzlmv\"}}],\"userProperties\":[{\"name\":\"lcrpw\",\"value\":\"dataxeznoi\"},{\"name\":\"brnjwmw\",\"value\":\"datapn\"},{\"name\":\"saz\",\"value\":\"datajjoqkagf\"},{\"name\":\"sxtta\",\"value\":\"datagzxnfaazpxdtnk\"}],\"\":{\"rkpyouaibrebqaay\":\"dataqjjlwuen\",\"ixqtn\":\"dataj\",\"ffiakp\":\"datattezlw\",\"tmmjihyeozph\":\"datapqqmted\"}}],\"parameters\":{\"mdscwxqupev\":{\"type\":\"Float\",\"defaultValue\":\"dataqncygupkvi\"},\"jujbypelmcuvhixb\":{\"type\":\"Float\",\"defaultValue\":\"datastotxh\"},\"yl\":{\"type\":\"Bool\",\"defaultValue\":\"datafw\"}},\"variables\":{\"iwkkbn\":{\"type\":\"Array\",\"defaultValue\":\"datasttp\"}},\"concurrency\":647346434,\"annotations\":[\"datavtylbfpncu\",\"datadoiwi\",\"datathtywub\",\"datacbihwqk\"],\"runDimensions\":{\"dgoihxumwctondzj\":\"datantwjch\",\"fdlwg\":\"datauu\",\"gseinq\":\"dataytsbwtovv\"},\"folder\":{\"name\":\"fxqknpirgneptt\"},\"policy\":{\"elapsedTimeMetric\":{\"duration\":\"dataniffcdmqnroj\"}}},\"name\":\"ijnkrxfrdd\",\"type\":\"ratiz\",\"etag\":\"onasxifto\",\"\":{\"tw\":\"datazh\",\"lgnyhmo\":\"datasgogczhonnxk\",\"h\":\"datasxkkg\",\"hqxvcxgfrpdsofbs\":\"datarghxjb\"},\"id\":\"nsvbuswdv\"}") - .toObject(PipelineResourceInner.class); - Assertions.assertEquals("nsvbuswdv", model.id()); - Assertions.assertEquals("dyodnwzxltj", model.description()); - Assertions.assertEquals("hlt", model.activities().get(0).name()); - Assertions.assertEquals("gcxn", model.activities().get(0).description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.activities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.activities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("byqunyow", model.activities().get(0).dependsOn().get(0).activity()); - Assertions - .assertEquals( - DependencyCondition.COMPLETED, - model.activities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("lazszrn", model.activities().get(0).userProperties().get(0).name()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("mdscwxqupev").type()); - Assertions.assertEquals(VariableType.ARRAY, model.variables().get("iwkkbn").type()); - Assertions.assertEquals(647346434, model.concurrency()); - Assertions.assertEquals("fxqknpirgneptt", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PipelineResourceInner model = - new PipelineResourceInner() - .withId("nsvbuswdv") - .withDescription("dyodnwzxltj") - .withActivities( - Arrays - .asList( - new Activity() - .withName("hlt") - .withDescription("gcxn") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("byqunyow") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.COMPLETED, - DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("bjxbkzbzk") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.SUCCEEDED, - DependencyCondition.COMPLETED, - DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("ldgmfpgvmpip") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.SUCCEEDED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("sibircgpi") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.SKIPPED, - DependencyCondition.FAILED, - DependencyCondition.SKIPPED, - DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays - .asList( - new UserProperty().withName("lazszrn").withValue("dataoiindfpwpjy"), - new UserProperty().withName("wbtlhflsjcdh").withValue("datazfjvfbgofe"), - new UserProperty().withName("jagrqmqhldvr").withValue("dataiiojnal"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity() - .withName("wpjgwws") - .withDescription("ghftqsxhqxujxuk") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("jguufzdm") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.COMPLETED, - DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("hwyg") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.SKIPPED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("pfcqdp") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.SUCCEEDED, - DependencyCondition.SKIPPED, - DependencyCondition.SKIPPED, - DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("wkyhkobopgxe") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays - .asList( - new UserProperty().withName("ryuzh").withValue("datahkjoqr"), - new UserProperty().withName("qqaatjinrvgou").withValue("datamfiibfggj"), - new UserProperty().withName("ool").withValue("datarwxkvtkkgl"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity() - .withName("itvgbmhrixkwm") - .withDescription("jejveg") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("xexccbdreaxhcexd") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.SKIPPED, - DependencyCondition.COMPLETED, - DependencyCondition.FAILED, - DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("s") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.SUCCEEDED, - DependencyCondition.SUCCEEDED, - DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays - .asList( - new UserProperty().withName("lcrpw").withValue("dataxeznoi"), - new UserProperty().withName("brnjwmw").withValue("datapn"), - new UserProperty().withName("saz").withValue("datajjoqkagf"), - new UserProperty().withName("sxtta").withValue("datagzxnfaazpxdtnk"))) - .withAdditionalProperties(mapOf("type", "Activity")))) - .withParameters( - mapOf( - "mdscwxqupev", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("dataqncygupkvi"), - "jujbypelmcuvhixb", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datastotxh"), - "yl", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datafw"))) - .withVariables( - mapOf( - "iwkkbn", - new VariableSpecification().withType(VariableType.ARRAY).withDefaultValue("datasttp"))) - .withConcurrency(647346434) - .withAnnotations(Arrays.asList("datavtylbfpncu", "datadoiwi", "datathtywub", "datacbihwqk")) - .withRunDimensions( - mapOf("dgoihxumwctondzj", "datantwjch", "fdlwg", "datauu", "gseinq", "dataytsbwtovv")) - .withFolder(new PipelineFolder().withName("fxqknpirgneptt")) - .withPolicy( - new PipelinePolicy() - .withElapsedTimeMetric(new PipelineElapsedTimeMetricPolicy().withDuration("dataniffcdmqnroj"))) - .withAdditionalProperties(mapOf("name", "ijnkrxfrdd", "etag", "onasxifto", "type", "ratiz")); - model = BinaryData.fromObject(model).toObject(PipelineResourceInner.class); - Assertions.assertEquals("nsvbuswdv", model.id()); - Assertions.assertEquals("dyodnwzxltj", model.description()); - Assertions.assertEquals("hlt", model.activities().get(0).name()); - Assertions.assertEquals("gcxn", model.activities().get(0).description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.activities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.activities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("byqunyow", model.activities().get(0).dependsOn().get(0).activity()); - Assertions - .assertEquals( - DependencyCondition.COMPLETED, - model.activities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("lazszrn", model.activities().get(0).userProperties().get(0).name()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("mdscwxqupev").type()); - Assertions.assertEquals(VariableType.ARRAY, model.variables().get("iwkkbn").type()); - Assertions.assertEquals(647346434, model.concurrency()); - Assertions.assertEquals("fxqknpirgneptt", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineRunInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineRunInnerTests.java deleted file mode 100644 index 27a25d678600..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineRunInnerTests.java +++ /dev/null @@ -1,82 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.core.util.serializer.JacksonAdapter; -import com.azure.core.util.serializer.SerializerEncoding; -import com.azure.resourcemanager.datafactory.fluent.models.PipelineRunInner; -import java.util.HashMap; -import java.util.Map; - -public final class PipelineRunInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PipelineRunInner model = - BinaryData - .fromString( - "{\"runId\":\"lqol\",\"runGroupId\":\"kcgxxlxsffgcvi\",\"isLatest\":true,\"pipelineName\":\"wlvwlyoupf\",\"parameters\":{\"ubdyhgk\":\"k\",\"tsttktlahbq\":\"minsgowzf\",\"mmqtgqqqxhr\":\"ctxtgzukxi\",\"juisavokqdzf\":\"xrxc\"},\"runDimensions\":{\"nwxyiop\":\"ivjlfrqttbajlka\"},\"invokedBy\":{\"name\":\"qqfkuv\",\"id\":\"xkdmligo\",\"invokedByType\":\"brxk\",\"pipelineName\":\"loazuruocbgoo\",\"pipelineRunId\":\"te\"},\"lastUpdated\":\"2021-05-01T19:42:34Z\",\"runStart\":\"2021-05-18T20:05:21Z\",\"runEnd\":\"2021-08-27T22:46:55Z\",\"durationInMs\":1900106080,\"status\":\"vjgsl\",\"message\":\"dilmyww\",\"\":{\"edabgyvudtjue\":\"datakxn\",\"yxccyb\":\"databcihxuuwhc\",\"px\":\"datapayakkud\"}}") - .toObject(PipelineRunInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PipelineRunInner model = - new PipelineRunInner() - .withAdditionalProperties( - mapOf( - "durationInMs", - 1900106080, - "runDimensions", - JacksonAdapter - .createDefaultSerializerAdapter() - .deserialize("{\"nwxyiop\":\"ivjlfrqttbajlka\"}", Object.class, SerializerEncoding.JSON), - "invokedBy", - JacksonAdapter - .createDefaultSerializerAdapter() - .deserialize( - "{\"name\":\"qqfkuv\",\"id\":\"xkdmligo\",\"invokedByType\":\"brxk\",\"pipelineName\":\"loazuruocbgoo\",\"pipelineRunId\":\"te\"}", - Object.class, - SerializerEncoding.JSON), - "runStart", - "2021-05-18T20:05:21Z", - "message", - "dilmyww", - "pipelineName", - "wlvwlyoupf", - "lastUpdated", - "2021-05-01T19:42:34Z", - "isLatest", - true, - "runId", - "lqol", - "runEnd", - "2021-08-27T22:46:55Z", - "runGroupId", - "kcgxxlxsffgcvi", - "parameters", - JacksonAdapter - .createDefaultSerializerAdapter() - .deserialize( - "{\"ubdyhgk\":\"k\",\"tsttktlahbq\":\"minsgowzf\",\"mmqtgqqqxhr\":\"ctxtgzukxi\",\"juisavokqdzf\":\"xrxc\"}", - Object.class, - SerializerEncoding.JSON), - "status", - "vjgsl")); - model = BinaryData.fromObject(model).toObject(PipelineRunInner.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineRunInvokedByTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineRunInvokedByTests.java deleted file mode 100644 index 92c95727bce2..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineRunInvokedByTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.PipelineRunInvokedBy; - -public final class PipelineRunInvokedByTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PipelineRunInvokedBy model = - BinaryData - .fromString( - "{\"name\":\"jplmagstcy\",\"id\":\"pfkyrkdbdgiogsj\",\"invokedByType\":\"nwqjnoba\",\"pipelineName\":\"hdd\",\"pipelineRunId\":\"acegfnmntf\"}") - .toObject(PipelineRunInvokedBy.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PipelineRunInvokedBy model = new PipelineRunInvokedBy(); - model = BinaryData.fromObject(model).toObject(PipelineRunInvokedBy.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineRunsCancelWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineRunsCancelWithResponseMockTests.java deleted file mode 100644 index 5de2cf5acd3c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineRunsCancelWithResponseMockTests.java +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class PipelineRunsCancelWithResponseMockTests { - @Test - public void testCancelWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager - .pipelineRuns() - .cancelWithResponse("zvhxssnqqivv", "vuyxsnm", "innisuuakaadbwhs", false, com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineRunsGetWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineRunsGetWithResponseMockTests.java deleted file mode 100644 index 709cba5e17b4..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineRunsGetWithResponseMockTests.java +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.PipelineRun; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class PipelineRunsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"runId\":\"hs\",\"runGroupId\":\"seazgfdyess\",\"isLatest\":true,\"pipelineName\":\"btgexiwcqe\",\"parameters\":{\"pbvzbt\":\"yrzidoyvquufpl\",\"lqrxewdgzfqsr\":\"ftotpvoehsfwra\",\"phiqje\":\"yuillrrqw\"},\"runDimensions\":{\"jcblppnqosnvcw\":\"fgoqgl\",\"zmwbxautspnyutf\":\"iwgakghvaqbk\",\"birjnddaovgi\":\"qighnunptjm\"},\"invokedBy\":{\"name\":\"ztrln\",\"id\":\"vjdv\",\"invokedByType\":\"c\",\"pipelineName\":\"j\",\"pipelineRunId\":\"m\"},\"lastUpdated\":\"2021-06-22T02:16:24Z\",\"runStart\":\"2021-10-29T07:24:49Z\",\"runEnd\":\"2021-07-07T19:51:04Z\",\"durationInMs\":1616045807,\"status\":\"tfsciayclvaivsa\",\"message\":\"fjhcrqnwoahfa\",\"\":{\"nwvqifptvfsvrjd\":\"dataq\"}}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PipelineRun response = - manager - .pipelineRuns() - .getWithResponse("r", "kmanrowdqoj", "yabvvbsi", com.azure.core.util.Context.NONE) - .getValue(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineTests.java deleted file mode 100644 index 6887e7384987..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineTests.java +++ /dev/null @@ -1,134 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.Pipeline; -import com.azure.resourcemanager.datafactory.models.Activity; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.PipelineElapsedTimeMetricPolicy; -import com.azure.resourcemanager.datafactory.models.PipelineFolder; -import com.azure.resourcemanager.datafactory.models.PipelinePolicy; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import com.azure.resourcemanager.datafactory.models.VariableSpecification; -import com.azure.resourcemanager.datafactory.models.VariableType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class PipelineTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - Pipeline model = - BinaryData - .fromString( - "{\"description\":\"ybycnunvj\",\"activities\":[{\"type\":\"Activity\",\"name\":\"kfawnopqgikyz\",\"description\":\"txdyuxzejntpsew\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"kr\",\"dependencyConditions\":[\"Skipped\",\"Failed\",\"Succeeded\"],\"\":{\"tbghhavgrvkf\":\"dataeoxorggufhyao\",\"mv\":\"dataovjzhpjbibgjmfx\",\"zzxscyhwzdgiruj\":\"datacluyovwxnbkf\",\"ujviylwdshfs\":\"datazbomvzzbtdcqvpni\"}}],\"userProperties\":[{\"name\":\"bgye\",\"value\":\"datarymsgaojfmw\"},{\"name\":\"cotmr\",\"value\":\"datahirctymoxoftpipi\"}],\"\":{\"cpqjlihhyu\":\"datazuhx\",\"x\":\"datapskasdvlmfwdg\",\"sreuzvxurisjnh\":\"datalucvpam\",\"blwpcesutrgj\":\"dataytxifqjzgxmrh\"}}],\"parameters\":{\"w\":{\"type\":\"Float\",\"defaultValue\":\"datatpwoqhihejq\"},\"xjvfoimwksl\":{\"type\":\"SecureString\",\"defaultValue\":\"datafqntcyp\"},\"ydfce\":{\"type\":\"String\",\"defaultValue\":\"dataizjx\"}},\"variables\":{\"mrtwna\":{\"type\":\"String\",\"defaultValue\":\"datavygdyft\"}},\"concurrency\":951831262,\"annotations\":[\"dataiw\",\"dataojgcyzt\",\"datafmznba\"],\"runDimensions\":{\"huwrykqgaifm\":\"datahchqnrnrpx\"},\"folder\":{\"name\":\"lb\"},\"policy\":{\"elapsedTimeMetric\":{\"duration\":\"datahbejdznxcvdsrhnj\"}}}") - .toObject(Pipeline.class); - Assertions.assertEquals("ybycnunvj", model.description()); - Assertions.assertEquals("kfawnopqgikyz", model.activities().get(0).name()); - Assertions.assertEquals("txdyuxzejntpsew", model.activities().get(0).description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.activities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.activities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("kr", model.activities().get(0).dependsOn().get(0).activity()); - Assertions - .assertEquals( - DependencyCondition.SKIPPED, - model.activities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("bgye", model.activities().get(0).userProperties().get(0).name()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("w").type()); - Assertions.assertEquals(VariableType.STRING, model.variables().get("mrtwna").type()); - Assertions.assertEquals(951831262, model.concurrency()); - Assertions.assertEquals("lb", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Pipeline model = - new Pipeline() - .withDescription("ybycnunvj") - .withActivities( - Arrays - .asList( - new Activity() - .withName("kfawnopqgikyz") - .withDescription("txdyuxzejntpsew") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("kr") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.SKIPPED, - DependencyCondition.FAILED, - DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays - .asList( - new UserProperty().withName("bgye").withValue("datarymsgaojfmw"), - new UserProperty().withName("cotmr").withValue("datahirctymoxoftpipi"))) - .withAdditionalProperties(mapOf("type", "Activity")))) - .withParameters( - mapOf( - "w", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datatpwoqhihejq"), - "xjvfoimwksl", - new ParameterSpecification() - .withType(ParameterType.SECURE_STRING) - .withDefaultValue("datafqntcyp"), - "ydfce", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("dataizjx"))) - .withVariables( - mapOf( - "mrtwna", - new VariableSpecification().withType(VariableType.STRING).withDefaultValue("datavygdyft"))) - .withConcurrency(951831262) - .withAnnotations(Arrays.asList("dataiw", "dataojgcyzt", "datafmznba")) - .withRunDimensions(mapOf("huwrykqgaifm", "datahchqnrnrpx")) - .withFolder(new PipelineFolder().withName("lb")) - .withPolicy( - new PipelinePolicy() - .withElapsedTimeMetric( - new PipelineElapsedTimeMetricPolicy().withDuration("datahbejdznxcvdsrhnj"))); - model = BinaryData.fromObject(model).toObject(Pipeline.class); - Assertions.assertEquals("ybycnunvj", model.description()); - Assertions.assertEquals("kfawnopqgikyz", model.activities().get(0).name()); - Assertions.assertEquals("txdyuxzejntpsew", model.activities().get(0).description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.activities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.activities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("kr", model.activities().get(0).dependsOn().get(0).activity()); - Assertions - .assertEquals( - DependencyCondition.SKIPPED, - model.activities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("bgye", model.activities().get(0).userProperties().get(0).name()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("w").type()); - Assertions.assertEquals(VariableType.STRING, model.variables().get("mrtwna").type()); - Assertions.assertEquals(951831262, model.concurrency()); - Assertions.assertEquals("lb", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelinesCreateOrUpdateWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelinesCreateOrUpdateWithResponseMockTests.java deleted file mode 100644 index 18f2538bdd9a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelinesCreateOrUpdateWithResponseMockTests.java +++ /dev/null @@ -1,165 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.Activity; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.PipelineElapsedTimeMetricPolicy; -import com.azure.resourcemanager.datafactory.models.PipelineFolder; -import com.azure.resourcemanager.datafactory.models.PipelinePolicy; -import com.azure.resourcemanager.datafactory.models.PipelineResource; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import com.azure.resourcemanager.datafactory.models.VariableSpecification; -import com.azure.resourcemanager.datafactory.models.VariableType; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class PipelinesCreateOrUpdateWithResponseMockTests { - @Test - public void testCreateOrUpdateWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"description\":\"mzlsg\",\"activities\":[{\"type\":\"Activity\",\"name\":\"vx\",\"description\":\"vwuhvpipaafvtk\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"hwipihoxpeyixbrs\",\"dependencyConditions\":[]},{\"activity\":\"grjtlwcdczmlbz\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"hcpdohvwyitc\",\"value\":\"dataybuu\"},{\"name\":\"btfxjpgjayno\",\"value\":\"datawyzpntapgwr\"},{\"name\":\"yxyelzmukharuc\",\"value\":\"datak\"},{\"name\":\"mzjnnwob\",\"value\":\"datafutohkrqbgx\"}],\"\":{\"pobtbtlmpdrkgt\":\"dataapflluyhivlsw\"}},{\"type\":\"Activity\",\"name\":\"rmmmsaujx\",\"description\":\"g\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"ghxmwfaehryo\",\"dependencyConditions\":[]},{\"activity\":\"dinfwnlifstx\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"uddtubzekfb\",\"value\":\"dataftyxmelzlssk\"},{\"name\":\"hwwnnjabeibgyq\",\"value\":\"datazofyeqruoanhj\"},{\"name\":\"lkoawocset\",\"value\":\"datartexjiiq\"}],\"\":{\"qqcdzmhydmyemvyi\":\"datacejlyhuyhq\",\"pgttvykzdl\":\"datavvbenchtklz\",\"ikhbkcvpubvmsz\":\"datatenbvpadoseqc\"}},{\"type\":\"Activity\",\"name\":\"zrs\",\"description\":\"xncykfqibwes\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"fpgtklcgwbavlgov\",\"dependencyConditions\":[]},{\"activity\":\"thppodd\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"a\",\"value\":\"datakkwphvimstbyak\"},{\"name\":\"fvcir\",\"value\":\"datacgap\"},{\"name\":\"yof\",\"value\":\"dataimnfvbfj\"},{\"name\":\"vspxxbfqlfkwjiui\",\"value\":\"datayjdwdaocwqkxwoq\"}],\"\":{\"c\":\"datanojiqtpbfcvnhre\",\"tsdgnhlp\":\"datao\",\"iafgbfkmqhzjsh\":\"datacctuxxytmxjpku\"}},{\"type\":\"Activity\",\"name\":\"yjnrjrtnk\",\"description\":\"eurjynezpe\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"nptmriqe\",\"dependencyConditions\":[]},{\"activity\":\"ugi\",\"dependencyConditions\":[]},{\"activity\":\"szgstqsrtz\",\"dependencyConditions\":[]},{\"activity\":\"vwhjf\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"pstvcqhzejbr\",\"value\":\"datakhlopy\"},{\"name\":\"rsvyjrqhpz\",\"value\":\"datavmxibpcnmps\"},{\"name\":\"zkaen\",\"value\":\"dataipr\"}],\"\":{\"grcjoycqndgbxtz\":\"datawftrjdyi\",\"gubsidwgyaz\":\"datateszohntch\",\"oodcmjfieydtnp\":\"datapefs\"}}],\"parameters\":{\"goaxtwtkkmuir\":{\"type\":\"Object\",\"defaultValue\":\"datafhsckecume\"},\"iudnmojjmim\":{\"type\":\"Object\",\"defaultValue\":\"dataaxstqqjqliyxzen\"},\"axluovzmijir\":{\"type\":\"Array\",\"defaultValue\":\"dataiaot\"},\"krwwchyqei\":{\"type\":\"Int\",\"defaultValue\":\"datatblmumbafcmsotud\"}},\"variables\":{\"mdn\":{\"type\":\"Array\",\"defaultValue\":\"datafeelymavin\"},\"rn\":{\"type\":\"String\",\"defaultValue\":\"datavz\"}},\"concurrency\":1106785884,\"annotations\":[\"databobagaigtpjj\",\"datazq\"],\"runDimensions\":{\"f\":\"datao\",\"qjvju\":\"datalibwdkjq\",\"tz\":\"datajqjxobmvf\"},\"folder\":{\"name\":\"tarneugbupk\"},\"policy\":{\"elapsedTimeMetric\":{\"duration\":\"dataqwcxedkkd\"}}},\"name\":\"frisreh\",\"type\":\"fiflpiq\",\"etag\":\"sjboghjdihtca\",\"\":{\"xbvyuarbycu\":\"datavdktba\",\"ilkm\":\"dataxgdadf\",\"mfersbktreih\":\"datatvmtnou\"},\"id\":\"zpusbfgjr\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PipelineResource response = - manager - .pipelines() - .define("qzrmlbd") - .withExistingFactory("uq", "tpwhicnna") - .withDescription("mz") - .withActivities( - Arrays - .asList( - new Activity() - .withName("xlst") - .withDescription("zxinwjuq") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("peauhldqbwkxe") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("nroewwrhvdwrowe") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("ygoijhciynp") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("viivczupcl") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("vymfhkts").withValue("datans"))) - .withAdditionalProperties(mapOf("type", "Activity")))) - .withParameters( - mapOf( - "kpu", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datawqpcqyoujikv"))) - .withVariables( - mapOf( - "kzshvcalz", - new VariableSpecification().withType(VariableType.BOOL).withDefaultValue("datayxyrkpclvpnoay"))) - .withConcurrency(853202761) - .withAnnotations(Arrays.asList("datagnuhxae", "datapo", "datannwnzxikvje", "datajapsopjhaquxquyp")) - .withRunDimensions( - mapOf( - "tkdeyuowdpnaohhe", - "dataocusyqailqtq", - "sug", - "datalyrkbsrpruoyjbzy", - "eljbiupj", - "datareuhssrdugaxky", - "nyaeckzcbrxsq", - "datakyghsjcqqvl")) - .withFolder(new PipelineFolder().withName("sddjpeeqywngcvqh")) - .withPolicy( - new PipelinePolicy() - .withElapsedTimeMetric(new PipelineElapsedTimeMetricPolicy().withDuration("datacsspnfxwkjhzg"))) - .withIfMatch("pfgjzrdgnl") - .create(); - - Assertions.assertEquals("zpusbfgjr", response.id()); - Assertions.assertEquals("mzlsg", response.description()); - Assertions.assertEquals("vx", response.activities().get(0).name()); - Assertions.assertEquals("vwuhvpipaafvtk", response.activities().get(0).description()); - Assertions.assertEquals(ActivityState.ACTIVE, response.activities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, response.activities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("hwipihoxpeyixbrs", response.activities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals("hcpdohvwyitc", response.activities().get(0).userProperties().get(0).name()); - Assertions.assertEquals(ParameterType.OBJECT, response.parameters().get("goaxtwtkkmuir").type()); - Assertions.assertEquals(VariableType.ARRAY, response.variables().get("mdn").type()); - Assertions.assertEquals(1106785884, response.concurrency()); - Assertions.assertEquals("tarneugbupk", response.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelinesCreateRunWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelinesCreateRunWithResponseMockTests.java deleted file mode 100644 index 87348170c2c8..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelinesCreateRunWithResponseMockTests.java +++ /dev/null @@ -1,100 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.CreateRunResponse; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class PipelinesCreateRunWithResponseMockTests { - @Test - public void testCreateRunWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{\"runId\":\"mebwcuf\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - CreateRunResponse response = - manager - .pipelines() - .createRunWithResponse( - "eofjoqjmlzlki", - "jssfwojfng", - "hzrjsbwdsit", - "pashvjrin", - false, - "tgaduslnrqykn", - false, - mapOf( - "idyansnunvgqtvg", - "datacxya", - "vrdsv", - "dataperbnbsd", - "mnmxspz", - "datajgtqqrmi", - "paw", - "datairvzbmhmkoxsavzn"), - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("mebwcuf", response.runId()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelinesDeleteWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelinesDeleteWithResponseMockTests.java deleted file mode 100644 index 434695b9e235..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelinesDeleteWithResponseMockTests.java +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class PipelinesDeleteWithResponseMockTests { - @Test - public void testDeleteWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager - .pipelines() - .deleteWithResponse("lwoozlfliiru", "nglfcrtkpfsjwtq", "o", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelinesGetWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelinesGetWithResponseMockTests.java deleted file mode 100644 index f9349043b877..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelinesGetWithResponseMockTests.java +++ /dev/null @@ -1,85 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.PipelineResource; -import com.azure.resourcemanager.datafactory.models.VariableType; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class PipelinesGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"description\":\"w\",\"activities\":[{\"type\":\"Activity\",\"name\":\"skyjlteiul\",\"description\":\"pvhivvlmzcvp\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"e\",\"dependencyConditions\":[]},{\"activity\":\"yzer\",\"dependencyConditions\":[]},{\"activity\":\"ezgi\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"sfmcxarhg\",\"value\":\"datauejtxxlkoktbcl\"},{\"name\":\"vwtwboxgrvsavo\",\"value\":\"databsqu\"},{\"name\":\"kuszllognledhvll\",\"value\":\"datanyg\"},{\"name\":\"mn\",\"value\":\"datavqaq\"}],\"\":{\"bvhflbchzob\":\"datapulwdh\",\"yqtyuywzccumk\":\"dataeeiakwdtuwbrw\"}}],\"parameters\":{\"tzvrgoxpayjs\":{\"type\":\"Int\",\"defaultValue\":\"datakcolvitbtloxrb\"},\"beyugggf\":{\"type\":\"Float\",\"defaultValue\":\"datafqstbfuqmlnef\"},\"vrkxyjsuappdmu\":{\"type\":\"SecureString\",\"defaultValue\":\"datatykenmjznjqrxyaa\"}},\"variables\":{\"dg\":{\"type\":\"String\",\"defaultValue\":\"datasbwmsyoybjt\"},\"lfovmc\":{\"type\":\"Array\",\"defaultValue\":\"datakqi\"},\"qvjfszvecedoptez\":{\"type\":\"Array\",\"defaultValue\":\"databofqd\"},\"dbkgxqsbwep\":{\"type\":\"String\",\"defaultValue\":\"dataerurcjgkauyzbrdi\"}},\"concurrency\":448070341,\"annotations\":[\"datavjxarddb\"],\"runDimensions\":{\"wgttpxbjihz\":\"dataayltyftwdprtp\",\"dnljpouz\":\"dataxndnbzhs\"},\"folder\":{\"name\":\"ytex\"},\"policy\":{\"elapsedTimeMetric\":{\"duration\":\"dataqllqn\"}}},\"name\":\"y\",\"type\":\"fleioyw\",\"etag\":\"lhbytshsathkt\",\"\":{\"aji\":\"dataljnuayptyzjqte\",\"gytquktcqggxdnpp\":\"datanpwomjlps\"},\"id\":\"fqag\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PipelineResource response = - manager - .pipelines() - .getWithResponse("eacpwsdir", "pr", "lgzpnr", "mjyvmxt", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("fqag", response.id()); - Assertions.assertEquals("w", response.description()); - Assertions.assertEquals("skyjlteiul", response.activities().get(0).name()); - Assertions.assertEquals("pvhivvlmzcvp", response.activities().get(0).description()); - Assertions.assertEquals(ActivityState.ACTIVE, response.activities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, response.activities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("e", response.activities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals("sfmcxarhg", response.activities().get(0).userProperties().get(0).name()); - Assertions.assertEquals(ParameterType.INT, response.parameters().get("tzvrgoxpayjs").type()); - Assertions.assertEquals(VariableType.STRING, response.variables().get("dg").type()); - Assertions.assertEquals(448070341, response.concurrency()); - Assertions.assertEquals("ytex", response.folder().name()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelinesListByFactoryMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelinesListByFactoryMockTests.java deleted file mode 100644 index 49d4b2040ca9..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelinesListByFactoryMockTests.java +++ /dev/null @@ -1,87 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.PipelineResource; -import com.azure.resourcemanager.datafactory.models.VariableType; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class PipelinesListByFactoryMockTests { - @Test - public void testListByFactory() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"properties\":{\"description\":\"udromhhs\",\"activities\":[{\"type\":\"Activity\",\"name\":\"fvrakpq\",\"description\":\"toiudveoib\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"jxilbsbhaqsucwdc\",\"dependencyConditions\":[]},{\"activity\":\"dkwwuljv\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"gsxr\",\"value\":\"datax\"},{\"name\":\"ofmvau\",\"value\":\"datanhmnswlf\"}],\"\":{\"aytvi\":\"dataild\",\"dpssklm\":\"datavejwtzki\"}},{\"type\":\"Activity\",\"name\":\"taeallsxfzantssb\",\"description\":\"oqx\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"gxrfrmdpwpzuxoy\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"kloqpwsaqcre\",\"value\":\"datakgjdn\"}],\"\":{\"nmanrzjpr\":\"datapvrwecrvkiao\",\"szjb\":\"dataqwjwpej\"}},{\"type\":\"Activity\",\"name\":\"jcvwvycvnowzcli\",\"description\":\"dlhxwwhusrod\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"wqmocwkw\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"oqldacxo\",\"value\":\"dataaqassukv\"}],\"\":{\"mjzsjfca\":\"datazxznctxoczns\",\"a\":\"datapkpvdiirv\"}}],\"parameters\":{\"omakmi\":{\"type\":\"Float\",\"defaultValue\":\"datahxok\"},\"xyqprch\":{\"type\":\"String\",\"defaultValue\":\"dataduflajsgutgzcb\"}},\"variables\":{\"oaazvm\":{\"type\":\"Array\",\"defaultValue\":\"dataaoytkk\"},\"jtkpocqboyjjfx\":{\"type\":\"String\",\"defaultValue\":\"datadzfypdsrfpihvij\"},\"btux\":{\"type\":\"Bool\",\"defaultValue\":\"dataduyotqbfqt\"}},\"concurrency\":310896649,\"annotations\":[\"dataxolbzjl\",\"datarpsqp\"],\"runDimensions\":{\"xcahfoemcajj\":\"datacoibiodfybafenwv\",\"gnjhxydxicou\":\"datazoykw\",\"ejmjp\":\"datalgtbslagtmkiilc\"},\"folder\":{\"name\":\"bzlmztkzg\"},\"policy\":{\"elapsedTimeMetric\":{\"duration\":\"dataytq\"}}},\"name\":\"szdpto\",\"type\":\"cnxgqovfrtmwyez\",\"etag\":\"xmcawpbifzwo\",\"\":{\"l\":\"datacvjmyinplomejhxf\",\"ialsr\":\"datacbbabi\",\"wrpjoqc\":\"datazatl\"},\"id\":\"wzwshsg\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = - manager.pipelines().listByFactory("jzlnrellwf", "yabglsarfmjsch", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("wzwshsg", response.iterator().next().id()); - Assertions.assertEquals("udromhhs", response.iterator().next().description()); - Assertions.assertEquals("fvrakpq", response.iterator().next().activities().get(0).name()); - Assertions.assertEquals("toiudveoib", response.iterator().next().activities().get(0).description()); - Assertions.assertEquals(ActivityState.ACTIVE, response.iterator().next().activities().get(0).state()); - Assertions - .assertEquals( - ActivityOnInactiveMarkAs.FAILED, response.iterator().next().activities().get(0).onInactiveMarkAs()); - Assertions - .assertEquals( - "jxilbsbhaqsucwdc", response.iterator().next().activities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals("gsxr", response.iterator().next().activities().get(0).userProperties().get(0).name()); - Assertions.assertEquals(ParameterType.FLOAT, response.iterator().next().parameters().get("omakmi").type()); - Assertions.assertEquals(VariableType.ARRAY, response.iterator().next().variables().get("oaazvm").type()); - Assertions.assertEquals(310896649, response.iterator().next().concurrency()); - Assertions.assertEquals("bzlmztkzg", response.iterator().next().folder().name()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PolybaseSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PolybaseSettingsTests.java deleted file mode 100644 index 0b2490d60b5b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PolybaseSettingsTests.java +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.PolybaseSettings; -import com.azure.resourcemanager.datafactory.models.PolybaseSettingsRejectType; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class PolybaseSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PolybaseSettings model = - BinaryData - .fromString( - "{\"rejectType\":\"value\",\"rejectValue\":\"dataocrddqxhegcolh\",\"rejectSampleValue\":\"datacklqrunqwcrkkaby\",\"useTypeDefault\":\"datay\",\"\":{\"jypo\":\"datapywgjgfbsfsvayg\",\"ymf\":\"datakiptnwpwskckc\",\"plkpemxc\":\"dataxpgvqioqrebwarl\",\"earwtkrbscwb\":\"datareqaqvspsy\"}}") - .toObject(PolybaseSettings.class); - Assertions.assertEquals(PolybaseSettingsRejectType.VALUE, model.rejectType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PolybaseSettings model = - new PolybaseSettings() - .withRejectType(PolybaseSettingsRejectType.VALUE) - .withRejectValue("dataocrddqxhegcolh") - .withRejectSampleValue("datacklqrunqwcrkkaby") - .withUseTypeDefault("datay") - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(PolybaseSettings.class); - Assertions.assertEquals(PolybaseSettingsRejectType.VALUE, model.rejectType()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PostgreSqlSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PostgreSqlSourceTests.java deleted file mode 100644 index 5ac58df54073..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PostgreSqlSourceTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.PostgreSqlSource; - -public final class PostgreSqlSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PostgreSqlSource model = - BinaryData - .fromString( - "{\"type\":\"PostgreSqlSource\",\"query\":\"datavhjkwfolpj\",\"queryTimeout\":\"datapahvoiranxqnz\",\"additionalColumns\":\"datavnldtqykz\",\"sourceRetryCount\":\"datadoqrejl\",\"sourceRetryWait\":\"datan\",\"maxConcurrentConnections\":\"dataicyozryoxmfrxf\",\"disableMetricsCollection\":\"datacjialvchfumlfgm\",\"\":{\"ipklfwn\":\"dataxko\",\"dkvljitbnhg\":\"datafkbqlrtffsw\",\"abgsdxtwqqukgo\":\"datarvlarozswmucr\",\"ksltunrwxsqvx\":\"datalvjgsk\"}}") - .toObject(PostgreSqlSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PostgreSqlSource model = - new PostgreSqlSource() - .withSourceRetryCount("datadoqrejl") - .withSourceRetryWait("datan") - .withMaxConcurrentConnections("dataicyozryoxmfrxf") - .withDisableMetricsCollection("datacjialvchfumlfgm") - .withQueryTimeout("datapahvoiranxqnz") - .withAdditionalColumns("datavnldtqykz") - .withQuery("datavhjkwfolpj"); - model = BinaryData.fromObject(model).toObject(PostgreSqlSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PostgreSqlTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PostgreSqlTableDatasetTests.java deleted file mode 100644 index d86720c04336..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PostgreSqlTableDatasetTests.java +++ /dev/null @@ -1,83 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.PostgreSqlTableDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class PostgreSqlTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PostgreSqlTableDataset model = - BinaryData - .fromString( - "{\"type\":\"PostgreSqlTable\",\"typeProperties\":{\"tableName\":\"databgwzhbhflj\",\"table\":\"dataod\",\"schema\":\"dataovnlhrwya\"},\"description\":\"uafapwxsvdeatjio\",\"structure\":\"datairgoextqdn\",\"schema\":\"datagntimz\",\"linkedServiceName\":{\"referenceName\":\"upbmtbsetkods\",\"parameters\":{\"jyvdhdgdiwmlg\":\"dataedaakghcrzmm\",\"fkakhgkrvtyycvy\":\"datatmfetqjisjmolzca\",\"ejqaw\":\"datav\",\"pbbimh\":\"datausqpfzxkczbd\"}},\"parameters\":{\"zl\":{\"type\":\"Float\",\"defaultValue\":\"dataoortclnhbjcy\"},\"lkv\":{\"type\":\"SecureString\",\"defaultValue\":\"datascibv\"}},\"annotations\":[\"dataafnwqh\"],\"folder\":{\"name\":\"cnviulby\"},\"\":{\"umwhmxpuck\":\"datajzrycwpb\"}}") - .toObject(PostgreSqlTableDataset.class); - Assertions.assertEquals("uafapwxsvdeatjio", model.description()); - Assertions.assertEquals("upbmtbsetkods", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("zl").type()); - Assertions.assertEquals("cnviulby", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PostgreSqlTableDataset model = - new PostgreSqlTableDataset() - .withDescription("uafapwxsvdeatjio") - .withStructure("datairgoextqdn") - .withSchema("datagntimz") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("upbmtbsetkods") - .withParameters( - mapOf( - "jyvdhdgdiwmlg", - "dataedaakghcrzmm", - "fkakhgkrvtyycvy", - "datatmfetqjisjmolzca", - "ejqaw", - "datav", - "pbbimh", - "datausqpfzxkczbd"))) - .withParameters( - mapOf( - "zl", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("dataoortclnhbjcy"), - "lkv", - new ParameterSpecification() - .withType(ParameterType.SECURE_STRING) - .withDefaultValue("datascibv"))) - .withAnnotations(Arrays.asList("dataafnwqh")) - .withFolder(new DatasetFolder().withName("cnviulby")) - .withTableName("databgwzhbhflj") - .withTable("dataod") - .withSchemaTypePropertiesSchema("dataovnlhrwya"); - model = BinaryData.fromObject(model).toObject(PostgreSqlTableDataset.class); - Assertions.assertEquals("uafapwxsvdeatjio", model.description()); - Assertions.assertEquals("upbmtbsetkods", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("zl").type()); - Assertions.assertEquals("cnviulby", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PostgreSqlTableDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PostgreSqlTableDatasetTypePropertiesTests.java deleted file mode 100644 index abe02bd679f5..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PostgreSqlTableDatasetTypePropertiesTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.PostgreSqlTableDatasetTypeProperties; - -public final class PostgreSqlTableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PostgreSqlTableDatasetTypeProperties model = - BinaryData - .fromString("{\"tableName\":\"dataastlpsmgo\",\"table\":\"datac\",\"schema\":\"datarvlvvjmx\"}") - .toObject(PostgreSqlTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PostgreSqlTableDatasetTypeProperties model = - new PostgreSqlTableDatasetTypeProperties() - .withTableName("dataastlpsmgo") - .withTable("datac") - .withSchema("datarvlvvjmx"); - model = BinaryData.fromObject(model).toObject(PostgreSqlTableDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PowerQuerySinkMappingTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PowerQuerySinkMappingTests.java deleted file mode 100644 index 24ad0a61c302..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PowerQuerySinkMappingTests.java +++ /dev/null @@ -1,276 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DataFlowReference; -import com.azure.resourcemanager.datafactory.models.DataFlowReferenceType; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.PowerQuerySink; -import com.azure.resourcemanager.datafactory.models.PowerQuerySinkMapping; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class PowerQuerySinkMappingTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PowerQuerySinkMapping model = - BinaryData - .fromString( - "{\"queryName\":\"qfzbiy\",\"dataflowSinks\":[{\"script\":\"yvsbjpyxlzxji\",\"schemaLinkedService\":{\"referenceName\":\"qprshtwdgoqxfb\",\"parameters\":{\"duwqovlqfz\":\"datatizroru\",\"kovubfugdgpmtzqp\":\"dataehagorbspotq\",\"vetuqi\":\"datavochmeximhmi\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"jamihnrulgypna\",\"parameters\":{\"eezii\":\"datasdwnanuqntx\",\"ntrynfo\":\"dataixfy\",\"gtodpuqilp\":\"dataoeuztpssmhdqcrig\"}},\"name\":\"zbybrvkx\",\"description\":\"fzs\",\"dataset\":{\"referenceName\":\"oumkeuc\",\"parameters\":{\"ktmsphcrn\":\"datauuzftd\"}},\"linkedService\":{\"referenceName\":\"xtzdspykcreuo\",\"parameters\":{\"kexcyw\":\"datasulejukackicrdr\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"dd\",\"datasetParameters\":\"dataljllypchqhci\",\"parameters\":{\"zpe\":\"datajt\"},\"\":{\"xicq\":\"datatkimmpgc\",\"nro\":\"datavwzxqmves\"}}},{\"script\":\"rqdgyttfzozrx\",\"schemaLinkedService\":{\"referenceName\":\"jjimfcgbdupslwl\",\"parameters\":{\"eqeabedfo\":\"dataezxcpxwqgmnq\",\"ahup\":\"datasiplhygp\",\"h\":\"datam\",\"pnrjsw\":\"datahrgeymspvgatzru\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"txrecwdleivmuq\",\"parameters\":{\"lpnyehhqy\":\"datarjv\",\"ka\":\"datajrmxazkqiqzaea\",\"xivhozhr\":\"datapokf\",\"azrbkhy\":\"databvfljxljgtirn\"}},\"name\":\"uf\",\"description\":\"qtvbyfyz\",\"dataset\":{\"referenceName\":\"uupeflk\",\"parameters\":{\"d\":\"dataxnja\",\"ydntupbrvdgtblx\":\"dataeayuowivpne\",\"ztlsnkwullvu\":\"datamdabpifygxuaidr\"}},\"linkedService\":{\"referenceName\":\"ymosj\",\"parameters\":{\"q\":\"datandjjqhins\",\"iwrfocbetlljqkgl\":\"dataudjrotqdiaxf\",\"xvl\":\"datavjaw\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"c\",\"datasetParameters\":\"dataseqmejerjyz\",\"parameters\":{\"ogykrmf\":\"datazbjieeivdrqtlcx\",\"w\":\"datalturxyvgro\",\"rxnlj\":\"datasnpcwymmgb\"},\"\":{\"dbhzcda\":\"datajsnzuebyzn\",\"eeqhjcwrrneor\":\"datanztzhqsbgksfjq\"}}},{\"script\":\"tlikbaumrqpon\",\"schemaLinkedService\":{\"referenceName\":\"comqlbjxpslvvg\",\"parameters\":{\"ytjsrboqamqqq\":\"dataqparqzygdko\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"kjtcdppdm\",\"parameters\":{\"ixbkvydvdjcgdh\":\"dataubcccltygxzit\",\"swlmxepygkfuwgkb\":\"datarlrfayd\"}},\"name\":\"jqtk\",\"description\":\"wmqzkjeczpzwfew\",\"dataset\":{\"referenceName\":\"acvmhp\",\"parameters\":{\"exnxxwafialipy\":\"datauhh\",\"iodyuuot\":\"datanukvfjbxvhui\",\"puxjhxsfb\":\"datapljwrahqqumozule\",\"kgxzi\":\"datawaaysmmzt\"}},\"linkedService\":{\"referenceName\":\"nkmjg\",\"parameters\":{\"smpgo\":\"datalnnxopixxciy\",\"we\":\"dataclstysirhnwseb\",\"ddcqteozayjim\":\"datasxrnji\",\"jtmdw\":\"datacb\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"jkqohcfnomwaoe\",\"datasetParameters\":\"datajmmsgukoq\",\"parameters\":{\"ztdzmei\":\"datakerztenzkbppgc\",\"mdzafdqqjds\":\"datacdybcor\",\"pqag\":\"dataztzhwbwrocuv\"},\"\":{\"afzvxbvkejrnmoek\":\"datartzusxhljexp\",\"trad\":\"datahxkgxydimopz\",\"tdhoxuxwvbsa\":\"dataihnpwsagebosbzyd\"}}},{\"script\":\"hs\",\"schemaLinkedService\":{\"referenceName\":\"ox\",\"parameters\":{\"lkygcg\":\"datahakhaechrjfpqem\",\"wnxpye\":\"datajdvabvsizmtmcteh\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"dablqollbvbohp\",\"parameters\":{\"tjjqcfzdfmqoe\":\"datasqavpu\",\"zymoqatga\":\"datafypuypztn\"}},\"name\":\"dzhi\",\"description\":\"aebaw\",\"dataset\":{\"referenceName\":\"ajdkjqznmzr\",\"parameters\":{\"pishjkovrqxojjm\":\"datayvxlnpvpcr\",\"gpnk\":\"datacfivr\"}},\"linkedService\":{\"referenceName\":\"axyyvxetgsdhwmbe\",\"parameters\":{\"rbrkqdbqhz\":\"datadorkchbnatr\",\"gut\":\"datavatypjk\",\"vrlbezhwsvoi\":\"datadlehcqbjjphuakpk\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"xjcjiqxybbby\",\"datasetParameters\":\"dataufzrjcbadnw\",\"parameters\":{\"cnhiamydw\":\"dataydcovspdmeea\"},\"\":{\"bmffzigfdh\":\"dataurqctlixnu\",\"crviobfuirwf\":\"dataw\",\"impxyurnmanbs\":\"datagupaz\",\"jorfrgbugprfiymp\":\"dataqarmijuld\"}}}]}") - .toObject(PowerQuerySinkMapping.class); - Assertions.assertEquals("qfzbiy", model.queryName()); - Assertions.assertEquals("zbybrvkx", model.dataflowSinks().get(0).name()); - Assertions.assertEquals("fzs", model.dataflowSinks().get(0).description()); - Assertions.assertEquals("oumkeuc", model.dataflowSinks().get(0).dataset().referenceName()); - Assertions.assertEquals("xtzdspykcreuo", model.dataflowSinks().get(0).linkedService().referenceName()); - Assertions - .assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.dataflowSinks().get(0).flowlet().type()); - Assertions.assertEquals("dd", model.dataflowSinks().get(0).flowlet().referenceName()); - Assertions.assertEquals("qprshtwdgoqxfb", model.dataflowSinks().get(0).schemaLinkedService().referenceName()); - Assertions - .assertEquals("jamihnrulgypna", model.dataflowSinks().get(0).rejectedDataLinkedService().referenceName()); - Assertions.assertEquals("yvsbjpyxlzxji", model.dataflowSinks().get(0).script()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PowerQuerySinkMapping model = - new PowerQuerySinkMapping() - .withQueryName("qfzbiy") - .withDataflowSinks( - Arrays - .asList( - new PowerQuerySink() - .withName("zbybrvkx") - .withDescription("fzs") - .withDataset( - new DatasetReference() - .withReferenceName("oumkeuc") - .withParameters(mapOf("ktmsphcrn", "datauuzftd"))) - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("xtzdspykcreuo") - .withParameters(mapOf("kexcyw", "datasulejukackicrdr"))) - .withFlowlet( - new DataFlowReference() - .withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("dd") - .withDatasetParameters("dataljllypchqhci") - .withParameters(mapOf("zpe", "datajt")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService( - new LinkedServiceReference() - .withReferenceName("qprshtwdgoqxfb") - .withParameters( - mapOf( - "duwqovlqfz", - "datatizroru", - "kovubfugdgpmtzqp", - "dataehagorbspotq", - "vetuqi", - "datavochmeximhmi"))) - .withRejectedDataLinkedService( - new LinkedServiceReference() - .withReferenceName("jamihnrulgypna") - .withParameters( - mapOf( - "eezii", - "datasdwnanuqntx", - "ntrynfo", - "dataixfy", - "gtodpuqilp", - "dataoeuztpssmhdqcrig"))) - .withScript("yvsbjpyxlzxji"), - new PowerQuerySink() - .withName("uf") - .withDescription("qtvbyfyz") - .withDataset( - new DatasetReference() - .withReferenceName("uupeflk") - .withParameters( - mapOf( - "d", - "dataxnja", - "ydntupbrvdgtblx", - "dataeayuowivpne", - "ztlsnkwullvu", - "datamdabpifygxuaidr"))) - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("ymosj") - .withParameters( - mapOf( - "q", - "datandjjqhins", - "iwrfocbetlljqkgl", - "dataudjrotqdiaxf", - "xvl", - "datavjaw"))) - .withFlowlet( - new DataFlowReference() - .withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("c") - .withDatasetParameters("dataseqmejerjyz") - .withParameters( - mapOf( - "ogykrmf", - "datazbjieeivdrqtlcx", - "w", - "datalturxyvgro", - "rxnlj", - "datasnpcwymmgb")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService( - new LinkedServiceReference() - .withReferenceName("jjimfcgbdupslwl") - .withParameters( - mapOf( - "eqeabedfo", - "dataezxcpxwqgmnq", - "ahup", - "datasiplhygp", - "h", - "datam", - "pnrjsw", - "datahrgeymspvgatzru"))) - .withRejectedDataLinkedService( - new LinkedServiceReference() - .withReferenceName("txrecwdleivmuq") - .withParameters( - mapOf( - "lpnyehhqy", - "datarjv", - "ka", - "datajrmxazkqiqzaea", - "xivhozhr", - "datapokf", - "azrbkhy", - "databvfljxljgtirn"))) - .withScript("rqdgyttfzozrx"), - new PowerQuerySink() - .withName("jqtk") - .withDescription("wmqzkjeczpzwfew") - .withDataset( - new DatasetReference() - .withReferenceName("acvmhp") - .withParameters( - mapOf( - "exnxxwafialipy", - "datauhh", - "iodyuuot", - "datanukvfjbxvhui", - "puxjhxsfb", - "datapljwrahqqumozule", - "kgxzi", - "datawaaysmmzt"))) - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("nkmjg") - .withParameters( - mapOf( - "smpgo", - "datalnnxopixxciy", - "we", - "dataclstysirhnwseb", - "ddcqteozayjim", - "datasxrnji", - "jtmdw", - "datacb"))) - .withFlowlet( - new DataFlowReference() - .withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("jkqohcfnomwaoe") - .withDatasetParameters("datajmmsgukoq") - .withParameters( - mapOf( - "ztdzmei", - "datakerztenzkbppgc", - "mdzafdqqjds", - "datacdybcor", - "pqag", - "dataztzhwbwrocuv")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService( - new LinkedServiceReference() - .withReferenceName("comqlbjxpslvvg") - .withParameters(mapOf("ytjsrboqamqqq", "dataqparqzygdko"))) - .withRejectedDataLinkedService( - new LinkedServiceReference() - .withReferenceName("kjtcdppdm") - .withParameters( - mapOf( - "ixbkvydvdjcgdh", - "dataubcccltygxzit", - "swlmxepygkfuwgkb", - "datarlrfayd"))) - .withScript("tlikbaumrqpon"), - new PowerQuerySink() - .withName("dzhi") - .withDescription("aebaw") - .withDataset( - new DatasetReference() - .withReferenceName("ajdkjqznmzr") - .withParameters( - mapOf("pishjkovrqxojjm", "datayvxlnpvpcr", "gpnk", "datacfivr"))) - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("axyyvxetgsdhwmbe") - .withParameters( - mapOf( - "rbrkqdbqhz", - "datadorkchbnatr", - "gut", - "datavatypjk", - "vrlbezhwsvoi", - "datadlehcqbjjphuakpk"))) - .withFlowlet( - new DataFlowReference() - .withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("xjcjiqxybbby") - .withDatasetParameters("dataufzrjcbadnw") - .withParameters(mapOf("cnhiamydw", "dataydcovspdmeea")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService( - new LinkedServiceReference() - .withReferenceName("ox") - .withParameters( - mapOf("lkygcg", "datahakhaechrjfpqem", "wnxpye", "datajdvabvsizmtmcteh"))) - .withRejectedDataLinkedService( - new LinkedServiceReference() - .withReferenceName("dablqollbvbohp") - .withParameters( - mapOf("tjjqcfzdfmqoe", "datasqavpu", "zymoqatga", "datafypuypztn"))) - .withScript("hs"))); - model = BinaryData.fromObject(model).toObject(PowerQuerySinkMapping.class); - Assertions.assertEquals("qfzbiy", model.queryName()); - Assertions.assertEquals("zbybrvkx", model.dataflowSinks().get(0).name()); - Assertions.assertEquals("fzs", model.dataflowSinks().get(0).description()); - Assertions.assertEquals("oumkeuc", model.dataflowSinks().get(0).dataset().referenceName()); - Assertions.assertEquals("xtzdspykcreuo", model.dataflowSinks().get(0).linkedService().referenceName()); - Assertions - .assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.dataflowSinks().get(0).flowlet().type()); - Assertions.assertEquals("dd", model.dataflowSinks().get(0).flowlet().referenceName()); - Assertions.assertEquals("qprshtwdgoqxfb", model.dataflowSinks().get(0).schemaLinkedService().referenceName()); - Assertions - .assertEquals("jamihnrulgypna", model.dataflowSinks().get(0).rejectedDataLinkedService().referenceName()); - Assertions.assertEquals("yvsbjpyxlzxji", model.dataflowSinks().get(0).script()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PowerQuerySinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PowerQuerySinkTests.java deleted file mode 100644 index adc11bdc6353..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PowerQuerySinkTests.java +++ /dev/null @@ -1,89 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DataFlowReference; -import com.azure.resourcemanager.datafactory.models.DataFlowReferenceType; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.PowerQuerySink; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class PowerQuerySinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PowerQuerySink model = - BinaryData - .fromString( - "{\"script\":\"oykdno\",\"schemaLinkedService\":{\"referenceName\":\"axwmgzru\",\"parameters\":{\"cbgvsbt\":\"datacwnynlleiq\",\"xmnrqstjcmet\":\"dataertoxadhxuvj\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"l\",\"parameters\":{\"gjnaqyqipsl\":\"datavnpvvd\",\"tfo\":\"datamvcdsvmwbitek\"}},\"name\":\"vfiybxqichgyb\",\"description\":\"dqekivycpzcvd\",\"dataset\":{\"referenceName\":\"ulrqtbht\",\"parameters\":{\"ryfmxmdu\":\"datapzl\",\"giln\":\"datazf\"}},\"linkedService\":{\"referenceName\":\"dccgndjgdpriggqq\",\"parameters\":{\"buu\":\"dataf\",\"igi\":\"datapyuflqjfshtujcyo\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"csklkqnq\",\"datasetParameters\":\"dataixnmbz\",\"parameters\":{\"mbzayspzvrietv\":\"datauyrzw\",\"dvatlzmgschn\":\"dataphmdzxplgtp\"},\"\":{\"vlzdmnfm\":\"databkkz\"}}}") - .toObject(PowerQuerySink.class); - Assertions.assertEquals("vfiybxqichgyb", model.name()); - Assertions.assertEquals("dqekivycpzcvd", model.description()); - Assertions.assertEquals("ulrqtbht", model.dataset().referenceName()); - Assertions.assertEquals("dccgndjgdpriggqq", model.linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.flowlet().type()); - Assertions.assertEquals("csklkqnq", model.flowlet().referenceName()); - Assertions.assertEquals("axwmgzru", model.schemaLinkedService().referenceName()); - Assertions.assertEquals("l", model.rejectedDataLinkedService().referenceName()); - Assertions.assertEquals("oykdno", model.script()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PowerQuerySink model = - new PowerQuerySink() - .withName("vfiybxqichgyb") - .withDescription("dqekivycpzcvd") - .withDataset( - new DatasetReference() - .withReferenceName("ulrqtbht") - .withParameters(mapOf("ryfmxmdu", "datapzl", "giln", "datazf"))) - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("dccgndjgdpriggqq") - .withParameters(mapOf("buu", "dataf", "igi", "datapyuflqjfshtujcyo"))) - .withFlowlet( - new DataFlowReference() - .withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("csklkqnq") - .withDatasetParameters("dataixnmbz") - .withParameters(mapOf("mbzayspzvrietv", "datauyrzw", "dvatlzmgschn", "dataphmdzxplgtp")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService( - new LinkedServiceReference() - .withReferenceName("axwmgzru") - .withParameters(mapOf("cbgvsbt", "datacwnynlleiq", "xmnrqstjcmet", "dataertoxadhxuvj"))) - .withRejectedDataLinkedService( - new LinkedServiceReference() - .withReferenceName("l") - .withParameters(mapOf("gjnaqyqipsl", "datavnpvvd", "tfo", "datamvcdsvmwbitek"))) - .withScript("oykdno"); - model = BinaryData.fromObject(model).toObject(PowerQuerySink.class); - Assertions.assertEquals("vfiybxqichgyb", model.name()); - Assertions.assertEquals("dqekivycpzcvd", model.description()); - Assertions.assertEquals("ulrqtbht", model.dataset().referenceName()); - Assertions.assertEquals("dccgndjgdpriggqq", model.linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.flowlet().type()); - Assertions.assertEquals("csklkqnq", model.flowlet().referenceName()); - Assertions.assertEquals("axwmgzru", model.schemaLinkedService().referenceName()); - Assertions.assertEquals("l", model.rejectedDataLinkedService().referenceName()); - Assertions.assertEquals("oykdno", model.script()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PowerQuerySourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PowerQuerySourceTests.java deleted file mode 100644 index bef744fbeddb..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PowerQuerySourceTests.java +++ /dev/null @@ -1,101 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DataFlowReference; -import com.azure.resourcemanager.datafactory.models.DataFlowReferenceType; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.PowerQuerySource; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class PowerQuerySourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PowerQuerySource model = - BinaryData - .fromString( - "{\"script\":\"wqikwepwogggic\",\"schemaLinkedService\":{\"referenceName\":\"xhtfmcqbsudzpgch\",\"parameters\":{\"djxh\":\"datafqum\",\"v\":\"dataghgodkynrceq\",\"mmxjdnajuopj\":\"datadbd\",\"cwlo\":\"datayqmkwlh\"}},\"name\":\"dejkluxxrwzobuz\",\"description\":\"xga\",\"dataset\":{\"referenceName\":\"dtkwppth\",\"parameters\":{\"imrljdp\":\"datapr\",\"mhk\":\"dataqfxy\",\"loamfmxtllfltym\":\"datatbaewhte\",\"rfijhggabq\":\"datacn\"}},\"linkedService\":{\"referenceName\":\"amklilirwdv\",\"parameters\":{\"jxrdfd\":\"datasdpzouhktqrxqwq\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"llygta\",\"datasetParameters\":\"datazcxdfweapyfmlxrl\",\"parameters\":{\"x\":\"dataraspifleim\"},\"\":{\"cehfgsm\":\"databg\",\"mtznpaxwfqtyyqi\":\"datarjuqbpxtokl\",\"i\":\"datarcltungbsoljckm\",\"iiqqcqikclsmalns\":\"datazbkuckgkdsksw\"}}}") - .toObject(PowerQuerySource.class); - Assertions.assertEquals("dejkluxxrwzobuz", model.name()); - Assertions.assertEquals("xga", model.description()); - Assertions.assertEquals("dtkwppth", model.dataset().referenceName()); - Assertions.assertEquals("amklilirwdv", model.linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.flowlet().type()); - Assertions.assertEquals("llygta", model.flowlet().referenceName()); - Assertions.assertEquals("xhtfmcqbsudzpgch", model.schemaLinkedService().referenceName()); - Assertions.assertEquals("wqikwepwogggic", model.script()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PowerQuerySource model = - new PowerQuerySource() - .withName("dejkluxxrwzobuz") - .withDescription("xga") - .withDataset( - new DatasetReference() - .withReferenceName("dtkwppth") - .withParameters( - mapOf( - "imrljdp", - "datapr", - "mhk", - "dataqfxy", - "loamfmxtllfltym", - "datatbaewhte", - "rfijhggabq", - "datacn"))) - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("amklilirwdv") - .withParameters(mapOf("jxrdfd", "datasdpzouhktqrxqwq"))) - .withFlowlet( - new DataFlowReference() - .withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("llygta") - .withDatasetParameters("datazcxdfweapyfmlxrl") - .withParameters(mapOf("x", "dataraspifleim")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService( - new LinkedServiceReference() - .withReferenceName("xhtfmcqbsudzpgch") - .withParameters( - mapOf( - "djxh", - "datafqum", - "v", - "dataghgodkynrceq", - "mmxjdnajuopj", - "datadbd", - "cwlo", - "datayqmkwlh"))) - .withScript("wqikwepwogggic"); - model = BinaryData.fromObject(model).toObject(PowerQuerySource.class); - Assertions.assertEquals("dejkluxxrwzobuz", model.name()); - Assertions.assertEquals("xga", model.description()); - Assertions.assertEquals("dtkwppth", model.dataset().referenceName()); - Assertions.assertEquals("amklilirwdv", model.linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.flowlet().type()); - Assertions.assertEquals("llygta", model.flowlet().referenceName()); - Assertions.assertEquals("xhtfmcqbsudzpgch", model.schemaLinkedService().referenceName()); - Assertions.assertEquals("wqikwepwogggic", model.script()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PowerQueryTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PowerQueryTypePropertiesTests.java deleted file mode 100644 index 5c33f0df3e59..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PowerQueryTypePropertiesTests.java +++ /dev/null @@ -1,191 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.PowerQueryTypeProperties; -import com.azure.resourcemanager.datafactory.models.DataFlowReference; -import com.azure.resourcemanager.datafactory.models.DataFlowReferenceType; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.PowerQuerySource; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class PowerQueryTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PowerQueryTypeProperties model = - BinaryData - .fromString( - "{\"sources\":[{\"script\":\"zkn\",\"schemaLinkedService\":{\"referenceName\":\"kmjqncfvdsc\",\"parameters\":{\"vndrwbgodtg\":\"datamvwfnqqwy\",\"ai\":\"datarssgwjf\"}},\"name\":\"jmu\",\"description\":\"vecvzts\",\"dataset\":{\"referenceName\":\"gmusaictdscnkzzo\",\"parameters\":{\"hlbzqixbnjrqvzy\":\"dataddclzeqozr\",\"me\":\"dataexozonynp\",\"jxvcvaso\":\"datadpabcreuwzosg\",\"xzv\":\"datamr\"}},\"linkedService\":{\"referenceName\":\"b\",\"parameters\":{\"uvecovsd\":\"datazygba\",\"akrlimzfvppkeqsi\":\"datahzrtd\",\"gygnhrkombc\":\"datajmcl\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"jdopggorwjo\",\"datasetParameters\":\"datarotpvclpof\",\"parameters\":{\"kptskwxjgvhxc\":\"datam\",\"kmkook\":\"databmk\",\"wk\":\"dataputmgvmuyakm\"},\"\":{\"qjimejtgzjxxlfej\":\"datawzkroyrdurxfl\"}}},{\"script\":\"uqloiwyayyzivrmi\",\"schemaLinkedService\":{\"referenceName\":\"dql\",\"parameters\":{\"xfns\":\"datawhrktjleifibfipl\",\"mhn\":\"dataycjowlyeyzmudsq\"}},\"name\":\"lzbuwodmachbkvn\",\"description\":\"bjrmvgo\",\"dataset\":{\"referenceName\":\"lehmum\",\"parameters\":{\"prwnhkgqggoxsst\":\"datallcz\"}},\"linkedService\":{\"referenceName\":\"vrak\",\"parameters\":{\"emjpequ\":\"dataynjcwmhlymgnukxr\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"zaudgjtfbclakkuc\",\"datasetParameters\":\"datawnhczbutou\",\"parameters\":{\"cqqwwvgwkslvlize\":\"datatirjwayh\",\"v\":\"datavbia\",\"wkhojqttbspvkhg\":\"datasrgekzyqxadyfhb\",\"xrk\":\"dataaqjsgyzstujr\"},\"\":{\"lduyehiiittugyuq\":\"datad\",\"csozjv\":\"datarldaxurfqa\"}}},{\"script\":\"zciggbnvtxofwa\",\"schemaLinkedService\":{\"referenceName\":\"yxwhoeamo\",\"parameters\":{\"fpnimtwuuhaueg\":\"datadoey\",\"zjy\":\"datakwmnfeub\"}},\"name\":\"kwfugiphrrkuu\",\"description\":\"qdurhzzfopue\",\"dataset\":{\"referenceName\":\"usvwluj\",\"parameters\":{\"fmwc\":\"datanibittoztjdqumq\",\"rbelfnzz\":\"dataddtgctxegtvgwy\",\"unomir\":\"datayizwbxgdebxla\"}},\"linkedService\":{\"referenceName\":\"fabenqla\",\"parameters\":{\"bcpjstbhem\":\"datagewayxfl\",\"eapdrbzyv\":\"datacucsqsnxfbxu\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"adulpodkaxp\",\"datasetParameters\":\"databkzhmhjd\",\"parameters\":{\"hfzt\":\"datadeluqroja\",\"bkuwpzqxlc\":\"dataraysrkgzkyhu\",\"ecjvxf\":\"dataeak\",\"ppwooaj\":\"dataqufqizj\"},\"\":{\"xpxhnzlslekc\":\"datajmjjxi\",\"adeghztldsvc\":\"datatgzkjtyqpd\",\"qymjzucwwmejjqhd\":\"datadjiah\",\"ookyfoz\":\"datawvmqxi\"}}}],\"script\":\"nzxbyp\",\"documentLocale\":\"pgaixwrgrkkderf\"}") - .toObject(PowerQueryTypeProperties.class); - Assertions.assertEquals("jmu", model.sources().get(0).name()); - Assertions.assertEquals("vecvzts", model.sources().get(0).description()); - Assertions.assertEquals("gmusaictdscnkzzo", model.sources().get(0).dataset().referenceName()); - Assertions.assertEquals("b", model.sources().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sources().get(0).flowlet().type()); - Assertions.assertEquals("jdopggorwjo", model.sources().get(0).flowlet().referenceName()); - Assertions.assertEquals("kmjqncfvdsc", model.sources().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("zkn", model.sources().get(0).script()); - Assertions.assertEquals("nzxbyp", model.script()); - Assertions.assertEquals("pgaixwrgrkkderf", model.documentLocale()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PowerQueryTypeProperties model = - new PowerQueryTypeProperties() - .withSources( - Arrays - .asList( - new PowerQuerySource() - .withName("jmu") - .withDescription("vecvzts") - .withDataset( - new DatasetReference() - .withReferenceName("gmusaictdscnkzzo") - .withParameters( - mapOf( - "hlbzqixbnjrqvzy", - "dataddclzeqozr", - "me", - "dataexozonynp", - "jxvcvaso", - "datadpabcreuwzosg", - "xzv", - "datamr"))) - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("b") - .withParameters( - mapOf( - "uvecovsd", - "datazygba", - "akrlimzfvppkeqsi", - "datahzrtd", - "gygnhrkombc", - "datajmcl"))) - .withFlowlet( - new DataFlowReference() - .withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("jdopggorwjo") - .withDatasetParameters("datarotpvclpof") - .withParameters( - mapOf( - "kptskwxjgvhxc", - "datam", - "kmkook", - "databmk", - "wk", - "dataputmgvmuyakm")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService( - new LinkedServiceReference() - .withReferenceName("kmjqncfvdsc") - .withParameters(mapOf("vndrwbgodtg", "datamvwfnqqwy", "ai", "datarssgwjf"))) - .withScript("zkn"), - new PowerQuerySource() - .withName("lzbuwodmachbkvn") - .withDescription("bjrmvgo") - .withDataset( - new DatasetReference() - .withReferenceName("lehmum") - .withParameters(mapOf("prwnhkgqggoxsst", "datallcz"))) - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("vrak") - .withParameters(mapOf("emjpequ", "dataynjcwmhlymgnukxr"))) - .withFlowlet( - new DataFlowReference() - .withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("zaudgjtfbclakkuc") - .withDatasetParameters("datawnhczbutou") - .withParameters( - mapOf( - "cqqwwvgwkslvlize", - "datatirjwayh", - "v", - "datavbia", - "wkhojqttbspvkhg", - "datasrgekzyqxadyfhb", - "xrk", - "dataaqjsgyzstujr")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService( - new LinkedServiceReference() - .withReferenceName("dql") - .withParameters( - mapOf("xfns", "datawhrktjleifibfipl", "mhn", "dataycjowlyeyzmudsq"))) - .withScript("uqloiwyayyzivrmi"), - new PowerQuerySource() - .withName("kwfugiphrrkuu") - .withDescription("qdurhzzfopue") - .withDataset( - new DatasetReference() - .withReferenceName("usvwluj") - .withParameters( - mapOf( - "fmwc", - "datanibittoztjdqumq", - "rbelfnzz", - "dataddtgctxegtvgwy", - "unomir", - "datayizwbxgdebxla"))) - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("fabenqla") - .withParameters( - mapOf("bcpjstbhem", "datagewayxfl", "eapdrbzyv", "datacucsqsnxfbxu"))) - .withFlowlet( - new DataFlowReference() - .withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("adulpodkaxp") - .withDatasetParameters("databkzhmhjd") - .withParameters( - mapOf( - "hfzt", - "datadeluqroja", - "bkuwpzqxlc", - "dataraysrkgzkyhu", - "ecjvxf", - "dataeak", - "ppwooaj", - "dataqufqizj")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService( - new LinkedServiceReference() - .withReferenceName("yxwhoeamo") - .withParameters(mapOf("fpnimtwuuhaueg", "datadoey", "zjy", "datakwmnfeub"))) - .withScript("zciggbnvtxofwa"))) - .withScript("nzxbyp") - .withDocumentLocale("pgaixwrgrkkderf"); - model = BinaryData.fromObject(model).toObject(PowerQueryTypeProperties.class); - Assertions.assertEquals("jmu", model.sources().get(0).name()); - Assertions.assertEquals("vecvzts", model.sources().get(0).description()); - Assertions.assertEquals("gmusaictdscnkzzo", model.sources().get(0).dataset().referenceName()); - Assertions.assertEquals("b", model.sources().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sources().get(0).flowlet().type()); - Assertions.assertEquals("jdopggorwjo", model.sources().get(0).flowlet().referenceName()); - Assertions.assertEquals("kmjqncfvdsc", model.sources().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("zkn", model.sources().get(0).script()); - Assertions.assertEquals("nzxbyp", model.script()); - Assertions.assertEquals("pgaixwrgrkkderf", model.documentLocale()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrestoDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrestoDatasetTypePropertiesTests.java deleted file mode 100644 index 306c5fdfb3f9..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrestoDatasetTypePropertiesTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.PrestoDatasetTypeProperties; - -public final class PrestoDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrestoDatasetTypeProperties model = - BinaryData - .fromString("{\"tableName\":\"datawb\",\"table\":\"dataiwtwfgoc\",\"schema\":\"datalvemnnzugabk\"}") - .toObject(PrestoDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrestoDatasetTypeProperties model = - new PrestoDatasetTypeProperties() - .withTableName("datawb") - .withTable("dataiwtwfgoc") - .withSchema("datalvemnnzugabk"); - model = BinaryData.fromObject(model).toObject(PrestoDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrestoObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrestoObjectDatasetTests.java deleted file mode 100644 index fbd92dfc3656..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrestoObjectDatasetTests.java +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.PrestoObjectDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class PrestoObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrestoObjectDataset model = - BinaryData - .fromString( - "{\"type\":\"PrestoObject\",\"typeProperties\":{\"tableName\":\"dataarluobbvalq\",\"table\":\"dataknyujxysvclfjy\",\"schema\":\"datavildlfflle\"},\"description\":\"mtxfqpfi\",\"structure\":\"datacgbfou\",\"schema\":\"databpgcryvidbz\",\"linkedServiceName\":{\"referenceName\":\"ylbvj\",\"parameters\":{\"xjftecgprz\":\"datangw\",\"dq\":\"dataqm\"}},\"parameters\":{\"xoyxuuco\":{\"type\":\"String\",\"defaultValue\":\"datayqhaat\"}},\"annotations\":[\"datayruxrzhhlh\",\"datavmgsbpgmncrv\",\"datapi\",\"dataoromppzsauqmeu\"],\"folder\":{\"name\":\"fcmpuaiugoceqtl\"},\"\":{\"ncfunlakgixhqjqh\":\"datajymwiccu\"}}") - .toObject(PrestoObjectDataset.class); - Assertions.assertEquals("mtxfqpfi", model.description()); - Assertions.assertEquals("ylbvj", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("xoyxuuco").type()); - Assertions.assertEquals("fcmpuaiugoceqtl", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrestoObjectDataset model = - new PrestoObjectDataset() - .withDescription("mtxfqpfi") - .withStructure("datacgbfou") - .withSchema("databpgcryvidbz") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("ylbvj") - .withParameters(mapOf("xjftecgprz", "datangw", "dq", "dataqm"))) - .withParameters( - mapOf( - "xoyxuuco", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datayqhaat"))) - .withAnnotations(Arrays.asList("datayruxrzhhlh", "datavmgsbpgmncrv", "datapi", "dataoromppzsauqmeu")) - .withFolder(new DatasetFolder().withName("fcmpuaiugoceqtl")) - .withTableName("dataarluobbvalq") - .withTable("dataknyujxysvclfjy") - .withSchemaTypePropertiesSchema("datavildlfflle"); - model = BinaryData.fromObject(model).toObject(PrestoObjectDataset.class); - Assertions.assertEquals("mtxfqpfi", model.description()); - Assertions.assertEquals("ylbvj", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("xoyxuuco").type()); - Assertions.assertEquals("fcmpuaiugoceqtl", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrestoSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrestoSourceTests.java deleted file mode 100644 index 6ce250b6e4b6..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrestoSourceTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.PrestoSource; - -public final class PrestoSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrestoSource model = - BinaryData - .fromString( - "{\"type\":\"PrestoSource\",\"query\":\"datast\",\"queryTimeout\":\"datafbyfjslehgee\",\"additionalColumns\":\"datasoj\",\"sourceRetryCount\":\"dataarliig\",\"sourceRetryWait\":\"datav\",\"maxConcurrentConnections\":\"datai\",\"disableMetricsCollection\":\"datajhxxxuuqcmunhfa\",\"\":{\"oxh\":\"datanyvypu\",\"gejytqnzrcbh\":\"datawwerwywlxhiuwvq\",\"zgzf\":\"datayhctjvlwf\",\"fuhsmuclxgcedus\":\"datafyvytydrdcwbaiaq\"}}") - .toObject(PrestoSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrestoSource model = - new PrestoSource() - .withSourceRetryCount("dataarliig") - .withSourceRetryWait("datav") - .withMaxConcurrentConnections("datai") - .withDisableMetricsCollection("datajhxxxuuqcmunhfa") - .withQueryTimeout("datafbyfjslehgee") - .withAdditionalColumns("datasoj") - .withQuery("datast"); - model = BinaryData.fromObject(model).toObject(PrestoSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateEndPointConnectionsListByFactoryMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateEndPointConnectionsListByFactoryMockTests.java deleted file mode 100644 index 5074bcb7772d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateEndPointConnectionsListByFactoryMockTests.java +++ /dev/null @@ -1,81 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.PrivateEndpointConnectionResource; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class PrivateEndPointConnectionsListByFactoryMockTests { - @Test - public void testListByFactory() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"properties\":{\"provisioningState\":\"rdfxqhnwh\",\"privateEndpoint\":{\"id\":\"nfdqlz\"},\"privateLinkServiceConnectionState\":{\"status\":\"ocxiiumrdbqujyi\",\"description\":\"ciaznpsvgupqwqs\",\"actionsRequired\":\"ntl\"}},\"name\":\"knxzcsuvjbfryort\",\"type\":\"esxccpbtvgio\",\"etag\":\"ytpvswd\",\"id\":\"womkzussgj\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = - manager - .privateEndPointConnections() - .listByFactory("gaicgqgafkrtsa", "agvq", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("womkzussgj", response.iterator().next().id()); - Assertions - .assertEquals( - "ocxiiumrdbqujyi", - response.iterator().next().properties().privateLinkServiceConnectionState().status()); - Assertions - .assertEquals( - "ciaznpsvgupqwqs", - response.iterator().next().properties().privateLinkServiceConnectionState().description()); - Assertions - .assertEquals( - "ntl", response.iterator().next().properties().privateLinkServiceConnectionState().actionsRequired()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionListResponseTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionListResponseTests.java deleted file mode 100644 index 74233dd0a018..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionListResponseTests.java +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.PrivateEndpointConnectionResourceInner; -import com.azure.resourcemanager.datafactory.models.ArmIdWrapper; -import com.azure.resourcemanager.datafactory.models.PrivateEndpointConnectionListResponse; -import com.azure.resourcemanager.datafactory.models.PrivateLinkConnectionState; -import com.azure.resourcemanager.datafactory.models.RemotePrivateEndpointConnection; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class PrivateEndpointConnectionListResponseTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrivateEndpointConnectionListResponse model = - BinaryData - .fromString( - "{\"value\":[{\"properties\":{\"provisioningState\":\"mhdroznnhdrlktg\",\"privateEndpoint\":{\"id\":\"gguxhemlwyw\"},\"privateLinkServiceConnectionState\":{\"status\":\"czg\",\"description\":\"ukklelss\",\"actionsRequired\":\"lycsxz\"}},\"name\":\"ksrl\",\"type\":\"desqplpvmjcdo\",\"etag\":\"bidyv\",\"id\":\"owx\"}],\"nextLink\":\"piudeugfsxzecpa\"}") - .toObject(PrivateEndpointConnectionListResponse.class); - Assertions.assertEquals("owx", model.value().get(0).id()); - Assertions.assertEquals("czg", model.value().get(0).properties().privateLinkServiceConnectionState().status()); - Assertions - .assertEquals( - "ukklelss", model.value().get(0).properties().privateLinkServiceConnectionState().description()); - Assertions - .assertEquals( - "lycsxz", model.value().get(0).properties().privateLinkServiceConnectionState().actionsRequired()); - Assertions.assertEquals("piudeugfsxzecpa", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateEndpointConnectionListResponse model = - new PrivateEndpointConnectionListResponse() - .withValue( - Arrays - .asList( - new PrivateEndpointConnectionResourceInner() - .withId("owx") - .withProperties( - new RemotePrivateEndpointConnection() - .withPrivateEndpoint(new ArmIdWrapper()) - .withPrivateLinkServiceConnectionState( - new PrivateLinkConnectionState() - .withStatus("czg") - .withDescription("ukklelss") - .withActionsRequired("lycsxz"))))) - .withNextLink("piudeugfsxzecpa"); - model = BinaryData.fromObject(model).toObject(PrivateEndpointConnectionListResponse.class); - Assertions.assertEquals("owx", model.value().get(0).id()); - Assertions.assertEquals("czg", model.value().get(0).properties().privateLinkServiceConnectionState().status()); - Assertions - .assertEquals( - "ukklelss", model.value().get(0).properties().privateLinkServiceConnectionState().description()); - Assertions - .assertEquals( - "lycsxz", model.value().get(0).properties().privateLinkServiceConnectionState().actionsRequired()); - Assertions.assertEquals("piudeugfsxzecpa", model.nextLink()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionOperationsCreateOrUpdateWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionOperationsCreateOrUpdateWithResponseMockTests.java deleted file mode 100644 index 1e5bb7968df9..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionOperationsCreateOrUpdateWithResponseMockTests.java +++ /dev/null @@ -1,87 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.PrivateEndpoint; -import com.azure.resourcemanager.datafactory.models.PrivateEndpointConnectionResource; -import com.azure.resourcemanager.datafactory.models.PrivateLinkConnectionApprovalRequest; -import com.azure.resourcemanager.datafactory.models.PrivateLinkConnectionState; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class PrivateEndpointConnectionOperationsCreateOrUpdateWithResponseMockTests { - @Test - public void testCreateOrUpdateWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"provisioningState\":\"jrh\",\"privateEndpoint\":{\"id\":\"fstmbbjil\"},\"privateLinkServiceConnectionState\":{\"status\":\"ctykc\",\"description\":\"svflurrfnl\",\"actionsRequired\":\"fvjrohyecb\"}},\"name\":\"p\",\"type\":\"qqvmfuuhmftshgc\",\"etag\":\"x\",\"id\":\"gvipzvvr\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PrivateEndpointConnectionResource response = - manager - .privateEndpointConnectionOperations() - .define("z") - .withExistingFactory("zqbvdlhcyoykmpxt", "crugitjnwaj") - .withProperties( - new PrivateLinkConnectionApprovalRequest() - .withPrivateLinkServiceConnectionState( - new PrivateLinkConnectionState() - .withStatus("eaqnbkcqoyqmbu") - .withDescription("fb") - .withActionsRequired("czyhtj")) - .withPrivateEndpoint(new PrivateEndpoint().withId("lflqpanceowvq"))) - .withIfMatch("fefyggbacmn") - .create(); - - Assertions.assertEquals("gvipzvvr", response.id()); - Assertions.assertEquals("ctykc", response.properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("svflurrfnl", response.properties().privateLinkServiceConnectionState().description()); - Assertions - .assertEquals("fvjrohyecb", response.properties().privateLinkServiceConnectionState().actionsRequired()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionOperationsDeleteWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionOperationsDeleteWithResponseMockTests.java deleted file mode 100644 index ff8f7237e81a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionOperationsDeleteWithResponseMockTests.java +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class PrivateEndpointConnectionOperationsDeleteWithResponseMockTests { - @Test - public void testDeleteWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager - .privateEndpointConnectionOperations() - .deleteWithResponse("gyvpfyjlfnj", "wbtoq", "yprpwk", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionOperationsGetWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionOperationsGetWithResponseMockTests.java deleted file mode 100644 index 4add267b29ba..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionOperationsGetWithResponseMockTests.java +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.PrivateEndpointConnectionResource; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class PrivateEndpointConnectionOperationsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"provisioningState\":\"qxhtc\",\"privateEndpoint\":{\"id\":\"hwxvvomcjpj\"},\"privateLinkServiceConnectionState\":{\"status\":\"sggaub\",\"description\":\"rfvlqwijeoenpih\",\"actionsRequired\":\"igaeeqgpvi\"}},\"name\":\"zlfccpgeqix\",\"type\":\"gltqld\",\"etag\":\"hqptpldamac\",\"id\":\"hnnbpsn\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PrivateEndpointConnectionResource response = - manager - .privateEndpointConnectionOperations() - .getWithResponse( - "ubggjdluwbmwu", "bekzcmfibboz", "ptwvamymswfwc", "ucsop", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("hnnbpsn", response.id()); - Assertions.assertEquals("sggaub", response.properties().privateLinkServiceConnectionState().status()); - Assertions - .assertEquals("rfvlqwijeoenpih", response.properties().privateLinkServiceConnectionState().description()); - Assertions - .assertEquals("igaeeqgpvi", response.properties().privateLinkServiceConnectionState().actionsRequired()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionResourceInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionResourceInnerTests.java deleted file mode 100644 index e960c51193e5..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionResourceInnerTests.java +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.PrivateEndpointConnectionResourceInner; -import com.azure.resourcemanager.datafactory.models.ArmIdWrapper; -import com.azure.resourcemanager.datafactory.models.PrivateLinkConnectionState; -import com.azure.resourcemanager.datafactory.models.RemotePrivateEndpointConnection; -import org.junit.jupiter.api.Assertions; - -public final class PrivateEndpointConnectionResourceInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrivateEndpointConnectionResourceInner model = - BinaryData - .fromString( - "{\"properties\":{\"provisioningState\":\"ufykhvuhxepmru\",\"privateEndpoint\":{\"id\":\"abaobnslujdjltym\"},\"privateLinkServiceConnectionState\":{\"status\":\"guihywar\",\"description\":\"pphkixkykxds\",\"actionsRequired\":\"pemmucfxhik\"}},\"name\":\"lrmymyincqlhri\",\"type\":\"sl\",\"etag\":\"iiovgqcgxu\",\"id\":\"qkctotiowlxte\"}") - .toObject(PrivateEndpointConnectionResourceInner.class); - Assertions.assertEquals("qkctotiowlxte", model.id()); - Assertions.assertEquals("guihywar", model.properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("pphkixkykxds", model.properties().privateLinkServiceConnectionState().description()); - Assertions - .assertEquals("pemmucfxhik", model.properties().privateLinkServiceConnectionState().actionsRequired()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateEndpointConnectionResourceInner model = - new PrivateEndpointConnectionResourceInner() - .withId("qkctotiowlxte") - .withProperties( - new RemotePrivateEndpointConnection() - .withPrivateEndpoint(new ArmIdWrapper()) - .withPrivateLinkServiceConnectionState( - new PrivateLinkConnectionState() - .withStatus("guihywar") - .withDescription("pphkixkykxds") - .withActionsRequired("pemmucfxhik"))); - model = BinaryData.fromObject(model).toObject(PrivateEndpointConnectionResourceInner.class); - Assertions.assertEquals("qkctotiowlxte", model.id()); - Assertions.assertEquals("guihywar", model.properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("pphkixkykxds", model.properties().privateLinkServiceConnectionState().description()); - Assertions - .assertEquals("pemmucfxhik", model.properties().privateLinkServiceConnectionState().actionsRequired()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointTests.java deleted file mode 100644 index 8c22c4feedb2..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.PrivateEndpoint; -import org.junit.jupiter.api.Assertions; - -public final class PrivateEndpointTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrivateEndpoint model = BinaryData.fromString("{\"id\":\"vedwcgyeewx\"}").toObject(PrivateEndpoint.class); - Assertions.assertEquals("vedwcgyeewx", model.id()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateEndpoint model = new PrivateEndpoint().withId("vedwcgyeewx"); - model = BinaryData.fromObject(model).toObject(PrivateEndpoint.class); - Assertions.assertEquals("vedwcgyeewx", model.id()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkConnectionApprovalRequestResourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkConnectionApprovalRequestResourceTests.java deleted file mode 100644 index d82c5dd1febc..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkConnectionApprovalRequestResourceTests.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.PrivateEndpoint; -import com.azure.resourcemanager.datafactory.models.PrivateLinkConnectionApprovalRequest; -import com.azure.resourcemanager.datafactory.models.PrivateLinkConnectionApprovalRequestResource; -import com.azure.resourcemanager.datafactory.models.PrivateLinkConnectionState; -import org.junit.jupiter.api.Assertions; - -public final class PrivateLinkConnectionApprovalRequestResourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrivateLinkConnectionApprovalRequestResource model = - BinaryData - .fromString( - "{\"properties\":{\"privateLinkServiceConnectionState\":{\"status\":\"vpbbt\",\"description\":\"fjoknss\",\"actionsRequired\":\"zqedikdfrdbi\"},\"privateEndpoint\":{\"id\":\"jgeihfqlggwfi\"}},\"name\":\"cxmjpbyephmg\",\"type\":\"ljvrcmyfqipgxhnp\",\"etag\":\"yqwcabvnuil\",\"id\":\"yaswlpaugmr\"}") - .toObject(PrivateLinkConnectionApprovalRequestResource.class); - Assertions.assertEquals("yaswlpaugmr", model.id()); - Assertions.assertEquals("vpbbt", model.properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("fjoknss", model.properties().privateLinkServiceConnectionState().description()); - Assertions - .assertEquals("zqedikdfrdbi", model.properties().privateLinkServiceConnectionState().actionsRequired()); - Assertions.assertEquals("jgeihfqlggwfi", model.properties().privateEndpoint().id()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateLinkConnectionApprovalRequestResource model = - new PrivateLinkConnectionApprovalRequestResource() - .withId("yaswlpaugmr") - .withProperties( - new PrivateLinkConnectionApprovalRequest() - .withPrivateLinkServiceConnectionState( - new PrivateLinkConnectionState() - .withStatus("vpbbt") - .withDescription("fjoknss") - .withActionsRequired("zqedikdfrdbi")) - .withPrivateEndpoint(new PrivateEndpoint().withId("jgeihfqlggwfi"))); - model = BinaryData.fromObject(model).toObject(PrivateLinkConnectionApprovalRequestResource.class); - Assertions.assertEquals("yaswlpaugmr", model.id()); - Assertions.assertEquals("vpbbt", model.properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("fjoknss", model.properties().privateLinkServiceConnectionState().description()); - Assertions - .assertEquals("zqedikdfrdbi", model.properties().privateLinkServiceConnectionState().actionsRequired()); - Assertions.assertEquals("jgeihfqlggwfi", model.properties().privateEndpoint().id()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkConnectionApprovalRequestTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkConnectionApprovalRequestTests.java deleted file mode 100644 index 3df350c0baa8..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkConnectionApprovalRequestTests.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.PrivateEndpoint; -import com.azure.resourcemanager.datafactory.models.PrivateLinkConnectionApprovalRequest; -import com.azure.resourcemanager.datafactory.models.PrivateLinkConnectionState; -import org.junit.jupiter.api.Assertions; - -public final class PrivateLinkConnectionApprovalRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrivateLinkConnectionApprovalRequest model = - BinaryData - .fromString( - "{\"privateLinkServiceConnectionState\":{\"status\":\"lrxw\",\"description\":\"aukhfkvcisiz\",\"actionsRequired\":\"a\"},\"privateEndpoint\":{\"id\":\"xjw\"}}") - .toObject(PrivateLinkConnectionApprovalRequest.class); - Assertions.assertEquals("lrxw", model.privateLinkServiceConnectionState().status()); - Assertions.assertEquals("aukhfkvcisiz", model.privateLinkServiceConnectionState().description()); - Assertions.assertEquals("a", model.privateLinkServiceConnectionState().actionsRequired()); - Assertions.assertEquals("xjw", model.privateEndpoint().id()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateLinkConnectionApprovalRequest model = - new PrivateLinkConnectionApprovalRequest() - .withPrivateLinkServiceConnectionState( - new PrivateLinkConnectionState() - .withStatus("lrxw") - .withDescription("aukhfkvcisiz") - .withActionsRequired("a")) - .withPrivateEndpoint(new PrivateEndpoint().withId("xjw")); - model = BinaryData.fromObject(model).toObject(PrivateLinkConnectionApprovalRequest.class); - Assertions.assertEquals("lrxw", model.privateLinkServiceConnectionState().status()); - Assertions.assertEquals("aukhfkvcisiz", model.privateLinkServiceConnectionState().description()); - Assertions.assertEquals("a", model.privateLinkServiceConnectionState().actionsRequired()); - Assertions.assertEquals("xjw", model.privateEndpoint().id()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkConnectionStateTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkConnectionStateTests.java deleted file mode 100644 index ba4195709d41..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkConnectionStateTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.PrivateLinkConnectionState; -import org.junit.jupiter.api.Assertions; - -public final class PrivateLinkConnectionStateTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrivateLinkConnectionState model = - BinaryData - .fromString( - "{\"status\":\"fypiv\",\"description\":\"bbjpmcubkmif\",\"actionsRequired\":\"xkubvphavpmhbrbq\"}") - .toObject(PrivateLinkConnectionState.class); - Assertions.assertEquals("fypiv", model.status()); - Assertions.assertEquals("bbjpmcubkmif", model.description()); - Assertions.assertEquals("xkubvphavpmhbrbq", model.actionsRequired()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateLinkConnectionState model = - new PrivateLinkConnectionState() - .withStatus("fypiv") - .withDescription("bbjpmcubkmif") - .withActionsRequired("xkubvphavpmhbrbq"); - model = BinaryData.fromObject(model).toObject(PrivateLinkConnectionState.class); - Assertions.assertEquals("fypiv", model.status()); - Assertions.assertEquals("bbjpmcubkmif", model.description()); - Assertions.assertEquals("xkubvphavpmhbrbq", model.actionsRequired()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkResourcePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkResourcePropertiesTests.java deleted file mode 100644 index 5d04ee5a075d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkResourcePropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.PrivateLinkResourceProperties; - -public final class PrivateLinkResourcePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrivateLinkResourceProperties model = - BinaryData - .fromString( - "{\"groupId\":\"klsbsbqqqagw\",\"requiredMembers\":[\"ao\",\"zisglrrczezkhh\",\"tnjadhq\"],\"requiredZoneNames\":[\"jqoyueayfbpcm\"]}") - .toObject(PrivateLinkResourceProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateLinkResourceProperties model = new PrivateLinkResourceProperties(); - model = BinaryData.fromObject(model).toObject(PrivateLinkResourceProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkResourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkResourceTests.java deleted file mode 100644 index ceddeee13d60..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkResourceTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.PrivateLinkResource; -import com.azure.resourcemanager.datafactory.models.PrivateLinkResourceProperties; -import org.junit.jupiter.api.Assertions; - -public final class PrivateLinkResourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrivateLinkResource model = - BinaryData - .fromString( - "{\"properties\":{\"groupId\":\"efxrdcoxnbk\",\"requiredMembers\":[\"nurnnq\",\"nqbpi\"],\"requiredZoneNames\":[\"ltgrdogypxrxv\",\"fihwu\"]},\"name\":\"ctafsrbxrblm\",\"type\":\"owxih\",\"etag\":\"nxw\",\"id\":\"gnepz\"}") - .toObject(PrivateLinkResource.class); - Assertions.assertEquals("gnepz", model.id()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateLinkResource model = - new PrivateLinkResource().withId("gnepz").withProperties(new PrivateLinkResourceProperties()); - model = BinaryData.fromObject(model).toObject(PrivateLinkResource.class); - Assertions.assertEquals("gnepz", model.id()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkResourcesGetWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkResourcesGetWithResponseMockTests.java deleted file mode 100644 index 2baf82064a6c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkResourcesGetWithResponseMockTests.java +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.PrivateLinkResourcesWrapper; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class PrivateLinkResourcesGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"properties\":{\"groupId\":\"yvqofpemcf\",\"requiredMembers\":[\"ifjvi\",\"azo\",\"wudbewb\",\"aufowhmdpggaktu\"],\"requiredZoneNames\":[\"hqdoctgno\",\"qw\",\"wtwjzzyi\"]},\"name\":\"bklyaelvhxutct\",\"type\":\"kdjusasfjwty\",\"etag\":\"knbucjybt\",\"id\":\"dlfg\"},{\"properties\":{\"groupId\":\"jnikwzlowus\",\"requiredMembers\":[\"mjiz\",\"tdf\"],\"requiredZoneNames\":[\"gjcepx\",\"yswvpavutiszwy\",\"lehagbjmwe\"]},\"name\":\"mpzamq\",\"type\":\"it\",\"etag\":\"yphtdwhmwxhvs\",\"id\":\"mokmymspatpvebxe\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PrivateLinkResourcesWrapper response = - manager - .privateLinkResources() - .getWithResponse("plkemvvlg", "zyishipl", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("dlfg", response.value().get(0).id()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkResourcesWrapperInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkResourcesWrapperInnerTests.java deleted file mode 100644 index f4951affb67e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkResourcesWrapperInnerTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.PrivateLinkResourcesWrapperInner; -import com.azure.resourcemanager.datafactory.models.PrivateLinkResource; -import com.azure.resourcemanager.datafactory.models.PrivateLinkResourceProperties; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class PrivateLinkResourcesWrapperInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrivateLinkResourcesWrapperInner model = - BinaryData - .fromString( - "{\"value\":[{\"properties\":{\"groupId\":\"psmgo\",\"requiredMembers\":[\"amljdlrgmsplzgau\"],\"requiredZoneNames\":[\"hhvnewgnxkymp\",\"anxrj\",\"ixt\"]},\"name\":\"taoypnyghshxc\",\"type\":\"hkgmnsg\",\"etag\":\"xycphdrwjjkh\",\"id\":\"omacluzvxnqmhr\"},{\"properties\":{\"groupId\":\"df\",\"requiredMembers\":[\"oi\"],\"requiredZoneNames\":[\"ssffxuifmc\"]},\"name\":\"p\",\"type\":\"kdqzrdzsylo\",\"etag\":\"gtrczzydmxzjijpv\",\"id\":\"urkihci\"}]}") - .toObject(PrivateLinkResourcesWrapperInner.class); - Assertions.assertEquals("omacluzvxnqmhr", model.value().get(0).id()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateLinkResourcesWrapperInner model = - new PrivateLinkResourcesWrapperInner() - .withValue( - Arrays - .asList( - new PrivateLinkResource() - .withId("omacluzvxnqmhr") - .withProperties(new PrivateLinkResourceProperties()), - new PrivateLinkResource() - .withId("urkihci") - .withProperties(new PrivateLinkResourceProperties()))); - model = BinaryData.fromObject(model).toObject(PrivateLinkResourcesWrapperInner.class); - Assertions.assertEquals("omacluzvxnqmhr", model.value().get(0).id()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PurviewConfigurationTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PurviewConfigurationTests.java deleted file mode 100644 index 4ccd273ccba5..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PurviewConfigurationTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.PurviewConfiguration; -import org.junit.jupiter.api.Assertions; - -public final class PurviewConfigurationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PurviewConfiguration model = - BinaryData.fromString("{\"purviewResourceId\":\"stkiiuxhqyud\"}").toObject(PurviewConfiguration.class); - Assertions.assertEquals("stkiiuxhqyud", model.purviewResourceId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PurviewConfiguration model = new PurviewConfiguration().withPurviewResourceId("stkiiuxhqyud"); - model = BinaryData.fromObject(model).toObject(PurviewConfiguration.class); - Assertions.assertEquals("stkiiuxhqyud", model.purviewResourceId()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/QueryDataFlowDebugSessionsResponseTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/QueryDataFlowDebugSessionsResponseTests.java deleted file mode 100644 index a438b6dd225f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/QueryDataFlowDebugSessionsResponseTests.java +++ /dev/null @@ -1,78 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.DataFlowDebugSessionInfoInner; -import com.azure.resourcemanager.datafactory.models.QueryDataFlowDebugSessionsResponse; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class QueryDataFlowDebugSessionsResponseTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - QueryDataFlowDebugSessionsResponse model = - BinaryData - .fromString( - "{\"value\":[{\"dataFlowName\":\"noda\",\"computeType\":\"pqhe\",\"coreCount\":1635095275,\"nodeCount\":1244000330,\"integrationRuntimeName\":\"gsbos\",\"sessionId\":\"eln\",\"startTime\":\"atutmzlbiojlvfhr\",\"timeToLiveInMinutes\":438246123,\"lastActivityTime\":\"eqvcwwyyurmoch\",\"\":{\"lbkpb\":\"dataprsnmokayzejn\",\"hahzvechndbnwi\":\"datapcpil\"}}],\"nextLink\":\"olewjwi\"}") - .toObject(QueryDataFlowDebugSessionsResponse.class); - Assertions.assertEquals("noda", model.value().get(0).dataFlowName()); - Assertions.assertEquals("pqhe", model.value().get(0).computeType()); - Assertions.assertEquals(1635095275, model.value().get(0).coreCount()); - Assertions.assertEquals(1244000330, model.value().get(0).nodeCount()); - Assertions.assertEquals("gsbos", model.value().get(0).integrationRuntimeName()); - Assertions.assertEquals("eln", model.value().get(0).sessionId()); - Assertions.assertEquals("atutmzlbiojlvfhr", model.value().get(0).startTime()); - Assertions.assertEquals(438246123, model.value().get(0).timeToLiveInMinutes()); - Assertions.assertEquals("eqvcwwyyurmoch", model.value().get(0).lastActivityTime()); - Assertions.assertEquals("olewjwi", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - QueryDataFlowDebugSessionsResponse model = - new QueryDataFlowDebugSessionsResponse() - .withValue( - Arrays - .asList( - new DataFlowDebugSessionInfoInner() - .withDataFlowName("noda") - .withComputeType("pqhe") - .withCoreCount(1635095275) - .withNodeCount(1244000330) - .withIntegrationRuntimeName("gsbos") - .withSessionId("eln") - .withStartTime("atutmzlbiojlvfhr") - .withTimeToLiveInMinutes(438246123) - .withLastActivityTime("eqvcwwyyurmoch") - .withAdditionalProperties(mapOf()))) - .withNextLink("olewjwi"); - model = BinaryData.fromObject(model).toObject(QueryDataFlowDebugSessionsResponse.class); - Assertions.assertEquals("noda", model.value().get(0).dataFlowName()); - Assertions.assertEquals("pqhe", model.value().get(0).computeType()); - Assertions.assertEquals(1635095275, model.value().get(0).coreCount()); - Assertions.assertEquals(1244000330, model.value().get(0).nodeCount()); - Assertions.assertEquals("gsbos", model.value().get(0).integrationRuntimeName()); - Assertions.assertEquals("eln", model.value().get(0).sessionId()); - Assertions.assertEquals("atutmzlbiojlvfhr", model.value().get(0).startTime()); - Assertions.assertEquals(438246123, model.value().get(0).timeToLiveInMinutes()); - Assertions.assertEquals("eqvcwwyyurmoch", model.value().get(0).lastActivityTime()); - Assertions.assertEquals("olewjwi", model.nextLink()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/QuickBooksObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/QuickBooksObjectDatasetTests.java deleted file mode 100644 index 6ce05b72721c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/QuickBooksObjectDatasetTests.java +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.QuickBooksObjectDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class QuickBooksObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - QuickBooksObjectDataset model = - BinaryData - .fromString( - "{\"type\":\"QuickBooksObject\",\"typeProperties\":{\"tableName\":\"datasyweohlmtsnvon\"},\"description\":\"ftswcd\",\"structure\":\"datanseptvdtic\",\"schema\":\"datafl\",\"linkedServiceName\":{\"referenceName\":\"zwkopxd\",\"parameters\":{\"kfzrxxf\":\"datawoqhgppwxn\",\"jzrfx\":\"dataduvqzjnnuww\"}},\"parameters\":{\"rxrjwyzrieitq\":{\"type\":\"Bool\",\"defaultValue\":\"dataqjkbkjc\"},\"pebfhlgeeh\":{\"type\":\"String\",\"defaultValue\":\"datauwtbdzqajxk\"}},\"annotations\":[\"datagplnl\",\"datarfe\",\"datazunbua\",\"datamoub\"],\"folder\":{\"name\":\"mi\"},\"\":{\"yt\":\"datarnobvvequ\"}}") - .toObject(QuickBooksObjectDataset.class); - Assertions.assertEquals("ftswcd", model.description()); - Assertions.assertEquals("zwkopxd", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("rxrjwyzrieitq").type()); - Assertions.assertEquals("mi", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - QuickBooksObjectDataset model = - new QuickBooksObjectDataset() - .withDescription("ftswcd") - .withStructure("datanseptvdtic") - .withSchema("datafl") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("zwkopxd") - .withParameters(mapOf("kfzrxxf", "datawoqhgppwxn", "jzrfx", "dataduvqzjnnuww"))) - .withParameters( - mapOf( - "rxrjwyzrieitq", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("dataqjkbkjc"), - "pebfhlgeeh", - new ParameterSpecification() - .withType(ParameterType.STRING) - .withDefaultValue("datauwtbdzqajxk"))) - .withAnnotations(Arrays.asList("datagplnl", "datarfe", "datazunbua", "datamoub")) - .withFolder(new DatasetFolder().withName("mi")) - .withTableName("datasyweohlmtsnvon"); - model = BinaryData.fromObject(model).toObject(QuickBooksObjectDataset.class); - Assertions.assertEquals("ftswcd", model.description()); - Assertions.assertEquals("zwkopxd", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("rxrjwyzrieitq").type()); - Assertions.assertEquals("mi", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/QuickBooksSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/QuickBooksSourceTests.java deleted file mode 100644 index d16e19af4336..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/QuickBooksSourceTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.QuickBooksSource; - -public final class QuickBooksSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - QuickBooksSource model = - BinaryData - .fromString( - "{\"type\":\"QuickBooksSource\",\"query\":\"dataq\",\"queryTimeout\":\"dataykagsx\",\"additionalColumns\":\"datahervvlibrolqxloe\",\"sourceRetryCount\":\"datazrvf\",\"sourceRetryWait\":\"datasyqbfgwujw\",\"maxConcurrentConnections\":\"datathvue\",\"disableMetricsCollection\":\"datazznvdjnspy\",\"\":{\"nmavf\":\"dataygutqtjwiv\",\"nx\":\"datajwdw\",\"nd\":\"datae\"}}") - .toObject(QuickBooksSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - QuickBooksSource model = - new QuickBooksSource() - .withSourceRetryCount("datazrvf") - .withSourceRetryWait("datasyqbfgwujw") - .withMaxConcurrentConnections("datathvue") - .withDisableMetricsCollection("datazznvdjnspy") - .withQueryTimeout("dataykagsx") - .withAdditionalColumns("datahervvlibrolqxloe") - .withQuery("dataq"); - model = BinaryData.fromObject(model).toObject(QuickBooksSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RecurrenceScheduleOccurrenceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RecurrenceScheduleOccurrenceTests.java deleted file mode 100644 index 2b309310347b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RecurrenceScheduleOccurrenceTests.java +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DayOfWeek; -import com.azure.resourcemanager.datafactory.models.RecurrenceScheduleOccurrence; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class RecurrenceScheduleOccurrenceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RecurrenceScheduleOccurrence model = - BinaryData - .fromString("{\"day\":\"Monday\",\"occurrence\":30318410,\"\":{\"dumhpbcixday\":\"datakvsnfnkfsfga\"}}") - .toObject(RecurrenceScheduleOccurrence.class); - Assertions.assertEquals(DayOfWeek.MONDAY, model.day()); - Assertions.assertEquals(30318410, model.occurrence()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RecurrenceScheduleOccurrence model = - new RecurrenceScheduleOccurrence() - .withDay(DayOfWeek.MONDAY) - .withOccurrence(30318410) - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(RecurrenceScheduleOccurrence.class); - Assertions.assertEquals(DayOfWeek.MONDAY, model.day()); - Assertions.assertEquals(30318410, model.occurrence()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RecurrenceScheduleTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RecurrenceScheduleTests.java deleted file mode 100644 index c116b1b0aa77..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RecurrenceScheduleTests.java +++ /dev/null @@ -1,81 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DayOfWeek; -import com.azure.resourcemanager.datafactory.models.DaysOfWeek; -import com.azure.resourcemanager.datafactory.models.RecurrenceSchedule; -import com.azure.resourcemanager.datafactory.models.RecurrenceScheduleOccurrence; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class RecurrenceScheduleTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RecurrenceSchedule model = - BinaryData - .fromString( - "{\"minutes\":[717518329],\"hours\":[1118044091,660441110,1722243594],\"weekDays\":[\"Thursday\"],\"monthDays\":[878999614],\"monthlyOccurrences\":[{\"day\":\"Monday\",\"occurrence\":580139874,\"\":{\"kidiujfpu\":\"databp\"}},{\"day\":\"Sunday\",\"occurrence\":567692310,\"\":{\"crouakmwvqt\":\"datapksjwaglhwnnfgy\",\"ozvfeljytshjjbo\":\"dataf\",\"yhwo\":\"datauugoujsvhezhe\",\"x\":\"dataayyshf\"}},{\"day\":\"Tuesday\",\"occurrence\":1488114471,\"\":{\"dblredxfcckticwg\":\"dataylthdrnze\",\"bvgcebutskdgsuht\":\"dataivq\",\"ulia\":\"datazomsqebmfopely\"}},{\"day\":\"Wednesday\",\"occurrence\":1030677140,\"\":{\"gmshuyqehbpr\":\"dataxeozgjtuh\",\"mtlfbzlziduq\":\"dataptoentuve\",\"hetrqudxzrbg\":\"dataxwrets\",\"iwpaeumely\":\"datatjjiearyzzxk\"}}],\"\":{\"trnwwwwlvvrditg\":\"datahurzazcukg\",\"nosizerzygkdl\":\"databaqumql\",\"sjlkjvoeuiwyptze\":\"datayltqryaahlttomlp\"}}") - .toObject(RecurrenceSchedule.class); - Assertions.assertEquals(717518329, model.minutes().get(0)); - Assertions.assertEquals(1118044091, model.hours().get(0)); - Assertions.assertEquals(DaysOfWeek.THURSDAY, model.weekDays().get(0)); - Assertions.assertEquals(878999614, model.monthDays().get(0)); - Assertions.assertEquals(DayOfWeek.MONDAY, model.monthlyOccurrences().get(0).day()); - Assertions.assertEquals(580139874, model.monthlyOccurrences().get(0).occurrence()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RecurrenceSchedule model = - new RecurrenceSchedule() - .withMinutes(Arrays.asList(717518329)) - .withHours(Arrays.asList(1118044091, 660441110, 1722243594)) - .withWeekDays(Arrays.asList(DaysOfWeek.THURSDAY)) - .withMonthDays(Arrays.asList(878999614)) - .withMonthlyOccurrences( - Arrays - .asList( - new RecurrenceScheduleOccurrence() - .withDay(DayOfWeek.MONDAY) - .withOccurrence(580139874) - .withAdditionalProperties(mapOf()), - new RecurrenceScheduleOccurrence() - .withDay(DayOfWeek.SUNDAY) - .withOccurrence(567692310) - .withAdditionalProperties(mapOf()), - new RecurrenceScheduleOccurrence() - .withDay(DayOfWeek.TUESDAY) - .withOccurrence(1488114471) - .withAdditionalProperties(mapOf()), - new RecurrenceScheduleOccurrence() - .withDay(DayOfWeek.WEDNESDAY) - .withOccurrence(1030677140) - .withAdditionalProperties(mapOf()))) - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(RecurrenceSchedule.class); - Assertions.assertEquals(717518329, model.minutes().get(0)); - Assertions.assertEquals(1118044091, model.hours().get(0)); - Assertions.assertEquals(DaysOfWeek.THURSDAY, model.weekDays().get(0)); - Assertions.assertEquals(878999614, model.monthDays().get(0)); - Assertions.assertEquals(DayOfWeek.MONDAY, model.monthlyOccurrences().get(0).day()); - Assertions.assertEquals(580139874, model.monthlyOccurrences().get(0).occurrence()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RedirectIncompatibleRowSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RedirectIncompatibleRowSettingsTests.java deleted file mode 100644 index 2a0cbf5fb86a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RedirectIncompatibleRowSettingsTests.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.RedirectIncompatibleRowSettings; -import java.util.HashMap; -import java.util.Map; - -public final class RedirectIncompatibleRowSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RedirectIncompatibleRowSettings model = - BinaryData - .fromString( - "{\"linkedServiceName\":\"dataqhzs\",\"path\":\"datamgvygmtyw\",\"\":{\"rsxykw\":\"datauiteedjnklv\",\"dudj\":\"datahz\",\"qxpsnnn\":\"datat\",\"sdxylndbgaic\":\"datahgd\"}}") - .toObject(RedirectIncompatibleRowSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RedirectIncompatibleRowSettings model = - new RedirectIncompatibleRowSettings() - .withLinkedServiceName("dataqhzs") - .withPath("datamgvygmtyw") - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(RedirectIncompatibleRowSettings.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RedshiftUnloadSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RedshiftUnloadSettingsTests.java deleted file mode 100644 index 75cebdd13950..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RedshiftUnloadSettingsTests.java +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.RedshiftUnloadSettings; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class RedshiftUnloadSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RedshiftUnloadSettings model = - BinaryData - .fromString( - "{\"s3LinkedServiceName\":{\"referenceName\":\"pmwo\",\"parameters\":{\"rtecfvzslttkp\":\"datainx\"}},\"bucketName\":\"datarkujceeczhsdpf\"}") - .toObject(RedshiftUnloadSettings.class); - Assertions.assertEquals("pmwo", model.s3LinkedServiceName().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RedshiftUnloadSettings model = - new RedshiftUnloadSettings() - .withS3LinkedServiceName( - new LinkedServiceReference() - .withReferenceName("pmwo") - .withParameters(mapOf("rtecfvzslttkp", "datainx"))) - .withBucketName("datarkujceeczhsdpf"); - model = BinaryData.fromObject(model).toObject(RedshiftUnloadSettings.class); - Assertions.assertEquals("pmwo", model.s3LinkedServiceName().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RelationalSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RelationalSourceTests.java deleted file mode 100644 index 30d01258c639..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RelationalSourceTests.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.RelationalSource; - -public final class RelationalSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RelationalSource model = - BinaryData - .fromString( - "{\"type\":\"RelationalSource\",\"query\":\"datazwcxlncohywfvy\",\"additionalColumns\":\"dataawfwws\",\"sourceRetryCount\":\"datakbdozsspfwmf\",\"sourceRetryWait\":\"datartoxsthjyyiryb\",\"maxConcurrentConnections\":\"datamkmwdok\",\"disableMetricsCollection\":\"datayilho\",\"\":{\"hxoyrgvrtcct\":\"datadioxgs\",\"rarukdepsxu\":\"datazglbplqh\",\"xgxbgochpxps\":\"datayqcqfouhye\",\"ugbdkxlwck\":\"datapwwsiooz\"}}") - .toObject(RelationalSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RelationalSource model = - new RelationalSource() - .withSourceRetryCount("datakbdozsspfwmf") - .withSourceRetryWait("datartoxsthjyyiryb") - .withMaxConcurrentConnections("datamkmwdok") - .withDisableMetricsCollection("datayilho") - .withQuery("datazwcxlncohywfvy") - .withAdditionalColumns("dataawfwws"); - model = BinaryData.fromObject(model).toObject(RelationalSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RelationalTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RelationalTableDatasetTests.java deleted file mode 100644 index fb4d9b7b3a8e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RelationalTableDatasetTests.java +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.RelationalTableDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class RelationalTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RelationalTableDataset model = - BinaryData - .fromString( - "{\"type\":\"RelationalTable\",\"typeProperties\":{\"tableName\":\"dataxzizebjr\"},\"description\":\"gdstubw\",\"structure\":\"dataxzsshxliqmsckwh\",\"schema\":\"datadoi\",\"linkedServiceName\":{\"referenceName\":\"yobqzwjalwrsofxc\",\"parameters\":{\"mrs\":\"datamvj\",\"prel\":\"dataydl\",\"ztirjvqxvwkiocxo\":\"dataxfkz\"}},\"parameters\":{\"lrlqxbctatezyozd\":{\"type\":\"Float\",\"defaultValue\":\"datauocqflm\"}},\"annotations\":[\"dataqnl\",\"datajxcscnitodmrah\",\"datajido\",\"datanvlt\"],\"folder\":{\"name\":\"ahpuwkupbbnhic\"},\"\":{\"nhlsforsimtfcqm\":\"datazhrcqdfwbif\",\"pelpfijtezgxmpe\":\"dataynb\",\"f\":\"datazamadlerzi\",\"mirmnrijefmrt\":\"dataivczktllxswtdap\"}}") - .toObject(RelationalTableDataset.class); - Assertions.assertEquals("gdstubw", model.description()); - Assertions.assertEquals("yobqzwjalwrsofxc", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("lrlqxbctatezyozd").type()); - Assertions.assertEquals("ahpuwkupbbnhic", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RelationalTableDataset model = - new RelationalTableDataset() - .withDescription("gdstubw") - .withStructure("dataxzsshxliqmsckwh") - .withSchema("datadoi") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("yobqzwjalwrsofxc") - .withParameters(mapOf("mrs", "datamvj", "prel", "dataydl", "ztirjvqxvwkiocxo", "dataxfkz"))) - .withParameters( - mapOf( - "lrlqxbctatezyozd", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datauocqflm"))) - .withAnnotations(Arrays.asList("dataqnl", "datajxcscnitodmrah", "datajido", "datanvlt")) - .withFolder(new DatasetFolder().withName("ahpuwkupbbnhic")) - .withTableName("dataxzizebjr"); - model = BinaryData.fromObject(model).toObject(RelationalTableDataset.class); - Assertions.assertEquals("gdstubw", model.description()); - Assertions.assertEquals("yobqzwjalwrsofxc", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("lrlqxbctatezyozd").type()); - Assertions.assertEquals("ahpuwkupbbnhic", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RelationalTableDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RelationalTableDatasetTypePropertiesTests.java deleted file mode 100644 index 0c3f701c760d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RelationalTableDatasetTypePropertiesTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.RelationalTableDatasetTypeProperties; - -public final class RelationalTableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RelationalTableDatasetTypeProperties model = - BinaryData.fromString("{\"tableName\":\"datac\"}").toObject(RelationalTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RelationalTableDatasetTypeProperties model = new RelationalTableDatasetTypeProperties().withTableName("datac"); - model = BinaryData.fromObject(model).toObject(RelationalTableDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RemotePrivateEndpointConnectionTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RemotePrivateEndpointConnectionTests.java deleted file mode 100644 index dcc545b771ee..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RemotePrivateEndpointConnectionTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ArmIdWrapper; -import com.azure.resourcemanager.datafactory.models.PrivateLinkConnectionState; -import com.azure.resourcemanager.datafactory.models.RemotePrivateEndpointConnection; -import org.junit.jupiter.api.Assertions; - -public final class RemotePrivateEndpointConnectionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RemotePrivateEndpointConnection model = - BinaryData - .fromString( - "{\"provisioningState\":\"ptjgwdt\",\"privateEndpoint\":{\"id\":\"ranblwphqlkccu\"},\"privateLinkServiceConnectionState\":{\"status\":\"gqwa\",\"description\":\"iul\",\"actionsRequired\":\"niiprglvaw\"}}") - .toObject(RemotePrivateEndpointConnection.class); - Assertions.assertEquals("gqwa", model.privateLinkServiceConnectionState().status()); - Assertions.assertEquals("iul", model.privateLinkServiceConnectionState().description()); - Assertions.assertEquals("niiprglvaw", model.privateLinkServiceConnectionState().actionsRequired()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RemotePrivateEndpointConnection model = - new RemotePrivateEndpointConnection() - .withPrivateEndpoint(new ArmIdWrapper()) - .withPrivateLinkServiceConnectionState( - new PrivateLinkConnectionState() - .withStatus("gqwa") - .withDescription("iul") - .withActionsRequired("niiprglvaw")); - model = BinaryData.fromObject(model).toObject(RemotePrivateEndpointConnection.class); - Assertions.assertEquals("gqwa", model.privateLinkServiceConnectionState().status()); - Assertions.assertEquals("iul", model.privateLinkServiceConnectionState().description()); - Assertions.assertEquals("niiprglvaw", model.privateLinkServiceConnectionState().actionsRequired()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RerunTumblingWindowTriggerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RerunTumblingWindowTriggerTests.java deleted file mode 100644 index db66043c362f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RerunTumblingWindowTriggerTests.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.RerunTumblingWindowTrigger; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class RerunTumblingWindowTriggerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RerunTumblingWindowTrigger model = - BinaryData - .fromString( - "{\"type\":\"RerunTumblingWindowTrigger\",\"typeProperties\":{\"parentTrigger\":\"datarvfxcbatmvxrj\",\"requestedStartTime\":\"2021-08-29T02:58:30Z\",\"requestedEndTime\":\"2021-10-29T20:21:25Z\",\"rerunConcurrency\":990377643},\"description\":\"sypevfrbujlt\",\"runtimeState\":\"Stopped\",\"annotations\":[\"datallaswwhbm\"],\"\":{\"yqsds\":\"datahknsknnnpyobyi\",\"rijd\":\"dataewf\",\"iwebmcizmggvsxv\":\"datakmcrtmvtfeyopg\"}}") - .toObject(RerunTumblingWindowTrigger.class); - Assertions.assertEquals("sypevfrbujlt", model.description()); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-29T02:58:30Z"), model.requestedStartTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-29T20:21:25Z"), model.requestedEndTime()); - Assertions.assertEquals(990377643, model.rerunConcurrency()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RerunTumblingWindowTrigger model = - new RerunTumblingWindowTrigger() - .withDescription("sypevfrbujlt") - .withAnnotations(Arrays.asList("datallaswwhbm")) - .withParentTrigger("datarvfxcbatmvxrj") - .withRequestedStartTime(OffsetDateTime.parse("2021-08-29T02:58:30Z")) - .withRequestedEndTime(OffsetDateTime.parse("2021-10-29T20:21:25Z")) - .withRerunConcurrency(990377643); - model = BinaryData.fromObject(model).toObject(RerunTumblingWindowTrigger.class); - Assertions.assertEquals("sypevfrbujlt", model.description()); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-29T02:58:30Z"), model.requestedStartTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-29T20:21:25Z"), model.requestedEndTime()); - Assertions.assertEquals(990377643, model.rerunConcurrency()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RerunTumblingWindowTriggerTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RerunTumblingWindowTriggerTypePropertiesTests.java deleted file mode 100644 index 270f57e69214..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RerunTumblingWindowTriggerTypePropertiesTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.RerunTumblingWindowTriggerTypeProperties; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; - -public final class RerunTumblingWindowTriggerTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RerunTumblingWindowTriggerTypeProperties model = - BinaryData - .fromString( - "{\"parentTrigger\":\"datawrqywaagzaxqh\",\"requestedStartTime\":\"2021-07-31T01:48:53Z\",\"requestedEndTime\":\"2021-04-25T14:25:18Z\",\"rerunConcurrency\":370253583}") - .toObject(RerunTumblingWindowTriggerTypeProperties.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-31T01:48:53Z"), model.requestedStartTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-25T14:25:18Z"), model.requestedEndTime()); - Assertions.assertEquals(370253583, model.rerunConcurrency()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RerunTumblingWindowTriggerTypeProperties model = - new RerunTumblingWindowTriggerTypeProperties() - .withParentTrigger("datawrqywaagzaxqh") - .withRequestedStartTime(OffsetDateTime.parse("2021-07-31T01:48:53Z")) - .withRequestedEndTime(OffsetDateTime.parse("2021-04-25T14:25:18Z")) - .withRerunConcurrency(370253583); - model = BinaryData.fromObject(model).toObject(RerunTumblingWindowTriggerTypeProperties.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-31T01:48:53Z"), model.requestedStartTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-25T14:25:18Z"), model.requestedEndTime()); - Assertions.assertEquals(370253583, model.rerunConcurrency()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ResponsysObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ResponsysObjectDatasetTests.java deleted file mode 100644 index 9963a9a4e17e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ResponsysObjectDatasetTests.java +++ /dev/null @@ -1,79 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.ResponsysObjectDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ResponsysObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ResponsysObjectDataset model = - BinaryData - .fromString( - "{\"type\":\"ResponsysObject\",\"typeProperties\":{\"tableName\":\"dataxcsdqoxhdenmj\"},\"description\":\"xgrggyciw\",\"structure\":\"dataqinr\",\"schema\":\"datavvmrn\",\"linkedServiceName\":{\"referenceName\":\"rdijox\",\"parameters\":{\"b\":\"datasychdcjggcmpncj\",\"owvfxe\":\"databnoq\",\"irvcpol\":\"datatzgwjeky\",\"ilbdvxlfhlzzgap\":\"datavgppp\"}},\"parameters\":{\"xnroyhthesyw\":{\"type\":\"SecureString\",\"defaultValue\":\"datablscrmzquuzywkgo\"}},\"annotations\":[\"datavg\"],\"folder\":{\"name\":\"c\"},\"\":{\"zyrgrlh\":\"datazcwuejmxlfzl\"}}") - .toObject(ResponsysObjectDataset.class); - Assertions.assertEquals("xgrggyciw", model.description()); - Assertions.assertEquals("rdijox", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("xnroyhthesyw").type()); - Assertions.assertEquals("c", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ResponsysObjectDataset model = - new ResponsysObjectDataset() - .withDescription("xgrggyciw") - .withStructure("dataqinr") - .withSchema("datavvmrn") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("rdijox") - .withParameters( - mapOf( - "b", - "datasychdcjggcmpncj", - "owvfxe", - "databnoq", - "irvcpol", - "datatzgwjeky", - "ilbdvxlfhlzzgap", - "datavgppp"))) - .withParameters( - mapOf( - "xnroyhthesyw", - new ParameterSpecification() - .withType(ParameterType.SECURE_STRING) - .withDefaultValue("datablscrmzquuzywkgo"))) - .withAnnotations(Arrays.asList("datavg")) - .withFolder(new DatasetFolder().withName("c")) - .withTableName("dataxcsdqoxhdenmj"); - model = BinaryData.fromObject(model).toObject(ResponsysObjectDataset.class); - Assertions.assertEquals("xgrggyciw", model.description()); - Assertions.assertEquals("rdijox", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("xnroyhthesyw").type()); - Assertions.assertEquals("c", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ResponsysSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ResponsysSourceTests.java deleted file mode 100644 index e2de09cb2617..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ResponsysSourceTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ResponsysSource; - -public final class ResponsysSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ResponsysSource model = - BinaryData - .fromString( - "{\"type\":\"ResponsysSource\",\"query\":\"datacrejt\",\"queryTimeout\":\"dataqqoz\",\"additionalColumns\":\"datasbpqwnmfjktdvdh\",\"sourceRetryCount\":\"dataztaluuup\",\"sourceRetryWait\":\"dataaoatzvajwvxh\",\"maxConcurrentConnections\":\"datamotulhilmazgp\",\"disableMetricsCollection\":\"datarppsoeo\",\"\":{\"ln\":\"datawtye\",\"dxsgwd\":\"datagqeplyos\"}}") - .toObject(ResponsysSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ResponsysSource model = - new ResponsysSource() - .withSourceRetryCount("dataztaluuup") - .withSourceRetryWait("dataaoatzvajwvxh") - .withMaxConcurrentConnections("datamotulhilmazgp") - .withDisableMetricsCollection("datarppsoeo") - .withQueryTimeout("dataqqoz") - .withAdditionalColumns("datasbpqwnmfjktdvdh") - .withQuery("datacrejt"); - model = BinaryData.fromObject(model).toObject(ResponsysSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RestResourceDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RestResourceDatasetTests.java deleted file mode 100644 index 657e3a6cf816..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RestResourceDatasetTests.java +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.RestResourceDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class RestResourceDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RestResourceDataset model = - BinaryData - .fromString( - "{\"type\":\"RestResource\",\"typeProperties\":{\"relativeUrl\":\"dataiarz\",\"requestMethod\":\"datadqseypdlmajpuy\",\"requestBody\":\"dataa\",\"additionalHeaders\":{\"uvmsie\":\"datazgccyn\",\"parxtzayq\":\"dataedmmvoneeyr\"},\"paginationRules\":{\"z\":\"dataigeblsp\",\"eozbj\":\"datassiwwv\"}},\"description\":\"qpizdnuehxw\",\"structure\":\"datassjdywbnklg\",\"schema\":\"dataxa\",\"linkedServiceName\":{\"referenceName\":\"tsawv\",\"parameters\":{\"jrmplzmsl\":\"datampt\",\"vrrllfswarmyb\":\"databnknyfuysj\"}},\"parameters\":{\"cbfnxiajuv\":{\"type\":\"Float\",\"defaultValue\":\"datageysyqnipehfw\"},\"zguaxfhvjixgofqd\":{\"type\":\"Bool\",\"defaultValue\":\"datafjisosfzlnraxnf\"},\"uvrqpbxdoicqp\":{\"type\":\"Array\",\"defaultValue\":\"datajmi\"}},\"annotations\":[\"datalydp\"],\"folder\":{\"name\":\"nsbmzjritukoym\"},\"\":{\"ndu\":\"dataexmizzjxwjoqfzw\"}}") - .toObject(RestResourceDataset.class); - Assertions.assertEquals("qpizdnuehxw", model.description()); - Assertions.assertEquals("tsawv", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("cbfnxiajuv").type()); - Assertions.assertEquals("nsbmzjritukoym", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RestResourceDataset model = - new RestResourceDataset() - .withDescription("qpizdnuehxw") - .withStructure("datassjdywbnklg") - .withSchema("dataxa") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("tsawv") - .withParameters(mapOf("jrmplzmsl", "datampt", "vrrllfswarmyb", "databnknyfuysj"))) - .withParameters( - mapOf( - "cbfnxiajuv", - new ParameterSpecification() - .withType(ParameterType.FLOAT) - .withDefaultValue("datageysyqnipehfw"), - "zguaxfhvjixgofqd", - new ParameterSpecification() - .withType(ParameterType.BOOL) - .withDefaultValue("datafjisosfzlnraxnf"), - "uvrqpbxdoicqp", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datajmi"))) - .withAnnotations(Arrays.asList("datalydp")) - .withFolder(new DatasetFolder().withName("nsbmzjritukoym")) - .withRelativeUrl("dataiarz") - .withRequestMethod("datadqseypdlmajpuy") - .withRequestBody("dataa") - .withAdditionalHeaders(mapOf("uvmsie", "datazgccyn", "parxtzayq", "dataedmmvoneeyr")) - .withPaginationRules(mapOf("z", "dataigeblsp", "eozbj", "datassiwwv")); - model = BinaryData.fromObject(model).toObject(RestResourceDataset.class); - Assertions.assertEquals("qpizdnuehxw", model.description()); - Assertions.assertEquals("tsawv", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("cbfnxiajuv").type()); - Assertions.assertEquals("nsbmzjritukoym", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RestResourceDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RestResourceDatasetTypePropertiesTests.java deleted file mode 100644 index 41e81e241429..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RestResourceDatasetTypePropertiesTests.java +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.RestResourceDatasetTypeProperties; -import java.util.HashMap; -import java.util.Map; - -public final class RestResourceDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RestResourceDatasetTypeProperties model = - BinaryData - .fromString( - "{\"relativeUrl\":\"datauwdvolxt\",\"requestMethod\":\"dataricdsflzbkiumj\",\"requestBody\":\"dataoxedrmrazhvch\",\"additionalHeaders\":{\"ntnwzruzso\":\"datayiog\",\"lcappnvcebspci\":\"datawxcsmx\",\"mzkwhjjsqwhae\":\"datayomhkdwuwedupb\"},\"paginationRules\":{\"a\":\"datavvkxdbnmc\"}}") - .toObject(RestResourceDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RestResourceDatasetTypeProperties model = - new RestResourceDatasetTypeProperties() - .withRelativeUrl("datauwdvolxt") - .withRequestMethod("dataricdsflzbkiumj") - .withRequestBody("dataoxedrmrazhvch") - .withAdditionalHeaders( - mapOf( - "ntnwzruzso", - "datayiog", - "lcappnvcebspci", - "datawxcsmx", - "mzkwhjjsqwhae", - "datayomhkdwuwedupb")) - .withPaginationRules(mapOf("a", "datavvkxdbnmc")); - model = BinaryData.fromObject(model).toObject(RestResourceDatasetTypeProperties.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RestSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RestSinkTests.java deleted file mode 100644 index a3a7955852bc..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RestSinkTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.RestSink; - -public final class RestSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RestSink model = - BinaryData - .fromString( - "{\"type\":\"RestSink\",\"requestMethod\":\"datamroadutogbkdcts\",\"additionalHeaders\":\"dataalh\",\"httpRequestTimeout\":\"dataneclphmjsqcubyjr\",\"requestInterval\":\"datalliteenah\",\"httpCompressionType\":\"datacsfttsub\",\"writeBatchSize\":\"datauhj\",\"writeBatchTimeout\":\"datadcyrbzyjhqgvtzdx\",\"sinkRetryCount\":\"datayxpkwwdkkvdevdvk\",\"sinkRetryWait\":\"dataqxj\",\"maxConcurrentConnections\":\"datadnlxeiluexvm\",\"disableMetricsCollection\":\"dataxqpsqpfxjwt\",\"\":{\"kiqtzubgdd\":\"dataqkguchdyxrjjdj\",\"yyqtjcrpaxwxlfx\":\"dataujvqzcuqculwnx\"}}") - .toObject(RestSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RestSink model = - new RestSink() - .withWriteBatchSize("datauhj") - .withWriteBatchTimeout("datadcyrbzyjhqgvtzdx") - .withSinkRetryCount("datayxpkwwdkkvdevdvk") - .withSinkRetryWait("dataqxj") - .withMaxConcurrentConnections("datadnlxeiluexvm") - .withDisableMetricsCollection("dataxqpsqpfxjwt") - .withRequestMethod("datamroadutogbkdcts") - .withAdditionalHeaders("dataalh") - .withHttpRequestTimeout("dataneclphmjsqcubyjr") - .withRequestInterval("datalliteenah") - .withHttpCompressionType("datacsfttsub"); - model = BinaryData.fromObject(model).toObject(RestSink.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RestSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RestSourceTests.java deleted file mode 100644 index 15b6362d83a2..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RestSourceTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.RestSource; - -public final class RestSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RestSource model = - BinaryData - .fromString( - "{\"type\":\"RestSource\",\"requestMethod\":\"datatvdzidldmxf\",\"requestBody\":\"datatywb\",\"additionalHeaders\":\"datan\",\"paginationRules\":\"datadci\",\"httpRequestTimeout\":\"dataotbvflgkk\",\"requestInterval\":\"dataqhopafobpyeobr\",\"additionalColumns\":\"dataevqafdhpk\",\"sourceRetryCount\":\"dataunyro\",\"sourceRetryWait\":\"datakelow\",\"maxConcurrentConnections\":\"datarvdt\",\"disableMetricsCollection\":\"datartnqssqynupskit\",\"\":{\"dpn\":\"datahamefzzgwjoaued\",\"uknzhmza\":\"dataouylfcfgqinaokx\"}}") - .toObject(RestSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RestSource model = - new RestSource() - .withSourceRetryCount("dataunyro") - .withSourceRetryWait("datakelow") - .withMaxConcurrentConnections("datarvdt") - .withDisableMetricsCollection("datartnqssqynupskit") - .withRequestMethod("datatvdzidldmxf") - .withRequestBody("datatywb") - .withAdditionalHeaders("datan") - .withPaginationRules("datadci") - .withHttpRequestTimeout("dataotbvflgkk") - .withRequestInterval("dataqhopafobpyeobr") - .withAdditionalColumns("dataevqafdhpk"); - model = BinaryData.fromObject(model).toObject(RestSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RetryPolicyTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RetryPolicyTests.java deleted file mode 100644 index 40209ad5e1da..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RetryPolicyTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.RetryPolicy; -import org.junit.jupiter.api.Assertions; - -public final class RetryPolicyTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RetryPolicy model = - BinaryData - .fromString("{\"count\":\"datakdwagnyahurxtpu\",\"intervalInSeconds\":1445981696}") - .toObject(RetryPolicy.class); - Assertions.assertEquals(1445981696, model.intervalInSeconds()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RetryPolicy model = new RetryPolicy().withCount("datakdwagnyahurxtpu").withIntervalInSeconds(1445981696); - model = BinaryData.fromObject(model).toObject(RetryPolicy.class); - Assertions.assertEquals(1445981696, model.intervalInSeconds()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RunQueryFilterTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RunQueryFilterTests.java deleted file mode 100644 index 3beb2c951f18..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RunQueryFilterTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.RunQueryFilter; -import com.azure.resourcemanager.datafactory.models.RunQueryFilterOperand; -import com.azure.resourcemanager.datafactory.models.RunQueryFilterOperator; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class RunQueryFilterTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RunQueryFilter model = - BinaryData - .fromString( - "{\"operand\":\"TriggerName\",\"operator\":\"Equals\",\"values\":[\"vewzcj\",\"nmwcpmgu\",\"adraufactkahzo\",\"ajjziuxxpshne\"]}") - .toObject(RunQueryFilter.class); - Assertions.assertEquals(RunQueryFilterOperand.TRIGGER_NAME, model.operand()); - Assertions.assertEquals(RunQueryFilterOperator.EQUALS, model.operator()); - Assertions.assertEquals("vewzcj", model.values().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RunQueryFilter model = - new RunQueryFilter() - .withOperand(RunQueryFilterOperand.TRIGGER_NAME) - .withOperator(RunQueryFilterOperator.EQUALS) - .withValues(Arrays.asList("vewzcj", "nmwcpmgu", "adraufactkahzo", "ajjziuxxpshne")); - model = BinaryData.fromObject(model).toObject(RunQueryFilter.class); - Assertions.assertEquals(RunQueryFilterOperand.TRIGGER_NAME, model.operand()); - Assertions.assertEquals(RunQueryFilterOperator.EQUALS, model.operator()); - Assertions.assertEquals("vewzcj", model.values().get(0)); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RunQueryOrderByTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RunQueryOrderByTests.java deleted file mode 100644 index dfb57c6d7f5b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RunQueryOrderByTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.RunQueryOrder; -import com.azure.resourcemanager.datafactory.models.RunQueryOrderBy; -import com.azure.resourcemanager.datafactory.models.RunQueryOrderByField; -import org.junit.jupiter.api.Assertions; - -public final class RunQueryOrderByTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RunQueryOrderBy model = - BinaryData.fromString("{\"orderBy\":\"ActivityName\",\"order\":\"ASC\"}").toObject(RunQueryOrderBy.class); - Assertions.assertEquals(RunQueryOrderByField.ACTIVITY_NAME, model.orderBy()); - Assertions.assertEquals(RunQueryOrder.ASC, model.order()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RunQueryOrderBy model = - new RunQueryOrderBy().withOrderBy(RunQueryOrderByField.ACTIVITY_NAME).withOrder(RunQueryOrder.ASC); - model = BinaryData.fromObject(model).toObject(RunQueryOrderBy.class); - Assertions.assertEquals(RunQueryOrderByField.ACTIVITY_NAME, model.orderBy()); - Assertions.assertEquals(RunQueryOrder.ASC, model.order()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceMarketingCloudObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceMarketingCloudObjectDatasetTests.java deleted file mode 100644 index 766caf73df14..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceMarketingCloudObjectDatasetTests.java +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.SalesforceMarketingCloudObjectDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SalesforceMarketingCloudObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SalesforceMarketingCloudObjectDataset model = - BinaryData - .fromString( - "{\"type\":\"SalesforceMarketingCloudObject\",\"typeProperties\":{\"tableName\":\"dataktwomlpczlqboomz\"},\"description\":\"rolhsfddk\",\"structure\":\"datavevwxmnbw\",\"schema\":\"dataa\",\"linkedServiceName\":{\"referenceName\":\"xgnpyhtu\",\"parameters\":{\"aokex\":\"datapqild\"}},\"parameters\":{\"gtz\":{\"type\":\"String\",\"defaultValue\":\"datatkqjarlazb\"},\"oujfgtgxuupczegq\":{\"type\":\"Object\",\"defaultValue\":\"datatrm\"}},\"annotations\":[\"datadvssvg\",\"dataoggkztzttjnknpb\",\"datagzkuobclobn\",\"dataqe\"],\"folder\":{\"name\":\"liqlyugp\"},\"\":{\"yiqywlpxmli\":\"datazjmkffeonmnvmu\",\"ekbirhyvsyuv\":\"datatdegcrunbkilxs\",\"gio\":\"dataiemorszffiukltr\"}}") - .toObject(SalesforceMarketingCloudObjectDataset.class); - Assertions.assertEquals("rolhsfddk", model.description()); - Assertions.assertEquals("xgnpyhtu", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("gtz").type()); - Assertions.assertEquals("liqlyugp", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SalesforceMarketingCloudObjectDataset model = - new SalesforceMarketingCloudObjectDataset() - .withDescription("rolhsfddk") - .withStructure("datavevwxmnbw") - .withSchema("dataa") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("xgnpyhtu") - .withParameters(mapOf("aokex", "datapqild"))) - .withParameters( - mapOf( - "gtz", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datatkqjarlazb"), - "oujfgtgxuupczegq", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datatrm"))) - .withAnnotations(Arrays.asList("datadvssvg", "dataoggkztzttjnknpb", "datagzkuobclobn", "dataqe")) - .withFolder(new DatasetFolder().withName("liqlyugp")) - .withTableName("dataktwomlpczlqboomz"); - model = BinaryData.fromObject(model).toObject(SalesforceMarketingCloudObjectDataset.class); - Assertions.assertEquals("rolhsfddk", model.description()); - Assertions.assertEquals("xgnpyhtu", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("gtz").type()); - Assertions.assertEquals("liqlyugp", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceMarketingCloudSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceMarketingCloudSourceTests.java deleted file mode 100644 index 2c8059f77455..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceMarketingCloudSourceTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SalesforceMarketingCloudSource; - -public final class SalesforceMarketingCloudSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SalesforceMarketingCloudSource model = - BinaryData - .fromString( - "{\"type\":\"SalesforceMarketingCloudSource\",\"query\":\"datafarqxjoazyxmumfb\",\"queryTimeout\":\"dataxzrycvacspzj\",\"additionalColumns\":\"datayphxeoqma\",\"sourceRetryCount\":\"dataikceiyuv\",\"sourceRetryWait\":\"databbawrbqoox\",\"maxConcurrentConnections\":\"datarqlxqhqgip\",\"disableMetricsCollection\":\"datatnkngjnhxufo\",\"\":{\"pfsesi\":\"dataifijdtpedvh\"}}") - .toObject(SalesforceMarketingCloudSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SalesforceMarketingCloudSource model = - new SalesforceMarketingCloudSource() - .withSourceRetryCount("dataikceiyuv") - .withSourceRetryWait("databbawrbqoox") - .withMaxConcurrentConnections("datarqlxqhqgip") - .withDisableMetricsCollection("datatnkngjnhxufo") - .withQueryTimeout("dataxzrycvacspzj") - .withAdditionalColumns("datayphxeoqma") - .withQuery("datafarqxjoazyxmumfb"); - model = BinaryData.fromObject(model).toObject(SalesforceMarketingCloudSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceObjectDatasetTests.java deleted file mode 100644 index 344a5c33c132..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceObjectDatasetTests.java +++ /dev/null @@ -1,85 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.SalesforceObjectDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SalesforceObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SalesforceObjectDataset model = - BinaryData - .fromString( - "{\"type\":\"SalesforceObject\",\"typeProperties\":{\"objectApiName\":\"dataryszfhdxyfh\"},\"description\":\"hzbzhhavz\",\"structure\":\"dataxnvkdslcofuvtfue\",\"schema\":\"datauisaklhjfddxqfu\",\"linkedServiceName\":{\"referenceName\":\"subzsspmj\",\"parameters\":{\"wbztrt\":\"datalfauyvxpqwlkqd\",\"ffjdhgslormhbt\":\"dataldwvog\",\"sdylmnq\":\"datafcvxkylhc\"}},\"parameters\":{\"bgbh\":{\"type\":\"Object\",\"defaultValue\":\"databptmsgkwedwlxtzh\"},\"pkwmamrlfizjud\":{\"type\":\"SecureString\",\"defaultValue\":\"datarpjimvrrqfi\"},\"pngyhylqyafe\":{\"type\":\"String\",\"defaultValue\":\"dataih\"},\"u\":{\"type\":\"Int\",\"defaultValue\":\"dataodx\"}},\"annotations\":[\"dataxnxrqxrtzeargv\"],\"folder\":{\"name\":\"hbjhmvpjxsd\"},\"\":{\"ynepkt\":\"dataignybffqcw\",\"conyse\":\"datamwg\",\"ouoxfalo\":\"datajijfhpxni\"}}") - .toObject(SalesforceObjectDataset.class); - Assertions.assertEquals("hzbzhhavz", model.description()); - Assertions.assertEquals("subzsspmj", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("bgbh").type()); - Assertions.assertEquals("hbjhmvpjxsd", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SalesforceObjectDataset model = - new SalesforceObjectDataset() - .withDescription("hzbzhhavz") - .withStructure("dataxnvkdslcofuvtfue") - .withSchema("datauisaklhjfddxqfu") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("subzsspmj") - .withParameters( - mapOf( - "wbztrt", - "datalfauyvxpqwlkqd", - "ffjdhgslormhbt", - "dataldwvog", - "sdylmnq", - "datafcvxkylhc"))) - .withParameters( - mapOf( - "bgbh", - new ParameterSpecification() - .withType(ParameterType.OBJECT) - .withDefaultValue("databptmsgkwedwlxtzh"), - "pkwmamrlfizjud", - new ParameterSpecification() - .withType(ParameterType.SECURE_STRING) - .withDefaultValue("datarpjimvrrqfi"), - "pngyhylqyafe", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("dataih"), - "u", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("dataodx"))) - .withAnnotations(Arrays.asList("dataxnxrqxrtzeargv")) - .withFolder(new DatasetFolder().withName("hbjhmvpjxsd")) - .withObjectApiName("dataryszfhdxyfh"); - model = BinaryData.fromObject(model).toObject(SalesforceObjectDataset.class); - Assertions.assertEquals("hzbzhhavz", model.description()); - Assertions.assertEquals("subzsspmj", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("bgbh").type()); - Assertions.assertEquals("hbjhmvpjxsd", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceObjectDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceObjectDatasetTypePropertiesTests.java deleted file mode 100644 index 7d8caeb7aabe..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceObjectDatasetTypePropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.SalesforceObjectDatasetTypeProperties; - -public final class SalesforceObjectDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SalesforceObjectDatasetTypeProperties model = - BinaryData - .fromString("{\"objectApiName\":\"dataskk\"}") - .toObject(SalesforceObjectDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SalesforceObjectDatasetTypeProperties model = - new SalesforceObjectDatasetTypeProperties().withObjectApiName("dataskk"); - model = BinaryData.fromObject(model).toObject(SalesforceObjectDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceServiceCloudObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceServiceCloudObjectDatasetTests.java deleted file mode 100644 index 10f20f0f1f12..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceServiceCloudObjectDatasetTests.java +++ /dev/null @@ -1,79 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.SalesforceServiceCloudObjectDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SalesforceServiceCloudObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SalesforceServiceCloudObjectDataset model = - BinaryData - .fromString( - "{\"type\":\"SalesforceServiceCloudObject\",\"typeProperties\":{\"objectApiName\":\"datar\"},\"description\":\"nieu\",\"structure\":\"dataydlgfap\",\"schema\":\"datauubwts\",\"linkedServiceName\":{\"referenceName\":\"yn\",\"parameters\":{\"vqjmrnblihs\":\"datajfqreeo\",\"divixzhpjgqzmiao\":\"databfb\",\"ruetcnx\":\"dataweacfxaubu\",\"nowobwx\":\"dataiqzzdckhsqdrrjsu\"}},\"parameters\":{\"zheahuv\":{\"type\":\"String\",\"defaultValue\":\"datakohlsfjfouqj\"}},\"annotations\":[\"dataqkvadmjhymud\",\"datamaajzd\",\"databhsermclyqwwu\",\"datayqkaaptb\"],\"folder\":{\"name\":\"kb\"},\"\":{\"shvqnpszbeuyb\":\"datatwybloccuhplxzbn\",\"zjfjtvpey\":\"datatc\",\"jgpqfk\":\"datadyuxurxrltqmm\",\"xgwpq\":\"datanaeikczscymqf\"}}") - .toObject(SalesforceServiceCloudObjectDataset.class); - Assertions.assertEquals("nieu", model.description()); - Assertions.assertEquals("yn", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("zheahuv").type()); - Assertions.assertEquals("kb", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SalesforceServiceCloudObjectDataset model = - new SalesforceServiceCloudObjectDataset() - .withDescription("nieu") - .withStructure("dataydlgfap") - .withSchema("datauubwts") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("yn") - .withParameters( - mapOf( - "vqjmrnblihs", - "datajfqreeo", - "divixzhpjgqzmiao", - "databfb", - "ruetcnx", - "dataweacfxaubu", - "nowobwx", - "dataiqzzdckhsqdrrjsu"))) - .withParameters( - mapOf( - "zheahuv", - new ParameterSpecification() - .withType(ParameterType.STRING) - .withDefaultValue("datakohlsfjfouqj"))) - .withAnnotations(Arrays.asList("dataqkvadmjhymud", "datamaajzd", "databhsermclyqwwu", "datayqkaaptb")) - .withFolder(new DatasetFolder().withName("kb")) - .withObjectApiName("datar"); - model = BinaryData.fromObject(model).toObject(SalesforceServiceCloudObjectDataset.class); - Assertions.assertEquals("nieu", model.description()); - Assertions.assertEquals("yn", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("zheahuv").type()); - Assertions.assertEquals("kb", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceServiceCloudObjectDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceServiceCloudObjectDatasetTypePropertiesTests.java deleted file mode 100644 index eae83ea7150c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceServiceCloudObjectDatasetTypePropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.SalesforceServiceCloudObjectDatasetTypeProperties; - -public final class SalesforceServiceCloudObjectDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SalesforceServiceCloudObjectDatasetTypeProperties model = - BinaryData - .fromString("{\"objectApiName\":\"dataumz\"}") - .toObject(SalesforceServiceCloudObjectDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SalesforceServiceCloudObjectDatasetTypeProperties model = - new SalesforceServiceCloudObjectDatasetTypeProperties().withObjectApiName("dataumz"); - model = BinaryData.fromObject(model).toObject(SalesforceServiceCloudObjectDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceServiceCloudSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceServiceCloudSinkTests.java deleted file mode 100644 index 98477f59b6da..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceServiceCloudSinkTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SalesforceServiceCloudSink; -import com.azure.resourcemanager.datafactory.models.SalesforceSinkWriteBehavior; -import org.junit.jupiter.api.Assertions; - -public final class SalesforceServiceCloudSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SalesforceServiceCloudSink model = - BinaryData - .fromString( - "{\"type\":\"SalesforceServiceCloudSink\",\"writeBehavior\":\"Insert\",\"externalIdFieldName\":\"datamaaxzcdlnvu\",\"ignoreNullValues\":\"datascbzyhtb\",\"writeBatchSize\":\"dataycacoelvoy\",\"writeBatchTimeout\":\"datamxqalqqrymjwwox\",\"sinkRetryCount\":\"dataefellhdsgo\",\"sinkRetryWait\":\"datau\",\"maxConcurrentConnections\":\"datamalthcbvuvwdp\",\"disableMetricsCollection\":\"dataphnag\",\"\":{\"ml\":\"dataaxjmnbm\",\"vlrsfmtrmod\":\"dataqatswvtddpicwnb\",\"pqrke\":\"datanxerkaiikbpfaq\",\"uaez\":\"datah\"}}") - .toObject(SalesforceServiceCloudSink.class); - Assertions.assertEquals(SalesforceSinkWriteBehavior.INSERT, model.writeBehavior()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SalesforceServiceCloudSink model = - new SalesforceServiceCloudSink() - .withWriteBatchSize("dataycacoelvoy") - .withWriteBatchTimeout("datamxqalqqrymjwwox") - .withSinkRetryCount("dataefellhdsgo") - .withSinkRetryWait("datau") - .withMaxConcurrentConnections("datamalthcbvuvwdp") - .withDisableMetricsCollection("dataphnag") - .withWriteBehavior(SalesforceSinkWriteBehavior.INSERT) - .withExternalIdFieldName("datamaaxzcdlnvu") - .withIgnoreNullValues("datascbzyhtb"); - model = BinaryData.fromObject(model).toObject(SalesforceServiceCloudSink.class); - Assertions.assertEquals(SalesforceSinkWriteBehavior.INSERT, model.writeBehavior()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceServiceCloudSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceServiceCloudSourceTests.java deleted file mode 100644 index c3b47599df94..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceServiceCloudSourceTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SalesforceServiceCloudSource; - -public final class SalesforceServiceCloudSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SalesforceServiceCloudSource model = - BinaryData - .fromString( - "{\"type\":\"SalesforceServiceCloudSource\",\"query\":\"dataouppgp\",\"readBehavior\":\"datamg\",\"additionalColumns\":\"datatn\",\"sourceRetryCount\":\"datanp\",\"sourceRetryWait\":\"dataxnbogxkid\",\"maxConcurrentConnections\":\"dataxbgfwwcfwlwnj\",\"disableMetricsCollection\":\"datanmop\",\"\":{\"gimviefbjes\":\"datatdru\",\"juqwn\":\"dataiyjkhjuuep\",\"pxqs\":\"datajb\",\"isdwtug\":\"dataaxvq\"}}") - .toObject(SalesforceServiceCloudSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SalesforceServiceCloudSource model = - new SalesforceServiceCloudSource() - .withSourceRetryCount("datanp") - .withSourceRetryWait("dataxnbogxkid") - .withMaxConcurrentConnections("dataxbgfwwcfwlwnj") - .withDisableMetricsCollection("datanmop") - .withQuery("dataouppgp") - .withReadBehavior("datamg") - .withAdditionalColumns("datatn"); - model = BinaryData.fromObject(model).toObject(SalesforceServiceCloudSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceSinkTests.java deleted file mode 100644 index b1a3c22d79e5..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceSinkTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SalesforceSink; -import com.azure.resourcemanager.datafactory.models.SalesforceSinkWriteBehavior; -import org.junit.jupiter.api.Assertions; - -public final class SalesforceSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SalesforceSink model = - BinaryData - .fromString( - "{\"type\":\"SalesforceSink\",\"writeBehavior\":\"Upsert\",\"externalIdFieldName\":\"datagazryyjjwggpcdu\",\"ignoreNullValues\":\"dataddo\",\"writeBatchSize\":\"datacsjw\",\"writeBatchTimeout\":\"dataedzm\",\"sinkRetryCount\":\"datag\",\"sinkRetryWait\":\"datafhyhzugwk\",\"maxConcurrentConnections\":\"datamhfm\",\"disableMetricsCollection\":\"dataorvhthxcrwe\",\"\":{\"tnfdcj\":\"datadmpfmcrcelsnj\",\"wxysut\":\"dataveibntwikm\",\"dgrzkeuplorn\":\"dataofdhrifekstrmsb\"}}") - .toObject(SalesforceSink.class); - Assertions.assertEquals(SalesforceSinkWriteBehavior.UPSERT, model.writeBehavior()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SalesforceSink model = - new SalesforceSink() - .withWriteBatchSize("datacsjw") - .withWriteBatchTimeout("dataedzm") - .withSinkRetryCount("datag") - .withSinkRetryWait("datafhyhzugwk") - .withMaxConcurrentConnections("datamhfm") - .withDisableMetricsCollection("dataorvhthxcrwe") - .withWriteBehavior(SalesforceSinkWriteBehavior.UPSERT) - .withExternalIdFieldName("datagazryyjjwggpcdu") - .withIgnoreNullValues("dataddo"); - model = BinaryData.fromObject(model).toObject(SalesforceSink.class); - Assertions.assertEquals(SalesforceSinkWriteBehavior.UPSERT, model.writeBehavior()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceSourceTests.java deleted file mode 100644 index f7aa9df81f94..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceSourceTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SalesforceSource; - -public final class SalesforceSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SalesforceSource model = - BinaryData - .fromString( - "{\"type\":\"SalesforceSource\",\"query\":\"datayjm\",\"readBehavior\":\"datanymbeeyskbql\",\"queryTimeout\":\"datakles\",\"additionalColumns\":\"dataxdh\",\"sourceRetryCount\":\"datazyhphaok\",\"sourceRetryWait\":\"dataqm\",\"maxConcurrentConnections\":\"dataglkqitpbyn\",\"disableMetricsCollection\":\"datayx\",\"\":{\"gg\":\"datapoclef\",\"z\":\"datag\",\"rvswcpspaoxigp\":\"databouhmngccnkgiu\"}}") - .toObject(SalesforceSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SalesforceSource model = - new SalesforceSource() - .withSourceRetryCount("datazyhphaok") - .withSourceRetryWait("dataqm") - .withMaxConcurrentConnections("dataglkqitpbyn") - .withDisableMetricsCollection("datayx") - .withQueryTimeout("datakles") - .withAdditionalColumns("dataxdh") - .withQuery("datayjm") - .withReadBehavior("datanymbeeyskbql"); - model = BinaryData.fromObject(model).toObject(SalesforceSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapBwCubeDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapBwCubeDatasetTests.java deleted file mode 100644 index 0a3e1753fc74..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapBwCubeDatasetTests.java +++ /dev/null @@ -1,84 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.SapBwCubeDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SapBwCubeDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SapBwCubeDataset model = - BinaryData - .fromString( - "{\"type\":\"SapBwCube\",\"description\":\"efqckievyrejyo\",\"structure\":\"datakqf\",\"schema\":\"datasdwmnrtvvbuc\",\"linkedServiceName\":{\"referenceName\":\"nrovome\",\"parameters\":{\"hennmsgpywdib\":\"datasicvwqzocsf\",\"ibrbknuubxc\":\"datagvnrgalvwrhr\",\"qdvnpyeevff\":\"dataojtu\"}},\"parameters\":{\"chrtczwjcu\":{\"type\":\"Array\",\"defaultValue\":\"datatdowlxmwefcbyb\"},\"jqdjlgkuirxxeuwi\":{\"type\":\"Int\",\"defaultValue\":\"datanvy\"},\"viwxohktxagfuj\":{\"type\":\"String\",\"defaultValue\":\"datacvnfgb\"},\"asfeooq\":{\"type\":\"Object\",\"defaultValue\":\"datajnyexbvxgxqq\"}},\"annotations\":[\"datavev\",\"dataarp\",\"dataklqlii\",\"dataeanuwg\"],\"folder\":{\"name\":\"fgijydgs\"},\"\":{\"mwywhrjkejva\":\"datauymtevaeb\",\"gcphivfhrmte\":\"datadogzougxbxxgj\",\"usrjzhdtrsyfezf\":\"datafdvdoeary\"}}") - .toObject(SapBwCubeDataset.class); - Assertions.assertEquals("efqckievyrejyo", model.description()); - Assertions.assertEquals("nrovome", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("chrtczwjcu").type()); - Assertions.assertEquals("fgijydgs", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapBwCubeDataset model = - new SapBwCubeDataset() - .withDescription("efqckievyrejyo") - .withStructure("datakqf") - .withSchema("datasdwmnrtvvbuc") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("nrovome") - .withParameters( - mapOf( - "hennmsgpywdib", - "datasicvwqzocsf", - "ibrbknuubxc", - "datagvnrgalvwrhr", - "qdvnpyeevff", - "dataojtu"))) - .withParameters( - mapOf( - "chrtczwjcu", - new ParameterSpecification() - .withType(ParameterType.ARRAY) - .withDefaultValue("datatdowlxmwefcbyb"), - "jqdjlgkuirxxeuwi", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datanvy"), - "viwxohktxagfuj", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datacvnfgb"), - "asfeooq", - new ParameterSpecification() - .withType(ParameterType.OBJECT) - .withDefaultValue("datajnyexbvxgxqq"))) - .withAnnotations(Arrays.asList("datavev", "dataarp", "dataklqlii", "dataeanuwg")) - .withFolder(new DatasetFolder().withName("fgijydgs")); - model = BinaryData.fromObject(model).toObject(SapBwCubeDataset.class); - Assertions.assertEquals("efqckievyrejyo", model.description()); - Assertions.assertEquals("nrovome", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("chrtczwjcu").type()); - Assertions.assertEquals("fgijydgs", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapBwSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapBwSourceTests.java deleted file mode 100644 index cf40b8fedd2e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapBwSourceTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SapBwSource; - -public final class SapBwSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SapBwSource model = - BinaryData - .fromString( - "{\"type\":\"SapBwSource\",\"query\":\"datajthmibqgld\",\"queryTimeout\":\"datatkalp\",\"additionalColumns\":\"datanny\",\"sourceRetryCount\":\"datajea\",\"sourceRetryWait\":\"datalewlwbxufq\",\"maxConcurrentConnections\":\"datakkvij\",\"disableMetricsCollection\":\"dataf\",\"\":{\"aqoaopzqpf\":\"datadzowdqvqfl\",\"ee\":\"datanjdyoxform\"}}") - .toObject(SapBwSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapBwSource model = - new SapBwSource() - .withSourceRetryCount("datajea") - .withSourceRetryWait("datalewlwbxufq") - .withMaxConcurrentConnections("datakkvij") - .withDisableMetricsCollection("dataf") - .withQueryTimeout("datatkalp") - .withAdditionalColumns("datanny") - .withQuery("datajthmibqgld"); - model = BinaryData.fromObject(model).toObject(SapBwSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapCloudForCustomerResourceDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapCloudForCustomerResourceDatasetTests.java deleted file mode 100644 index 1e3ef6305cc0..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapCloudForCustomerResourceDatasetTests.java +++ /dev/null @@ -1,73 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.SapCloudForCustomerResourceDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SapCloudForCustomerResourceDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SapCloudForCustomerResourceDataset model = - BinaryData - .fromString( - "{\"type\":\"SapCloudForCustomerResource\",\"typeProperties\":{\"path\":\"datamy\"},\"description\":\"dzyyrwnmwtqil\",\"structure\":\"datannkynkstd\",\"schema\":\"datawhjfp\",\"linkedServiceName\":{\"referenceName\":\"fxaqjyihjcwwv\",\"parameters\":{\"spwweifdyfa\":\"datackfavhkh\",\"a\":\"dataexnguwnrdpuz\"}},\"parameters\":{\"bszam\":{\"type\":\"Array\",\"defaultValue\":\"datatgg\"},\"lrnhhjtvhqsz\":{\"type\":\"SecureString\",\"defaultValue\":\"dataejpdcliqwzutiy\"}},\"annotations\":[\"dataovqmqcudptoqwr\",\"datafckjthlokmx\",\"dataawfubkngejjxu\",\"dataowynj\"],\"folder\":{\"name\":\"zmxuktdrsjtmnk\"},\"\":{\"nuhcfhepisq\":\"datauwfzcfdtstiaxty\"}}") - .toObject(SapCloudForCustomerResourceDataset.class); - Assertions.assertEquals("dzyyrwnmwtqil", model.description()); - Assertions.assertEquals("fxaqjyihjcwwv", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("bszam").type()); - Assertions.assertEquals("zmxuktdrsjtmnk", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapCloudForCustomerResourceDataset model = - new SapCloudForCustomerResourceDataset() - .withDescription("dzyyrwnmwtqil") - .withStructure("datannkynkstd") - .withSchema("datawhjfp") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("fxaqjyihjcwwv") - .withParameters(mapOf("spwweifdyfa", "datackfavhkh", "a", "dataexnguwnrdpuz"))) - .withParameters( - mapOf( - "bszam", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datatgg"), - "lrnhhjtvhqsz", - new ParameterSpecification() - .withType(ParameterType.SECURE_STRING) - .withDefaultValue("dataejpdcliqwzutiy"))) - .withAnnotations( - Arrays.asList("dataovqmqcudptoqwr", "datafckjthlokmx", "dataawfubkngejjxu", "dataowynj")) - .withFolder(new DatasetFolder().withName("zmxuktdrsjtmnk")) - .withPath("datamy"); - model = BinaryData.fromObject(model).toObject(SapCloudForCustomerResourceDataset.class); - Assertions.assertEquals("dzyyrwnmwtqil", model.description()); - Assertions.assertEquals("fxaqjyihjcwwv", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("bszam").type()); - Assertions.assertEquals("zmxuktdrsjtmnk", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapCloudForCustomerResourceDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapCloudForCustomerResourceDatasetTypePropertiesTests.java deleted file mode 100644 index 5d6bf94c3e39..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapCloudForCustomerResourceDatasetTypePropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.SapCloudForCustomerResourceDatasetTypeProperties; - -public final class SapCloudForCustomerResourceDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SapCloudForCustomerResourceDatasetTypeProperties model = - BinaryData - .fromString("{\"path\":\"datacmlroiommemso\"}") - .toObject(SapCloudForCustomerResourceDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapCloudForCustomerResourceDatasetTypeProperties model = - new SapCloudForCustomerResourceDatasetTypeProperties().withPath("datacmlroiommemso"); - model = BinaryData.fromObject(model).toObject(SapCloudForCustomerResourceDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapCloudForCustomerSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapCloudForCustomerSinkTests.java deleted file mode 100644 index 945268a4907f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapCloudForCustomerSinkTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SapCloudForCustomerSink; -import com.azure.resourcemanager.datafactory.models.SapCloudForCustomerSinkWriteBehavior; -import org.junit.jupiter.api.Assertions; - -public final class SapCloudForCustomerSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SapCloudForCustomerSink model = - BinaryData - .fromString( - "{\"type\":\"SapCloudForCustomerSink\",\"writeBehavior\":\"Insert\",\"httpRequestTimeout\":\"dataqaviqs\",\"writeBatchSize\":\"datalw\",\"writeBatchTimeout\":\"datarc\",\"sinkRetryCount\":\"dataccnwmdpbsotknhfx\",\"sinkRetryWait\":\"dataeruuc\",\"maxConcurrentConnections\":\"datazwraqapt\",\"disableMetricsCollection\":\"datarnlyuyopw\",\"\":{\"cxeosylgjpp\":\"dataoubwbssvfzjjf\"}}") - .toObject(SapCloudForCustomerSink.class); - Assertions.assertEquals(SapCloudForCustomerSinkWriteBehavior.INSERT, model.writeBehavior()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapCloudForCustomerSink model = - new SapCloudForCustomerSink() - .withWriteBatchSize("datalw") - .withWriteBatchTimeout("datarc") - .withSinkRetryCount("dataccnwmdpbsotknhfx") - .withSinkRetryWait("dataeruuc") - .withMaxConcurrentConnections("datazwraqapt") - .withDisableMetricsCollection("datarnlyuyopw") - .withWriteBehavior(SapCloudForCustomerSinkWriteBehavior.INSERT) - .withHttpRequestTimeout("dataqaviqs"); - model = BinaryData.fromObject(model).toObject(SapCloudForCustomerSink.class); - Assertions.assertEquals(SapCloudForCustomerSinkWriteBehavior.INSERT, model.writeBehavior()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapCloudForCustomerSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapCloudForCustomerSourceTests.java deleted file mode 100644 index 4aa24f26ea24..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapCloudForCustomerSourceTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SapCloudForCustomerSource; - -public final class SapCloudForCustomerSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SapCloudForCustomerSource model = - BinaryData - .fromString( - "{\"type\":\"SapCloudForCustomerSource\",\"query\":\"dataxup\",\"httpRequestTimeout\":\"datagcbwiw\",\"queryTimeout\":\"datajoxxllhkzunnw\",\"additionalColumns\":\"datawxyawxkdvev\",\"sourceRetryCount\":\"datauuihapcqmcvur\",\"sourceRetryWait\":\"dataubljnizwztlcrxfi\",\"maxConcurrentConnections\":\"datafgxn\",\"disableMetricsCollection\":\"datarmficqrdervtru\",\"\":{\"xb\":\"datarmrtcsmpmhl\"}}") - .toObject(SapCloudForCustomerSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapCloudForCustomerSource model = - new SapCloudForCustomerSource() - .withSourceRetryCount("datauuihapcqmcvur") - .withSourceRetryWait("dataubljnizwztlcrxfi") - .withMaxConcurrentConnections("datafgxn") - .withDisableMetricsCollection("datarmficqrdervtru") - .withQueryTimeout("datajoxxllhkzunnw") - .withAdditionalColumns("datawxyawxkdvev") - .withQuery("dataxup") - .withHttpRequestTimeout("datagcbwiw"); - model = BinaryData.fromObject(model).toObject(SapCloudForCustomerSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapEccResourceDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapEccResourceDatasetTests.java deleted file mode 100644 index caa60c27b06a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapEccResourceDatasetTests.java +++ /dev/null @@ -1,81 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.SapEccResourceDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SapEccResourceDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SapEccResourceDataset model = - BinaryData - .fromString( - "{\"type\":\"SapEccResource\",\"typeProperties\":{\"path\":\"datagblcyeqdobobaq\"},\"description\":\"bebckce\",\"structure\":\"datasixwnlpjcxbjgf\",\"schema\":\"dataqyyfrridzfpsfyak\",\"linkedServiceName\":{\"referenceName\":\"dfhmlx\",\"parameters\":{\"mkqafzvptriy\":\"dataekn\",\"dvvoydwedggwgcl\":\"datajrgtruwpuqpsrce\",\"drjbjngoars\":\"databwatz\"}},\"parameters\":{\"rqw\":{\"type\":\"Float\",\"defaultValue\":\"dataemzcyniapypimrx\"},\"stuinytkmlfupjzc\":{\"type\":\"Object\",\"defaultValue\":\"datae\"},\"yxjg\":{\"type\":\"Array\",\"defaultValue\":\"datazj\"}},\"annotations\":[\"datauerrdaktnytkbc\",\"datarfcvcp\"],\"folder\":{\"name\":\"j\"},\"\":{\"vlhnhhcikhleb\":\"datapw\",\"giflr\":\"datajgylsac\"}}") - .toObject(SapEccResourceDataset.class); - Assertions.assertEquals("bebckce", model.description()); - Assertions.assertEquals("dfhmlx", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("rqw").type()); - Assertions.assertEquals("j", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapEccResourceDataset model = - new SapEccResourceDataset() - .withDescription("bebckce") - .withStructure("datasixwnlpjcxbjgf") - .withSchema("dataqyyfrridzfpsfyak") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("dfhmlx") - .withParameters( - mapOf( - "mkqafzvptriy", - "dataekn", - "dvvoydwedggwgcl", - "datajrgtruwpuqpsrce", - "drjbjngoars", - "databwatz"))) - .withParameters( - mapOf( - "rqw", - new ParameterSpecification() - .withType(ParameterType.FLOAT) - .withDefaultValue("dataemzcyniapypimrx"), - "stuinytkmlfupjzc", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datae"), - "yxjg", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datazj"))) - .withAnnotations(Arrays.asList("datauerrdaktnytkbc", "datarfcvcp")) - .withFolder(new DatasetFolder().withName("j")) - .withPath("datagblcyeqdobobaq"); - model = BinaryData.fromObject(model).toObject(SapEccResourceDataset.class); - Assertions.assertEquals("bebckce", model.description()); - Assertions.assertEquals("dfhmlx", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("rqw").type()); - Assertions.assertEquals("j", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapEccResourceDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapEccResourceDatasetTypePropertiesTests.java deleted file mode 100644 index 9b9228f0859a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapEccResourceDatasetTypePropertiesTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.SapEccResourceDatasetTypeProperties; - -public final class SapEccResourceDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SapEccResourceDatasetTypeProperties model = - BinaryData.fromString("{\"path\":\"dataygotoh\"}").toObject(SapEccResourceDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapEccResourceDatasetTypeProperties model = new SapEccResourceDatasetTypeProperties().withPath("dataygotoh"); - model = BinaryData.fromObject(model).toObject(SapEccResourceDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapEccSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapEccSourceTests.java deleted file mode 100644 index ca7b01e69c2a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapEccSourceTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SapEccSource; - -public final class SapEccSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SapEccSource model = - BinaryData - .fromString( - "{\"type\":\"SapEccSource\",\"query\":\"datacgcdfelvap\",\"httpRequestTimeout\":\"databicjzntiblxeygo\",\"queryTimeout\":\"datahroi\",\"additionalColumns\":\"datatg\",\"sourceRetryCount\":\"dataymoanpkcmdixiu\",\"sourceRetryWait\":\"databc\",\"maxConcurrentConnections\":\"datagspzoafprzlvho\",\"disableMetricsCollection\":\"datakc\",\"\":{\"e\":\"datadzposmnmky\",\"avxea\":\"datamuueoxmkru\",\"pjaekbwbxvsyt\":\"datamflchwpfunptsr\"}}") - .toObject(SapEccSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapEccSource model = - new SapEccSource() - .withSourceRetryCount("dataymoanpkcmdixiu") - .withSourceRetryWait("databc") - .withMaxConcurrentConnections("datagspzoafprzlvho") - .withDisableMetricsCollection("datakc") - .withQueryTimeout("datahroi") - .withAdditionalColumns("datatg") - .withQuery("datacgcdfelvap") - .withHttpRequestTimeout("databicjzntiblxeygo"); - model = BinaryData.fromObject(model).toObject(SapEccSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapHanaPartitionSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapHanaPartitionSettingsTests.java deleted file mode 100644 index 1d1fd8711aa5..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapHanaPartitionSettingsTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SapHanaPartitionSettings; - -public final class SapHanaPartitionSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SapHanaPartitionSettings model = - BinaryData - .fromString("{\"partitionColumnName\":\"datarelokxklgluareg\"}") - .toObject(SapHanaPartitionSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapHanaPartitionSettings model = new SapHanaPartitionSettings().withPartitionColumnName("datarelokxklgluareg"); - model = BinaryData.fromObject(model).toObject(SapHanaPartitionSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapHanaSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapHanaSourceTests.java deleted file mode 100644 index 063189ded1e0..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapHanaSourceTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SapHanaPartitionSettings; -import com.azure.resourcemanager.datafactory.models.SapHanaSource; - -public final class SapHanaSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SapHanaSource model = - BinaryData - .fromString( - "{\"type\":\"SapHanaSource\",\"query\":\"datacjubaddlmjquli\",\"packetSize\":\"datarc\",\"partitionOption\":\"datathluzey\",\"partitionSettings\":{\"partitionColumnName\":\"dataezkyfy\"},\"queryTimeout\":\"datanreasuwepqegty\",\"additionalColumns\":\"datayc\",\"sourceRetryCount\":\"dataufutfqffw\",\"sourceRetryWait\":\"datajgjrykshiz\",\"maxConcurrentConnections\":\"datasw\",\"disableMetricsCollection\":\"dataye\",\"\":{\"meftlgjrfkqf\":\"datakzwqzwsguipqq\"}}") - .toObject(SapHanaSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapHanaSource model = - new SapHanaSource() - .withSourceRetryCount("dataufutfqffw") - .withSourceRetryWait("datajgjrykshiz") - .withMaxConcurrentConnections("datasw") - .withDisableMetricsCollection("dataye") - .withQueryTimeout("datanreasuwepqegty") - .withAdditionalColumns("datayc") - .withQuery("datacjubaddlmjquli") - .withPacketSize("datarc") - .withPartitionOption("datathluzey") - .withPartitionSettings(new SapHanaPartitionSettings().withPartitionColumnName("dataezkyfy")); - model = BinaryData.fromObject(model).toObject(SapHanaSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapHanaTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapHanaTableDatasetTests.java deleted file mode 100644 index fa75c5432c89..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapHanaTableDatasetTests.java +++ /dev/null @@ -1,75 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.SapHanaTableDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SapHanaTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SapHanaTableDataset model = - BinaryData - .fromString( - "{\"type\":\"SapHanaTable\",\"typeProperties\":{\"schema\":\"dataoidhbxitrapwzhlu\",\"table\":\"datasj\"},\"description\":\"l\",\"structure\":\"dataiemv\",\"schema\":\"datameakosy\",\"linkedServiceName\":{\"referenceName\":\"ycvldeehcbsaip\",\"parameters\":{\"vsluazzxfjv\":\"dataofkegbvbbdledffl\",\"scboxra\":\"dataugpxzeempup\"}},\"parameters\":{\"fdr\":{\"type\":\"Float\",\"defaultValue\":\"datarjgobekxeheowsec\"},\"seesacuicnvq\":{\"type\":\"Int\",\"defaultValue\":\"dataskiwrjsbdb\"},\"vmrfaptndrmmn\":{\"type\":\"Array\",\"defaultValue\":\"datau\"}},\"annotations\":[\"datak\",\"dataxrqkekcdavi\",\"dataebeqrfza\",\"dataqymcwt\"],\"folder\":{\"name\":\"ceplbrzgkuorwpq\"},\"\":{\"ykk\":\"dataweobptscr\",\"sbnlyoifgdfzjqth\":\"dataelayynoyjyfls\",\"kxxlwwo\":\"datakcvoevcwfzo\",\"ubdmg\":\"dataxgbsdzcgcvypj\"}}") - .toObject(SapHanaTableDataset.class); - Assertions.assertEquals("l", model.description()); - Assertions.assertEquals("ycvldeehcbsaip", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("fdr").type()); - Assertions.assertEquals("ceplbrzgkuorwpq", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapHanaTableDataset model = - new SapHanaTableDataset() - .withDescription("l") - .withStructure("dataiemv") - .withSchema("datameakosy") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("ycvldeehcbsaip") - .withParameters(mapOf("vsluazzxfjv", "dataofkegbvbbdledffl", "scboxra", "dataugpxzeempup"))) - .withParameters( - mapOf( - "fdr", - new ParameterSpecification() - .withType(ParameterType.FLOAT) - .withDefaultValue("datarjgobekxeheowsec"), - "seesacuicnvq", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("dataskiwrjsbdb"), - "vmrfaptndrmmn", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datau"))) - .withAnnotations(Arrays.asList("datak", "dataxrqkekcdavi", "dataebeqrfza", "dataqymcwt")) - .withFolder(new DatasetFolder().withName("ceplbrzgkuorwpq")) - .withSchemaTypePropertiesSchema("dataoidhbxitrapwzhlu") - .withTable("datasj"); - model = BinaryData.fromObject(model).toObject(SapHanaTableDataset.class); - Assertions.assertEquals("l", model.description()); - Assertions.assertEquals("ycvldeehcbsaip", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("fdr").type()); - Assertions.assertEquals("ceplbrzgkuorwpq", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapHanaTableDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapHanaTableDatasetTypePropertiesTests.java deleted file mode 100644 index a4004e163d7d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapHanaTableDatasetTypePropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.SapHanaTableDatasetTypeProperties; - -public final class SapHanaTableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SapHanaTableDatasetTypeProperties model = - BinaryData - .fromString("{\"schema\":\"dataxehujcqgzwv\",\"table\":\"dataiuaoibmjklqrljd\"}") - .toObject(SapHanaTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapHanaTableDatasetTypeProperties model = - new SapHanaTableDatasetTypeProperties().withSchema("dataxehujcqgzwv").withTable("dataiuaoibmjklqrljd"); - model = BinaryData.fromObject(model).toObject(SapHanaTableDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapOdpResourceDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapOdpResourceDatasetTests.java deleted file mode 100644 index 53313d1b9587..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapOdpResourceDatasetTests.java +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.SapOdpResourceDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SapOdpResourceDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SapOdpResourceDataset model = - BinaryData - .fromString( - "{\"type\":\"SapOdpResource\",\"typeProperties\":{\"context\":\"datadwrgavtfyzse\",\"objectName\":\"dataf\"},\"description\":\"ukryxpi\",\"structure\":\"dataapeakfdmcedl\",\"schema\":\"datalxkyoddoq\",\"linkedServiceName\":{\"referenceName\":\"a\",\"parameters\":{\"whqy\":\"datarki\",\"fqeqf\":\"datagqmndkrwwmurhv\",\"lwgebylpzjeldaqw\":\"datarnacki\"}},\"parameters\":{\"potnpkbvzpkod\":{\"type\":\"Array\",\"defaultValue\":\"datanijhwcbrds\"},\"dxuczl\":{\"type\":\"Float\",\"defaultValue\":\"datanqdjgsbtwgn\"},\"iiuv\":{\"type\":\"Int\",\"defaultValue\":\"dataqycznrir\"}},\"annotations\":[\"dataqkqwucqsdgb\"],\"folder\":{\"name\":\"tvmijccpk\"},\"\":{\"ihtnnlbhxjppcbqe\":\"dataamyvwprjm\",\"zayjwdu\":\"datafzfppvo\",\"prklatwiuujxsuj\":\"datajh\",\"pc\":\"datarwgxeegxbnjnczep\"}}") - .toObject(SapOdpResourceDataset.class); - Assertions.assertEquals("ukryxpi", model.description()); - Assertions.assertEquals("a", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("potnpkbvzpkod").type()); - Assertions.assertEquals("tvmijccpk", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapOdpResourceDataset model = - new SapOdpResourceDataset() - .withDescription("ukryxpi") - .withStructure("dataapeakfdmcedl") - .withSchema("datalxkyoddoq") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("a") - .withParameters( - mapOf("whqy", "datarki", "fqeqf", "datagqmndkrwwmurhv", "lwgebylpzjeldaqw", "datarnacki"))) - .withParameters( - mapOf( - "potnpkbvzpkod", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datanijhwcbrds"), - "dxuczl", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datanqdjgsbtwgn"), - "iiuv", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("dataqycznrir"))) - .withAnnotations(Arrays.asList("dataqkqwucqsdgb")) - .withFolder(new DatasetFolder().withName("tvmijccpk")) - .withContext("datadwrgavtfyzse") - .withObjectName("dataf"); - model = BinaryData.fromObject(model).toObject(SapOdpResourceDataset.class); - Assertions.assertEquals("ukryxpi", model.description()); - Assertions.assertEquals("a", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("potnpkbvzpkod").type()); - Assertions.assertEquals("tvmijccpk", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapOdpResourceDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapOdpResourceDatasetTypePropertiesTests.java deleted file mode 100644 index ec84a2798bc8..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapOdpResourceDatasetTypePropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.SapOdpResourceDatasetTypeProperties; - -public final class SapOdpResourceDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SapOdpResourceDatasetTypeProperties model = - BinaryData - .fromString("{\"context\":\"datamgbf\",\"objectName\":\"datadquyyaes\"}") - .toObject(SapOdpResourceDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapOdpResourceDatasetTypeProperties model = - new SapOdpResourceDatasetTypeProperties().withContext("datamgbf").withObjectName("datadquyyaes"); - model = BinaryData.fromObject(model).toObject(SapOdpResourceDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapOdpSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapOdpSourceTests.java deleted file mode 100644 index 8848528aa389..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapOdpSourceTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SapOdpSource; - -public final class SapOdpSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SapOdpSource model = - BinaryData - .fromString( - "{\"type\":\"SapOdpSource\",\"extractionMode\":\"datalug\",\"subscriberProcess\":\"datau\",\"selection\":\"dataypliotgtlan\",\"projection\":\"datakvlxsycqqdoxooxu\",\"queryTimeout\":\"datafqoobwxctkveq\",\"additionalColumns\":\"dataedw\",\"sourceRetryCount\":\"dataqcjreryp\",\"sourceRetryWait\":\"datayqxeyzqnupsi\",\"maxConcurrentConnections\":\"datalxvaovssibnv\",\"disableMetricsCollection\":\"datavi\",\"\":{\"iyo\":\"databmzwlej\",\"xzdbntop\":\"datanbualr\",\"lgsxkyboysquyg\":\"dataabndwcfmzmqmg\",\"stwcyigrhfevxy\":\"datakh\"}}") - .toObject(SapOdpSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapOdpSource model = - new SapOdpSource() - .withSourceRetryCount("dataqcjreryp") - .withSourceRetryWait("datayqxeyzqnupsi") - .withMaxConcurrentConnections("datalxvaovssibnv") - .withDisableMetricsCollection("datavi") - .withQueryTimeout("datafqoobwxctkveq") - .withAdditionalColumns("dataedw") - .withExtractionMode("datalug") - .withSubscriberProcess("datau") - .withSelection("dataypliotgtlan") - .withProjection("datakvlxsycqqdoxooxu"); - model = BinaryData.fromObject(model).toObject(SapOdpSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapOpenHubSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapOpenHubSourceTests.java deleted file mode 100644 index 7b8628f61167..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapOpenHubSourceTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SapOpenHubSource; - -public final class SapOpenHubSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SapOpenHubSource model = - BinaryData - .fromString( - "{\"type\":\"SapOpenHubSource\",\"excludeLastRequest\":\"datay\",\"baseRequestId\":\"dataoisbmv\",\"customRfcReadTableFunctionModule\":\"dataenrcqickhvps\",\"sapDataColumnDelimiter\":\"datauiuvingmonq\",\"queryTimeout\":\"datatyuqdz\",\"additionalColumns\":\"dataojz\",\"sourceRetryCount\":\"dataykfjga\",\"sourceRetryWait\":\"datayscky\",\"maxConcurrentConnections\":\"datayj\",\"disableMetricsCollection\":\"datamfwrqzizggvmuotc\",\"\":{\"rlt\":\"databfyjampvwxlkh\",\"yw\":\"dataipmnqrbyq\",\"wgylolvxw\":\"databowcjkarggvyu\"}}") - .toObject(SapOpenHubSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapOpenHubSource model = - new SapOpenHubSource() - .withSourceRetryCount("dataykfjga") - .withSourceRetryWait("datayscky") - .withMaxConcurrentConnections("datayj") - .withDisableMetricsCollection("datamfwrqzizggvmuotc") - .withQueryTimeout("datatyuqdz") - .withAdditionalColumns("dataojz") - .withExcludeLastRequest("datay") - .withBaseRequestId("dataoisbmv") - .withCustomRfcReadTableFunctionModule("dataenrcqickhvps") - .withSapDataColumnDelimiter("datauiuvingmonq"); - model = BinaryData.fromObject(model).toObject(SapOpenHubSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapOpenHubTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapOpenHubTableDatasetTests.java deleted file mode 100644 index 1a9fd7595828..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapOpenHubTableDatasetTests.java +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.SapOpenHubTableDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SapOpenHubTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SapOpenHubTableDataset model = - BinaryData - .fromString( - "{\"type\":\"SapOpenHubTable\",\"typeProperties\":{\"openHubDestinationName\":\"datauky\",\"excludeLastRequest\":\"dataxrjiqoqovqhg\",\"baseRequestId\":\"datagxuwudgcyqru\"},\"description\":\"mryddnqivahfcq\",\"structure\":\"datajzebp\",\"schema\":\"dataciyoypoedk\",\"linkedServiceName\":{\"referenceName\":\"pwwibpybqeig\",\"parameters\":{\"nhcgn\":\"dataxsxteuikhznff\"}},\"parameters\":{\"rkrgsdc\":{\"type\":\"SecureString\",\"defaultValue\":\"datarfqd\"},\"zfutgpbygbnb\":{\"type\":\"Int\",\"defaultValue\":\"datamgqlwyqznbbyzpo\"},\"ewflwzhxzuxe\":{\"type\":\"Array\",\"defaultValue\":\"dataiqgtzpv\"},\"ajdqxymxx\":{\"type\":\"Float\",\"defaultValue\":\"dataywlrkqsqvvdkfpfj\"}},\"annotations\":[\"datadjidcetfvgwfws\",\"datadigwoup\"],\"folder\":{\"name\":\"ddqsvclrsnxfrp\"},\"\":{\"tfxxepzpxzxlcqz\":\"dataqclmd\",\"jbsmkirpqni\":\"dataxaitiqm\",\"uzltenlb\":\"dataudmhkcomeobwk\",\"uomtxj\":\"dataxlmxozesndo\"}}") - .toObject(SapOpenHubTableDataset.class); - Assertions.assertEquals("mryddnqivahfcq", model.description()); - Assertions.assertEquals("pwwibpybqeig", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("rkrgsdc").type()); - Assertions.assertEquals("ddqsvclrsnxfrp", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapOpenHubTableDataset model = - new SapOpenHubTableDataset() - .withDescription("mryddnqivahfcq") - .withStructure("datajzebp") - .withSchema("dataciyoypoedk") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("pwwibpybqeig") - .withParameters(mapOf("nhcgn", "dataxsxteuikhznff"))) - .withParameters( - mapOf( - "rkrgsdc", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("datarfqd"), - "zfutgpbygbnb", - new ParameterSpecification() - .withType(ParameterType.INT) - .withDefaultValue("datamgqlwyqznbbyzpo"), - "ewflwzhxzuxe", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("dataiqgtzpv"), - "ajdqxymxx", - new ParameterSpecification() - .withType(ParameterType.FLOAT) - .withDefaultValue("dataywlrkqsqvvdkfpfj"))) - .withAnnotations(Arrays.asList("datadjidcetfvgwfws", "datadigwoup")) - .withFolder(new DatasetFolder().withName("ddqsvclrsnxfrp")) - .withOpenHubDestinationName("datauky") - .withExcludeLastRequest("dataxrjiqoqovqhg") - .withBaseRequestId("datagxuwudgcyqru"); - model = BinaryData.fromObject(model).toObject(SapOpenHubTableDataset.class); - Assertions.assertEquals("mryddnqivahfcq", model.description()); - Assertions.assertEquals("pwwibpybqeig", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("rkrgsdc").type()); - Assertions.assertEquals("ddqsvclrsnxfrp", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapOpenHubTableDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapOpenHubTableDatasetTypePropertiesTests.java deleted file mode 100644 index d8d737fcc7ec..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapOpenHubTableDatasetTypePropertiesTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.SapOpenHubTableDatasetTypeProperties; - -public final class SapOpenHubTableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SapOpenHubTableDatasetTypeProperties model = - BinaryData - .fromString( - "{\"openHubDestinationName\":\"datari\",\"excludeLastRequest\":\"datamckik\",\"baseRequestId\":\"datayvurhwishy\"}") - .toObject(SapOpenHubTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapOpenHubTableDatasetTypeProperties model = - new SapOpenHubTableDatasetTypeProperties() - .withOpenHubDestinationName("datari") - .withExcludeLastRequest("datamckik") - .withBaseRequestId("datayvurhwishy"); - model = BinaryData.fromObject(model).toObject(SapOpenHubTableDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapTablePartitionSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapTablePartitionSettingsTests.java deleted file mode 100644 index 1717b70ec736..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapTablePartitionSettingsTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SapTablePartitionSettings; - -public final class SapTablePartitionSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SapTablePartitionSettings model = - BinaryData - .fromString( - "{\"partitionColumnName\":\"datada\",\"partitionUpperBound\":\"datahtwhh\",\"partitionLowerBound\":\"databomf\",\"maxPartitionsNumber\":\"datajkerdujfnb\"}") - .toObject(SapTablePartitionSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapTablePartitionSettings model = - new SapTablePartitionSettings() - .withPartitionColumnName("datada") - .withPartitionUpperBound("datahtwhh") - .withPartitionLowerBound("databomf") - .withMaxPartitionsNumber("datajkerdujfnb"); - model = BinaryData.fromObject(model).toObject(SapTablePartitionSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapTableResourceDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapTableResourceDatasetTests.java deleted file mode 100644 index c2aff588161d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapTableResourceDatasetTests.java +++ /dev/null @@ -1,81 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.SapTableResourceDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SapTableResourceDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SapTableResourceDataset model = - BinaryData - .fromString( - "{\"type\":\"SapTableResource\",\"typeProperties\":{\"tableName\":\"dataycdzdob\"},\"description\":\"sdyvfxnzpfd\",\"structure\":\"datapk\",\"schema\":\"datapdpsegiv\",\"linkedServiceName\":{\"referenceName\":\"tabvbbkflewgsl\",\"parameters\":{\"vedwuu\":\"datab\",\"wclykcr\":\"databmenxcqs\",\"bnjrevmpted\":\"datadek\",\"shnfiygpgpkkhp\":\"datauent\"}},\"parameters\":{\"ihnmtrdlpxiwwg\":{\"type\":\"Float\",\"defaultValue\":\"dataql\"},\"fivxdifb\":{\"type\":\"Float\",\"defaultValue\":\"datavfpnrzikvoxloeoh\"}},\"annotations\":[\"dataijhpxukxgoyxontb\",\"datadqrxro\",\"datauqr\"],\"folder\":{\"name\":\"xfuaefewx\"},\"\":{\"mdcizhvk\":\"datatwjrppifeyrqvel\",\"pzwyncwksmpyeyzo\":\"databojklw\",\"uduiqoom\":\"databfnflytf\",\"opwsnliyznghuq\":\"dataswkq\"}}") - .toObject(SapTableResourceDataset.class); - Assertions.assertEquals("sdyvfxnzpfd", model.description()); - Assertions.assertEquals("tabvbbkflewgsl", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("ihnmtrdlpxiwwg").type()); - Assertions.assertEquals("xfuaefewx", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapTableResourceDataset model = - new SapTableResourceDataset() - .withDescription("sdyvfxnzpfd") - .withStructure("datapk") - .withSchema("datapdpsegiv") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("tabvbbkflewgsl") - .withParameters( - mapOf( - "vedwuu", - "datab", - "wclykcr", - "databmenxcqs", - "bnjrevmpted", - "datadek", - "shnfiygpgpkkhp", - "datauent"))) - .withParameters( - mapOf( - "ihnmtrdlpxiwwg", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("dataql"), - "fivxdifb", - new ParameterSpecification() - .withType(ParameterType.FLOAT) - .withDefaultValue("datavfpnrzikvoxloeoh"))) - .withAnnotations(Arrays.asList("dataijhpxukxgoyxontb", "datadqrxro", "datauqr")) - .withFolder(new DatasetFolder().withName("xfuaefewx")) - .withTableName("dataycdzdob"); - model = BinaryData.fromObject(model).toObject(SapTableResourceDataset.class); - Assertions.assertEquals("sdyvfxnzpfd", model.description()); - Assertions.assertEquals("tabvbbkflewgsl", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("ihnmtrdlpxiwwg").type()); - Assertions.assertEquals("xfuaefewx", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapTableResourceDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapTableResourceDatasetTypePropertiesTests.java deleted file mode 100644 index 813c5bf691b3..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapTableResourceDatasetTypePropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.SapTableResourceDatasetTypeProperties; - -public final class SapTableResourceDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SapTableResourceDatasetTypeProperties model = - BinaryData - .fromString("{\"tableName\":\"datagpdglkf\"}") - .toObject(SapTableResourceDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapTableResourceDatasetTypeProperties model = - new SapTableResourceDatasetTypeProperties().withTableName("datagpdglkf"); - model = BinaryData.fromObject(model).toObject(SapTableResourceDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapTableSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapTableSourceTests.java deleted file mode 100644 index bcf536de3c21..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapTableSourceTests.java +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SapTablePartitionSettings; -import com.azure.resourcemanager.datafactory.models.SapTableSource; - -public final class SapTableSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SapTableSource model = - BinaryData - .fromString( - "{\"type\":\"SapTableSource\",\"rowCount\":\"dataukcojyx\",\"rowSkips\":\"datavoowrtcsucot\",\"rfcTableFields\":\"datayiqz\",\"rfcTableOptions\":\"dataxzvjnmpv\",\"batchSize\":\"dataludfbhzu\",\"customRfcReadTableFunctionModule\":\"datapfbhihddiiuex\",\"sapDataColumnDelimiter\":\"datayfku\",\"partitionOption\":\"datalq\",\"partitionSettings\":{\"partitionColumnName\":\"datardpw\",\"partitionUpperBound\":\"datalvfisk\",\"partitionLowerBound\":\"datasp\",\"maxPartitionsNumber\":\"datasxnyo\"},\"queryTimeout\":\"datapcssusdrgzmmrz\",\"additionalColumns\":\"dataibtkcvolaxnukgo\",\"sourceRetryCount\":\"datau\",\"sourceRetryWait\":\"datadcqoxyxiyhmj\",\"maxConcurrentConnections\":\"datanw\",\"disableMetricsCollection\":\"datazgvaeqiygbo\",\"\":{\"laj\":\"datajodidgudar\",\"ojikffczwaewp\":\"dataenfyuuf\",\"wfnapgagvhsix\":\"datalsuhsghdovcp\"}}") - .toObject(SapTableSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapTableSource model = - new SapTableSource() - .withSourceRetryCount("datau") - .withSourceRetryWait("datadcqoxyxiyhmj") - .withMaxConcurrentConnections("datanw") - .withDisableMetricsCollection("datazgvaeqiygbo") - .withQueryTimeout("datapcssusdrgzmmrz") - .withAdditionalColumns("dataibtkcvolaxnukgo") - .withRowCount("dataukcojyx") - .withRowSkips("datavoowrtcsucot") - .withRfcTableFields("datayiqz") - .withRfcTableOptions("dataxzvjnmpv") - .withBatchSize("dataludfbhzu") - .withCustomRfcReadTableFunctionModule("datapfbhihddiiuex") - .withSapDataColumnDelimiter("datayfku") - .withPartitionOption("datalq") - .withPartitionSettings( - new SapTablePartitionSettings() - .withPartitionColumnName("datardpw") - .withPartitionUpperBound("datalvfisk") - .withPartitionLowerBound("datasp") - .withMaxPartitionsNumber("datasxnyo")); - model = BinaryData.fromObject(model).toObject(SapTableSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ScheduleTriggerRecurrenceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ScheduleTriggerRecurrenceTests.java deleted file mode 100644 index e2beff79c2cb..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ScheduleTriggerRecurrenceTests.java +++ /dev/null @@ -1,98 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DayOfWeek; -import com.azure.resourcemanager.datafactory.models.DaysOfWeek; -import com.azure.resourcemanager.datafactory.models.RecurrenceFrequency; -import com.azure.resourcemanager.datafactory.models.RecurrenceSchedule; -import com.azure.resourcemanager.datafactory.models.RecurrenceScheduleOccurrence; -import com.azure.resourcemanager.datafactory.models.ScheduleTriggerRecurrence; -import java.time.OffsetDateTime; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ScheduleTriggerRecurrenceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ScheduleTriggerRecurrence model = - BinaryData - .fromString( - "{\"frequency\":\"Year\",\"interval\":463962573,\"startTime\":\"2021-10-01T11:15:04Z\",\"endTime\":\"2021-01-20T06:37:59Z\",\"timeZone\":\"nqcvdrpwcki\",\"schedule\":{\"minutes\":[309795046],\"hours\":[917084258,556900627,1450446378,1949873692],\"weekDays\":[\"Friday\",\"Tuesday\",\"Tuesday\"],\"monthDays\":[1221018605,1595161632],\"monthlyOccurrences\":[{\"day\":\"Friday\",\"occurrence\":598249890,\"\":{\"mqymgiydg\":\"datanrdbixoudmaniwkw\"}},{\"day\":\"Saturday\",\"occurrence\":1406768615,\"\":{\"p\":\"dataowcwehjqyullep\"}},{\"day\":\"Monday\",\"occurrence\":900809533,\"\":{\"pimmwirixczxkxv\":\"datasnxcayyvriuvmmef\",\"sc\":\"dataiglutxz\",\"jbpbdusa\":\"datalwfefygnafpi\",\"xjnkbe\":\"datapsvedxphfoomqq\"}}],\"\":{\"ujhmdpey\":\"datamitvviqsgq\",\"rjqnciwybj\":\"datasqwjqevwt\",\"dtin\":\"datangrr\"}},\"\":{\"yhtkyqfynvt\":\"datakgllmpkuxbluc\",\"vojrkfc\":\"datampgusroqkjw\",\"omqf\":\"datatjqhfkwsmg\"}}") - .toObject(ScheduleTriggerRecurrence.class); - Assertions.assertEquals(RecurrenceFrequency.YEAR, model.frequency()); - Assertions.assertEquals(463962573, model.interval()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-01T11:15:04Z"), model.startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-20T06:37:59Z"), model.endTime()); - Assertions.assertEquals("nqcvdrpwcki", model.timeZone()); - Assertions.assertEquals(309795046, model.schedule().minutes().get(0)); - Assertions.assertEquals(917084258, model.schedule().hours().get(0)); - Assertions.assertEquals(DaysOfWeek.FRIDAY, model.schedule().weekDays().get(0)); - Assertions.assertEquals(1221018605, model.schedule().monthDays().get(0)); - Assertions.assertEquals(DayOfWeek.FRIDAY, model.schedule().monthlyOccurrences().get(0).day()); - Assertions.assertEquals(598249890, model.schedule().monthlyOccurrences().get(0).occurrence()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ScheduleTriggerRecurrence model = - new ScheduleTriggerRecurrence() - .withFrequency(RecurrenceFrequency.YEAR) - .withInterval(463962573) - .withStartTime(OffsetDateTime.parse("2021-10-01T11:15:04Z")) - .withEndTime(OffsetDateTime.parse("2021-01-20T06:37:59Z")) - .withTimeZone("nqcvdrpwcki") - .withSchedule( - new RecurrenceSchedule() - .withMinutes(Arrays.asList(309795046)) - .withHours(Arrays.asList(917084258, 556900627, 1450446378, 1949873692)) - .withWeekDays(Arrays.asList(DaysOfWeek.FRIDAY, DaysOfWeek.TUESDAY, DaysOfWeek.TUESDAY)) - .withMonthDays(Arrays.asList(1221018605, 1595161632)) - .withMonthlyOccurrences( - Arrays - .asList( - new RecurrenceScheduleOccurrence() - .withDay(DayOfWeek.FRIDAY) - .withOccurrence(598249890) - .withAdditionalProperties(mapOf()), - new RecurrenceScheduleOccurrence() - .withDay(DayOfWeek.SATURDAY) - .withOccurrence(1406768615) - .withAdditionalProperties(mapOf()), - new RecurrenceScheduleOccurrence() - .withDay(DayOfWeek.MONDAY) - .withOccurrence(900809533) - .withAdditionalProperties(mapOf()))) - .withAdditionalProperties(mapOf())) - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(ScheduleTriggerRecurrence.class); - Assertions.assertEquals(RecurrenceFrequency.YEAR, model.frequency()); - Assertions.assertEquals(463962573, model.interval()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-01T11:15:04Z"), model.startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-20T06:37:59Z"), model.endTime()); - Assertions.assertEquals("nqcvdrpwcki", model.timeZone()); - Assertions.assertEquals(309795046, model.schedule().minutes().get(0)); - Assertions.assertEquals(917084258, model.schedule().hours().get(0)); - Assertions.assertEquals(DaysOfWeek.FRIDAY, model.schedule().weekDays().get(0)); - Assertions.assertEquals(1221018605, model.schedule().monthDays().get(0)); - Assertions.assertEquals(DayOfWeek.FRIDAY, model.schedule().monthlyOccurrences().get(0).day()); - Assertions.assertEquals(598249890, model.schedule().monthlyOccurrences().get(0).occurrence()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ScheduleTriggerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ScheduleTriggerTests.java deleted file mode 100644 index 7bf3b2cd56ff..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ScheduleTriggerTests.java +++ /dev/null @@ -1,131 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DayOfWeek; -import com.azure.resourcemanager.datafactory.models.DaysOfWeek; -import com.azure.resourcemanager.datafactory.models.PipelineReference; -import com.azure.resourcemanager.datafactory.models.RecurrenceFrequency; -import com.azure.resourcemanager.datafactory.models.RecurrenceSchedule; -import com.azure.resourcemanager.datafactory.models.RecurrenceScheduleOccurrence; -import com.azure.resourcemanager.datafactory.models.ScheduleTrigger; -import com.azure.resourcemanager.datafactory.models.ScheduleTriggerRecurrence; -import com.azure.resourcemanager.datafactory.models.TriggerPipelineReference; -import java.time.OffsetDateTime; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ScheduleTriggerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ScheduleTrigger model = - BinaryData - .fromString( - "{\"type\":\"ScheduleTrigger\",\"typeProperties\":{\"recurrence\":{\"frequency\":\"Year\",\"interval\":1236275141,\"startTime\":\"2021-02-06T22:43:21Z\",\"endTime\":\"2021-10-20T04:45:39Z\",\"timeZone\":\"jcaqeorv\",\"schedule\":{\"minutes\":[1266177512,189144055,1891096518],\"hours\":[415292522,770664216,334743435],\"weekDays\":[\"Monday\",\"Tuesday\",\"Saturday\",\"Saturday\"],\"monthDays\":[1728235865,1813263959,1579619430,694727070],\"monthlyOccurrences\":[{\"day\":\"Thursday\",\"occurrence\":364845375,\"\":{\"nywfyoimw\":\"datarinwtvsb\",\"mtddkyyrpbnqi\":\"dataeoutztlnhg\"}}],\"\":{\"xcepn\":\"datacyiuiwkrwpishc\",\"yy\":\"datapiicnwt\",\"yjbenzw\":\"dataskujnzxhoty\"}},\"\":{\"zv\":\"datavslpythqgziplac\",\"mqyg\":\"datadh\",\"c\":\"dataefsnlob\"}}},\"pipelines\":[{\"pipelineReference\":{\"referenceName\":\"xjgok\",\"name\":\"ixwebjykafii\"},\"parameters\":{\"j\":\"datavtsmcn\",\"lfetlmmdgeb\":\"dataovhcelw\",\"weryzgkcwwndole\":\"dataoqxattthazq\"}},{\"pipelineReference\":{\"referenceName\":\"yaszuoheuifshs\",\"name\":\"pl\"},\"parameters\":{\"qkwg\":\"datakztc\"}},{\"pipelineReference\":{\"referenceName\":\"aeby\",\"name\":\"ckfapzfq\"},\"parameters\":{\"rpm\":\"dataor\",\"iq\":\"datahekxmj\",\"wbdk\":\"dataqtm\"}}],\"description\":\"xdaehpfre\",\"runtimeState\":\"Started\",\"annotations\":[\"datajmsogzcuzdjtw\",\"dataiawjevdnpkdm\"],\"\":{\"bqaqbae\":\"datarzvjvlnafpfo\",\"klurxwtfpe\":\"datahjwcdjxqxf\",\"orvsypjytgzfmm\":\"dataftpjldlj\",\"ebmiko\":\"dataxkbtberyqlq\"}}") - .toObject(ScheduleTrigger.class); - Assertions.assertEquals("xdaehpfre", model.description()); - Assertions.assertEquals("xjgok", model.pipelines().get(0).pipelineReference().referenceName()); - Assertions.assertEquals("ixwebjykafii", model.pipelines().get(0).pipelineReference().name()); - Assertions.assertEquals(RecurrenceFrequency.YEAR, model.recurrence().frequency()); - Assertions.assertEquals(1236275141, model.recurrence().interval()); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-06T22:43:21Z"), model.recurrence().startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-20T04:45:39Z"), model.recurrence().endTime()); - Assertions.assertEquals("jcaqeorv", model.recurrence().timeZone()); - Assertions.assertEquals(1266177512, model.recurrence().schedule().minutes().get(0)); - Assertions.assertEquals(415292522, model.recurrence().schedule().hours().get(0)); - Assertions.assertEquals(DaysOfWeek.MONDAY, model.recurrence().schedule().weekDays().get(0)); - Assertions.assertEquals(1728235865, model.recurrence().schedule().monthDays().get(0)); - Assertions.assertEquals(DayOfWeek.THURSDAY, model.recurrence().schedule().monthlyOccurrences().get(0).day()); - Assertions.assertEquals(364845375, model.recurrence().schedule().monthlyOccurrences().get(0).occurrence()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ScheduleTrigger model = - new ScheduleTrigger() - .withDescription("xdaehpfre") - .withAnnotations(Arrays.asList("datajmsogzcuzdjtw", "dataiawjevdnpkdm")) - .withPipelines( - Arrays - .asList( - new TriggerPipelineReference() - .withPipelineReference( - new PipelineReference().withReferenceName("xjgok").withName("ixwebjykafii")) - .withParameters( - mapOf( - "j", - "datavtsmcn", - "lfetlmmdgeb", - "dataovhcelw", - "weryzgkcwwndole", - "dataoqxattthazq")), - new TriggerPipelineReference() - .withPipelineReference( - new PipelineReference().withReferenceName("yaszuoheuifshs").withName("pl")) - .withParameters(mapOf("qkwg", "datakztc")), - new TriggerPipelineReference() - .withPipelineReference( - new PipelineReference().withReferenceName("aeby").withName("ckfapzfq")) - .withParameters(mapOf("rpm", "dataor", "iq", "datahekxmj", "wbdk", "dataqtm")))) - .withRecurrence( - new ScheduleTriggerRecurrence() - .withFrequency(RecurrenceFrequency.YEAR) - .withInterval(1236275141) - .withStartTime(OffsetDateTime.parse("2021-02-06T22:43:21Z")) - .withEndTime(OffsetDateTime.parse("2021-10-20T04:45:39Z")) - .withTimeZone("jcaqeorv") - .withSchedule( - new RecurrenceSchedule() - .withMinutes(Arrays.asList(1266177512, 189144055, 1891096518)) - .withHours(Arrays.asList(415292522, 770664216, 334743435)) - .withWeekDays( - Arrays - .asList( - DaysOfWeek.MONDAY, - DaysOfWeek.TUESDAY, - DaysOfWeek.SATURDAY, - DaysOfWeek.SATURDAY)) - .withMonthDays(Arrays.asList(1728235865, 1813263959, 1579619430, 694727070)) - .withMonthlyOccurrences( - Arrays - .asList( - new RecurrenceScheduleOccurrence() - .withDay(DayOfWeek.THURSDAY) - .withOccurrence(364845375) - .withAdditionalProperties(mapOf()))) - .withAdditionalProperties(mapOf())) - .withAdditionalProperties(mapOf())); - model = BinaryData.fromObject(model).toObject(ScheduleTrigger.class); - Assertions.assertEquals("xdaehpfre", model.description()); - Assertions.assertEquals("xjgok", model.pipelines().get(0).pipelineReference().referenceName()); - Assertions.assertEquals("ixwebjykafii", model.pipelines().get(0).pipelineReference().name()); - Assertions.assertEquals(RecurrenceFrequency.YEAR, model.recurrence().frequency()); - Assertions.assertEquals(1236275141, model.recurrence().interval()); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-06T22:43:21Z"), model.recurrence().startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-20T04:45:39Z"), model.recurrence().endTime()); - Assertions.assertEquals("jcaqeorv", model.recurrence().timeZone()); - Assertions.assertEquals(1266177512, model.recurrence().schedule().minutes().get(0)); - Assertions.assertEquals(415292522, model.recurrence().schedule().hours().get(0)); - Assertions.assertEquals(DaysOfWeek.MONDAY, model.recurrence().schedule().weekDays().get(0)); - Assertions.assertEquals(1728235865, model.recurrence().schedule().monthDays().get(0)); - Assertions.assertEquals(DayOfWeek.THURSDAY, model.recurrence().schedule().monthlyOccurrences().get(0).day()); - Assertions.assertEquals(364845375, model.recurrence().schedule().monthlyOccurrences().get(0).occurrence()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ScheduleTriggerTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ScheduleTriggerTypePropertiesTests.java deleted file mode 100644 index b1fa88050e6b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ScheduleTriggerTypePropertiesTests.java +++ /dev/null @@ -1,94 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.ScheduleTriggerTypeProperties; -import com.azure.resourcemanager.datafactory.models.DayOfWeek; -import com.azure.resourcemanager.datafactory.models.DaysOfWeek; -import com.azure.resourcemanager.datafactory.models.RecurrenceFrequency; -import com.azure.resourcemanager.datafactory.models.RecurrenceSchedule; -import com.azure.resourcemanager.datafactory.models.RecurrenceScheduleOccurrence; -import com.azure.resourcemanager.datafactory.models.ScheduleTriggerRecurrence; -import java.time.OffsetDateTime; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ScheduleTriggerTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ScheduleTriggerTypeProperties model = - BinaryData - .fromString( - "{\"recurrence\":{\"frequency\":\"Day\",\"interval\":665115764,\"startTime\":\"2021-06-20T22:00:28Z\",\"endTime\":\"2021-02-19T00:10:50Z\",\"timeZone\":\"mlgmgcnllqfbeuug\",\"schedule\":{\"minutes\":[1684959388,468220489,595739482,1958046175],\"hours\":[648581162],\"weekDays\":[\"Wednesday\",\"Thursday\",\"Thursday\"],\"monthDays\":[828575448],\"monthlyOccurrences\":[{\"day\":\"Sunday\",\"occurrence\":1247863559,\"\":{\"ecmjgbzhdonyle\":\"dataozdcth\"}}],\"\":{\"r\":\"datawvdwmuytkkfoton\"}},\"\":{\"udkyzyiyvhgdkb\":\"datazuoopo\"}}}") - .toObject(ScheduleTriggerTypeProperties.class); - Assertions.assertEquals(RecurrenceFrequency.DAY, model.recurrence().frequency()); - Assertions.assertEquals(665115764, model.recurrence().interval()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-20T22:00:28Z"), model.recurrence().startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-19T00:10:50Z"), model.recurrence().endTime()); - Assertions.assertEquals("mlgmgcnllqfbeuug", model.recurrence().timeZone()); - Assertions.assertEquals(1684959388, model.recurrence().schedule().minutes().get(0)); - Assertions.assertEquals(648581162, model.recurrence().schedule().hours().get(0)); - Assertions.assertEquals(DaysOfWeek.WEDNESDAY, model.recurrence().schedule().weekDays().get(0)); - Assertions.assertEquals(828575448, model.recurrence().schedule().monthDays().get(0)); - Assertions.assertEquals(DayOfWeek.SUNDAY, model.recurrence().schedule().monthlyOccurrences().get(0).day()); - Assertions.assertEquals(1247863559, model.recurrence().schedule().monthlyOccurrences().get(0).occurrence()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ScheduleTriggerTypeProperties model = - new ScheduleTriggerTypeProperties() - .withRecurrence( - new ScheduleTriggerRecurrence() - .withFrequency(RecurrenceFrequency.DAY) - .withInterval(665115764) - .withStartTime(OffsetDateTime.parse("2021-06-20T22:00:28Z")) - .withEndTime(OffsetDateTime.parse("2021-02-19T00:10:50Z")) - .withTimeZone("mlgmgcnllqfbeuug") - .withSchedule( - new RecurrenceSchedule() - .withMinutes(Arrays.asList(1684959388, 468220489, 595739482, 1958046175)) - .withHours(Arrays.asList(648581162)) - .withWeekDays( - Arrays.asList(DaysOfWeek.WEDNESDAY, DaysOfWeek.THURSDAY, DaysOfWeek.THURSDAY)) - .withMonthDays(Arrays.asList(828575448)) - .withMonthlyOccurrences( - Arrays - .asList( - new RecurrenceScheduleOccurrence() - .withDay(DayOfWeek.SUNDAY) - .withOccurrence(1247863559) - .withAdditionalProperties(mapOf()))) - .withAdditionalProperties(mapOf())) - .withAdditionalProperties(mapOf())); - model = BinaryData.fromObject(model).toObject(ScheduleTriggerTypeProperties.class); - Assertions.assertEquals(RecurrenceFrequency.DAY, model.recurrence().frequency()); - Assertions.assertEquals(665115764, model.recurrence().interval()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-20T22:00:28Z"), model.recurrence().startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-19T00:10:50Z"), model.recurrence().endTime()); - Assertions.assertEquals("mlgmgcnllqfbeuug", model.recurrence().timeZone()); - Assertions.assertEquals(1684959388, model.recurrence().schedule().minutes().get(0)); - Assertions.assertEquals(648581162, model.recurrence().schedule().hours().get(0)); - Assertions.assertEquals(DaysOfWeek.WEDNESDAY, model.recurrence().schedule().weekDays().get(0)); - Assertions.assertEquals(828575448, model.recurrence().schedule().monthDays().get(0)); - Assertions.assertEquals(DayOfWeek.SUNDAY, model.recurrence().schedule().monthlyOccurrences().get(0).day()); - Assertions.assertEquals(1247863559, model.recurrence().schedule().monthlyOccurrences().get(0).occurrence()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ScriptActionTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ScriptActionTests.java deleted file mode 100644 index 2ce5432a8364..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ScriptActionTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ScriptAction; -import org.junit.jupiter.api.Assertions; - -public final class ScriptActionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ScriptAction model = - BinaryData - .fromString( - "{\"name\":\"zoxhoiogpbogpbw\",\"uri\":\"foxlzr\",\"roles\":\"datajpkbrvmzu\",\"parameters\":\"krqeqjtzaw\"}") - .toObject(ScriptAction.class); - Assertions.assertEquals("zoxhoiogpbogpbw", model.name()); - Assertions.assertEquals("foxlzr", model.uri()); - Assertions.assertEquals("krqeqjtzaw", model.parameters()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ScriptAction model = - new ScriptAction() - .withName("zoxhoiogpbogpbw") - .withUri("foxlzr") - .withRoles("datajpkbrvmzu") - .withParameters("krqeqjtzaw"); - model = BinaryData.fromObject(model).toObject(ScriptAction.class); - Assertions.assertEquals("zoxhoiogpbogpbw", model.name()); - Assertions.assertEquals("foxlzr", model.uri()); - Assertions.assertEquals("krqeqjtzaw", model.parameters()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ScriptActivityParameterTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ScriptActivityParameterTests.java deleted file mode 100644 index 0d5d2abb2fbc..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ScriptActivityParameterTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ScriptActivityParameter; -import com.azure.resourcemanager.datafactory.models.ScriptActivityParameterDirection; -import com.azure.resourcemanager.datafactory.models.ScriptActivityParameterType; -import org.junit.jupiter.api.Assertions; - -public final class ScriptActivityParameterTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ScriptActivityParameter model = - BinaryData - .fromString( - "{\"name\":\"datahl\",\"type\":\"Guid\",\"value\":\"datagbcroltddifyw\",\"direction\":\"Output\",\"size\":1798739332}") - .toObject(ScriptActivityParameter.class); - Assertions.assertEquals(ScriptActivityParameterType.GUID, model.type()); - Assertions.assertEquals(ScriptActivityParameterDirection.OUTPUT, model.direction()); - Assertions.assertEquals(1798739332, model.size()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ScriptActivityParameter model = - new ScriptActivityParameter() - .withName("datahl") - .withType(ScriptActivityParameterType.GUID) - .withValue("datagbcroltddifyw") - .withDirection(ScriptActivityParameterDirection.OUTPUT) - .withSize(1798739332); - model = BinaryData.fromObject(model).toObject(ScriptActivityParameter.class); - Assertions.assertEquals(ScriptActivityParameterType.GUID, model.type()); - Assertions.assertEquals(ScriptActivityParameterDirection.OUTPUT, model.direction()); - Assertions.assertEquals(1798739332, model.size()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ScriptActivityScriptBlockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ScriptActivityScriptBlockTests.java deleted file mode 100644 index 490afa179def..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ScriptActivityScriptBlockTests.java +++ /dev/null @@ -1,69 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ScriptActivityParameter; -import com.azure.resourcemanager.datafactory.models.ScriptActivityParameterDirection; -import com.azure.resourcemanager.datafactory.models.ScriptActivityParameterType; -import com.azure.resourcemanager.datafactory.models.ScriptActivityScriptBlock; -import com.azure.resourcemanager.datafactory.models.ScriptType; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ScriptActivityScriptBlockTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ScriptActivityScriptBlock model = - BinaryData - .fromString( - "{\"text\":\"datanvjhoshinljquq\",\"type\":\"NonQuery\",\"parameters\":[{\"name\":\"datagvco\",\"type\":\"Int32\",\"value\":\"datapvursmeumyxpsov\",\"direction\":\"Input\",\"size\":1077659067},{\"name\":\"dataskkgsfmgypqm\",\"type\":\"DateTimeOffset\",\"value\":\"dataqzmixw\",\"direction\":\"Input\",\"size\":343668067},{\"name\":\"datasehtzjbuzl\",\"type\":\"Single\",\"value\":\"datakzbsbcddhl\",\"direction\":\"Output\",\"size\":1461764775},{\"name\":\"dataqnyjjfjqgs\",\"type\":\"Double\",\"value\":\"datanxexafql\",\"direction\":\"Input\",\"size\":1093869610}]}") - .toObject(ScriptActivityScriptBlock.class); - Assertions.assertEquals(ScriptType.NON_QUERY, model.type()); - Assertions.assertEquals(ScriptActivityParameterType.INT32, model.parameters().get(0).type()); - Assertions.assertEquals(ScriptActivityParameterDirection.INPUT, model.parameters().get(0).direction()); - Assertions.assertEquals(1077659067, model.parameters().get(0).size()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ScriptActivityScriptBlock model = - new ScriptActivityScriptBlock() - .withText("datanvjhoshinljquq") - .withType(ScriptType.NON_QUERY) - .withParameters( - Arrays - .asList( - new ScriptActivityParameter() - .withName("datagvco") - .withType(ScriptActivityParameterType.INT32) - .withValue("datapvursmeumyxpsov") - .withDirection(ScriptActivityParameterDirection.INPUT) - .withSize(1077659067), - new ScriptActivityParameter() - .withName("dataskkgsfmgypqm") - .withType(ScriptActivityParameterType.DATE_TIME_OFFSET) - .withValue("dataqzmixw") - .withDirection(ScriptActivityParameterDirection.INPUT) - .withSize(343668067), - new ScriptActivityParameter() - .withName("datasehtzjbuzl") - .withType(ScriptActivityParameterType.SINGLE) - .withValue("datakzbsbcddhl") - .withDirection(ScriptActivityParameterDirection.OUTPUT) - .withSize(1461764775), - new ScriptActivityParameter() - .withName("dataqnyjjfjqgs") - .withType(ScriptActivityParameterType.DOUBLE) - .withValue("datanxexafql") - .withDirection(ScriptActivityParameterDirection.INPUT) - .withSize(1093869610))); - model = BinaryData.fromObject(model).toObject(ScriptActivityScriptBlock.class); - Assertions.assertEquals(ScriptType.NON_QUERY, model.type()); - Assertions.assertEquals(ScriptActivityParameterType.INT32, model.parameters().get(0).type()); - Assertions.assertEquals(ScriptActivityParameterDirection.INPUT, model.parameters().get(0).direction()); - Assertions.assertEquals(1077659067, model.parameters().get(0).size()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ScriptActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ScriptActivityTests.java deleted file mode 100644 index 2dc62be32533..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ScriptActivityTests.java +++ /dev/null @@ -1,202 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityPolicy; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.LogLocationSettings; -import com.azure.resourcemanager.datafactory.models.ScriptActivity; -import com.azure.resourcemanager.datafactory.models.ScriptActivityLogDestination; -import com.azure.resourcemanager.datafactory.models.ScriptActivityParameter; -import com.azure.resourcemanager.datafactory.models.ScriptActivityParameterDirection; -import com.azure.resourcemanager.datafactory.models.ScriptActivityParameterType; -import com.azure.resourcemanager.datafactory.models.ScriptActivityScriptBlock; -import com.azure.resourcemanager.datafactory.models.ScriptActivityTypePropertiesLogSettings; -import com.azure.resourcemanager.datafactory.models.ScriptType; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ScriptActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ScriptActivity model = - BinaryData - .fromString( - "{\"type\":\"Script\",\"typeProperties\":{\"scriptBlockExecutionTimeout\":\"databcpieiqolym\",\"scripts\":[{\"text\":\"databcyed\",\"type\":\"NonQuery\",\"parameters\":[{\"name\":\"datakhg\",\"type\":\"Int16\",\"value\":\"dataylukpjdmdykjh\",\"direction\":\"Output\",\"size\":1828814533},{\"name\":\"dataispwpfjxljrrgvyu\",\"type\":\"Int16\",\"value\":\"datavckpdlkvi\",\"direction\":\"Input\",\"size\":968622084}]},{\"text\":\"datadkgicbkijyv\",\"type\":\"NonQuery\",\"parameters\":[{\"name\":\"datahn\",\"type\":\"Single\",\"value\":\"datasul\",\"direction\":\"Input\",\"size\":1712156327}]}],\"logSettings\":{\"logDestination\":\"ExternalStore\",\"logLocationSettings\":{\"linkedServiceName\":{\"referenceName\":\"nanrcqetrtvy\",\"parameters\":{\"u\":\"datatpqjgblco\"}},\"path\":\"datastjwlnt\"}}},\"linkedServiceName\":{\"referenceName\":\"iltuypncdebpe\",\"parameters\":{\"zpscz\":\"dataagulymouwnnh\",\"jydrhwnnuxv\":\"datasatfunfq\",\"vekbknrr\":\"dataietzovbu\"}},\"policy\":{\"timeout\":\"datapnxdzp\",\"retry\":\"datamdslygqbyo\",\"retryIntervalInSeconds\":852509750,\"secureInput\":true,\"secureOutput\":false,\"\":{\"volqprhnchpet\":\"datay\"}},\"name\":\"dbfmttpzwnrmpu\",\"description\":\"usizsnhekpc\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"iee\",\"dependencyConditions\":[\"Completed\",\"Skipped\",\"Completed\",\"Succeeded\"],\"\":{\"tdkzphudagrgxrs\":\"datam\",\"sbjoh\":\"datavzwnuibdr\"}},{\"activity\":\"vkpnmaaw\",\"dependencyConditions\":[\"Succeeded\",\"Skipped\",\"Skipped\"],\"\":{\"yfjzy\":\"datarxooqqdlmbuzk\",\"fgjxmgwkhrln\":\"dataogwjp\",\"fvsvwauqxhqcv\":\"datasq\"}},{\"activity\":\"ibzbvkoxljtvef\",\"dependencyConditions\":[\"Skipped\",\"Skipped\",\"Failed\"],\"\":{\"e\":\"dataiylpxoaall\"}}],\"userProperties\":[{\"name\":\"sdnrlkzzlok\",\"value\":\"datarudepzlvuz\"},{\"name\":\"wlb\",\"value\":\"datafjhwvgp\"}],\"\":{\"gfpyffmgu\":\"dataxttahso\",\"bihgpnkw\":\"datakfo\",\"iwm\":\"dataatkkuf\"}}") - .toObject(ScriptActivity.class); - Assertions.assertEquals("dbfmttpzwnrmpu", model.name()); - Assertions.assertEquals("usizsnhekpc", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("iee", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("sdnrlkzzlok", model.userProperties().get(0).name()); - Assertions.assertEquals("iltuypncdebpe", model.linkedServiceName().referenceName()); - Assertions.assertEquals(852509750, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - Assertions.assertEquals(ScriptType.NON_QUERY, model.scripts().get(0).type()); - Assertions.assertEquals(ScriptActivityParameterType.INT16, model.scripts().get(0).parameters().get(0).type()); - Assertions - .assertEquals( - ScriptActivityParameterDirection.OUTPUT, model.scripts().get(0).parameters().get(0).direction()); - Assertions.assertEquals(1828814533, model.scripts().get(0).parameters().get(0).size()); - Assertions.assertEquals(ScriptActivityLogDestination.EXTERNAL_STORE, model.logSettings().logDestination()); - Assertions - .assertEquals( - "nanrcqetrtvy", model.logSettings().logLocationSettings().linkedServiceName().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ScriptActivity model = - new ScriptActivity() - .withName("dbfmttpzwnrmpu") - .withDescription("usizsnhekpc") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("iee") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.COMPLETED, - DependencyCondition.SKIPPED, - DependencyCondition.COMPLETED, - DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("vkpnmaaw") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.SUCCEEDED, - DependencyCondition.SKIPPED, - DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("ibzbvkoxljtvef") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.SKIPPED, - DependencyCondition.SKIPPED, - DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays - .asList( - new UserProperty().withName("sdnrlkzzlok").withValue("datarudepzlvuz"), - new UserProperty().withName("wlb").withValue("datafjhwvgp"))) - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("iltuypncdebpe") - .withParameters( - mapOf( - "zpscz", - "dataagulymouwnnh", - "jydrhwnnuxv", - "datasatfunfq", - "vekbknrr", - "dataietzovbu"))) - .withPolicy( - new ActivityPolicy() - .withTimeout("datapnxdzp") - .withRetry("datamdslygqbyo") - .withRetryIntervalInSeconds(852509750) - .withSecureInput(true) - .withSecureOutput(false) - .withAdditionalProperties(mapOf())) - .withScriptBlockExecutionTimeout("databcpieiqolym") - .withScripts( - Arrays - .asList( - new ScriptActivityScriptBlock() - .withText("databcyed") - .withType(ScriptType.NON_QUERY) - .withParameters( - Arrays - .asList( - new ScriptActivityParameter() - .withName("datakhg") - .withType(ScriptActivityParameterType.INT16) - .withValue("dataylukpjdmdykjh") - .withDirection(ScriptActivityParameterDirection.OUTPUT) - .withSize(1828814533), - new ScriptActivityParameter() - .withName("dataispwpfjxljrrgvyu") - .withType(ScriptActivityParameterType.INT16) - .withValue("datavckpdlkvi") - .withDirection(ScriptActivityParameterDirection.INPUT) - .withSize(968622084))), - new ScriptActivityScriptBlock() - .withText("datadkgicbkijyv") - .withType(ScriptType.NON_QUERY) - .withParameters( - Arrays - .asList( - new ScriptActivityParameter() - .withName("datahn") - .withType(ScriptActivityParameterType.SINGLE) - .withValue("datasul") - .withDirection(ScriptActivityParameterDirection.INPUT) - .withSize(1712156327))))) - .withLogSettings( - new ScriptActivityTypePropertiesLogSettings() - .withLogDestination(ScriptActivityLogDestination.EXTERNAL_STORE) - .withLogLocationSettings( - new LogLocationSettings() - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("nanrcqetrtvy") - .withParameters(mapOf("u", "datatpqjgblco"))) - .withPath("datastjwlnt"))); - model = BinaryData.fromObject(model).toObject(ScriptActivity.class); - Assertions.assertEquals("dbfmttpzwnrmpu", model.name()); - Assertions.assertEquals("usizsnhekpc", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("iee", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("sdnrlkzzlok", model.userProperties().get(0).name()); - Assertions.assertEquals("iltuypncdebpe", model.linkedServiceName().referenceName()); - Assertions.assertEquals(852509750, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - Assertions.assertEquals(ScriptType.NON_QUERY, model.scripts().get(0).type()); - Assertions.assertEquals(ScriptActivityParameterType.INT16, model.scripts().get(0).parameters().get(0).type()); - Assertions - .assertEquals( - ScriptActivityParameterDirection.OUTPUT, model.scripts().get(0).parameters().get(0).direction()); - Assertions.assertEquals(1828814533, model.scripts().get(0).parameters().get(0).size()); - Assertions.assertEquals(ScriptActivityLogDestination.EXTERNAL_STORE, model.logSettings().logDestination()); - Assertions - .assertEquals( - "nanrcqetrtvy", model.logSettings().logLocationSettings().linkedServiceName().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ScriptActivityTypePropertiesLogSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ScriptActivityTypePropertiesLogSettingsTests.java deleted file mode 100644 index 1b0f29ec9dc7..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ScriptActivityTypePropertiesLogSettingsTests.java +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.LogLocationSettings; -import com.azure.resourcemanager.datafactory.models.ScriptActivityLogDestination; -import com.azure.resourcemanager.datafactory.models.ScriptActivityTypePropertiesLogSettings; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ScriptActivityTypePropertiesLogSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ScriptActivityTypePropertiesLogSettings model = - BinaryData - .fromString( - "{\"logDestination\":\"ExternalStore\",\"logLocationSettings\":{\"linkedServiceName\":{\"referenceName\":\"jaqyiy\",\"parameters\":{\"upyivq\":\"dataejufack\",\"bperkeyhybc\":\"dataczxyzlxowgzt\",\"jqrnuo\":\"dataxurdfzynfm\",\"tzeauifc\":\"datam\"}},\"path\":\"datarutfvzdo\"}}") - .toObject(ScriptActivityTypePropertiesLogSettings.class); - Assertions.assertEquals(ScriptActivityLogDestination.EXTERNAL_STORE, model.logDestination()); - Assertions.assertEquals("jaqyiy", model.logLocationSettings().linkedServiceName().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ScriptActivityTypePropertiesLogSettings model = - new ScriptActivityTypePropertiesLogSettings() - .withLogDestination(ScriptActivityLogDestination.EXTERNAL_STORE) - .withLogLocationSettings( - new LogLocationSettings() - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("jaqyiy") - .withParameters( - mapOf( - "upyivq", - "dataejufack", - "bperkeyhybc", - "dataczxyzlxowgzt", - "jqrnuo", - "dataxurdfzynfm", - "tzeauifc", - "datam"))) - .withPath("datarutfvzdo")); - model = BinaryData.fromObject(model).toObject(ScriptActivityTypePropertiesLogSettings.class); - Assertions.assertEquals(ScriptActivityLogDestination.EXTERNAL_STORE, model.logDestination()); - Assertions.assertEquals("jaqyiy", model.logLocationSettings().linkedServiceName().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ScriptActivityTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ScriptActivityTypePropertiesTests.java deleted file mode 100644 index 5f7c316a6183..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ScriptActivityTypePropertiesTests.java +++ /dev/null @@ -1,166 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.ScriptActivityTypeProperties; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.LogLocationSettings; -import com.azure.resourcemanager.datafactory.models.ScriptActivityLogDestination; -import com.azure.resourcemanager.datafactory.models.ScriptActivityParameter; -import com.azure.resourcemanager.datafactory.models.ScriptActivityParameterDirection; -import com.azure.resourcemanager.datafactory.models.ScriptActivityParameterType; -import com.azure.resourcemanager.datafactory.models.ScriptActivityScriptBlock; -import com.azure.resourcemanager.datafactory.models.ScriptActivityTypePropertiesLogSettings; -import com.azure.resourcemanager.datafactory.models.ScriptType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ScriptActivityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ScriptActivityTypeProperties model = - BinaryData - .fromString( - "{\"scriptBlockExecutionTimeout\":\"datavfubriom\",\"scripts\":[{\"text\":\"datarnggwujyukjfsb\",\"type\":\"Query\",\"parameters\":[{\"name\":\"datarni\",\"type\":\"Single\",\"value\":\"datamuwhg\",\"direction\":\"Output\",\"size\":221400137},{\"name\":\"datafqsislaubijvavq\",\"type\":\"Single\",\"value\":\"datahdikdratzgxt\",\"direction\":\"Output\",\"size\":73057217},{\"name\":\"datalfb\",\"type\":\"DateTimeOffset\",\"value\":\"datamvhpic\",\"direction\":\"InputOutput\",\"size\":839306026},{\"name\":\"dataifa\",\"type\":\"Int32\",\"value\":\"dataswzkz\",\"direction\":\"Input\",\"size\":774721696}]},{\"text\":\"datanbhwtagfe\",\"type\":\"NonQuery\",\"parameters\":[{\"name\":\"dataewjnzlq\",\"type\":\"DateTimeOffset\",\"value\":\"datajna\",\"direction\":\"Output\",\"size\":1674347848},{\"name\":\"datawmnsapgalwpajrt\",\"type\":\"Decimal\",\"value\":\"datatpqvhkjbgcqqeyt\",\"direction\":\"Output\",\"size\":1752438457},{\"name\":\"dataaijnahelfqh\",\"type\":\"String\",\"value\":\"dataakqg\",\"direction\":\"InputOutput\",\"size\":1124111647},{\"name\":\"datatxzekidjbs\",\"type\":\"Int32\",\"value\":\"datamlgynaz\",\"direction\":\"InputOutput\",\"size\":1962463741}]},{\"text\":\"datapypsjokjjrj\",\"type\":\"Query\",\"parameters\":[{\"name\":\"datajt\",\"type\":\"Single\",\"value\":\"datajimsge\",\"direction\":\"Input\",\"size\":1612152665},{\"name\":\"datadbcrkepjnyrtlini\",\"type\":\"String\",\"value\":\"dataq\",\"direction\":\"InputOutput\",\"size\":1315001028}]}],\"logSettings\":{\"logDestination\":\"ExternalStore\",\"logLocationSettings\":{\"linkedServiceName\":{\"referenceName\":\"na\",\"parameters\":{\"kqx\":\"databkzqassnwvwluzs\",\"twv\":\"datatkw\",\"swwgrqiqlopb\":\"datajtudn\"}},\"path\":\"dataokmwnrwu\"}}}") - .toObject(ScriptActivityTypeProperties.class); - Assertions.assertEquals(ScriptType.QUERY, model.scripts().get(0).type()); - Assertions.assertEquals(ScriptActivityParameterType.SINGLE, model.scripts().get(0).parameters().get(0).type()); - Assertions - .assertEquals( - ScriptActivityParameterDirection.OUTPUT, model.scripts().get(0).parameters().get(0).direction()); - Assertions.assertEquals(221400137, model.scripts().get(0).parameters().get(0).size()); - Assertions.assertEquals(ScriptActivityLogDestination.EXTERNAL_STORE, model.logSettings().logDestination()); - Assertions.assertEquals("na", model.logSettings().logLocationSettings().linkedServiceName().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ScriptActivityTypeProperties model = - new ScriptActivityTypeProperties() - .withScriptBlockExecutionTimeout("datavfubriom") - .withScripts( - Arrays - .asList( - new ScriptActivityScriptBlock() - .withText("datarnggwujyukjfsb") - .withType(ScriptType.QUERY) - .withParameters( - Arrays - .asList( - new ScriptActivityParameter() - .withName("datarni") - .withType(ScriptActivityParameterType.SINGLE) - .withValue("datamuwhg") - .withDirection(ScriptActivityParameterDirection.OUTPUT) - .withSize(221400137), - new ScriptActivityParameter() - .withName("datafqsislaubijvavq") - .withType(ScriptActivityParameterType.SINGLE) - .withValue("datahdikdratzgxt") - .withDirection(ScriptActivityParameterDirection.OUTPUT) - .withSize(73057217), - new ScriptActivityParameter() - .withName("datalfb") - .withType(ScriptActivityParameterType.DATE_TIME_OFFSET) - .withValue("datamvhpic") - .withDirection(ScriptActivityParameterDirection.INPUT_OUTPUT) - .withSize(839306026), - new ScriptActivityParameter() - .withName("dataifa") - .withType(ScriptActivityParameterType.INT32) - .withValue("dataswzkz") - .withDirection(ScriptActivityParameterDirection.INPUT) - .withSize(774721696))), - new ScriptActivityScriptBlock() - .withText("datanbhwtagfe") - .withType(ScriptType.NON_QUERY) - .withParameters( - Arrays - .asList( - new ScriptActivityParameter() - .withName("dataewjnzlq") - .withType(ScriptActivityParameterType.DATE_TIME_OFFSET) - .withValue("datajna") - .withDirection(ScriptActivityParameterDirection.OUTPUT) - .withSize(1674347848), - new ScriptActivityParameter() - .withName("datawmnsapgalwpajrt") - .withType(ScriptActivityParameterType.DECIMAL) - .withValue("datatpqvhkjbgcqqeyt") - .withDirection(ScriptActivityParameterDirection.OUTPUT) - .withSize(1752438457), - new ScriptActivityParameter() - .withName("dataaijnahelfqh") - .withType(ScriptActivityParameterType.STRING) - .withValue("dataakqg") - .withDirection(ScriptActivityParameterDirection.INPUT_OUTPUT) - .withSize(1124111647), - new ScriptActivityParameter() - .withName("datatxzekidjbs") - .withType(ScriptActivityParameterType.INT32) - .withValue("datamlgynaz") - .withDirection(ScriptActivityParameterDirection.INPUT_OUTPUT) - .withSize(1962463741))), - new ScriptActivityScriptBlock() - .withText("datapypsjokjjrj") - .withType(ScriptType.QUERY) - .withParameters( - Arrays - .asList( - new ScriptActivityParameter() - .withName("datajt") - .withType(ScriptActivityParameterType.SINGLE) - .withValue("datajimsge") - .withDirection(ScriptActivityParameterDirection.INPUT) - .withSize(1612152665), - new ScriptActivityParameter() - .withName("datadbcrkepjnyrtlini") - .withType(ScriptActivityParameterType.STRING) - .withValue("dataq") - .withDirection(ScriptActivityParameterDirection.INPUT_OUTPUT) - .withSize(1315001028))))) - .withLogSettings( - new ScriptActivityTypePropertiesLogSettings() - .withLogDestination(ScriptActivityLogDestination.EXTERNAL_STORE) - .withLogLocationSettings( - new LogLocationSettings() - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("na") - .withParameters( - mapOf( - "kqx", - "databkzqassnwvwluzs", - "twv", - "datatkw", - "swwgrqiqlopb", - "datajtudn"))) - .withPath("dataokmwnrwu"))); - model = BinaryData.fromObject(model).toObject(ScriptActivityTypeProperties.class); - Assertions.assertEquals(ScriptType.QUERY, model.scripts().get(0).type()); - Assertions.assertEquals(ScriptActivityParameterType.SINGLE, model.scripts().get(0).parameters().get(0).type()); - Assertions - .assertEquals( - ScriptActivityParameterDirection.OUTPUT, model.scripts().get(0).parameters().get(0).direction()); - Assertions.assertEquals(221400137, model.scripts().get(0).parameters().get(0).size()); - Assertions.assertEquals(ScriptActivityLogDestination.EXTERNAL_STORE, model.logSettings().logDestination()); - Assertions.assertEquals("na", model.logSettings().logLocationSettings().linkedServiceName().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SecretBaseTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SecretBaseTests.java deleted file mode 100644 index e1268f0b1eae..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SecretBaseTests.java +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SecretBase; - -public final class SecretBaseTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SecretBase model = BinaryData.fromString("{\"type\":\"SecretBase\"}").toObject(SecretBase.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SecretBase model = new SecretBase(); - model = BinaryData.fromObject(model).toObject(SecretBase.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SecureInputOutputPolicyTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SecureInputOutputPolicyTests.java deleted file mode 100644 index 82dcc426c197..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SecureInputOutputPolicyTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SecureInputOutputPolicy; -import org.junit.jupiter.api.Assertions; - -public final class SecureInputOutputPolicyTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SecureInputOutputPolicy model = - BinaryData - .fromString("{\"secureInput\":true,\"secureOutput\":false}") - .toObject(SecureInputOutputPolicy.class); - Assertions.assertEquals(true, model.secureInput()); - Assertions.assertEquals(false, model.secureOutput()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SecureInputOutputPolicy model = new SecureInputOutputPolicy().withSecureInput(true).withSecureOutput(false); - model = BinaryData.fromObject(model).toObject(SecureInputOutputPolicy.class); - Assertions.assertEquals(true, model.secureInput()); - Assertions.assertEquals(false, model.secureOutput()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SecureStringTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SecureStringTests.java deleted file mode 100644 index 3a30314ce0ae..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SecureStringTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SecureString; -import org.junit.jupiter.api.Assertions; - -public final class SecureStringTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SecureString model = - BinaryData.fromString("{\"type\":\"SecureString\",\"value\":\"pylx\"}").toObject(SecureString.class); - Assertions.assertEquals("pylx", model.value()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SecureString model = new SecureString().withValue("pylx"); - model = BinaryData.fromObject(model).toObject(SecureString.class); - Assertions.assertEquals("pylx", model.value()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SelfDependencyTumblingWindowTriggerReferenceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SelfDependencyTumblingWindowTriggerReferenceTests.java deleted file mode 100644 index 29065a6ad562..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SelfDependencyTumblingWindowTriggerReferenceTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SelfDependencyTumblingWindowTriggerReference; -import org.junit.jupiter.api.Assertions; - -public final class SelfDependencyTumblingWindowTriggerReferenceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SelfDependencyTumblingWindowTriggerReference model = - BinaryData - .fromString( - "{\"type\":\"SelfDependencyTumblingWindowTriggerReference\",\"offset\":\"b\",\"size\":\"tllkpkcqzbv\"}") - .toObject(SelfDependencyTumblingWindowTriggerReference.class); - Assertions.assertEquals("b", model.offset()); - Assertions.assertEquals("tllkpkcqzbv", model.size()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SelfDependencyTumblingWindowTriggerReference model = - new SelfDependencyTumblingWindowTriggerReference().withOffset("b").withSize("tllkpkcqzbv"); - model = BinaryData.fromObject(model).toObject(SelfDependencyTumblingWindowTriggerReference.class); - Assertions.assertEquals("b", model.offset()); - Assertions.assertEquals("tllkpkcqzbv", model.size()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SelfHostedIntegrationRuntimeNodeInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SelfHostedIntegrationRuntimeNodeInnerTests.java deleted file mode 100644 index 63c59cb66043..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SelfHostedIntegrationRuntimeNodeInnerTests.java +++ /dev/null @@ -1,85 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.core.util.serializer.JacksonAdapter; -import com.azure.core.util.serializer.SerializerEncoding; -import com.azure.resourcemanager.datafactory.fluent.models.SelfHostedIntegrationRuntimeNodeInner; -import java.util.HashMap; -import java.util.Map; - -public final class SelfHostedIntegrationRuntimeNodeInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SelfHostedIntegrationRuntimeNodeInner model = - BinaryData - .fromString( - "{\"nodeName\":\"e\",\"machineName\":\"sgzvahapjyzhpv\",\"hostServiceUri\":\"zcjrvxdjzlmwlx\",\"status\":\"Online\",\"capabilities\":{\"nnprn\":\"hzovawjvzunlut\",\"eilpjzuaejxdu\":\"i\",\"pwo\":\"tskzbbtdzumveek\",\"fpbsjyofdxl\":\"uh\"},\"versionStatus\":\"sd\",\"version\":\"ouwaboekqvkeln\",\"registerTime\":\"2021-02-02T03:25:54Z\",\"lastConnectTime\":\"2020-12-28T23:28:21Z\",\"expiryTime\":\"2021-07-06T07:16:14Z\",\"lastStartTime\":\"2021-03-30T06:11:19Z\",\"lastStopTime\":\"2021-08-23T09:42:03Z\",\"lastUpdateResult\":\"Fail\",\"lastStartUpdateTime\":\"2021-01-31T17:20:46Z\",\"lastEndUpdateTime\":\"2021-07-31T18:32:18Z\",\"isActiveDispatcher\":true,\"concurrentJobsLimit\":1744629944,\"maxConcurrentJobs\":923639125,\"\":{\"iidzyexzne\":\"dataawjoyaqcslyjp\"}}") - .toObject(SelfHostedIntegrationRuntimeNodeInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SelfHostedIntegrationRuntimeNodeInner model = - new SelfHostedIntegrationRuntimeNodeInner() - .withAdditionalProperties( - mapOf( - "nodeName", - "e", - "lastStartUpdateTime", - "2021-01-31T17:20:46Z", - "lastConnectTime", - "2020-12-28T23:28:21Z", - "capabilities", - JacksonAdapter - .createDefaultSerializerAdapter() - .deserialize( - "{\"nnprn\":\"hzovawjvzunlut\",\"eilpjzuaejxdu\":\"i\",\"pwo\":\"tskzbbtdzumveek\",\"fpbsjyofdxl\":\"uh\"}", - Object.class, - SerializerEncoding.JSON), - "hostServiceUri", - "zcjrvxdjzlmwlx", - "registerTime", - "2021-02-02T03:25:54Z", - "maxConcurrentJobs", - 923639125, - "lastStopTime", - "2021-08-23T09:42:03Z", - "version", - "ouwaboekqvkeln", - "machineName", - "sgzvahapjyzhpv", - "versionStatus", - "sd", - "concurrentJobsLimit", - 1744629944, - "lastEndUpdateTime", - "2021-07-31T18:32:18Z", - "expiryTime", - "2021-07-06T07:16:14Z", - "lastStartTime", - "2021-03-30T06:11:19Z", - "lastUpdateResult", - "Fail", - "isActiveDispatcher", - true, - "status", - "Online")); - model = BinaryData.fromObject(model).toObject(SelfHostedIntegrationRuntimeNodeInner.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SelfHostedIntegrationRuntimeStatusTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SelfHostedIntegrationRuntimeStatusTests.java deleted file mode 100644 index 22b77badb6a9..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SelfHostedIntegrationRuntimeStatusTests.java +++ /dev/null @@ -1,230 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.core.util.serializer.JacksonAdapter; -import com.azure.core.util.serializer.SerializerEncoding; -import com.azure.resourcemanager.datafactory.fluent.models.SelfHostedIntegrationRuntimeNodeInner; -import com.azure.resourcemanager.datafactory.models.LinkedIntegrationRuntime; -import com.azure.resourcemanager.datafactory.models.SelfHostedIntegrationRuntimeStatus; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; - -public final class SelfHostedIntegrationRuntimeStatusTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SelfHostedIntegrationRuntimeStatus model = - BinaryData - .fromString( - "{\"type\":\"SelfHosted\",\"typeProperties\":{\"createTime\":\"2021-10-25T13:01:31Z\",\"taskQueueId\":\"zqkeb\",\"internalChannelEncryption\":\"SslEncrypted\",\"version\":\"euecokyduqzuscol\",\"nodes\":[{\"nodeName\":\"htekxnvkdvc\",\"machineName\":\"wrd\",\"hostServiceUri\":\"dddwzd\",\"status\":\"NeedRegistration\",\"capabilities\":{\"th\":\"tamkyrkw\",\"jbfyroswnfqdfwv\":\"ivocffxhvnodqq\"},\"versionStatus\":\"frwv\",\"version\":\"pztuskpncdocloe\",\"registerTime\":\"2021-07-10T09:56:33Z\",\"lastConnectTime\":\"2021-12-01T16:50:08Z\",\"expiryTime\":\"2021-02-26T17:40:53Z\",\"lastStartTime\":\"2021-12-01T08:38:07Z\",\"lastStopTime\":\"2021-01-01T00:19:44Z\",\"lastUpdateResult\":\"None\",\"lastStartUpdateTime\":\"2021-01-22T09:30:22Z\",\"lastEndUpdateTime\":\"2021-02-18T06:02:30Z\",\"isActiveDispatcher\":true,\"concurrentJobsLimit\":1255010418,\"maxConcurrentJobs\":1505679455,\"\":{\"wqsni\":\"dataunngjoasnzlaw\",\"vukszkmxbh\":\"dataxwdqzu\",\"vaeg\":\"datap\"}},{\"nodeName\":\"mqonxvnmcyze\",\"machineName\":\"vw\",\"hostServiceUri\":\"esswbrnbox\",\"status\":\"Limited\",\"capabilities\":{\"mhmifhfutjyx\":\"qfvbksksmqmwow\"},\"versionStatus\":\"mgt\",\"version\":\"qaemo\",\"registerTime\":\"2021-02-27T17:53:42Z\",\"lastConnectTime\":\"2021-04-04T14:18:04Z\",\"expiryTime\":\"2021-03-07T22:35:11Z\",\"lastStartTime\":\"2021-01-16T10:07:16Z\",\"lastStopTime\":\"2021-09-10T19:37:52Z\",\"lastUpdateResult\":\"None\",\"lastStartUpdateTime\":\"2021-04-09T12:09:36Z\",\"lastEndUpdateTime\":\"2021-08-08T17:12:18Z\",\"isActiveDispatcher\":false,\"concurrentJobsLimit\":1357414966,\"maxConcurrentJobs\":1990441761,\"\":{\"xgdpivjkhcoscol\":\"dataydksvjf\",\"qkaqdvwojvx\":\"datajhcsgzooefzsdtt\",\"hrqxrqghotingzi\":\"dataf\"}},{\"nodeName\":\"gygawyhpwmdk\",\"machineName\":\"gyelvyh\",\"hostServiceUri\":\"puqyrpubbkhcidc\",\"status\":\"NeedRegistration\",\"capabilities\":{\"zowgmmixf\":\"ku\",\"jnpahzhpqscuyil\":\"aupgblna\",\"ebmuiongmndwohoe\":\"qjzri\",\"uxfvbjimzwynsm\":\"s\"},\"versionStatus\":\"hvkyezwseyuo\",\"version\":\"mjw\",\"registerTime\":\"2021-01-09T04:00:09Z\",\"lastConnectTime\":\"2021-08-26T03:52:19Z\",\"expiryTime\":\"2021-05-27T13:05:43Z\",\"lastStartTime\":\"2021-07-09T20:27:44Z\",\"lastStopTime\":\"2021-08-19T10:17:05Z\",\"lastUpdateResult\":\"Succeed\",\"lastStartUpdateTime\":\"2021-03-27T21:52:11Z\",\"lastEndUpdateTime\":\"2021-06-14T00:28:05Z\",\"isActiveDispatcher\":false,\"concurrentJobsLimit\":579396297,\"maxConcurrentJobs\":939575126,\"\":{\"ymnrtvq\":\"datawax\",\"kvyqpvz\":\"dataimavyotpcvpahh\",\"wtominrufqqa\":\"dataxzn\"}},{\"nodeName\":\"gasfmhbxv\",\"machineName\":\"kqnatxvuzc\",\"hostServiceUri\":\"lirybytcaqp\",\"status\":\"Initializing\",\"capabilities\":{\"vxyyhhsisz\":\"bn\",\"uukaamimkjz\":\"qfrpanteqiw\",\"xvksij\":\"xysjd\"},\"versionStatus\":\"gyindexijovu\",\"version\":\"uupzeadd\",\"registerTime\":\"2021-06-23T09:58:27Z\",\"lastConnectTime\":\"2021-06-04T16:21:17Z\",\"expiryTime\":\"2021-02-03T05:13:03Z\",\"lastStartTime\":\"2021-02-27T19:33:05Z\",\"lastStopTime\":\"2021-10-01T21:16:03Z\",\"lastUpdateResult\":\"None\",\"lastStartUpdateTime\":\"2021-12-01T18:49:21Z\",\"lastEndUpdateTime\":\"2021-06-17T04:35:24Z\",\"isActiveDispatcher\":true,\"concurrentJobsLimit\":1693962581,\"maxConcurrentJobs\":1798638813,\"\":{\"oabfcvefb\":\"dataxbthtnyzpuonrmdl\",\"uy\":\"dataxpmgyqshsasmr\"}}],\"scheduledUpdateDate\":\"2021-10-28T22:40:11Z\",\"updateDelayOffset\":\"xrgrztkyqgu\",\"localTimeZoneOffset\":\"uih\",\"capabilities\":{\"rpfivypm\":\"gkyncyzjndfeemxi\",\"cr\":\"dzaj\"},\"serviceUrls\":[\"poqimy\",\"xnpdggllyduyu\",\"dmzu\",\"xvzvwlxd\"],\"autoUpdate\":\"Off\",\"versionStatus\":\"zeurdoxkl\",\"links\":[{\"name\":\"siznymwz\",\"subscriptionId\":\"pkihqhnfubevwa\",\"dataFactoryName\":\"c\",\"dataFactoryLocation\":\"xevlt\",\"createTime\":\"2021-03-14T00:40:42Z\"},{\"name\":\"oqiaklqakpstifm\",\"subscriptionId\":\"wrphmriipz\",\"dataFactoryName\":\"ofuadcj\",\"dataFactoryLocation\":\"eaqkg\",\"createTime\":\"2021-03-25T15:46:49Z\"},{\"name\":\"r\",\"subscriptionId\":\"eynqlsnrgaxoyv\",\"dataFactoryName\":\"jpf\",\"dataFactoryLocation\":\"hsppvjsduouoqte\",\"createTime\":\"2021-09-10T05:04:14Z\"}],\"pushedVersion\":\"muogeq\",\"latestVersion\":\"paseqcp\",\"autoUpdateETA\":\"2021-03-07T20:06:56Z\",\"selfContainedInteractiveAuthoringEnabled\":false},\"dataFactoryName\":\"uwvzh\",\"state\":\"Limited\",\"\":{\"f\":\"dataoiq\",\"lwyoxzuhellitpqv\":\"datattqgt\",\"bzvtvxx\":\"dataivrsgqbmolxeom\"}}") - .toObject(SelfHostedIntegrationRuntimeStatus.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SelfHostedIntegrationRuntimeStatus model = - new SelfHostedIntegrationRuntimeStatus() - .withNodes( - Arrays - .asList( - new SelfHostedIntegrationRuntimeNodeInner() - .withAdditionalProperties( - mapOf( - "nodeName", - "htekxnvkdvc", - "lastStartUpdateTime", - "2021-01-22T09:30:22Z", - "lastConnectTime", - "2021-12-01T16:50:08Z", - "capabilities", - JacksonAdapter - .createDefaultSerializerAdapter() - .deserialize( - "{\"th\":\"tamkyrkw\",\"jbfyroswnfqdfwv\":\"ivocffxhvnodqq\"}", - Object.class, - SerializerEncoding.JSON), - "hostServiceUri", - "dddwzd", - "registerTime", - "2021-07-10T09:56:33Z", - "maxConcurrentJobs", - 1505679455, - "lastStopTime", - "2021-01-01T00:19:44Z", - "version", - "pztuskpncdocloe", - "machineName", - "wrd", - "versionStatus", - "frwv", - "concurrentJobsLimit", - 1255010418, - "lastEndUpdateTime", - "2021-02-18T06:02:30Z", - "expiryTime", - "2021-02-26T17:40:53Z", - "lastStartTime", - "2021-12-01T08:38:07Z", - "lastUpdateResult", - "None", - "isActiveDispatcher", - true, - "status", - "NeedRegistration")), - new SelfHostedIntegrationRuntimeNodeInner() - .withAdditionalProperties( - mapOf( - "nodeName", - "mqonxvnmcyze", - "lastStartUpdateTime", - "2021-04-09T12:09:36Z", - "lastConnectTime", - "2021-04-04T14:18:04Z", - "capabilities", - JacksonAdapter - .createDefaultSerializerAdapter() - .deserialize( - "{\"mhmifhfutjyx\":\"qfvbksksmqmwow\"}", - Object.class, - SerializerEncoding.JSON), - "hostServiceUri", - "esswbrnbox", - "registerTime", - "2021-02-27T17:53:42Z", - "maxConcurrentJobs", - 1990441761, - "lastStopTime", - "2021-09-10T19:37:52Z", - "version", - "qaemo", - "machineName", - "vw", - "versionStatus", - "mgt", - "concurrentJobsLimit", - 1357414966, - "lastEndUpdateTime", - "2021-08-08T17:12:18Z", - "expiryTime", - "2021-03-07T22:35:11Z", - "lastStartTime", - "2021-01-16T10:07:16Z", - "lastUpdateResult", - "None", - "isActiveDispatcher", - false, - "status", - "Limited")), - new SelfHostedIntegrationRuntimeNodeInner() - .withAdditionalProperties( - mapOf( - "nodeName", - "gygawyhpwmdk", - "lastStartUpdateTime", - "2021-03-27T21:52:11Z", - "lastConnectTime", - "2021-08-26T03:52:19Z", - "capabilities", - JacksonAdapter - .createDefaultSerializerAdapter() - .deserialize( - "{\"zowgmmixf\":\"ku\",\"jnpahzhpqscuyil\":\"aupgblna\",\"ebmuiongmndwohoe\":\"qjzri\",\"uxfvbjimzwynsm\":\"s\"}", - Object.class, - SerializerEncoding.JSON), - "hostServiceUri", - "puqyrpubbkhcidc", - "registerTime", - "2021-01-09T04:00:09Z", - "maxConcurrentJobs", - 939575126, - "lastStopTime", - "2021-08-19T10:17:05Z", - "version", - "mjw", - "machineName", - "gyelvyh", - "versionStatus", - "hvkyezwseyuo", - "concurrentJobsLimit", - 579396297, - "lastEndUpdateTime", - "2021-06-14T00:28:05Z", - "expiryTime", - "2021-05-27T13:05:43Z", - "lastStartTime", - "2021-07-09T20:27:44Z", - "lastUpdateResult", - "Succeed", - "isActiveDispatcher", - false, - "status", - "NeedRegistration")), - new SelfHostedIntegrationRuntimeNodeInner() - .withAdditionalProperties( - mapOf( - "nodeName", - "gasfmhbxv", - "lastStartUpdateTime", - "2021-12-01T18:49:21Z", - "lastConnectTime", - "2021-06-04T16:21:17Z", - "capabilities", - JacksonAdapter - .createDefaultSerializerAdapter() - .deserialize( - "{\"vxyyhhsisz\":\"bn\",\"uukaamimkjz\":\"qfrpanteqiw\",\"xvksij\":\"xysjd\"}", - Object.class, - SerializerEncoding.JSON), - "hostServiceUri", - "lirybytcaqp", - "registerTime", - "2021-06-23T09:58:27Z", - "maxConcurrentJobs", - 1798638813, - "lastStopTime", - "2021-10-01T21:16:03Z", - "version", - "uupzeadd", - "machineName", - "kqnatxvuzc", - "versionStatus", - "gyindexijovu", - "concurrentJobsLimit", - 1693962581, - "lastEndUpdateTime", - "2021-06-17T04:35:24Z", - "expiryTime", - "2021-02-03T05:13:03Z", - "lastStartTime", - "2021-02-27T19:33:05Z", - "lastUpdateResult", - "None", - "isActiveDispatcher", - true, - "status", - "Initializing")))) - .withLinks( - Arrays - .asList( - new LinkedIntegrationRuntime(), - new LinkedIntegrationRuntime(), - new LinkedIntegrationRuntime())); - model = BinaryData.fromObject(model).toObject(SelfHostedIntegrationRuntimeStatus.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SelfHostedIntegrationRuntimeStatusTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SelfHostedIntegrationRuntimeStatusTypePropertiesTests.java deleted file mode 100644 index e66a43489865..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SelfHostedIntegrationRuntimeStatusTypePropertiesTests.java +++ /dev/null @@ -1,228 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.core.util.serializer.JacksonAdapter; -import com.azure.core.util.serializer.SerializerEncoding; -import com.azure.resourcemanager.datafactory.fluent.models.SelfHostedIntegrationRuntimeNodeInner; -import com.azure.resourcemanager.datafactory.fluent.models.SelfHostedIntegrationRuntimeStatusTypeProperties; -import com.azure.resourcemanager.datafactory.models.LinkedIntegrationRuntime; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; - -public final class SelfHostedIntegrationRuntimeStatusTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SelfHostedIntegrationRuntimeStatusTypeProperties model = - BinaryData - .fromString( - "{\"createTime\":\"2021-02-13T03:04:12Z\",\"taskQueueId\":\"yacgih\",\"internalChannelEncryption\":\"NotSet\",\"version\":\"cuedybkbgdwbmi\",\"nodes\":[{\"nodeName\":\"a\",\"machineName\":\"wedbpirbz\",\"hostServiceUri\":\"uzbbhxncs\",\"status\":\"InitializeFailed\",\"capabilities\":{\"ltniuiimerffhgvc\":\"veuxgmigsoeb\",\"feudbobmoljirch\":\"mddoeilhgga\",\"vccquajpoipdjxyo\":\"wlzi\"},\"versionStatus\":\"vraxhnto\",\"version\":\"fszkrlkosjwrrets\",\"registerTime\":\"2021-10-13T01:30:26Z\",\"lastConnectTime\":\"2021-06-28T14:03:07Z\",\"expiryTime\":\"2021-04-17T06:24:34Z\",\"lastStartTime\":\"2021-06-06T15:54:39Z\",\"lastStopTime\":\"2021-06-16T13:23:22Z\",\"lastUpdateResult\":\"Succeed\",\"lastStartUpdateTime\":\"2021-09-19T12:13:02Z\",\"lastEndUpdateTime\":\"2021-09-13T03:41:11Z\",\"isActiveDispatcher\":false,\"concurrentJobsLimit\":1049765252,\"maxConcurrentJobs\":1561686443,\"\":{\"bmggnqx\":\"datauwhdqngqam\",\"kvomdqxnoy\":\"dataexqzaffzqodoks\",\"nqnttrwocb\":\"dataqipapifccydbjgh\"}},{\"nodeName\":\"vxdvphxmw\",\"machineName\":\"xcaicb\",\"hostServiceUri\":\"bogsfov\",\"status\":\"Initializing\",\"capabilities\":{\"gunrukcyyaa\":\"y\"},\"versionStatus\":\"kubzq\",\"version\":\"dlrkvitzk\",\"registerTime\":\"2021-11-08T06:32:59Z\",\"lastConnectTime\":\"2021-04-07T03:33:39Z\",\"expiryTime\":\"2021-02-19T10:39:22Z\",\"lastStartTime\":\"2021-11-26T11:08:51Z\",\"lastStopTime\":\"2021-01-21T13:21:41Z\",\"lastUpdateResult\":\"Fail\",\"lastStartUpdateTime\":\"2021-04-13T20:26:39Z\",\"lastEndUpdateTime\":\"2021-08-26T10:49:52Z\",\"isActiveDispatcher\":false,\"concurrentJobsLimit\":1165715853,\"maxConcurrentJobs\":201253191,\"\":{\"ulqfpqqll\":\"datahpvarumvuwj\",\"raczvtniwfcubw\":\"datavzlhjgmrodblap\",\"ceg\":\"dataxmyibx\"}},{\"nodeName\":\"tgxkxtcxb\",\"machineName\":\"beyqohvi\",\"hostServiceUri\":\"pjfkr\",\"status\":\"InitializeFailed\",\"capabilities\":{\"ocjasuame\":\"lgbvtpxowgoww\",\"esloblit\":\"jkfiszhexumfav\",\"trztogujg\":\"rrsjscosanjso\"},\"versionStatus\":\"clxhwkzfggs\",\"version\":\"kvdantpzuiwa\",\"registerTime\":\"2021-08-04T05:42:18Z\",\"lastConnectTime\":\"2021-08-22T07:40:35Z\",\"expiryTime\":\"2021-06-25T02:31:13Z\",\"lastStartTime\":\"2021-07-21T07:45:13Z\",\"lastStopTime\":\"2021-06-24T14:20:53Z\",\"lastUpdateResult\":\"Fail\",\"lastStartUpdateTime\":\"2021-06-22T12:30:30Z\",\"lastEndUpdateTime\":\"2021-12-06T12:52:42Z\",\"isActiveDispatcher\":true,\"concurrentJobsLimit\":1481970214,\"maxConcurrentJobs\":347395039,\"\":{\"juwgw\":\"datakpoidfzwegvu\",\"cfsssmyaemkrh\":\"dataccvufjqv\",\"qcpenob\":\"datasdgktluifiqg\",\"ufzsautbric\":\"dataysbeespqbvvaersz\"}},{\"nodeName\":\"ofenin\",\"machineName\":\"unhy\",\"hostServiceUri\":\"xckdlxjpisrdn\",\"status\":\"Initializing\",\"capabilities\":{\"fvijnu\":\"be\",\"lghkvoxdpor\":\"xfiiytqxewjsyute\",\"vbkutogecyqoy\":\"k\"},\"versionStatus\":\"ssbvqnpwdwdmu\",\"version\":\"a\",\"registerTime\":\"2021-11-15T19:44:59Z\",\"lastConnectTime\":\"2021-11-27T10:02:18Z\",\"expiryTime\":\"2021-07-18T23:19:26Z\",\"lastStartTime\":\"2021-08-07T10:40:29Z\",\"lastStopTime\":\"2021-04-19T19:41:17Z\",\"lastUpdateResult\":\"Fail\",\"lastStartUpdateTime\":\"2021-01-22T09:48:44Z\",\"lastEndUpdateTime\":\"2021-01-24T12:50:02Z\",\"isActiveDispatcher\":false,\"concurrentJobsLimit\":1160702084,\"maxConcurrentJobs\":1043840923,\"\":{\"cjni\":\"datahdhfrvsizfwgn\",\"wuuogdkpnmwrfu\":\"dataffwcgjjio\",\"l\":\"datajdebyxqucnbgib\"}}],\"scheduledUpdateDate\":\"2021-03-03T09:06:06Z\",\"updateDelayOffset\":\"kouzyv\",\"localTimeZoneOffset\":\"evbfvxmtsmgkret\",\"capabilities\":{\"oy\":\"rceulbyzzcxsyg\"},\"serviceUrls\":[\"kdpzbrxbmlj\"],\"autoUpdate\":\"On\",\"versionStatus\":\"jleuxixkps\",\"links\":[{\"name\":\"nimqoa\",\"subscriptionId\":\"qzxjziqcsotwqtk\",\"dataFactoryName\":\"cdefqoermgmg\",\"dataFactoryLocation\":\"daxao\",\"createTime\":\"2021-11-20T12:07:58Z\"},{\"name\":\"cmmmbipysehyybo\",\"subscriptionId\":\"jcvmkkbp\",\"dataFactoryName\":\"iwdyyhdt\",\"dataFactoryLocation\":\"mbrwqwvcwc\",\"createTime\":\"2021-05-19T23:17:23Z\"},{\"name\":\"trgpd\",\"subscriptionId\":\"t\",\"dataFactoryName\":\"hyfwjfqktuzr\",\"dataFactoryLocation\":\"pecsdk\",\"createTime\":\"2021-03-28T12:44:10Z\"}],\"pushedVersion\":\"bvttqjntvhnj\",\"latestVersion\":\"hjlugcupcyfrhoo\",\"autoUpdateETA\":\"2021-09-05T04:43:39Z\",\"selfContainedInteractiveAuthoringEnabled\":true}") - .toObject(SelfHostedIntegrationRuntimeStatusTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SelfHostedIntegrationRuntimeStatusTypeProperties model = - new SelfHostedIntegrationRuntimeStatusTypeProperties() - .withNodes( - Arrays - .asList( - new SelfHostedIntegrationRuntimeNodeInner() - .withAdditionalProperties( - mapOf( - "nodeName", - "a", - "lastStartUpdateTime", - "2021-09-19T12:13:02Z", - "lastConnectTime", - "2021-06-28T14:03:07Z", - "capabilities", - JacksonAdapter - .createDefaultSerializerAdapter() - .deserialize( - "{\"ltniuiimerffhgvc\":\"veuxgmigsoeb\",\"feudbobmoljirch\":\"mddoeilhgga\",\"vccquajpoipdjxyo\":\"wlzi\"}", - Object.class, - SerializerEncoding.JSON), - "hostServiceUri", - "uzbbhxncs", - "registerTime", - "2021-10-13T01:30:26Z", - "maxConcurrentJobs", - 1561686443, - "lastStopTime", - "2021-06-16T13:23:22Z", - "version", - "fszkrlkosjwrrets", - "machineName", - "wedbpirbz", - "versionStatus", - "vraxhnto", - "concurrentJobsLimit", - 1049765252, - "lastEndUpdateTime", - "2021-09-13T03:41:11Z", - "expiryTime", - "2021-04-17T06:24:34Z", - "lastStartTime", - "2021-06-06T15:54:39Z", - "lastUpdateResult", - "Succeed", - "isActiveDispatcher", - false, - "status", - "InitializeFailed")), - new SelfHostedIntegrationRuntimeNodeInner() - .withAdditionalProperties( - mapOf( - "nodeName", - "vxdvphxmw", - "lastStartUpdateTime", - "2021-04-13T20:26:39Z", - "lastConnectTime", - "2021-04-07T03:33:39Z", - "capabilities", - JacksonAdapter - .createDefaultSerializerAdapter() - .deserialize( - "{\"gunrukcyyaa\":\"y\"}", Object.class, SerializerEncoding.JSON), - "hostServiceUri", - "bogsfov", - "registerTime", - "2021-11-08T06:32:59Z", - "maxConcurrentJobs", - 201253191, - "lastStopTime", - "2021-01-21T13:21:41Z", - "version", - "dlrkvitzk", - "machineName", - "xcaicb", - "versionStatus", - "kubzq", - "concurrentJobsLimit", - 1165715853, - "lastEndUpdateTime", - "2021-08-26T10:49:52Z", - "expiryTime", - "2021-02-19T10:39:22Z", - "lastStartTime", - "2021-11-26T11:08:51Z", - "lastUpdateResult", - "Fail", - "isActiveDispatcher", - false, - "status", - "Initializing")), - new SelfHostedIntegrationRuntimeNodeInner() - .withAdditionalProperties( - mapOf( - "nodeName", - "tgxkxtcxb", - "lastStartUpdateTime", - "2021-06-22T12:30:30Z", - "lastConnectTime", - "2021-08-22T07:40:35Z", - "capabilities", - JacksonAdapter - .createDefaultSerializerAdapter() - .deserialize( - "{\"ocjasuame\":\"lgbvtpxowgoww\",\"esloblit\":\"jkfiszhexumfav\",\"trztogujg\":\"rrsjscosanjso\"}", - Object.class, - SerializerEncoding.JSON), - "hostServiceUri", - "pjfkr", - "registerTime", - "2021-08-04T05:42:18Z", - "maxConcurrentJobs", - 347395039, - "lastStopTime", - "2021-06-24T14:20:53Z", - "version", - "kvdantpzuiwa", - "machineName", - "beyqohvi", - "versionStatus", - "clxhwkzfggs", - "concurrentJobsLimit", - 1481970214, - "lastEndUpdateTime", - "2021-12-06T12:52:42Z", - "expiryTime", - "2021-06-25T02:31:13Z", - "lastStartTime", - "2021-07-21T07:45:13Z", - "lastUpdateResult", - "Fail", - "isActiveDispatcher", - true, - "status", - "InitializeFailed")), - new SelfHostedIntegrationRuntimeNodeInner() - .withAdditionalProperties( - mapOf( - "nodeName", - "ofenin", - "lastStartUpdateTime", - "2021-01-22T09:48:44Z", - "lastConnectTime", - "2021-11-27T10:02:18Z", - "capabilities", - JacksonAdapter - .createDefaultSerializerAdapter() - .deserialize( - "{\"fvijnu\":\"be\",\"lghkvoxdpor\":\"xfiiytqxewjsyute\",\"vbkutogecyqoy\":\"k\"}", - Object.class, - SerializerEncoding.JSON), - "hostServiceUri", - "xckdlxjpisrdn", - "registerTime", - "2021-11-15T19:44:59Z", - "maxConcurrentJobs", - 1043840923, - "lastStopTime", - "2021-04-19T19:41:17Z", - "version", - "a", - "machineName", - "unhy", - "versionStatus", - "ssbvqnpwdwdmu", - "concurrentJobsLimit", - 1160702084, - "lastEndUpdateTime", - "2021-01-24T12:50:02Z", - "expiryTime", - "2021-07-18T23:19:26Z", - "lastStartTime", - "2021-08-07T10:40:29Z", - "lastUpdateResult", - "Fail", - "isActiveDispatcher", - false, - "status", - "Initializing")))) - .withLinks( - Arrays - .asList( - new LinkedIntegrationRuntime(), - new LinkedIntegrationRuntime(), - new LinkedIntegrationRuntime())); - model = BinaryData.fromObject(model).toObject(SelfHostedIntegrationRuntimeStatusTypeProperties.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ServiceNowObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ServiceNowObjectDatasetTests.java deleted file mode 100644 index 93b42e7cdc8d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ServiceNowObjectDatasetTests.java +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.ServiceNowObjectDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ServiceNowObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ServiceNowObjectDataset model = - BinaryData - .fromString( - "{\"type\":\"ServiceNowObject\",\"typeProperties\":{\"tableName\":\"datazd\"},\"description\":\"bj\",\"structure\":\"datadsysx\",\"schema\":\"datauhvhnlse\",\"linkedServiceName\":{\"referenceName\":\"zcrrwnkkgdwqym\",\"parameters\":{\"eluvmsa\":\"dataqeaxd\",\"hvvzfznfgpbc\":\"datahviawgqrw\"}},\"parameters\":{\"djieask\":{\"type\":\"Object\",\"defaultValue\":\"datam\"}},\"annotations\":[\"dataclnfusrgnos\",\"datakhb\",\"datajphlyyuahvy\",\"dataikbvqzrurgbqaucp\"],\"folder\":{\"name\":\"jnohafwm\"},\"\":{\"tugpeametsdwxfa\":\"datajly\",\"fegs\":\"datatxc\",\"hooimazkmqfwbgd\":\"datavbghoucvkan\"}}") - .toObject(ServiceNowObjectDataset.class); - Assertions.assertEquals("bj", model.description()); - Assertions.assertEquals("zcrrwnkkgdwqym", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("djieask").type()); - Assertions.assertEquals("jnohafwm", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ServiceNowObjectDataset model = - new ServiceNowObjectDataset() - .withDescription("bj") - .withStructure("datadsysx") - .withSchema("datauhvhnlse") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("zcrrwnkkgdwqym") - .withParameters(mapOf("eluvmsa", "dataqeaxd", "hvvzfznfgpbc", "datahviawgqrw"))) - .withParameters( - mapOf( - "djieask", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datam"))) - .withAnnotations(Arrays.asList("dataclnfusrgnos", "datakhb", "datajphlyyuahvy", "dataikbvqzrurgbqaucp")) - .withFolder(new DatasetFolder().withName("jnohafwm")) - .withTableName("datazd"); - model = BinaryData.fromObject(model).toObject(ServiceNowObjectDataset.class); - Assertions.assertEquals("bj", model.description()); - Assertions.assertEquals("zcrrwnkkgdwqym", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("djieask").type()); - Assertions.assertEquals("jnohafwm", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ServiceNowSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ServiceNowSourceTests.java deleted file mode 100644 index 13b5b4156fed..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ServiceNowSourceTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ServiceNowSource; - -public final class ServiceNowSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ServiceNowSource model = - BinaryData - .fromString( - "{\"type\":\"ServiceNowSource\",\"query\":\"dataiwcgcwmshlpq\",\"queryTimeout\":\"dataxhdwjfxopzclka\",\"additionalColumns\":\"datauomga\",\"sourceRetryCount\":\"datac\",\"sourceRetryWait\":\"datajjfmzv\",\"maxConcurrentConnections\":\"databflyzc\",\"disableMetricsCollection\":\"datamlybsy\",\"\":{\"bt\":\"datanvtvbfpuml\"}}") - .toObject(ServiceNowSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ServiceNowSource model = - new ServiceNowSource() - .withSourceRetryCount("datac") - .withSourceRetryWait("datajjfmzv") - .withMaxConcurrentConnections("databflyzc") - .withDisableMetricsCollection("datamlybsy") - .withQueryTimeout("dataxhdwjfxopzclka") - .withAdditionalColumns("datauomga") - .withQuery("dataiwcgcwmshlpq"); - model = BinaryData.fromObject(model).toObject(ServiceNowSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SetVariableActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SetVariableActivityTests.java deleted file mode 100644 index d219939eb425..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SetVariableActivityTests.java +++ /dev/null @@ -1,92 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.SecureInputOutputPolicy; -import com.azure.resourcemanager.datafactory.models.SetVariableActivity; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SetVariableActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SetVariableActivity model = - BinaryData - .fromString( - "{\"type\":\"SetVariable\",\"typeProperties\":{\"variableName\":\"apucnkn\",\"value\":\"datacoxeoptb\",\"setSystemVariable\":false},\"policy\":{\"secureInput\":true,\"secureOutput\":false},\"name\":\"xeqwgaeiceo\",\"description\":\"cdc\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"ypztssqbcla\",\"dependencyConditions\":[\"Completed\",\"Failed\"],\"\":{\"qyinfdmqjqjk\":\"datavttkha\",\"xpiczaqgevsnn\":\"dataq\"}}],\"userProperties\":[{\"name\":\"ufezwgwmdv\",\"value\":\"dataskffqqaobbq\"},{\"name\":\"dkjusqhr\",\"value\":\"dataadffdr\"},{\"name\":\"ykhtsycct\",\"value\":\"datarvn\"}],\"\":{\"m\":\"dataembcat\",\"vzhacorqbm\":\"datadwhixjk\"}}") - .toObject(SetVariableActivity.class); - Assertions.assertEquals("xeqwgaeiceo", model.name()); - Assertions.assertEquals("cdc", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.onInactiveMarkAs()); - Assertions.assertEquals("ypztssqbcla", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("ufezwgwmdv", model.userProperties().get(0).name()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - Assertions.assertEquals("apucnkn", model.variableName()); - Assertions.assertEquals(false, model.setSystemVariable()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SetVariableActivity model = - new SetVariableActivity() - .withName("xeqwgaeiceo") - .withDescription("cdc") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("ypztssqbcla") - .withDependencyConditions( - Arrays.asList(DependencyCondition.COMPLETED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays - .asList( - new UserProperty().withName("ufezwgwmdv").withValue("dataskffqqaobbq"), - new UserProperty().withName("dkjusqhr").withValue("dataadffdr"), - new UserProperty().withName("ykhtsycct").withValue("datarvn"))) - .withPolicy(new SecureInputOutputPolicy().withSecureInput(true).withSecureOutput(false)) - .withVariableName("apucnkn") - .withValue("datacoxeoptb") - .withSetSystemVariable(false); - model = BinaryData.fromObject(model).toObject(SetVariableActivity.class); - Assertions.assertEquals("xeqwgaeiceo", model.name()); - Assertions.assertEquals("cdc", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.onInactiveMarkAs()); - Assertions.assertEquals("ypztssqbcla", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("ufezwgwmdv", model.userProperties().get(0).name()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - Assertions.assertEquals("apucnkn", model.variableName()); - Assertions.assertEquals(false, model.setSystemVariable()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SetVariableActivityTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SetVariableActivityTypePropertiesTests.java deleted file mode 100644 index e68843dddfec..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SetVariableActivityTypePropertiesTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.SetVariableActivityTypeProperties; -import org.junit.jupiter.api.Assertions; - -public final class SetVariableActivityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SetVariableActivityTypeProperties model = - BinaryData - .fromString("{\"variableName\":\"oa\",\"value\":\"dataaqfqgmwdo\",\"setSystemVariable\":true}") - .toObject(SetVariableActivityTypeProperties.class); - Assertions.assertEquals("oa", model.variableName()); - Assertions.assertEquals(true, model.setSystemVariable()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SetVariableActivityTypeProperties model = - new SetVariableActivityTypeProperties() - .withVariableName("oa") - .withValue("dataaqfqgmwdo") - .withSetSystemVariable(true); - model = BinaryData.fromObject(model).toObject(SetVariableActivityTypeProperties.class); - Assertions.assertEquals("oa", model.variableName()); - Assertions.assertEquals(true, model.setSystemVariable()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SftpLocationTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SftpLocationTests.java deleted file mode 100644 index 9b9d50effceb..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SftpLocationTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SftpLocation; - -public final class SftpLocationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SftpLocation model = - BinaryData - .fromString( - "{\"type\":\"SftpLocation\",\"folderPath\":\"dataw\",\"fileName\":\"datavxakglh\",\"\":{\"qiy\":\"datasrfga\",\"yqyxyjrcbqpbis\":\"datavxcgdhyhgoqgs\",\"yjz\":\"dataglqjoxtdahneaoov\",\"fsr\":\"dataivfwjlofze\"}}") - .toObject(SftpLocation.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SftpLocation model = new SftpLocation().withFolderPath("dataw").withFileName("datavxakglh"); - model = BinaryData.fromObject(model).toObject(SftpLocation.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SftpReadSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SftpReadSettingsTests.java deleted file mode 100644 index fe87056c1057..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SftpReadSettingsTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SftpReadSettings; - -public final class SftpReadSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SftpReadSettings model = - BinaryData - .fromString( - "{\"type\":\"SftpReadSettings\",\"recursive\":\"datajytvq\",\"wildcardFolderPath\":\"datarupsuyqvmxnavx\",\"wildcardFileName\":\"datayaptexzylqhewhcc\",\"enablePartitionDiscovery\":\"dataxczrmyniwggmi\",\"partitionRootPath\":\"datawolfmfazxwcaic\",\"fileListPath\":\"datajttzfswohddliikk\",\"deleteFilesAfterCompletion\":\"dataqpliegemtnbkev\",\"modifiedDatetimeStart\":\"datak\",\"modifiedDatetimeEnd\":\"dataiksncr\",\"disableChunking\":\"datatlrbzqtu\",\"maxConcurrentConnections\":\"dataajfay\",\"disableMetricsCollection\":\"dataohdlpcix\",\"\":{\"azylaya\":\"datanyhivhyujqxyfb\",\"gcn\":\"datardnovuduwwjo\",\"hwwhyejhwbdf\":\"datakmci\",\"zwkmrjfsqbc\":\"dataf\"}}") - .toObject(SftpReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SftpReadSettings model = - new SftpReadSettings() - .withMaxConcurrentConnections("dataajfay") - .withDisableMetricsCollection("dataohdlpcix") - .withRecursive("datajytvq") - .withWildcardFolderPath("datarupsuyqvmxnavx") - .withWildcardFileName("datayaptexzylqhewhcc") - .withEnablePartitionDiscovery("dataxczrmyniwggmi") - .withPartitionRootPath("datawolfmfazxwcaic") - .withFileListPath("datajttzfswohddliikk") - .withDeleteFilesAfterCompletion("dataqpliegemtnbkev") - .withModifiedDatetimeStart("datak") - .withModifiedDatetimeEnd("dataiksncr") - .withDisableChunking("datatlrbzqtu"); - model = BinaryData.fromObject(model).toObject(SftpReadSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SftpWriteSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SftpWriteSettingsTests.java deleted file mode 100644 index 952bab1aa331..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SftpWriteSettingsTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SftpWriteSettings; - -public final class SftpWriteSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SftpWriteSettings model = - BinaryData - .fromString( - "{\"type\":\"SftpWriteSettings\",\"operationTimeout\":\"dataxzzhldaxvir\",\"useTempFileRename\":\"datawacfqnw\",\"maxConcurrentConnections\":\"datab\",\"disableMetricsCollection\":\"datagi\",\"copyBehavior\":\"datazrpqe\",\"\":{\"a\":\"dataldvxcjjhjnpa\"}}") - .toObject(SftpWriteSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SftpWriteSettings model = - new SftpWriteSettings() - .withMaxConcurrentConnections("datab") - .withDisableMetricsCollection("datagi") - .withCopyBehavior("datazrpqe") - .withOperationTimeout("dataxzzhldaxvir") - .withUseTempFileRename("datawacfqnw"); - model = BinaryData.fromObject(model).toObject(SftpWriteSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SharePointOnlineListDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SharePointOnlineListDatasetTypePropertiesTests.java deleted file mode 100644 index 252d50b29d3c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SharePointOnlineListDatasetTypePropertiesTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.SharePointOnlineListDatasetTypeProperties; - -public final class SharePointOnlineListDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SharePointOnlineListDatasetTypeProperties model = - BinaryData.fromString("{\"listName\":\"datak\"}").toObject(SharePointOnlineListDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SharePointOnlineListDatasetTypeProperties model = - new SharePointOnlineListDatasetTypeProperties().withListName("datak"); - model = BinaryData.fromObject(model).toObject(SharePointOnlineListDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SharePointOnlineListResourceDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SharePointOnlineListResourceDatasetTests.java deleted file mode 100644 index bcb07e2a56b4..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SharePointOnlineListResourceDatasetTests.java +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.SharePointOnlineListResourceDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SharePointOnlineListResourceDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SharePointOnlineListResourceDataset model = - BinaryData - .fromString( - "{\"type\":\"SharePointOnlineListResource\",\"typeProperties\":{\"listName\":\"datazgi\"},\"description\":\"kjkngzfsulaybhoz\",\"structure\":\"databuf\",\"schema\":\"databvcntpoeeytrsl\",\"linkedServiceName\":{\"referenceName\":\"zmzuicsggsxznbp\",\"parameters\":{\"njl\":\"dataqbylb\",\"nitvkyahfoyfzo\":\"dataicqomanefwl\"}},\"parameters\":{\"jukfalwceechcayv\":{\"type\":\"Float\",\"defaultValue\":\"dataprev\"},\"iybfbyd\":{\"type\":\"Float\",\"defaultValue\":\"dataqpucnusnylfhicrj\"},\"brhxgiknrlugs\":{\"type\":\"String\",\"defaultValue\":\"datallbofsnqoc\"}},\"annotations\":[\"databro\",\"datajf\",\"dataamzkuxdgpksgotbu\",\"datavnjql\"],\"folder\":{\"name\":\"qvcugusqlxlx\"},\"\":{\"nlmpuyypaggpaih\":\"datahfwlnvqacbyfisb\",\"ymipvlxty\":\"dataaeyzwloqrmgd\"}}") - .toObject(SharePointOnlineListResourceDataset.class); - Assertions.assertEquals("kjkngzfsulaybhoz", model.description()); - Assertions.assertEquals("zmzuicsggsxznbp", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("jukfalwceechcayv").type()); - Assertions.assertEquals("qvcugusqlxlx", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SharePointOnlineListResourceDataset model = - new SharePointOnlineListResourceDataset() - .withDescription("kjkngzfsulaybhoz") - .withStructure("databuf") - .withSchema("databvcntpoeeytrsl") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("zmzuicsggsxznbp") - .withParameters(mapOf("njl", "dataqbylb", "nitvkyahfoyfzo", "dataicqomanefwl"))) - .withParameters( - mapOf( - "jukfalwceechcayv", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("dataprev"), - "iybfbyd", - new ParameterSpecification() - .withType(ParameterType.FLOAT) - .withDefaultValue("dataqpucnusnylfhicrj"), - "brhxgiknrlugs", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datallbofsnqoc"))) - .withAnnotations(Arrays.asList("databro", "datajf", "dataamzkuxdgpksgotbu", "datavnjql")) - .withFolder(new DatasetFolder().withName("qvcugusqlxlx")) - .withListName("datazgi"); - model = BinaryData.fromObject(model).toObject(SharePointOnlineListResourceDataset.class); - Assertions.assertEquals("kjkngzfsulaybhoz", model.description()); - Assertions.assertEquals("zmzuicsggsxznbp", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("jukfalwceechcayv").type()); - Assertions.assertEquals("qvcugusqlxlx", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SharePointOnlineListSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SharePointOnlineListSourceTests.java deleted file mode 100644 index 081dad2a798b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SharePointOnlineListSourceTests.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SharePointOnlineListSource; - -public final class SharePointOnlineListSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SharePointOnlineListSource model = - BinaryData - .fromString( - "{\"type\":\"SharePointOnlineListSource\",\"query\":\"dataejjbx\",\"httpRequestTimeout\":\"datat\",\"sourceRetryCount\":\"datajpwbxann\",\"sourceRetryWait\":\"dataxvthqjvoydegg\",\"maxConcurrentConnections\":\"datalbxnypkppnzalu\",\"disableMetricsCollection\":\"dataxwazf\",\"\":{\"fmbser\":\"dataxg\"}}") - .toObject(SharePointOnlineListSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SharePointOnlineListSource model = - new SharePointOnlineListSource() - .withSourceRetryCount("datajpwbxann") - .withSourceRetryWait("dataxvthqjvoydegg") - .withMaxConcurrentConnections("datalbxnypkppnzalu") - .withDisableMetricsCollection("dataxwazf") - .withQuery("dataejjbx") - .withHttpRequestTimeout("datat"); - model = BinaryData.fromObject(model).toObject(SharePointOnlineListSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ShopifyObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ShopifyObjectDatasetTests.java deleted file mode 100644 index e3f5245d4e39..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ShopifyObjectDatasetTests.java +++ /dev/null @@ -1,77 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.ShopifyObjectDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ShopifyObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ShopifyObjectDataset model = - BinaryData - .fromString( - "{\"type\":\"ShopifyObject\",\"typeProperties\":{\"tableName\":\"dataybfmpotal\"},\"description\":\"figrxxtrco\",\"structure\":\"dataqe\",\"schema\":\"dataldmxxbjh\",\"linkedServiceName\":{\"referenceName\":\"pvamsxrwqlwdf\",\"parameters\":{\"bboffgxtae\":\"datarplzeqzv\",\"fcyatbxdwr\":\"dataxt\",\"fbpeigkflvovriq\":\"datayvtkmxvztshnu\"}},\"parameters\":{\"txur\":{\"type\":\"Float\",\"defaultValue\":\"datakqcgzygtdjhtbar\"}},\"annotations\":[\"datayyumhzpst\",\"datacqacvttyh\",\"databilnszyjbuw\"],\"folder\":{\"name\":\"sydsci\"},\"\":{\"l\":\"dataayioxpqgqs\",\"akqsjymcfv\":\"datalefeombodvdgf\",\"nbpkfnxrlncmlzvv\":\"datazceuyuqktck\",\"cjqzrevfwcba\":\"datamesfhqs\"}}") - .toObject(ShopifyObjectDataset.class); - Assertions.assertEquals("figrxxtrco", model.description()); - Assertions.assertEquals("pvamsxrwqlwdf", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("txur").type()); - Assertions.assertEquals("sydsci", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ShopifyObjectDataset model = - new ShopifyObjectDataset() - .withDescription("figrxxtrco") - .withStructure("dataqe") - .withSchema("dataldmxxbjh") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("pvamsxrwqlwdf") - .withParameters( - mapOf( - "bboffgxtae", - "datarplzeqzv", - "fcyatbxdwr", - "dataxt", - "fbpeigkflvovriq", - "datayvtkmxvztshnu"))) - .withParameters( - mapOf( - "txur", - new ParameterSpecification() - .withType(ParameterType.FLOAT) - .withDefaultValue("datakqcgzygtdjhtbar"))) - .withAnnotations(Arrays.asList("datayyumhzpst", "datacqacvttyh", "databilnszyjbuw")) - .withFolder(new DatasetFolder().withName("sydsci")) - .withTableName("dataybfmpotal"); - model = BinaryData.fromObject(model).toObject(ShopifyObjectDataset.class); - Assertions.assertEquals("figrxxtrco", model.description()); - Assertions.assertEquals("pvamsxrwqlwdf", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("txur").type()); - Assertions.assertEquals("sydsci", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ShopifySourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ShopifySourceTests.java deleted file mode 100644 index 8c0df6fc55c7..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ShopifySourceTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ShopifySource; - -public final class ShopifySourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ShopifySource model = - BinaryData - .fromString( - "{\"type\":\"ShopifySource\",\"query\":\"dataumuuqwcka\",\"queryTimeout\":\"datae\",\"additionalColumns\":\"datafzjwjefcli\",\"sourceRetryCount\":\"datanawipdqozv\",\"sourceRetryWait\":\"dataq\",\"maxConcurrentConnections\":\"datapvhwmtd\",\"disableMetricsCollection\":\"datarjvqvuvipsnfeago\",\"\":{\"wijxkxlto\":\"datasascnt\",\"mbpgcbltthsuzx\":\"datadwiffagfeq\",\"k\":\"datalviflzs\",\"vpokvhobygffuzh\":\"datascobhhblj\"}}") - .toObject(ShopifySource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ShopifySource model = - new ShopifySource() - .withSourceRetryCount("datanawipdqozv") - .withSourceRetryWait("dataq") - .withMaxConcurrentConnections("datapvhwmtd") - .withDisableMetricsCollection("datarjvqvuvipsnfeago") - .withQueryTimeout("datae") - .withAdditionalColumns("datafzjwjefcli") - .withQuery("dataumuuqwcka"); - model = BinaryData.fromObject(model).toObject(ShopifySource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SkipErrorFileTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SkipErrorFileTests.java deleted file mode 100644 index de91c1ed911a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SkipErrorFileTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SkipErrorFile; - -public final class SkipErrorFileTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SkipErrorFile model = - BinaryData - .fromString("{\"fileMissing\":\"datapbfsxps\",\"dataInconsistency\":\"dataevz\"}") - .toObject(SkipErrorFile.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SkipErrorFile model = new SkipErrorFile().withFileMissing("datapbfsxps").withDataInconsistency("dataevz"); - model = BinaryData.fromObject(model).toObject(SkipErrorFile.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SnowflakeDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SnowflakeDatasetTests.java deleted file mode 100644 index 4914a499e163..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SnowflakeDatasetTests.java +++ /dev/null @@ -1,71 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.SnowflakeDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SnowflakeDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SnowflakeDataset model = - BinaryData - .fromString( - "{\"type\":\"SnowflakeTable\",\"typeProperties\":{\"schema\":\"dataqjfskjva\",\"table\":\"dataxrwkns\"},\"description\":\"hypbrzwiypz\",\"structure\":\"datahkecebtpgvutb\",\"schema\":\"datasfd\",\"linkedServiceName\":{\"referenceName\":\"wq\",\"parameters\":{\"dgrcifflxqqn\":\"dataowke\",\"ujticwmlf\":\"datagtcuyuwgnyjd\"}},\"parameters\":{\"ufpvvdgnmeiomn\":{\"type\":\"Float\",\"defaultValue\":\"datafmcoxbktuaj\"},\"i\":{\"type\":\"Float\",\"defaultValue\":\"dataaibcfbfyqz\"}},\"annotations\":[\"datafgvmrkmgifmy\",\"databuhdnhhcmtslptbd\",\"dataonhbl\"],\"folder\":{\"name\":\"cnuqfpzjz\"},\"\":{\"mruawqesqsqmiekx\":\"datacwtwtrchk\",\"qchf\":\"datap\",\"cu\":\"datatykkvjjlba\"}}") - .toObject(SnowflakeDataset.class); - Assertions.assertEquals("hypbrzwiypz", model.description()); - Assertions.assertEquals("wq", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("ufpvvdgnmeiomn").type()); - Assertions.assertEquals("cnuqfpzjz", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SnowflakeDataset model = - new SnowflakeDataset() - .withDescription("hypbrzwiypz") - .withStructure("datahkecebtpgvutb") - .withSchema("datasfd") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("wq") - .withParameters(mapOf("dgrcifflxqqn", "dataowke", "ujticwmlf", "datagtcuyuwgnyjd"))) - .withParameters( - mapOf( - "ufpvvdgnmeiomn", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datafmcoxbktuaj"), - "i", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("dataaibcfbfyqz"))) - .withAnnotations(Arrays.asList("datafgvmrkmgifmy", "databuhdnhhcmtslptbd", "dataonhbl")) - .withFolder(new DatasetFolder().withName("cnuqfpzjz")) - .withSchemaTypePropertiesSchema("dataqjfskjva") - .withTable("dataxrwkns"); - model = BinaryData.fromObject(model).toObject(SnowflakeDataset.class); - Assertions.assertEquals("hypbrzwiypz", model.description()); - Assertions.assertEquals("wq", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("ufpvvdgnmeiomn").type()); - Assertions.assertEquals("cnuqfpzjz", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SnowflakeDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SnowflakeDatasetTypePropertiesTests.java deleted file mode 100644 index b359dec4ac05..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SnowflakeDatasetTypePropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.SnowflakeDatasetTypeProperties; - -public final class SnowflakeDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SnowflakeDatasetTypeProperties model = - BinaryData - .fromString("{\"schema\":\"datayqokbgumuejxxpx\",\"table\":\"datazch\"}") - .toObject(SnowflakeDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SnowflakeDatasetTypeProperties model = - new SnowflakeDatasetTypeProperties().withSchema("datayqokbgumuejxxpx").withTable("datazch"); - model = BinaryData.fromObject(model).toObject(SnowflakeDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SnowflakeExportCopyCommandTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SnowflakeExportCopyCommandTests.java deleted file mode 100644 index 18716a11d802..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SnowflakeExportCopyCommandTests.java +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SnowflakeExportCopyCommand; -import java.util.HashMap; -import java.util.Map; - -public final class SnowflakeExportCopyCommandTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SnowflakeExportCopyCommand model = - BinaryData - .fromString( - "{\"type\":\"SnowflakeExportCopyCommand\",\"additionalCopyOptions\":{\"fqyqvh\":\"dataqsohehhtltwvijd\"},\"additionalFormatOptions\":{\"xqfghlos\":\"datayvhrenozl\",\"esa\":\"dataopmkpcmtsban\"},\"\":{\"eog\":\"dataewrljmlodstzvtfy\",\"xhcygfg\":\"databsyni\",\"aosttbwap\":\"datamdbazggr\"}}") - .toObject(SnowflakeExportCopyCommand.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SnowflakeExportCopyCommand model = - new SnowflakeExportCopyCommand() - .withAdditionalCopyOptions(mapOf("fqyqvh", "dataqsohehhtltwvijd")) - .withAdditionalFormatOptions(mapOf("xqfghlos", "datayvhrenozl", "esa", "dataopmkpcmtsban")); - model = BinaryData.fromObject(model).toObject(SnowflakeExportCopyCommand.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SnowflakeImportCopyCommandTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SnowflakeImportCopyCommandTests.java deleted file mode 100644 index ba684372aa97..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SnowflakeImportCopyCommandTests.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SnowflakeImportCopyCommand; -import java.util.HashMap; -import java.util.Map; - -public final class SnowflakeImportCopyCommandTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SnowflakeImportCopyCommand model = - BinaryData - .fromString( - "{\"type\":\"SnowflakeImportCopyCommand\",\"additionalCopyOptions\":{\"wpsxygrni\":\"datavllbbdfulvh\"},\"additionalFormatOptions\":{\"tyrj\":\"datapsebaz\",\"t\":\"dataoqgnsfzrrapi\",\"yymyy\":\"dataojqz\",\"dhz\":\"datahfdkjykvezsozt\"},\"\":{\"ljrnveqleoz\":\"datazldplamcc\"}}") - .toObject(SnowflakeImportCopyCommand.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SnowflakeImportCopyCommand model = - new SnowflakeImportCopyCommand() - .withAdditionalCopyOptions(mapOf("wpsxygrni", "datavllbbdfulvh")) - .withAdditionalFormatOptions( - mapOf( - "tyrj", - "datapsebaz", - "t", - "dataoqgnsfzrrapi", - "yymyy", - "dataojqz", - "dhz", - "datahfdkjykvezsozt")); - model = BinaryData.fromObject(model).toObject(SnowflakeImportCopyCommand.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SnowflakeSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SnowflakeSinkTests.java deleted file mode 100644 index 570b8e458bfc..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SnowflakeSinkTests.java +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SnowflakeImportCopyCommand; -import com.azure.resourcemanager.datafactory.models.SnowflakeSink; -import java.util.HashMap; -import java.util.Map; - -public final class SnowflakeSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SnowflakeSink model = - BinaryData - .fromString( - "{\"type\":\"SnowflakeSink\",\"preCopyScript\":\"datax\",\"importSettings\":{\"type\":\"SnowflakeImportCopyCommand\",\"additionalCopyOptions\":{\"chysnmyuvfml\":\"datanghtknr\",\"pxoelfobehr\":\"datanrapxwt\",\"lojjcz\":\"dataf\"},\"additionalFormatOptions\":{\"gnqa\":\"datafwkvirmbrd\",\"ybh\":\"datankms\",\"enazjvyiiezd\":\"datadzvuhw\"},\"\":{\"y\":\"dataxtqzdbrmyutzttr\",\"ztz\":\"dataivkkuzrvceg\",\"lro\":\"datacfuwmxezzum\"}},\"writeBatchSize\":\"dataflh\",\"writeBatchTimeout\":\"dataspxblyokjwsszye\",\"sinkRetryCount\":\"dataoukdhnf\",\"sinkRetryWait\":\"datadggjihnzvoehgw\",\"maxConcurrentConnections\":\"datagcnkghgczjx\",\"disableMetricsCollection\":\"dataxigdwpgmhqhvne\",\"\":{\"aqlymmhzvnetecfy\":\"dataxqwc\",\"zxqwvvfkqbgkss\":\"datasfkcwfpoaflgkz\"}}") - .toObject(SnowflakeSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SnowflakeSink model = - new SnowflakeSink() - .withWriteBatchSize("dataflh") - .withWriteBatchTimeout("dataspxblyokjwsszye") - .withSinkRetryCount("dataoukdhnf") - .withSinkRetryWait("datadggjihnzvoehgw") - .withMaxConcurrentConnections("datagcnkghgczjx") - .withDisableMetricsCollection("dataxigdwpgmhqhvne") - .withPreCopyScript("datax") - .withImportSettings( - new SnowflakeImportCopyCommand() - .withAdditionalCopyOptions( - mapOf("chysnmyuvfml", "datanghtknr", "pxoelfobehr", "datanrapxwt", "lojjcz", "dataf")) - .withAdditionalFormatOptions( - mapOf("gnqa", "datafwkvirmbrd", "ybh", "datankms", "enazjvyiiezd", "datadzvuhw"))); - model = BinaryData.fromObject(model).toObject(SnowflakeSink.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SnowflakeSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SnowflakeSourceTests.java deleted file mode 100644 index a037f9624ce1..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SnowflakeSourceTests.java +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SnowflakeExportCopyCommand; -import com.azure.resourcemanager.datafactory.models.SnowflakeSource; -import java.util.HashMap; -import java.util.Map; - -public final class SnowflakeSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SnowflakeSource model = - BinaryData - .fromString( - "{\"type\":\"SnowflakeSource\",\"query\":\"databmahuwxodddqzew\",\"exportSettings\":{\"type\":\"SnowflakeExportCopyCommand\",\"additionalCopyOptions\":{\"s\":\"datatgsocqkdclbzqnao\",\"cbhezau\":\"datamp\"},\"additionalFormatOptions\":{\"aywmcipu\":\"dataysxhfupvqjkqlaf\",\"aifgyxkgqwmp\":\"dataefhhdrm\",\"nkxhc\":\"datahxpcxqc\",\"bxllfwxdou\":\"datadhx\"},\"\":{\"ofhk\":\"datapaqjahjxgedtmz\",\"rfassiii\":\"dataywtacgukierd\",\"ayyxgcgb\":\"datacmrgahs\",\"vqopxun\":\"dataieqonsbukznxd\"}},\"sourceRetryCount\":\"dataxtkmknacnfzcy\",\"sourceRetryWait\":\"datahdjpagwszm\",\"maxConcurrentConnections\":\"datagzfeyexbg\",\"disableMetricsCollection\":\"datayo\",\"\":{\"edxpbpjw\":\"dataigvqgceacqj\",\"baodi\":\"datannvd\"}}") - .toObject(SnowflakeSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SnowflakeSource model = - new SnowflakeSource() - .withSourceRetryCount("dataxtkmknacnfzcy") - .withSourceRetryWait("datahdjpagwszm") - .withMaxConcurrentConnections("datagzfeyexbg") - .withDisableMetricsCollection("datayo") - .withQuery("databmahuwxodddqzew") - .withExportSettings( - new SnowflakeExportCopyCommand() - .withAdditionalCopyOptions(mapOf("s", "datatgsocqkdclbzqnao", "cbhezau", "datamp")) - .withAdditionalFormatOptions( - mapOf( - "aywmcipu", - "dataysxhfupvqjkqlaf", - "aifgyxkgqwmp", - "dataefhhdrm", - "nkxhc", - "datahxpcxqc", - "bxllfwxdou", - "datadhx"))); - model = BinaryData.fromObject(model).toObject(SnowflakeSource.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SparkConfigurationParametrizationReferenceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SparkConfigurationParametrizationReferenceTests.java deleted file mode 100644 index cff69ea925b4..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SparkConfigurationParametrizationReferenceTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SparkConfigurationParametrizationReference; -import com.azure.resourcemanager.datafactory.models.SparkConfigurationReferenceType; -import org.junit.jupiter.api.Assertions; - -public final class SparkConfigurationParametrizationReferenceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SparkConfigurationParametrizationReference model = - BinaryData - .fromString("{\"type\":\"SparkConfigurationReference\",\"referenceName\":\"datadd\"}") - .toObject(SparkConfigurationParametrizationReference.class); - Assertions.assertEquals(SparkConfigurationReferenceType.SPARK_CONFIGURATION_REFERENCE, model.type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SparkConfigurationParametrizationReference model = - new SparkConfigurationParametrizationReference() - .withType(SparkConfigurationReferenceType.SPARK_CONFIGURATION_REFERENCE) - .withReferenceName("datadd"); - model = BinaryData.fromObject(model).toObject(SparkConfigurationParametrizationReference.class); - Assertions.assertEquals(SparkConfigurationReferenceType.SPARK_CONFIGURATION_REFERENCE, model.type()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SparkDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SparkDatasetTypePropertiesTests.java deleted file mode 100644 index 711c47e4f933..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SparkDatasetTypePropertiesTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.SparkDatasetTypeProperties; - -public final class SparkDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SparkDatasetTypeProperties model = - BinaryData - .fromString( - "{\"tableName\":\"datau\",\"table\":\"dataodincfbaoboiahk\",\"schema\":\"datasvaxmksaxyeedvp\"}") - .toObject(SparkDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SparkDatasetTypeProperties model = - new SparkDatasetTypeProperties() - .withTableName("datau") - .withTable("dataodincfbaoboiahk") - .withSchema("datasvaxmksaxyeedvp"); - model = BinaryData.fromObject(model).toObject(SparkDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SparkObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SparkObjectDatasetTests.java deleted file mode 100644 index 39f44ab8bf80..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SparkObjectDatasetTests.java +++ /dev/null @@ -1,78 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.SparkObjectDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SparkObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SparkObjectDataset model = - BinaryData - .fromString( - "{\"type\":\"SparkObject\",\"typeProperties\":{\"tableName\":\"datandmtqvmkmzvag\",\"table\":\"datafblsxyfqgtodg\",\"schema\":\"datalefmizdcsr\"},\"description\":\"bnasgfyxhsxcg\",\"structure\":\"datam\",\"schema\":\"datapqcnxs\",\"linkedServiceName\":{\"referenceName\":\"ehojvmazu\",\"parameters\":{\"hpdnc\":\"datapiuu\",\"h\":\"datakqrgiv\"}},\"parameters\":{\"uyrgcaygumqeo\":{\"type\":\"Bool\",\"defaultValue\":\"datalyhbjfnmmibgwc\"},\"sawha\":{\"type\":\"Float\",\"defaultValue\":\"datareud\"},\"zmfk\":{\"type\":\"Float\",\"defaultValue\":\"datas\"},\"k\":{\"type\":\"Int\",\"defaultValue\":\"datag\"}},\"annotations\":[\"datakcge\",\"datanubr\"],\"folder\":{\"name\":\"fkxnwt\"},\"\":{\"iwap\":\"dataoeqcrjvcjskqsfn\",\"nh\":\"dataunhdikatzmtuv\",\"ibxl\":\"datatjk\",\"u\":\"datazlvkcm\"}}") - .toObject(SparkObjectDataset.class); - Assertions.assertEquals("bnasgfyxhsxcg", model.description()); - Assertions.assertEquals("ehojvmazu", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("uyrgcaygumqeo").type()); - Assertions.assertEquals("fkxnwt", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SparkObjectDataset model = - new SparkObjectDataset() - .withDescription("bnasgfyxhsxcg") - .withStructure("datam") - .withSchema("datapqcnxs") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("ehojvmazu") - .withParameters(mapOf("hpdnc", "datapiuu", "h", "datakqrgiv"))) - .withParameters( - mapOf( - "uyrgcaygumqeo", - new ParameterSpecification() - .withType(ParameterType.BOOL) - .withDefaultValue("datalyhbjfnmmibgwc"), - "sawha", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datareud"), - "zmfk", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datas"), - "k", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datag"))) - .withAnnotations(Arrays.asList("datakcge", "datanubr")) - .withFolder(new DatasetFolder().withName("fkxnwt")) - .withTableName("datandmtqvmkmzvag") - .withTable("datafblsxyfqgtodg") - .withSchemaTypePropertiesSchema("datalefmizdcsr"); - model = BinaryData.fromObject(model).toObject(SparkObjectDataset.class); - Assertions.assertEquals("bnasgfyxhsxcg", model.description()); - Assertions.assertEquals("ehojvmazu", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("uyrgcaygumqeo").type()); - Assertions.assertEquals("fkxnwt", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SparkSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SparkSourceTests.java deleted file mode 100644 index ab90a8e313f4..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SparkSourceTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SparkSource; - -public final class SparkSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SparkSource model = - BinaryData - .fromString( - "{\"type\":\"SparkSource\",\"query\":\"datasr\",\"queryTimeout\":\"datafagoov\",\"additionalColumns\":\"datazysvnvrfjgbxu\",\"sourceRetryCount\":\"datahgonovwu\",\"sourceRetryWait\":\"dataarowrm\",\"maxConcurrentConnections\":\"dataziubkyvcgkoufwk\",\"disableMetricsCollection\":\"datamytlxrwdjby\",\"\":{\"makxyhuetztorh\":\"datafmsxamncuhxz\",\"jqgzloorhxdu\":\"dataeuuysszhse\",\"akgd\":\"dataegljqpyxi\",\"qwgoomapc\":\"dataanmhvwgchgpbd\"}}") - .toObject(SparkSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SparkSource model = - new SparkSource() - .withSourceRetryCount("datahgonovwu") - .withSourceRetryWait("dataarowrm") - .withMaxConcurrentConnections("dataziubkyvcgkoufwk") - .withDisableMetricsCollection("datamytlxrwdjby") - .withQueryTimeout("datafagoov") - .withAdditionalColumns("datazysvnvrfjgbxu") - .withQuery("datasr"); - model = BinaryData.fromObject(model).toObject(SparkSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlDWSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlDWSourceTests.java deleted file mode 100644 index 5d18a1c20d58..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlDWSourceTests.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SqlDWSource; -import com.azure.resourcemanager.datafactory.models.SqlPartitionSettings; - -public final class SqlDWSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SqlDWSource model = - BinaryData - .fromString( - "{\"type\":\"SqlDWSource\",\"sqlReaderQuery\":\"datajunqwkjfmtuybdzr\",\"sqlReaderStoredProcedureName\":\"datackxennzowguirh\",\"storedProcedureParameters\":\"datajpw\",\"isolationLevel\":\"datamktpykoicpk\",\"partitionOption\":\"datamqfdtbaobjaof\",\"partitionSettings\":{\"partitionColumnName\":\"datahhrgvku\",\"partitionUpperBound\":\"datak\",\"partitionLowerBound\":\"dataielrwsjvdxenxjva\"},\"queryTimeout\":\"dataqgfvy\",\"additionalColumns\":\"datafyyknxuacfmb\",\"sourceRetryCount\":\"datalcimjm\",\"sourceRetryWait\":\"dataocryf\",\"maxConcurrentConnections\":\"datakt\",\"disableMetricsCollection\":\"datazuzvbqbroyrw\",\"\":{\"wc\":\"databfweozkbokffsu\",\"p\":\"datalzcavodcvfwkp\",\"txlkioviklxsgstu\":\"datasgfn\"}}") - .toObject(SqlDWSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SqlDWSource model = - new SqlDWSource() - .withSourceRetryCount("datalcimjm") - .withSourceRetryWait("dataocryf") - .withMaxConcurrentConnections("datakt") - .withDisableMetricsCollection("datazuzvbqbroyrw") - .withQueryTimeout("dataqgfvy") - .withAdditionalColumns("datafyyknxuacfmb") - .withSqlReaderQuery("datajunqwkjfmtuybdzr") - .withSqlReaderStoredProcedureName("datackxennzowguirh") - .withStoredProcedureParameters("datajpw") - .withIsolationLevel("datamktpykoicpk") - .withPartitionOption("datamqfdtbaobjaof") - .withPartitionSettings( - new SqlPartitionSettings() - .withPartitionColumnName("datahhrgvku") - .withPartitionUpperBound("datak") - .withPartitionLowerBound("dataielrwsjvdxenxjva")); - model = BinaryData.fromObject(model).toObject(SqlDWSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlMISourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlMISourceTests.java deleted file mode 100644 index 0adaf0a8e8b3..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlMISourceTests.java +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SqlMISource; -import com.azure.resourcemanager.datafactory.models.SqlPartitionSettings; - -public final class SqlMISourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SqlMISource model = - BinaryData - .fromString( - "{\"type\":\"SqlMISource\",\"sqlReaderQuery\":\"datarabbyfhz\",\"sqlReaderStoredProcedureName\":\"datajrxenpkxanlbrcy\",\"storedProcedureParameters\":\"datarc\",\"isolationLevel\":\"dataanbw\",\"produceAdditionalTypes\":\"datalqioq\",\"partitionOption\":\"dataxcg\",\"partitionSettings\":{\"partitionColumnName\":\"datal\",\"partitionUpperBound\":\"datalzgpghjakz\",\"partitionLowerBound\":\"dataxjnq\"},\"queryTimeout\":\"datajslwmjlpb\",\"additionalColumns\":\"datapfyup\",\"sourceRetryCount\":\"datajrwpoxuy\",\"sourceRetryWait\":\"datayoyjptkyfrkzg\",\"maxConcurrentConnections\":\"datawyqkkd\",\"disableMetricsCollection\":\"dataxdrgim\",\"\":{\"nl\":\"dataffybo\",\"hhgnu\":\"datavfundkhdmyxmsbt\",\"u\":\"datacbjxgjudgbwr\",\"mgsm\":\"datauzlfqhzihlzljqc\"}}") - .toObject(SqlMISource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SqlMISource model = - new SqlMISource() - .withSourceRetryCount("datajrwpoxuy") - .withSourceRetryWait("datayoyjptkyfrkzg") - .withMaxConcurrentConnections("datawyqkkd") - .withDisableMetricsCollection("dataxdrgim") - .withQueryTimeout("datajslwmjlpb") - .withAdditionalColumns("datapfyup") - .withSqlReaderQuery("datarabbyfhz") - .withSqlReaderStoredProcedureName("datajrxenpkxanlbrcy") - .withStoredProcedureParameters("datarc") - .withIsolationLevel("dataanbw") - .withProduceAdditionalTypes("datalqioq") - .withPartitionOption("dataxcg") - .withPartitionSettings( - new SqlPartitionSettings() - .withPartitionColumnName("datal") - .withPartitionUpperBound("datalzgpghjakz") - .withPartitionLowerBound("dataxjnq")); - model = BinaryData.fromObject(model).toObject(SqlMISource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlPartitionSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlPartitionSettingsTests.java deleted file mode 100644 index ffe0b76e9e6e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlPartitionSettingsTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SqlPartitionSettings; - -public final class SqlPartitionSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SqlPartitionSettings model = - BinaryData - .fromString( - "{\"partitionColumnName\":\"databsspexejhwpnjc\",\"partitionUpperBound\":\"datacj\",\"partitionLowerBound\":\"dataovuvmdzdqtir\"}") - .toObject(SqlPartitionSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SqlPartitionSettings model = - new SqlPartitionSettings() - .withPartitionColumnName("databsspexejhwpnjc") - .withPartitionUpperBound("datacj") - .withPartitionLowerBound("dataovuvmdzdqtir"); - model = BinaryData.fromObject(model).toObject(SqlPartitionSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlServerSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlServerSourceTests.java deleted file mode 100644 index af791ca14f01..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlServerSourceTests.java +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SqlPartitionSettings; -import com.azure.resourcemanager.datafactory.models.SqlServerSource; - -public final class SqlServerSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SqlServerSource model = - BinaryData - .fromString( - "{\"type\":\"SqlServerSource\",\"sqlReaderQuery\":\"dataajsrdecbowkhmaff\",\"sqlReaderStoredProcedureName\":\"datapdnnsujx\",\"storedProcedureParameters\":\"dataeqljzkhncaeyk\",\"isolationLevel\":\"dataatztnprnsh\",\"produceAdditionalTypes\":\"dataiahvlzgsqwiubgbl\",\"partitionOption\":\"datayisjscuw\",\"partitionSettings\":{\"partitionColumnName\":\"dataktzcuxuxaihhegu\",\"partitionUpperBound\":\"dataziryxrpj\",\"partitionLowerBound\":\"datatmxq\"},\"queryTimeout\":\"dataepoftsapfwusf\",\"additionalColumns\":\"datanjvzlynvje\",\"sourceRetryCount\":\"datavu\",\"sourceRetryWait\":\"datalwzn\",\"maxConcurrentConnections\":\"dataie\",\"disableMetricsCollection\":\"datafg\",\"\":{\"kpswwutduchcfn\":\"dataftgbupu\"}}") - .toObject(SqlServerSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SqlServerSource model = - new SqlServerSource() - .withSourceRetryCount("datavu") - .withSourceRetryWait("datalwzn") - .withMaxConcurrentConnections("dataie") - .withDisableMetricsCollection("datafg") - .withQueryTimeout("dataepoftsapfwusf") - .withAdditionalColumns("datanjvzlynvje") - .withSqlReaderQuery("dataajsrdecbowkhmaff") - .withSqlReaderStoredProcedureName("datapdnnsujx") - .withStoredProcedureParameters("dataeqljzkhncaeyk") - .withIsolationLevel("dataatztnprnsh") - .withProduceAdditionalTypes("dataiahvlzgsqwiubgbl") - .withPartitionOption("datayisjscuw") - .withPartitionSettings( - new SqlPartitionSettings() - .withPartitionColumnName("dataktzcuxuxaihhegu") - .withPartitionUpperBound("dataziryxrpj") - .withPartitionLowerBound("datatmxq")); - model = BinaryData.fromObject(model).toObject(SqlServerSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlServerStoredProcedureActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlServerStoredProcedureActivityTests.java deleted file mode 100644 index 9d5ec11bec5f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlServerStoredProcedureActivityTests.java +++ /dev/null @@ -1,135 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityPolicy; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.SqlServerStoredProcedureActivity; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SqlServerStoredProcedureActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SqlServerStoredProcedureActivity model = - BinaryData - .fromString( - "{\"type\":\"SqlServerStoredProcedure\",\"typeProperties\":{\"storedProcedureName\":\"datahvioccszdaxafu\",\"storedProcedureParameters\":\"datacnqfwob\"},\"linkedServiceName\":{\"referenceName\":\"luutmfimlo\",\"parameters\":{\"ljr\":\"datadxjirfye\",\"i\":\"datacgeorm\",\"twiocuha\":\"datawcqhaonmfnf\",\"eimwhot\":\"dataqielhtuk\"}},\"policy\":{\"timeout\":\"datadpqkfxdqm\",\"retry\":\"datarglqlv\",\"retryIntervalInSeconds\":634174133,\"secureInput\":false,\"secureOutput\":false,\"\":{\"hmzlet\":\"datamjuqq\",\"uefjbmowqwodm\":\"datackjuwkkvarff\"}},\"name\":\"rdtywajqwa\",\"description\":\"ia\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"rpcpg\",\"dependencyConditions\":[\"Completed\",\"Completed\",\"Skipped\",\"Skipped\"],\"\":{\"ab\":\"datarimletjvzptf\",\"zxupwrizkqnbiia\":\"datablhzfglpswg\",\"qhaskuio\":\"datadhsj\",\"hmrcxhn\":\"dataltchcuhvdr\"}},{\"activity\":\"jfdiijchtaaabt\",\"dependencyConditions\":[\"Skipped\",\"Skipped\",\"Failed\",\"Completed\"],\"\":{\"qhjpze\":\"datakvruomwyoktzffpc\",\"i\":\"dataqvkuvy\"}},{\"activity\":\"rfok\",\"dependencyConditions\":[\"Failed\",\"Succeeded\",\"Skipped\"],\"\":{\"gkugwtgfktwayh\":\"datatapkbdhyrm\",\"htkdcufzxxqdntvf\":\"datauhqvxeyliisatbs\"}}],\"userProperties\":[{\"name\":\"ernq\",\"value\":\"dataeiyyysvt\"},{\"name\":\"oxwugdzwo\",\"value\":\"datazfiz\"}],\"\":{\"ev\":\"datapddzzdw\",\"luwuns\":\"dataocnfzmuyykxlfl\",\"mgpomcre\":\"datayqpmnyvn\",\"lilzv\":\"datataz\"}}") - .toObject(SqlServerStoredProcedureActivity.class); - Assertions.assertEquals("rdtywajqwa", model.name()); - Assertions.assertEquals("ia", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.onInactiveMarkAs()); - Assertions.assertEquals("rpcpg", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("ernq", model.userProperties().get(0).name()); - Assertions.assertEquals("luutmfimlo", model.linkedServiceName().referenceName()); - Assertions.assertEquals(634174133, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SqlServerStoredProcedureActivity model = - new SqlServerStoredProcedureActivity() - .withName("rdtywajqwa") - .withDescription("ia") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("rpcpg") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.COMPLETED, - DependencyCondition.COMPLETED, - DependencyCondition.SKIPPED, - DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("jfdiijchtaaabt") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.SKIPPED, - DependencyCondition.SKIPPED, - DependencyCondition.FAILED, - DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("rfok") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.FAILED, - DependencyCondition.SUCCEEDED, - DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays - .asList( - new UserProperty().withName("ernq").withValue("dataeiyyysvt"), - new UserProperty().withName("oxwugdzwo").withValue("datazfiz"))) - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("luutmfimlo") - .withParameters( - mapOf( - "ljr", - "datadxjirfye", - "i", - "datacgeorm", - "twiocuha", - "datawcqhaonmfnf", - "eimwhot", - "dataqielhtuk"))) - .withPolicy( - new ActivityPolicy() - .withTimeout("datadpqkfxdqm") - .withRetry("datarglqlv") - .withRetryIntervalInSeconds(634174133) - .withSecureInput(false) - .withSecureOutput(false) - .withAdditionalProperties(mapOf())) - .withStoredProcedureName("datahvioccszdaxafu") - .withStoredProcedureParameters("datacnqfwob"); - model = BinaryData.fromObject(model).toObject(SqlServerStoredProcedureActivity.class); - Assertions.assertEquals("rdtywajqwa", model.name()); - Assertions.assertEquals("ia", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.onInactiveMarkAs()); - Assertions.assertEquals("rpcpg", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("ernq", model.userProperties().get(0).name()); - Assertions.assertEquals("luutmfimlo", model.linkedServiceName().referenceName()); - Assertions.assertEquals(634174133, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlServerStoredProcedureActivityTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlServerStoredProcedureActivityTypePropertiesTests.java deleted file mode 100644 index 4fb4890ea4e6..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlServerStoredProcedureActivityTypePropertiesTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.SqlServerStoredProcedureActivityTypeProperties; - -public final class SqlServerStoredProcedureActivityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SqlServerStoredProcedureActivityTypeProperties model = - BinaryData - .fromString("{\"storedProcedureName\":\"datai\",\"storedProcedureParameters\":\"datanobxcdx\"}") - .toObject(SqlServerStoredProcedureActivityTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SqlServerStoredProcedureActivityTypeProperties model = - new SqlServerStoredProcedureActivityTypeProperties() - .withStoredProcedureName("datai") - .withStoredProcedureParameters("datanobxcdx"); - model = BinaryData.fromObject(model).toObject(SqlServerStoredProcedureActivityTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlServerTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlServerTableDatasetTests.java deleted file mode 100644 index 2c93cec44a3f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlServerTableDatasetTests.java +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.SqlServerTableDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SqlServerTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SqlServerTableDataset model = - BinaryData - .fromString( - "{\"type\":\"SqlServerTable\",\"typeProperties\":{\"tableName\":\"datazcq\",\"schema\":\"datavnkyakck\",\"table\":\"datah\"},\"description\":\"nsddjkkd\",\"structure\":\"dataesu\",\"schema\":\"dataogfcnxcxgxum\",\"linkedServiceName\":{\"referenceName\":\"cqxmyvkxixy\",\"parameters\":{\"g\":\"dataifjc\"}},\"parameters\":{\"chmxczbyfkoc\":{\"type\":\"Bool\",\"defaultValue\":\"datauw\"}},\"annotations\":[\"datadctsnlwscrngt\"],\"folder\":{\"name\":\"rolwv\"},\"\":{\"cucti\":\"datasdksut\",\"ux\":\"dataavishbvjhxvpmqqu\",\"lexoweorocr\":\"dataphngr\",\"gbq\":\"dataicgym\"}}") - .toObject(SqlServerTableDataset.class); - Assertions.assertEquals("nsddjkkd", model.description()); - Assertions.assertEquals("cqxmyvkxixy", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("chmxczbyfkoc").type()); - Assertions.assertEquals("rolwv", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SqlServerTableDataset model = - new SqlServerTableDataset() - .withDescription("nsddjkkd") - .withStructure("dataesu") - .withSchema("dataogfcnxcxgxum") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("cqxmyvkxixy") - .withParameters(mapOf("g", "dataifjc"))) - .withParameters( - mapOf( - "chmxczbyfkoc", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datauw"))) - .withAnnotations(Arrays.asList("datadctsnlwscrngt")) - .withFolder(new DatasetFolder().withName("rolwv")) - .withTableName("datazcq") - .withSchemaTypePropertiesSchema("datavnkyakck") - .withTable("datah"); - model = BinaryData.fromObject(model).toObject(SqlServerTableDataset.class); - Assertions.assertEquals("nsddjkkd", model.description()); - Assertions.assertEquals("cqxmyvkxixy", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("chmxczbyfkoc").type()); - Assertions.assertEquals("rolwv", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlServerTableDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlServerTableDatasetTypePropertiesTests.java deleted file mode 100644 index a3c3fa254c13..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlServerTableDatasetTypePropertiesTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.SqlServerTableDatasetTypeProperties; - -public final class SqlServerTableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SqlServerTableDatasetTypeProperties model = - BinaryData - .fromString("{\"tableName\":\"datayrvhtv\",\"schema\":\"datavwmrgcnzhrplc\",\"table\":\"datambzquu\"}") - .toObject(SqlServerTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SqlServerTableDatasetTypeProperties model = - new SqlServerTableDatasetTypeProperties() - .withTableName("datayrvhtv") - .withSchema("datavwmrgcnzhrplc") - .withTable("datambzquu"); - model = BinaryData.fromObject(model).toObject(SqlServerTableDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlSourceTests.java deleted file mode 100644 index 8b3f00e241d6..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlSourceTests.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SqlPartitionSettings; -import com.azure.resourcemanager.datafactory.models.SqlSource; - -public final class SqlSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SqlSource model = - BinaryData - .fromString( - "{\"type\":\"SqlSource\",\"sqlReaderQuery\":\"datarsqzuknbtxtdm\",\"sqlReaderStoredProcedureName\":\"datadrrqqajhk\",\"storedProcedureParameters\":\"datatliuw\",\"isolationLevel\":\"datatwqjft\",\"partitionOption\":\"dataqdswfno\",\"partitionSettings\":{\"partitionColumnName\":\"datawhumngihfndsj\",\"partitionUpperBound\":\"datailfvrpbcgd\",\"partitionLowerBound\":\"datafxoffckejxomngu\"},\"queryTimeout\":\"dataxxynt\",\"additionalColumns\":\"datanksvximgn\",\"sourceRetryCount\":\"dataycxuyzrnn\",\"sourceRetryWait\":\"datamfhmwfoummdo\",\"maxConcurrentConnections\":\"dataditpyqalwlirap\",\"disableMetricsCollection\":\"datasidfhsfnoczefg\",\"\":{\"jntiqbxzeiudogqf\":\"datae\",\"cwzbe\":\"datarbroeomufaz\"}}") - .toObject(SqlSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SqlSource model = - new SqlSource() - .withSourceRetryCount("dataycxuyzrnn") - .withSourceRetryWait("datamfhmwfoummdo") - .withMaxConcurrentConnections("dataditpyqalwlirap") - .withDisableMetricsCollection("datasidfhsfnoczefg") - .withQueryTimeout("dataxxynt") - .withAdditionalColumns("datanksvximgn") - .withSqlReaderQuery("datarsqzuknbtxtdm") - .withSqlReaderStoredProcedureName("datadrrqqajhk") - .withStoredProcedureParameters("datatliuw") - .withIsolationLevel("datatwqjft") - .withPartitionOption("dataqdswfno") - .withPartitionSettings( - new SqlPartitionSettings() - .withPartitionColumnName("datawhumngihfndsj") - .withPartitionUpperBound("datailfvrpbcgd") - .withPartitionLowerBound("datafxoffckejxomngu")); - model = BinaryData.fromObject(model).toObject(SqlSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SquareObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SquareObjectDatasetTests.java deleted file mode 100644 index c5f87f7f6567..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SquareObjectDatasetTests.java +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.SquareObjectDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SquareObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SquareObjectDataset model = - BinaryData - .fromString( - "{\"type\":\"SquareObject\",\"typeProperties\":{\"tableName\":\"dataktdutydvvgkmo\"},\"description\":\"pcjes\",\"structure\":\"datavuztnsvmsh\",\"schema\":\"datagygfohrm\",\"linkedServiceName\":{\"referenceName\":\"hhlclpkr\",\"parameters\":{\"utivrfnztxtmrm\":\"databmjjv\",\"ii\":\"dataftj\",\"hfh\":\"dataohlgrjcx\"}},\"parameters\":{\"ylyumb\":{\"type\":\"Object\",\"defaultValue\":\"datawfogbv\"}},\"annotations\":[\"datarlnuom\",\"dataxhdkhmemx\"],\"folder\":{\"name\":\"apesnbyoullyfz\"},\"\":{\"g\":\"datarmxxjvwbat\",\"ommdzphxulx\":\"datakmwfwzlmpxfmdjs\"}}") - .toObject(SquareObjectDataset.class); - Assertions.assertEquals("pcjes", model.description()); - Assertions.assertEquals("hhlclpkr", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("ylyumb").type()); - Assertions.assertEquals("apesnbyoullyfz", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SquareObjectDataset model = - new SquareObjectDataset() - .withDescription("pcjes") - .withStructure("datavuztnsvmsh") - .withSchema("datagygfohrm") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("hhlclpkr") - .withParameters(mapOf("utivrfnztxtmrm", "databmjjv", "ii", "dataftj", "hfh", "dataohlgrjcx"))) - .withParameters( - mapOf( - "ylyumb", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datawfogbv"))) - .withAnnotations(Arrays.asList("datarlnuom", "dataxhdkhmemx")) - .withFolder(new DatasetFolder().withName("apesnbyoullyfz")) - .withTableName("dataktdutydvvgkmo"); - model = BinaryData.fromObject(model).toObject(SquareObjectDataset.class); - Assertions.assertEquals("pcjes", model.description()); - Assertions.assertEquals("hhlclpkr", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("ylyumb").type()); - Assertions.assertEquals("apesnbyoullyfz", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SquareSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SquareSourceTests.java deleted file mode 100644 index eefc55119d0d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SquareSourceTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SquareSource; - -public final class SquareSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SquareSource model = - BinaryData - .fromString( - "{\"type\":\"SquareSource\",\"query\":\"datan\",\"queryTimeout\":\"datanjfvjqvectoo\",\"additionalColumns\":\"datazttalsnmxvsrvk\",\"sourceRetryCount\":\"dataxl\",\"sourceRetryWait\":\"datatmdybxeh\",\"maxConcurrentConnections\":\"dataqogtnfla\",\"disableMetricsCollection\":\"datapghfvkqijmyqo\",\"\":{\"ocrr\":\"dataf\",\"dpyohnmru\":\"datarr\"}}") - .toObject(SquareSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SquareSource model = - new SquareSource() - .withSourceRetryCount("dataxl") - .withSourceRetryWait("datatmdybxeh") - .withMaxConcurrentConnections("dataqogtnfla") - .withDisableMetricsCollection("datapghfvkqijmyqo") - .withQueryTimeout("datanjfvjqvectoo") - .withAdditionalColumns("datazttalsnmxvsrvk") - .withQuery("datan"); - model = BinaryData.fromObject(model).toObject(SquareSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisChildPackageTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisChildPackageTests.java deleted file mode 100644 index 1c655b904eac..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisChildPackageTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SsisChildPackage; -import org.junit.jupiter.api.Assertions; - -public final class SsisChildPackageTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SsisChildPackage model = - BinaryData - .fromString( - "{\"packagePath\":\"dataozfaj\",\"packageName\":\"bswwbrllvva\",\"packageContent\":\"dataujcqz\",\"packageLastModifiedDate\":\"wlxz\"}") - .toObject(SsisChildPackage.class); - Assertions.assertEquals("bswwbrllvva", model.packageName()); - Assertions.assertEquals("wlxz", model.packageLastModifiedDate()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SsisChildPackage model = - new SsisChildPackage() - .withPackagePath("dataozfaj") - .withPackageName("bswwbrllvva") - .withPackageContent("dataujcqz") - .withPackageLastModifiedDate("wlxz"); - model = BinaryData.fromObject(model).toObject(SsisChildPackage.class); - Assertions.assertEquals("bswwbrllvva", model.packageName()); - Assertions.assertEquals("wlxz", model.packageLastModifiedDate()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisEnvironmentReferenceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisEnvironmentReferenceTests.java deleted file mode 100644 index 12f67590d2a0..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisEnvironmentReferenceTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SsisEnvironmentReference; -import org.junit.jupiter.api.Assertions; - -public final class SsisEnvironmentReferenceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SsisEnvironmentReference model = - BinaryData - .fromString( - "{\"id\":94915420419847556,\"environmentFolderName\":\"dpnkzimqax\",\"environmentName\":\"vmycvjpa\",\"referenceType\":\"dqvv\"}") - .toObject(SsisEnvironmentReference.class); - Assertions.assertEquals(94915420419847556L, model.id()); - Assertions.assertEquals("dpnkzimqax", model.environmentFolderName()); - Assertions.assertEquals("vmycvjpa", model.environmentName()); - Assertions.assertEquals("dqvv", model.referenceType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SsisEnvironmentReference model = - new SsisEnvironmentReference() - .withId(94915420419847556L) - .withEnvironmentFolderName("dpnkzimqax") - .withEnvironmentName("vmycvjpa") - .withReferenceType("dqvv"); - model = BinaryData.fromObject(model).toObject(SsisEnvironmentReference.class); - Assertions.assertEquals(94915420419847556L, model.id()); - Assertions.assertEquals("dpnkzimqax", model.environmentFolderName()); - Assertions.assertEquals("vmycvjpa", model.environmentName()); - Assertions.assertEquals("dqvv", model.referenceType()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisEnvironmentTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisEnvironmentTests.java deleted file mode 100644 index 3f72527d4964..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisEnvironmentTests.java +++ /dev/null @@ -1,90 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SsisEnvironment; -import com.azure.resourcemanager.datafactory.models.SsisVariable; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class SsisEnvironmentTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SsisEnvironment model = - BinaryData - .fromString( - "{\"type\":\"Environment\",\"folderId\":1678450059385779698,\"variables\":[{\"id\":2837772907871210553,\"name\":\"plcsinbulolx\",\"description\":\"cynnmvaizv\",\"dataType\":\"qqpwcids\",\"sensitive\":true,\"value\":\"yzm\",\"sensitiveValue\":\"fdlgpryy\"},{\"id\":1556916616326570809,\"name\":\"lbcyuwahwzagvaid\",\"description\":\"ephnhnuhgyfzkh\",\"dataType\":\"mrwpe\",\"sensitive\":true,\"value\":\"jbpe\",\"sensitiveValue\":\"jpairp\"},{\"id\":1939370380088796252,\"name\":\"iwsywp\",\"description\":\"tvqopugrse\",\"dataType\":\"iuztqefzy\",\"sensitive\":true,\"value\":\"dmcbc\",\"sensitiveValue\":\"didhuepikwc\"},{\"id\":6306841199848283429,\"name\":\"ukqmkiynbfvk\",\"description\":\"mq\",\"dataType\":\"mytcctirgyut\",\"sensitive\":false,\"value\":\"hdmcgvjbrybfa\",\"sensitiveValue\":\"hkoqcudnwmoyhdpj\"}],\"id\":2601554573080808461,\"name\":\"cbjfpxoygnm\",\"description\":\"iqw\"}") - .toObject(SsisEnvironment.class); - Assertions.assertEquals(2601554573080808461L, model.id()); - Assertions.assertEquals("cbjfpxoygnm", model.name()); - Assertions.assertEquals("iqw", model.description()); - Assertions.assertEquals(1678450059385779698L, model.folderId()); - Assertions.assertEquals(2837772907871210553L, model.variables().get(0).id()); - Assertions.assertEquals("plcsinbulolx", model.variables().get(0).name()); - Assertions.assertEquals("cynnmvaizv", model.variables().get(0).description()); - Assertions.assertEquals("qqpwcids", model.variables().get(0).dataType()); - Assertions.assertEquals(true, model.variables().get(0).sensitive()); - Assertions.assertEquals("yzm", model.variables().get(0).value()); - Assertions.assertEquals("fdlgpryy", model.variables().get(0).sensitiveValue()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SsisEnvironment model = - new SsisEnvironment() - .withId(2601554573080808461L) - .withName("cbjfpxoygnm") - .withDescription("iqw") - .withFolderId(1678450059385779698L) - .withVariables( - Arrays - .asList( - new SsisVariable() - .withId(2837772907871210553L) - .withName("plcsinbulolx") - .withDescription("cynnmvaizv") - .withDataType("qqpwcids") - .withSensitive(true) - .withValue("yzm") - .withSensitiveValue("fdlgpryy"), - new SsisVariable() - .withId(1556916616326570809L) - .withName("lbcyuwahwzagvaid") - .withDescription("ephnhnuhgyfzkh") - .withDataType("mrwpe") - .withSensitive(true) - .withValue("jbpe") - .withSensitiveValue("jpairp"), - new SsisVariable() - .withId(1939370380088796252L) - .withName("iwsywp") - .withDescription("tvqopugrse") - .withDataType("iuztqefzy") - .withSensitive(true) - .withValue("dmcbc") - .withSensitiveValue("didhuepikwc"), - new SsisVariable() - .withId(6306841199848283429L) - .withName("ukqmkiynbfvk") - .withDescription("mq") - .withDataType("mytcctirgyut") - .withSensitive(false) - .withValue("hdmcgvjbrybfa") - .withSensitiveValue("hkoqcudnwmoyhdpj"))); - model = BinaryData.fromObject(model).toObject(SsisEnvironment.class); - Assertions.assertEquals(2601554573080808461L, model.id()); - Assertions.assertEquals("cbjfpxoygnm", model.name()); - Assertions.assertEquals("iqw", model.description()); - Assertions.assertEquals(1678450059385779698L, model.folderId()); - Assertions.assertEquals(2837772907871210553L, model.variables().get(0).id()); - Assertions.assertEquals("plcsinbulolx", model.variables().get(0).name()); - Assertions.assertEquals("cynnmvaizv", model.variables().get(0).description()); - Assertions.assertEquals("qqpwcids", model.variables().get(0).dataType()); - Assertions.assertEquals(true, model.variables().get(0).sensitive()); - Assertions.assertEquals("yzm", model.variables().get(0).value()); - Assertions.assertEquals("fdlgpryy", model.variables().get(0).sensitiveValue()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisExecutionParameterTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisExecutionParameterTests.java deleted file mode 100644 index 0b805b3b1f78..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisExecutionParameterTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SsisExecutionParameter; - -public final class SsisExecutionParameterTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SsisExecutionParameter model = - BinaryData.fromString("{\"value\":\"datadqvdivzjyxsjbl\"}").toObject(SsisExecutionParameter.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SsisExecutionParameter model = new SsisExecutionParameter().withValue("datadqvdivzjyxsjbl"); - model = BinaryData.fromObject(model).toObject(SsisExecutionParameter.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisFolderTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisFolderTests.java deleted file mode 100644 index 09abf09968f4..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisFolderTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SsisFolder; -import org.junit.jupiter.api.Assertions; - -public final class SsisFolderTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SsisFolder model = - BinaryData - .fromString( - "{\"type\":\"Folder\",\"id\":273426490491628940,\"name\":\"qpzmodwhqu\",\"description\":\"ochtuxapewzwqlb\"}") - .toObject(SsisFolder.class); - Assertions.assertEquals(273426490491628940L, model.id()); - Assertions.assertEquals("qpzmodwhqu", model.name()); - Assertions.assertEquals("ochtuxapewzwqlb", model.description()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SsisFolder model = - new SsisFolder().withId(273426490491628940L).withName("qpzmodwhqu").withDescription("ochtuxapewzwqlb"); - model = BinaryData.fromObject(model).toObject(SsisFolder.class); - Assertions.assertEquals(273426490491628940L, model.id()); - Assertions.assertEquals("qpzmodwhqu", model.name()); - Assertions.assertEquals("ochtuxapewzwqlb", model.description()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisObjectMetadataListResponseInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisObjectMetadataListResponseInnerTests.java deleted file mode 100644 index 57b3aaf0f50b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisObjectMetadataListResponseInnerTests.java +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.SsisObjectMetadataListResponseInner; -import com.azure.resourcemanager.datafactory.models.SsisObjectMetadata; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class SsisObjectMetadataListResponseInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SsisObjectMetadataListResponseInner model = - BinaryData - .fromString( - "{\"value\":[{\"type\":\"SsisObjectMetadata\",\"id\":1248291372184779781,\"name\":\"zvlvqhjkbegib\",\"description\":\"mxiebw\"},{\"type\":\"SsisObjectMetadata\",\"id\":9167362709610232735,\"name\":\"yqcgwrtzjuzgwy\",\"description\":\"htxongmtsavjc\"},{\"type\":\"SsisObjectMetadata\",\"id\":7752304449285326809,\"name\":\"p\",\"description\":\"knftguvriuh\"}],\"nextLink\":\"wmdyvxqtay\"}") - .toObject(SsisObjectMetadataListResponseInner.class); - Assertions.assertEquals(1248291372184779781L, model.value().get(0).id()); - Assertions.assertEquals("zvlvqhjkbegib", model.value().get(0).name()); - Assertions.assertEquals("mxiebw", model.value().get(0).description()); - Assertions.assertEquals("wmdyvxqtay", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SsisObjectMetadataListResponseInner model = - new SsisObjectMetadataListResponseInner() - .withValue( - Arrays - .asList( - new SsisObjectMetadata() - .withId(1248291372184779781L) - .withName("zvlvqhjkbegib") - .withDescription("mxiebw"), - new SsisObjectMetadata() - .withId(9167362709610232735L) - .withName("yqcgwrtzjuzgwy") - .withDescription("htxongmtsavjc"), - new SsisObjectMetadata() - .withId(7752304449285326809L) - .withName("p") - .withDescription("knftguvriuh"))) - .withNextLink("wmdyvxqtay"); - model = BinaryData.fromObject(model).toObject(SsisObjectMetadataListResponseInner.class); - Assertions.assertEquals(1248291372184779781L, model.value().get(0).id()); - Assertions.assertEquals("zvlvqhjkbegib", model.value().get(0).name()); - Assertions.assertEquals("mxiebw", model.value().get(0).description()); - Assertions.assertEquals("wmdyvxqtay", model.nextLink()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisObjectMetadataStatusResponseInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisObjectMetadataStatusResponseInnerTests.java deleted file mode 100644 index 452aa52341c4..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisObjectMetadataStatusResponseInnerTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.SsisObjectMetadataStatusResponseInner; -import org.junit.jupiter.api.Assertions; - -public final class SsisObjectMetadataStatusResponseInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SsisObjectMetadataStatusResponseInner model = - BinaryData - .fromString( - "{\"status\":\"tdhxujznbmpowuwp\",\"name\":\"qlveualupjmkh\",\"properties\":\"obbc\",\"error\":\"s\"}") - .toObject(SsisObjectMetadataStatusResponseInner.class); - Assertions.assertEquals("tdhxujznbmpowuwp", model.status()); - Assertions.assertEquals("qlveualupjmkh", model.name()); - Assertions.assertEquals("obbc", model.properties()); - Assertions.assertEquals("s", model.error()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SsisObjectMetadataStatusResponseInner model = - new SsisObjectMetadataStatusResponseInner() - .withStatus("tdhxujznbmpowuwp") - .withName("qlveualupjmkh") - .withProperties("obbc") - .withError("s"); - model = BinaryData.fromObject(model).toObject(SsisObjectMetadataStatusResponseInner.class); - Assertions.assertEquals("tdhxujznbmpowuwp", model.status()); - Assertions.assertEquals("qlveualupjmkh", model.name()); - Assertions.assertEquals("obbc", model.properties()); - Assertions.assertEquals("s", model.error()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisObjectMetadataTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisObjectMetadataTests.java deleted file mode 100644 index 8fbbbb8e6867..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisObjectMetadataTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SsisObjectMetadata; -import org.junit.jupiter.api.Assertions; - -public final class SsisObjectMetadataTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SsisObjectMetadata model = - BinaryData - .fromString( - "{\"type\":\"SsisObjectMetadata\",\"id\":1536045625796396557,\"name\":\"oyq\",\"description\":\"xrmcqibycnojvk\"}") - .toObject(SsisObjectMetadata.class); - Assertions.assertEquals(1536045625796396557L, model.id()); - Assertions.assertEquals("oyq", model.name()); - Assertions.assertEquals("xrmcqibycnojvk", model.description()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SsisObjectMetadata model = - new SsisObjectMetadata().withId(1536045625796396557L).withName("oyq").withDescription("xrmcqibycnojvk"); - model = BinaryData.fromObject(model).toObject(SsisObjectMetadata.class); - Assertions.assertEquals(1536045625796396557L, model.id()); - Assertions.assertEquals("oyq", model.name()); - Assertions.assertEquals("xrmcqibycnojvk", model.description()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisPackageTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisPackageTests.java deleted file mode 100644 index 9211a966554d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisPackageTests.java +++ /dev/null @@ -1,87 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SsisPackage; -import com.azure.resourcemanager.datafactory.models.SsisParameter; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class SsisPackageTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SsisPackage model = - BinaryData - .fromString( - "{\"type\":\"Package\",\"folderId\":8840596202186352259,\"projectVersion\":8413150626448269128,\"projectId\":3815968071675012064,\"parameters\":[{\"id\":7252305858739380777,\"name\":\"wqieyxjkctyq\",\"description\":\"tampq\",\"dataType\":\"eftmub\",\"required\":true,\"sensitive\":true,\"designDefaultValue\":\"eql\",\"defaultValue\":\"tysyizeqlctpqn\",\"sensitiveDefaultValue\":\"k\",\"valueType\":\"gyzwfyfdbvoo\",\"valueSet\":false,\"variable\":\"kd\"}],\"id\":2515540147851548589,\"name\":\"gjjsmvsiyqml\",\"description\":\"jwsmnwbmacvemmr\"}") - .toObject(SsisPackage.class); - Assertions.assertEquals(2515540147851548589L, model.id()); - Assertions.assertEquals("gjjsmvsiyqml", model.name()); - Assertions.assertEquals("jwsmnwbmacvemmr", model.description()); - Assertions.assertEquals(8840596202186352259L, model.folderId()); - Assertions.assertEquals(8413150626448269128L, model.projectVersion()); - Assertions.assertEquals(3815968071675012064L, model.projectId()); - Assertions.assertEquals(7252305858739380777L, model.parameters().get(0).id()); - Assertions.assertEquals("wqieyxjkctyq", model.parameters().get(0).name()); - Assertions.assertEquals("tampq", model.parameters().get(0).description()); - Assertions.assertEquals("eftmub", model.parameters().get(0).dataType()); - Assertions.assertEquals(true, model.parameters().get(0).required()); - Assertions.assertEquals(true, model.parameters().get(0).sensitive()); - Assertions.assertEquals("eql", model.parameters().get(0).designDefaultValue()); - Assertions.assertEquals("tysyizeqlctpqn", model.parameters().get(0).defaultValue()); - Assertions.assertEquals("k", model.parameters().get(0).sensitiveDefaultValue()); - Assertions.assertEquals("gyzwfyfdbvoo", model.parameters().get(0).valueType()); - Assertions.assertEquals(false, model.parameters().get(0).valueSet()); - Assertions.assertEquals("kd", model.parameters().get(0).variable()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SsisPackage model = - new SsisPackage() - .withId(2515540147851548589L) - .withName("gjjsmvsiyqml") - .withDescription("jwsmnwbmacvemmr") - .withFolderId(8840596202186352259L) - .withProjectVersion(8413150626448269128L) - .withProjectId(3815968071675012064L) - .withParameters( - Arrays - .asList( - new SsisParameter() - .withId(7252305858739380777L) - .withName("wqieyxjkctyq") - .withDescription("tampq") - .withDataType("eftmub") - .withRequired(true) - .withSensitive(true) - .withDesignDefaultValue("eql") - .withDefaultValue("tysyizeqlctpqn") - .withSensitiveDefaultValue("k") - .withValueType("gyzwfyfdbvoo") - .withValueSet(false) - .withVariable("kd"))); - model = BinaryData.fromObject(model).toObject(SsisPackage.class); - Assertions.assertEquals(2515540147851548589L, model.id()); - Assertions.assertEquals("gjjsmvsiyqml", model.name()); - Assertions.assertEquals("jwsmnwbmacvemmr", model.description()); - Assertions.assertEquals(8840596202186352259L, model.folderId()); - Assertions.assertEquals(8413150626448269128L, model.projectVersion()); - Assertions.assertEquals(3815968071675012064L, model.projectId()); - Assertions.assertEquals(7252305858739380777L, model.parameters().get(0).id()); - Assertions.assertEquals("wqieyxjkctyq", model.parameters().get(0).name()); - Assertions.assertEquals("tampq", model.parameters().get(0).description()); - Assertions.assertEquals("eftmub", model.parameters().get(0).dataType()); - Assertions.assertEquals(true, model.parameters().get(0).required()); - Assertions.assertEquals(true, model.parameters().get(0).sensitive()); - Assertions.assertEquals("eql", model.parameters().get(0).designDefaultValue()); - Assertions.assertEquals("tysyizeqlctpqn", model.parameters().get(0).defaultValue()); - Assertions.assertEquals("k", model.parameters().get(0).sensitiveDefaultValue()); - Assertions.assertEquals("gyzwfyfdbvoo", model.parameters().get(0).valueType()); - Assertions.assertEquals(false, model.parameters().get(0).valueSet()); - Assertions.assertEquals("kd", model.parameters().get(0).variable()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisParameterTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisParameterTests.java deleted file mode 100644 index 2c912822df8c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisParameterTests.java +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SsisParameter; -import org.junit.jupiter.api.Assertions; - -public final class SsisParameterTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SsisParameter model = - BinaryData - .fromString( - "{\"id\":3549610144167513440,\"name\":\"vnfjng\",\"description\":\"mrdvhbgtuhwhx\",\"dataType\":\"we\",\"required\":false,\"sensitive\":false,\"designDefaultValue\":\"nuzgzrxxduseb\",\"defaultValue\":\"fetxpuntermasuiq\",\"sensitiveDefaultValue\":\"n\",\"valueType\":\"tubqwxv\",\"valueSet\":false,\"variable\":\"iyzjlgrwjbsyc\"}") - .toObject(SsisParameter.class); - Assertions.assertEquals(3549610144167513440L, model.id()); - Assertions.assertEquals("vnfjng", model.name()); - Assertions.assertEquals("mrdvhbgtuhwhx", model.description()); - Assertions.assertEquals("we", model.dataType()); - Assertions.assertEquals(false, model.required()); - Assertions.assertEquals(false, model.sensitive()); - Assertions.assertEquals("nuzgzrxxduseb", model.designDefaultValue()); - Assertions.assertEquals("fetxpuntermasuiq", model.defaultValue()); - Assertions.assertEquals("n", model.sensitiveDefaultValue()); - Assertions.assertEquals("tubqwxv", model.valueType()); - Assertions.assertEquals(false, model.valueSet()); - Assertions.assertEquals("iyzjlgrwjbsyc", model.variable()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SsisParameter model = - new SsisParameter() - .withId(3549610144167513440L) - .withName("vnfjng") - .withDescription("mrdvhbgtuhwhx") - .withDataType("we") - .withRequired(false) - .withSensitive(false) - .withDesignDefaultValue("nuzgzrxxduseb") - .withDefaultValue("fetxpuntermasuiq") - .withSensitiveDefaultValue("n") - .withValueType("tubqwxv") - .withValueSet(false) - .withVariable("iyzjlgrwjbsyc"); - model = BinaryData.fromObject(model).toObject(SsisParameter.class); - Assertions.assertEquals(3549610144167513440L, model.id()); - Assertions.assertEquals("vnfjng", model.name()); - Assertions.assertEquals("mrdvhbgtuhwhx", model.description()); - Assertions.assertEquals("we", model.dataType()); - Assertions.assertEquals(false, model.required()); - Assertions.assertEquals(false, model.sensitive()); - Assertions.assertEquals("nuzgzrxxduseb", model.designDefaultValue()); - Assertions.assertEquals("fetxpuntermasuiq", model.defaultValue()); - Assertions.assertEquals("n", model.sensitiveDefaultValue()); - Assertions.assertEquals("tubqwxv", model.valueType()); - Assertions.assertEquals(false, model.valueSet()); - Assertions.assertEquals("iyzjlgrwjbsyc", model.variable()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisProjectTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisProjectTests.java deleted file mode 100644 index f7bb279565e4..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisProjectTests.java +++ /dev/null @@ -1,114 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SsisEnvironmentReference; -import com.azure.resourcemanager.datafactory.models.SsisParameter; -import com.azure.resourcemanager.datafactory.models.SsisProject; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class SsisProjectTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SsisProject model = - BinaryData - .fromString( - "{\"type\":\"Project\",\"folderId\":8822312186246834389,\"version\":4558617045398857403,\"environmentRefs\":[{\"id\":7306014430374048733,\"environmentFolderName\":\"tttsmczrodd\",\"environmentName\":\"qimodnbjmj\",\"referenceType\":\"hbuc\"}],\"parameters\":[{\"id\":2056373800985950587,\"name\":\"jacktav\",\"description\":\"bgodjfyplavbvs\",\"dataType\":\"edsoqwe\",\"required\":false,\"sensitive\":true,\"designDefaultValue\":\"oteik\",\"defaultValue\":\"jqdfadgywyla\",\"sensitiveDefaultValue\":\"tqj\",\"valueType\":\"hyst\",\"valueSet\":true,\"variable\":\"pbtkogfggyl\"},{\"id\":3781049177007619900,\"name\":\"vwsgseqjteoax\",\"description\":\"mg\",\"dataType\":\"wrjybpv\",\"required\":true,\"sensitive\":true,\"designDefaultValue\":\"arirdzdg\",\"defaultValue\":\"oflzuk\",\"sensitiveDefaultValue\":\"ougxpyp\",\"valueType\":\"zqsxblmnxrxkul\",\"valueSet\":false,\"variable\":\"vi\"}],\"id\":9029580315490008772,\"name\":\"xxyfo\",\"description\":\"godywxjikfrx\"}") - .toObject(SsisProject.class); - Assertions.assertEquals(9029580315490008772L, model.id()); - Assertions.assertEquals("xxyfo", model.name()); - Assertions.assertEquals("godywxjikfrx", model.description()); - Assertions.assertEquals(8822312186246834389L, model.folderId()); - Assertions.assertEquals(4558617045398857403L, model.version()); - Assertions.assertEquals(7306014430374048733L, model.environmentRefs().get(0).id()); - Assertions.assertEquals("tttsmczrodd", model.environmentRefs().get(0).environmentFolderName()); - Assertions.assertEquals("qimodnbjmj", model.environmentRefs().get(0).environmentName()); - Assertions.assertEquals("hbuc", model.environmentRefs().get(0).referenceType()); - Assertions.assertEquals(2056373800985950587L, model.parameters().get(0).id()); - Assertions.assertEquals("jacktav", model.parameters().get(0).name()); - Assertions.assertEquals("bgodjfyplavbvs", model.parameters().get(0).description()); - Assertions.assertEquals("edsoqwe", model.parameters().get(0).dataType()); - Assertions.assertEquals(false, model.parameters().get(0).required()); - Assertions.assertEquals(true, model.parameters().get(0).sensitive()); - Assertions.assertEquals("oteik", model.parameters().get(0).designDefaultValue()); - Assertions.assertEquals("jqdfadgywyla", model.parameters().get(0).defaultValue()); - Assertions.assertEquals("tqj", model.parameters().get(0).sensitiveDefaultValue()); - Assertions.assertEquals("hyst", model.parameters().get(0).valueType()); - Assertions.assertEquals(true, model.parameters().get(0).valueSet()); - Assertions.assertEquals("pbtkogfggyl", model.parameters().get(0).variable()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SsisProject model = - new SsisProject() - .withId(9029580315490008772L) - .withName("xxyfo") - .withDescription("godywxjikfrx") - .withFolderId(8822312186246834389L) - .withVersion(4558617045398857403L) - .withEnvironmentRefs( - Arrays - .asList( - new SsisEnvironmentReference() - .withId(7306014430374048733L) - .withEnvironmentFolderName("tttsmczrodd") - .withEnvironmentName("qimodnbjmj") - .withReferenceType("hbuc"))) - .withParameters( - Arrays - .asList( - new SsisParameter() - .withId(2056373800985950587L) - .withName("jacktav") - .withDescription("bgodjfyplavbvs") - .withDataType("edsoqwe") - .withRequired(false) - .withSensitive(true) - .withDesignDefaultValue("oteik") - .withDefaultValue("jqdfadgywyla") - .withSensitiveDefaultValue("tqj") - .withValueType("hyst") - .withValueSet(true) - .withVariable("pbtkogfggyl"), - new SsisParameter() - .withId(3781049177007619900L) - .withName("vwsgseqjteoax") - .withDescription("mg") - .withDataType("wrjybpv") - .withRequired(true) - .withSensitive(true) - .withDesignDefaultValue("arirdzdg") - .withDefaultValue("oflzuk") - .withSensitiveDefaultValue("ougxpyp") - .withValueType("zqsxblmnxrxkul") - .withValueSet(false) - .withVariable("vi"))); - model = BinaryData.fromObject(model).toObject(SsisProject.class); - Assertions.assertEquals(9029580315490008772L, model.id()); - Assertions.assertEquals("xxyfo", model.name()); - Assertions.assertEquals("godywxjikfrx", model.description()); - Assertions.assertEquals(8822312186246834389L, model.folderId()); - Assertions.assertEquals(4558617045398857403L, model.version()); - Assertions.assertEquals(7306014430374048733L, model.environmentRefs().get(0).id()); - Assertions.assertEquals("tttsmczrodd", model.environmentRefs().get(0).environmentFolderName()); - Assertions.assertEquals("qimodnbjmj", model.environmentRefs().get(0).environmentName()); - Assertions.assertEquals("hbuc", model.environmentRefs().get(0).referenceType()); - Assertions.assertEquals(2056373800985950587L, model.parameters().get(0).id()); - Assertions.assertEquals("jacktav", model.parameters().get(0).name()); - Assertions.assertEquals("bgodjfyplavbvs", model.parameters().get(0).description()); - Assertions.assertEquals("edsoqwe", model.parameters().get(0).dataType()); - Assertions.assertEquals(false, model.parameters().get(0).required()); - Assertions.assertEquals(true, model.parameters().get(0).sensitive()); - Assertions.assertEquals("oteik", model.parameters().get(0).designDefaultValue()); - Assertions.assertEquals("jqdfadgywyla", model.parameters().get(0).defaultValue()); - Assertions.assertEquals("tqj", model.parameters().get(0).sensitiveDefaultValue()); - Assertions.assertEquals("hyst", model.parameters().get(0).valueType()); - Assertions.assertEquals(true, model.parameters().get(0).valueSet()); - Assertions.assertEquals("pbtkogfggyl", model.parameters().get(0).variable()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisPropertyOverrideTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisPropertyOverrideTests.java deleted file mode 100644 index 2fc71ef04d82..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisPropertyOverrideTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SsisPropertyOverride; -import org.junit.jupiter.api.Assertions; - -public final class SsisPropertyOverrideTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SsisPropertyOverride model = - BinaryData - .fromString("{\"value\":\"datalxjbrqbut\",\"isSensitive\":false}") - .toObject(SsisPropertyOverride.class); - Assertions.assertEquals(false, model.isSensitive()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SsisPropertyOverride model = new SsisPropertyOverride().withValue("datalxjbrqbut").withIsSensitive(false); - model = BinaryData.fromObject(model).toObject(SsisPropertyOverride.class); - Assertions.assertEquals(false, model.isSensitive()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisVariableTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisVariableTests.java deleted file mode 100644 index 126591f732a2..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisVariableTests.java +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SsisVariable; -import org.junit.jupiter.api.Assertions; - -public final class SsisVariableTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SsisVariable model = - BinaryData - .fromString( - "{\"id\":3924573771796741823,\"name\":\"fknjqsstnwvravn\",\"description\":\"klkwqisnlpa\",\"dataType\":\"ketotktdmewwlk\",\"sensitive\":false,\"value\":\"pgqqdhtctx\",\"sensitiveValue\":\"egykjmpadbzjo\"}") - .toObject(SsisVariable.class); - Assertions.assertEquals(3924573771796741823L, model.id()); - Assertions.assertEquals("fknjqsstnwvravn", model.name()); - Assertions.assertEquals("klkwqisnlpa", model.description()); - Assertions.assertEquals("ketotktdmewwlk", model.dataType()); - Assertions.assertEquals(false, model.sensitive()); - Assertions.assertEquals("pgqqdhtctx", model.value()); - Assertions.assertEquals("egykjmpadbzjo", model.sensitiveValue()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SsisVariable model = - new SsisVariable() - .withId(3924573771796741823L) - .withName("fknjqsstnwvravn") - .withDescription("klkwqisnlpa") - .withDataType("ketotktdmewwlk") - .withSensitive(false) - .withValue("pgqqdhtctx") - .withSensitiveValue("egykjmpadbzjo"); - model = BinaryData.fromObject(model).toObject(SsisVariable.class); - Assertions.assertEquals(3924573771796741823L, model.id()); - Assertions.assertEquals("fknjqsstnwvravn", model.name()); - Assertions.assertEquals("klkwqisnlpa", model.description()); - Assertions.assertEquals("ketotktdmewwlk", model.dataType()); - Assertions.assertEquals(false, model.sensitive()); - Assertions.assertEquals("pgqqdhtctx", model.value()); - Assertions.assertEquals("egykjmpadbzjo", model.sensitiveValue()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/StagingSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/StagingSettingsTests.java deleted file mode 100644 index 769a623a0a29..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/StagingSettingsTests.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.StagingSettings; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class StagingSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - StagingSettings model = - BinaryData - .fromString( - "{\"linkedServiceName\":{\"referenceName\":\"lgrenuqsgertx\",\"parameters\":{\"aedbsl\":\"datamgsncbbdokp\",\"k\":\"datanunpxswmcc\"}},\"path\":\"dataiaaepxlxbofdc\",\"enableCompression\":\"dataoacfskzw\",\"\":{\"j\":\"datatutqjs\",\"v\":\"dataoixtrnakytzcma\",\"kaarqhpx\":\"datal\"}}") - .toObject(StagingSettings.class); - Assertions.assertEquals("lgrenuqsgertx", model.linkedServiceName().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - StagingSettings model = - new StagingSettings() - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("lgrenuqsgertx") - .withParameters(mapOf("aedbsl", "datamgsncbbdokp", "k", "datanunpxswmcc"))) - .withPath("dataiaaepxlxbofdc") - .withEnableCompression("dataoacfskzw") - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(StagingSettings.class); - Assertions.assertEquals("lgrenuqsgertx", model.linkedServiceName().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/StoreReadSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/StoreReadSettingsTests.java deleted file mode 100644 index 41725dddafae..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/StoreReadSettingsTests.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.StoreReadSettings; -import java.util.HashMap; -import java.util.Map; - -public final class StoreReadSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - StoreReadSettings model = - BinaryData - .fromString( - "{\"type\":\"StoreReadSettings\",\"maxConcurrentConnections\":\"dataqtmpgrzciltw\",\"disableMetricsCollection\":\"datallp\",\"\":{\"oggxszmyxg\":\"databolhyiohcjugd\",\"mwzplcrzdwe\":\"dataykrpz\",\"k\":\"datasvs\",\"jeddn\":\"dataxrai\"}}") - .toObject(StoreReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - StoreReadSettings model = - new StoreReadSettings() - .withMaxConcurrentConnections("dataqtmpgrzciltw") - .withDisableMetricsCollection("datallp") - .withAdditionalProperties(mapOf("type", "StoreReadSettings")); - model = BinaryData.fromObject(model).toObject(StoreReadSettings.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/StoreWriteSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/StoreWriteSettingsTests.java deleted file mode 100644 index c975e26805d7..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/StoreWriteSettingsTests.java +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.StoreWriteSettings; -import java.util.HashMap; -import java.util.Map; - -public final class StoreWriteSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - StoreWriteSettings model = - BinaryData - .fromString( - "{\"type\":\"StoreWriteSettings\",\"maxConcurrentConnections\":\"datayxegklywdlxmyoqm\",\"disableMetricsCollection\":\"dataascqqtqzwn\",\"copyBehavior\":\"datalyrpbmdwiaxs\",\"\":{\"knybfsoayatqk\":\"dataorgcufiphnroizz\",\"djsa\":\"datazuxpldzkvbe\"}}") - .toObject(StoreWriteSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - StoreWriteSettings model = - new StoreWriteSettings() - .withMaxConcurrentConnections("datayxegklywdlxmyoqm") - .withDisableMetricsCollection("dataascqqtqzwn") - .withCopyBehavior("datalyrpbmdwiaxs") - .withAdditionalProperties(mapOf("type", "StoreWriteSettings")); - model = BinaryData.fromObject(model).toObject(StoreWriteSettings.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SubResourceDebugResourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SubResourceDebugResourceTests.java deleted file mode 100644 index e499b703c6c0..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SubResourceDebugResourceTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SubResourceDebugResource; -import org.junit.jupiter.api.Assertions; - -public final class SubResourceDebugResourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SubResourceDebugResource model = - BinaryData.fromString("{\"name\":\"wvz\"}").toObject(SubResourceDebugResource.class); - Assertions.assertEquals("wvz", model.name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SubResourceDebugResource model = new SubResourceDebugResource().withName("wvz"); - model = BinaryData.fromObject(model).toObject(SubResourceDebugResource.class); - Assertions.assertEquals("wvz", model.name()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SwitchActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SwitchActivityTests.java deleted file mode 100644 index 3ae91bd39441..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SwitchActivityTests.java +++ /dev/null @@ -1,332 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.Activity; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.Expression; -import com.azure.resourcemanager.datafactory.models.SwitchActivity; -import com.azure.resourcemanager.datafactory.models.SwitchCase; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SwitchActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SwitchActivity model = - BinaryData - .fromString( - "{\"type\":\"Switch\",\"typeProperties\":{\"on\":{\"value\":\"qfupoamc\"},\"cases\":[{\"value\":\"xkgrecnqipskpyn\",\"activities\":[{\"type\":\"Activity\",\"name\":\"cd\",\"description\":\"wutahl\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"scirgqjnfdehhke\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"njifuucoj\",\"value\":\"dataikgbhkvhldnscxw\"},{\"name\":\"wsrdzmbz\",\"value\":\"datafzydwexoyfseehvm\"}],\"\":{\"hbadbbweaajgok\":\"databvdoufwkhipaod\",\"mhskhjjxesm\":\"datan\"}}]},{\"value\":\"hkcshyhgahmtevi\",\"activities\":[{\"type\":\"Activity\",\"name\":\"ijeppnpftwg\",\"description\":\"cccyiuehsne\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"xnmqm\",\"dependencyConditions\":[]},{\"activity\":\"tvqrjutyfnmwmgha\",\"dependencyConditions\":[]},{\"activity\":\"edqakhcc\",\"dependencyConditions\":[]},{\"activity\":\"jntnlbsvt\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"dvzafpvwrbqbyx\",\"value\":\"dataupqkbb\"},{\"name\":\"mhwtmeqtsf\",\"value\":\"datajpv\"},{\"name\":\"wbxlgpepxbjjnxd\",\"value\":\"datanegkltlpbbepmmi\"},{\"name\":\"mvada\",\"value\":\"datauev\"}],\"\":{\"hgfojdbov\":\"datadzgngnuuz\",\"vqmxzdi\":\"datamnelqlqn\",\"nrpqsj\":\"datan\"}}]},{\"value\":\"ncyksblreq\",\"activities\":[{\"type\":\"Activity\",\"name\":\"k\",\"description\":\"biylkfnedxdemc\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"zyrugstbzpozql\",\"dependencyConditions\":[]},{\"activity\":\"uau\",\"dependencyConditions\":[]},{\"activity\":\"kttlpwxola\",\"dependencyConditions\":[]},{\"activity\":\"evwwblqd\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"egu\",\"value\":\"datanteucaojjbb\"},{\"name\":\"ftcnzokdademqp\",\"value\":\"dataxekmdkbtmupm\"},{\"name\":\"ay\",\"value\":\"datajocsq\"},{\"name\":\"ibu\",\"value\":\"datalppnevujkzb\"}],\"\":{\"myfajygnh\":\"datavwkdgsr\",\"gpmjfwmtxfau\":\"dataoeoxsobljzodcx\"}},{\"type\":\"Activity\",\"name\":\"ihqs\",\"description\":\"tqaoacnl\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"vgpidrtbcxiwfkd\",\"dependencyConditions\":[]},{\"activity\":\"lvbwueytxlujvm\",\"dependencyConditions\":[]},{\"activity\":\"ooagaqnekwen\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"iqlnwfbjo\",\"value\":\"dataxsmhvjogvq\"},{\"name\":\"cpsufcdgc\",\"value\":\"datafxsvxkcyhkh\"},{\"name\":\"qwvwfombcgr\",\"value\":\"datalenrcovqty\"}],\"\":{\"gzslnnc\":\"datactkrgagxzmrxx\",\"vni\":\"datawrhoma\"}},{\"type\":\"Activity\",\"name\":\"up\",\"description\":\"neoqyetfxyx\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"nqcuprlrzfafek\",\"dependencyConditions\":[]},{\"activity\":\"ueovsqmzeel\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"v\",\"value\":\"datay\"}],\"\":{\"mccf\":\"dataf\",\"y\":\"datak\",\"vatnfdhyrhfvaap\":\"datazmnamesdcmg\"}}]}],\"defaultActivities\":[{\"type\":\"Activity\",\"name\":\"yufhcfeggyl\",\"description\":\"nbdvazqsbrqspvl\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"xvl\",\"dependencyConditions\":[\"Completed\"],\"\":{\"weoobb\":\"datacinjcrayoaskull\",\"wtzxq\":\"datagymbzaw\",\"pwvhiaxkm\":\"dataqzplzyjktc\",\"fhlwgka\":\"dataitczuscqobujfx\"}},{\"activity\":\"xp\",\"dependencyConditions\":[\"Skipped\",\"Skipped\"],\"\":{\"ccbduwsw\":\"dataccmjo\",\"gmewdmlk\":\"databqycubmeih\",\"pts\":\"datawchslb\"}},{\"activity\":\"qcwaobuimfdaq\",\"dependencyConditions\":[\"Succeeded\",\"Failed\"],\"\":{\"ablknqnqqcgiyff\":\"datamegmazdg\"}}],\"userProperties\":[{\"name\":\"g\",\"value\":\"datawlpopjlg\"}],\"\":{\"vaz\":\"datawqx\",\"skpgnagncguqfnh\":\"dataoxmxtcnmo\"}}]},\"name\":\"mvedjwdezmtpbe\",\"description\":\"ucxbudajfl\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"nrgm\",\"dependencyConditions\":[\"Failed\",\"Succeeded\",\"Skipped\"],\"\":{\"fvk\":\"datalhfmkllxoa\",\"thqzvfzxseqscoy\":\"datahf\",\"isbhkeskgnj\":\"dataxbaw\",\"ytdmrqravpxwze\":\"dataavoqcyl\"}}],\"userProperties\":[{\"name\":\"gcocbo\",\"value\":\"datamsj\"},{\"name\":\"bzvsugentr\",\"value\":\"datazbw\"},{\"name\":\"ivgdc\",\"value\":\"datarbswbxizmxvd\"},{\"name\":\"kmwyikoanep\",\"value\":\"dataknyvnbzglia\"}],\"\":{\"sg\":\"datajdhbqwcu\",\"kzwijqxwmjl\":\"dataefna\",\"fsqruyqaqemozj\":\"dataosqhnwbqc\",\"pclmkeswtkhfcnce\":\"datahixcivjokauj\"}}") - .toObject(SwitchActivity.class); - Assertions.assertEquals("mvedjwdezmtpbe", model.name()); - Assertions.assertEquals("ucxbudajfl", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("nrgm", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("gcocbo", model.userProperties().get(0).name()); - Assertions.assertEquals("qfupoamc", model.on().value()); - Assertions.assertEquals("xkgrecnqipskpyn", model.cases().get(0).value()); - Assertions.assertEquals("cd", model.cases().get(0).activities().get(0).name()); - Assertions.assertEquals("wutahl", model.cases().get(0).activities().get(0).description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.cases().get(0).activities().get(0).state()); - Assertions - .assertEquals( - ActivityOnInactiveMarkAs.SUCCEEDED, model.cases().get(0).activities().get(0).onInactiveMarkAs()); - Assertions - .assertEquals("scirgqjnfdehhke", model.cases().get(0).activities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals("njifuucoj", model.cases().get(0).activities().get(0).userProperties().get(0).name()); - Assertions.assertEquals("yufhcfeggyl", model.defaultActivities().get(0).name()); - Assertions.assertEquals("nbdvazqsbrqspvl", model.defaultActivities().get(0).description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.defaultActivities().get(0).state()); - Assertions - .assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.defaultActivities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("xvl", model.defaultActivities().get(0).dependsOn().get(0).activity()); - Assertions - .assertEquals( - DependencyCondition.COMPLETED, - model.defaultActivities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("g", model.defaultActivities().get(0).userProperties().get(0).name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SwitchActivity model = - new SwitchActivity() - .withName("mvedjwdezmtpbe") - .withDescription("ucxbudajfl") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("nrgm") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.FAILED, - DependencyCondition.SUCCEEDED, - DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays - .asList( - new UserProperty().withName("gcocbo").withValue("datamsj"), - new UserProperty().withName("bzvsugentr").withValue("datazbw"), - new UserProperty().withName("ivgdc").withValue("datarbswbxizmxvd"), - new UserProperty().withName("kmwyikoanep").withValue("dataknyvnbzglia"))) - .withOn(new Expression().withValue("qfupoamc")) - .withCases( - Arrays - .asList( - new SwitchCase() - .withValue("xkgrecnqipskpyn") - .withActivities( - Arrays - .asList( - new Activity() - .withName("cd") - .withDescription("wutahl") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("scirgqjnfdehhke") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays - .asList( - new UserProperty() - .withName("njifuucoj") - .withValue("dataikgbhkvhldnscxw"), - new UserProperty() - .withName("wsrdzmbz") - .withValue("datafzydwexoyfseehvm"))) - .withAdditionalProperties(mapOf("type", "Activity")))), - new SwitchCase() - .withValue("hkcshyhgahmtevi") - .withActivities( - Arrays - .asList( - new Activity() - .withName("ijeppnpftwg") - .withDescription("cccyiuehsne") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("xnmqm") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("tvqrjutyfnmwmgha") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("edqakhcc") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("jntnlbsvt") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays - .asList( - new UserProperty() - .withName("dvzafpvwrbqbyx") - .withValue("dataupqkbb"), - new UserProperty() - .withName("mhwtmeqtsf") - .withValue("datajpv"), - new UserProperty() - .withName("wbxlgpepxbjjnxd") - .withValue("datanegkltlpbbepmmi"), - new UserProperty().withName("mvada").withValue("datauev"))) - .withAdditionalProperties(mapOf("type", "Activity")))), - new SwitchCase() - .withValue("ncyksblreq") - .withActivities( - Arrays - .asList( - new Activity() - .withName("k") - .withDescription("biylkfnedxdemc") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("zyrugstbzpozql") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("uau") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("kttlpwxola") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("evwwblqd") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays - .asList( - new UserProperty() - .withName("egu") - .withValue("datanteucaojjbb"), - new UserProperty() - .withName("ftcnzokdademqp") - .withValue("dataxekmdkbtmupm"), - new UserProperty().withName("ay").withValue("datajocsq"), - new UserProperty() - .withName("ibu") - .withValue("datalppnevujkzb"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity() - .withName("ihqs") - .withDescription("tqaoacnl") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("vgpidrtbcxiwfkd") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("lvbwueytxlujvm") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("ooagaqnekwen") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays - .asList( - new UserProperty() - .withName("iqlnwfbjo") - .withValue("dataxsmhvjogvq"), - new UserProperty() - .withName("cpsufcdgc") - .withValue("datafxsvxkcyhkh"), - new UserProperty() - .withName("qwvwfombcgr") - .withValue("datalenrcovqty"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity() - .withName("up") - .withDescription("neoqyetfxyx") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("nqcuprlrzfafek") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("ueovsqmzeel") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("v").withValue("datay"))) - .withAdditionalProperties(mapOf("type", "Activity")))))) - .withDefaultActivities( - Arrays - .asList( - new Activity() - .withName("yufhcfeggyl") - .withDescription("nbdvazqsbrqspvl") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("xvl") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("xp") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.SKIPPED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("qcwaobuimfdaq") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.SUCCEEDED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("g").withValue("datawlpopjlg"))) - .withAdditionalProperties(mapOf("type", "Activity")))); - model = BinaryData.fromObject(model).toObject(SwitchActivity.class); - Assertions.assertEquals("mvedjwdezmtpbe", model.name()); - Assertions.assertEquals("ucxbudajfl", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("nrgm", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("gcocbo", model.userProperties().get(0).name()); - Assertions.assertEquals("qfupoamc", model.on().value()); - Assertions.assertEquals("xkgrecnqipskpyn", model.cases().get(0).value()); - Assertions.assertEquals("cd", model.cases().get(0).activities().get(0).name()); - Assertions.assertEquals("wutahl", model.cases().get(0).activities().get(0).description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.cases().get(0).activities().get(0).state()); - Assertions - .assertEquals( - ActivityOnInactiveMarkAs.SUCCEEDED, model.cases().get(0).activities().get(0).onInactiveMarkAs()); - Assertions - .assertEquals("scirgqjnfdehhke", model.cases().get(0).activities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals("njifuucoj", model.cases().get(0).activities().get(0).userProperties().get(0).name()); - Assertions.assertEquals("yufhcfeggyl", model.defaultActivities().get(0).name()); - Assertions.assertEquals("nbdvazqsbrqspvl", model.defaultActivities().get(0).description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.defaultActivities().get(0).state()); - Assertions - .assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.defaultActivities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("xvl", model.defaultActivities().get(0).dependsOn().get(0).activity()); - Assertions - .assertEquals( - DependencyCondition.COMPLETED, - model.defaultActivities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("g", model.defaultActivities().get(0).userProperties().get(0).name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SwitchActivityTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SwitchActivityTypePropertiesTests.java deleted file mode 100644 index 92078eb0e077..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SwitchActivityTypePropertiesTests.java +++ /dev/null @@ -1,404 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.SwitchActivityTypeProperties; -import com.azure.resourcemanager.datafactory.models.Activity; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.Expression; -import com.azure.resourcemanager.datafactory.models.SwitchCase; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SwitchActivityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SwitchActivityTypeProperties model = - BinaryData - .fromString( - "{\"on\":{\"value\":\"wvirbshyulkhep\"},\"cases\":[{\"value\":\"cz\",\"activities\":[{\"type\":\"Activity\",\"name\":\"ydaifx\",\"description\":\"xqzczccml\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"daoi\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"knsqdr\",\"value\":\"datagvanpjv\"},{\"name\":\"rwlseeuyxxrwo\",\"value\":\"datagwq\"},{\"name\":\"zugsbwqrotpvytrz\",\"value\":\"dataqbckqgt\"}],\"\":{\"yicjzkgyuvi\":\"datanznk\",\"buvyuzzwph\":\"dataeskindgmk\",\"ikwvcogq\":\"dataliflxrnsyvmu\"}},{\"type\":\"Activity\",\"name\":\"im\",\"description\":\"thrrxr\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"bmizbev\",\"dependencyConditions\":[]},{\"activity\":\"ezufxuugvdbpjo\",\"dependencyConditions\":[]},{\"activity\":\"cpystc\",\"dependencyConditions\":[]},{\"activity\":\"avlnk\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"nvfgwgoxfd\",\"value\":\"datakezoxhazafmq\"},{\"name\":\"bifpc\",\"value\":\"dataammpeakdhebzquq\"},{\"name\":\"gjxklojdydha\",\"value\":\"datafjwm\"},{\"name\":\"sxgjih\",\"value\":\"dataxoxjghumvpt\"}],\"\":{\"fealcjuzzz\":\"datagll\"}},{\"type\":\"Activity\",\"name\":\"lkucrno\",\"description\":\"gdbaorn\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"qojdmzej\",\"dependencyConditions\":[]},{\"activity\":\"pzzq\",\"dependencyConditions\":[]},{\"activity\":\"inrymzlq\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"ivxaqzmvgx\",\"value\":\"datatkcvnyik\"},{\"name\":\"exw\",\"value\":\"datas\"},{\"name\":\"vgxelzuvdyz\",\"value\":\"datansutesqkklzy\"},{\"name\":\"avtivefsrlt\",\"value\":\"dataxhpntewv\"}],\"\":{\"dervnnfieaqbvg\":\"dataidmcoxobrv\",\"ubqemrxmr\":\"dataehggeeagbrslbzc\",\"axusww\":\"databe\",\"agdnzvohrnqnuru\":\"datanwxohbmv\"}}]},{\"value\":\"yuzcp\",\"activities\":[{\"type\":\"Activity\",\"name\":\"s\",\"description\":\"dtiocsf\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"scv\",\"dependencyConditions\":[]},{\"activity\":\"mthukboryn\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"tyhmophoemhv\",\"value\":\"dataqwdphncftbqij\"},{\"name\":\"qfoatqnhr\",\"value\":\"dataxhmtxpxdtmrwjk\"},{\"name\":\"tiznvijdtmjy\",\"value\":\"databkdhwadnccunrviq\"}],\"\":{\"a\":\"datasliou\",\"jw\":\"dataxqnpnpggbu\"}}]},{\"value\":\"gqudnmuirt\",\"activities\":[{\"type\":\"Activity\",\"name\":\"tk\",\"description\":\"hixfuuzaczmejf\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"itytketwdskoc\",\"dependencyConditions\":[]},{\"activity\":\"qhzyswchbvejg\",\"dependencyConditions\":[]},{\"activity\":\"xvjqevmzhkocyngd\",\"dependencyConditions\":[]},{\"activity\":\"kapnxylhr\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"hd\",\"value\":\"datalndlvcbc\"},{\"name\":\"biisnh\",\"value\":\"dataqqaedgwghqq\"},{\"name\":\"uuetmqzuen\",\"value\":\"datallqvroopk\"},{\"name\":\"mj\",\"value\":\"dataopibaxkywqs\"}],\"\":{\"cahlsavinoora\":\"datacuvlfzdkpfeup\",\"lbd\":\"dataspfinyijmwqgmhf\",\"fpucwmdmbys\":\"datadhedmfidro\"}},{\"type\":\"Activity\",\"name\":\"qbgndfzheyxccx\",\"description\":\"sioawro\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"quppkzuxsbbmxfut\",\"dependencyConditions\":[]},{\"activity\":\"y\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"lyopobgzluuki\",\"value\":\"datajezadkf\"},{\"name\":\"piffgtqhghygzaya\",\"value\":\"datargmlaerx\"},{\"name\":\"ucxmybuqjpgbi\",\"value\":\"dataaxga\"},{\"name\":\"zfyin\",\"value\":\"datapvbmbf\"}],\"\":{\"wwgzyvo\":\"datauamdydkdcvowasl\",\"haqqavhfdezom\":\"dataotief\"}}]}],\"defaultActivities\":[{\"type\":\"Activity\",\"name\":\"blmypuonuv\",\"description\":\"mf\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"ha\",\"dependencyConditions\":[\"Failed\",\"Completed\",\"Failed\",\"Completed\"],\"\":{\"wipaucl\":\"dataabyzdaroe\"}},{\"activity\":\"typzziavg\",\"dependencyConditions\":[\"Succeeded\",\"Succeeded\",\"Skipped\",\"Succeeded\"],\"\":{\"djkk\":\"dataghboqeuezyf\",\"daejn\":\"dataaci\",\"wyfuqqbafrbhr\":\"datab\",\"kvok\":\"datap\"}},{\"activity\":\"mere\",\"dependencyConditions\":[\"Completed\",\"Failed\",\"Skipped\",\"Failed\"],\"\":{\"decxbiknf\":\"datakcn\",\"fxdntpksb\":\"datapixfdojxby\",\"svahbqoojdnmrxj\":\"dataigegwaidqzfl\"}},{\"activity\":\"umrzfdbo\",\"dependencyConditions\":[\"Failed\",\"Failed\"],\"\":{\"hql\":\"datan\"}}],\"userProperties\":[{\"name\":\"gia\",\"value\":\"dataxpfkozvcxxezurh\"},{\"name\":\"ucnssp\",\"value\":\"dataleazvyftklbbribg\"},{\"name\":\"zkkmrlptdk\",\"value\":\"dataib\"},{\"name\":\"rivedshuxlhecz\",\"value\":\"datamwwm\"}],\"\":{\"ysjglponkrhp\":\"dataiwkrj\"}},{\"type\":\"Activity\",\"name\":\"ediu\",\"description\":\"kcad\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"pcjrbfayduzzyxly\",\"dependencyConditions\":[\"Completed\",\"Skipped\"],\"\":{\"ec\":\"datafmya\"}}],\"userProperties\":[{\"name\":\"bfgmgho\",\"value\":\"dataox\"}],\"\":{\"lqlib\":\"datatsrvqcxrrkcv\"}},{\"type\":\"Activity\",\"name\":\"mfn\",\"description\":\"sihkkk\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"zmfpgzljgrt\",\"dependencyConditions\":[\"Skipped\",\"Failed\"],\"\":{\"etpk\":\"datamzbasxapcegtcdu\"}}],\"userProperties\":[{\"name\":\"nneynmgvqysgh\",\"value\":\"datahxgxqdmvfdocjafc\"}],\"\":{\"qhyq\":\"datadnktutwczdwmtfjz\",\"owverhtyc\":\"datamobsjudpeed\",\"mdsisll\":\"dataigtsrrlelpobm\",\"imojozhdcptxxb\":\"dataqgluhr\"}}]}") - .toObject(SwitchActivityTypeProperties.class); - Assertions.assertEquals("wvirbshyulkhep", model.on().value()); - Assertions.assertEquals("cz", model.cases().get(0).value()); - Assertions.assertEquals("ydaifx", model.cases().get(0).activities().get(0).name()); - Assertions.assertEquals("xqzczccml", model.cases().get(0).activities().get(0).description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.cases().get(0).activities().get(0).state()); - Assertions - .assertEquals( - ActivityOnInactiveMarkAs.SKIPPED, model.cases().get(0).activities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("daoi", model.cases().get(0).activities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals("knsqdr", model.cases().get(0).activities().get(0).userProperties().get(0).name()); - Assertions.assertEquals("blmypuonuv", model.defaultActivities().get(0).name()); - Assertions.assertEquals("mf", model.defaultActivities().get(0).description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.defaultActivities().get(0).state()); - Assertions - .assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.defaultActivities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("ha", model.defaultActivities().get(0).dependsOn().get(0).activity()); - Assertions - .assertEquals( - DependencyCondition.FAILED, - model.defaultActivities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("gia", model.defaultActivities().get(0).userProperties().get(0).name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SwitchActivityTypeProperties model = - new SwitchActivityTypeProperties() - .withOn(new Expression().withValue("wvirbshyulkhep")) - .withCases( - Arrays - .asList( - new SwitchCase() - .withValue("cz") - .withActivities( - Arrays - .asList( - new Activity() - .withName("ydaifx") - .withDescription("xqzczccml") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("daoi") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays - .asList( - new UserProperty() - .withName("knsqdr") - .withValue("datagvanpjv"), - new UserProperty() - .withName("rwlseeuyxxrwo") - .withValue("datagwq"), - new UserProperty() - .withName("zugsbwqrotpvytrz") - .withValue("dataqbckqgt"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity() - .withName("im") - .withDescription("thrrxr") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("bmizbev") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("ezufxuugvdbpjo") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("cpystc") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("avlnk") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays - .asList( - new UserProperty() - .withName("nvfgwgoxfd") - .withValue("datakezoxhazafmq"), - new UserProperty() - .withName("bifpc") - .withValue("dataammpeakdhebzquq"), - new UserProperty() - .withName("gjxklojdydha") - .withValue("datafjwm"), - new UserProperty() - .withName("sxgjih") - .withValue("dataxoxjghumvpt"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity() - .withName("lkucrno") - .withDescription("gdbaorn") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("qojdmzej") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("pzzq") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("inrymzlq") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays - .asList( - new UserProperty() - .withName("ivxaqzmvgx") - .withValue("datatkcvnyik"), - new UserProperty().withName("exw").withValue("datas"), - new UserProperty() - .withName("vgxelzuvdyz") - .withValue("datansutesqkklzy"), - new UserProperty() - .withName("avtivefsrlt") - .withValue("dataxhpntewv"))) - .withAdditionalProperties(mapOf("type", "Activity")))), - new SwitchCase() - .withValue("yuzcp") - .withActivities( - Arrays - .asList( - new Activity() - .withName("s") - .withDescription("dtiocsf") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("scv") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("mthukboryn") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays - .asList( - new UserProperty() - .withName("tyhmophoemhv") - .withValue("dataqwdphncftbqij"), - new UserProperty() - .withName("qfoatqnhr") - .withValue("dataxhmtxpxdtmrwjk"), - new UserProperty() - .withName("tiznvijdtmjy") - .withValue("databkdhwadnccunrviq"))) - .withAdditionalProperties(mapOf("type", "Activity")))), - new SwitchCase() - .withValue("gqudnmuirt") - .withActivities( - Arrays - .asList( - new Activity() - .withName("tk") - .withDescription("hixfuuzaczmejf") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("itytketwdskoc") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("qhzyswchbvejg") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("xvjqevmzhkocyngd") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("kapnxylhr") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays - .asList( - new UserProperty().withName("hd").withValue("datalndlvcbc"), - new UserProperty() - .withName("biisnh") - .withValue("dataqqaedgwghqq"), - new UserProperty() - .withName("uuetmqzuen") - .withValue("datallqvroopk"), - new UserProperty() - .withName("mj") - .withValue("dataopibaxkywqs"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity() - .withName("qbgndfzheyxccx") - .withDescription("sioawro") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("quppkzuxsbbmxfut") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("y") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays - .asList( - new UserProperty() - .withName("lyopobgzluuki") - .withValue("datajezadkf"), - new UserProperty() - .withName("piffgtqhghygzaya") - .withValue("datargmlaerx"), - new UserProperty() - .withName("ucxmybuqjpgbi") - .withValue("dataaxga"), - new UserProperty() - .withName("zfyin") - .withValue("datapvbmbf"))) - .withAdditionalProperties(mapOf("type", "Activity")))))) - .withDefaultActivities( - Arrays - .asList( - new Activity() - .withName("blmypuonuv") - .withDescription("mf") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("ha") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.FAILED, - DependencyCondition.COMPLETED, - DependencyCondition.FAILED, - DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("typzziavg") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.SUCCEEDED, - DependencyCondition.SUCCEEDED, - DependencyCondition.SKIPPED, - DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("mere") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.COMPLETED, - DependencyCondition.FAILED, - DependencyCondition.SKIPPED, - DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("umrzfdbo") - .withDependencyConditions( - Arrays - .asList(DependencyCondition.FAILED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays - .asList( - new UserProperty().withName("gia").withValue("dataxpfkozvcxxezurh"), - new UserProperty().withName("ucnssp").withValue("dataleazvyftklbbribg"), - new UserProperty().withName("zkkmrlptdk").withValue("dataib"), - new UserProperty().withName("rivedshuxlhecz").withValue("datamwwm"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity() - .withName("ediu") - .withDescription("kcad") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("pcjrbfayduzzyxly") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.COMPLETED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("bfgmgho").withValue("dataox"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity() - .withName("mfn") - .withDescription("sihkkk") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("zmfpgzljgrt") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.SKIPPED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays - .asList( - new UserProperty() - .withName("nneynmgvqysgh") - .withValue("datahxgxqdmvfdocjafc"))) - .withAdditionalProperties(mapOf("type", "Activity")))); - model = BinaryData.fromObject(model).toObject(SwitchActivityTypeProperties.class); - Assertions.assertEquals("wvirbshyulkhep", model.on().value()); - Assertions.assertEquals("cz", model.cases().get(0).value()); - Assertions.assertEquals("ydaifx", model.cases().get(0).activities().get(0).name()); - Assertions.assertEquals("xqzczccml", model.cases().get(0).activities().get(0).description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.cases().get(0).activities().get(0).state()); - Assertions - .assertEquals( - ActivityOnInactiveMarkAs.SKIPPED, model.cases().get(0).activities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("daoi", model.cases().get(0).activities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals("knsqdr", model.cases().get(0).activities().get(0).userProperties().get(0).name()); - Assertions.assertEquals("blmypuonuv", model.defaultActivities().get(0).name()); - Assertions.assertEquals("mf", model.defaultActivities().get(0).description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.defaultActivities().get(0).state()); - Assertions - .assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.defaultActivities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("ha", model.defaultActivities().get(0).dependsOn().get(0).activity()); - Assertions - .assertEquals( - DependencyCondition.FAILED, - model.defaultActivities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("gia", model.defaultActivities().get(0).userProperties().get(0).name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SwitchCaseTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SwitchCaseTests.java deleted file mode 100644 index 5256b5191d75..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SwitchCaseTests.java +++ /dev/null @@ -1,229 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.Activity; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.SwitchCase; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SwitchCaseTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SwitchCase model = - BinaryData - .fromString( - "{\"value\":\"qbzc\",\"activities\":[{\"type\":\"Activity\",\"name\":\"yudc\",\"description\":\"eowepv\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"sntopfqgu\",\"dependencyConditions\":[\"Succeeded\",\"Succeeded\"],\"\":{\"gurg\":\"datayeumwvz\",\"hkefowncudcrwo\":\"datarpcguwyu\"}},{\"activity\":\"qsrqebjgo\",\"dependencyConditions\":[\"Succeeded\",\"Skipped\"],\"\":{\"gchkmqfkm\":\"datad\"}},{\"activity\":\"eaomqqbslwxcf\",\"dependencyConditions\":[\"Skipped\",\"Completed\"],\"\":{\"mnxpp\":\"dataebarw\",\"nedjvataeao\":\"datafep\"}}],\"userProperties\":[{\"name\":\"zynvvkfbmrp\",\"value\":\"datajfceabgpwzs\"},{\"name\":\"ewi\",\"value\":\"datan\"},{\"name\":\"vdjmvzcycg\",\"value\":\"datatelimqxwih\"}],\"\":{\"guziglrihzrmrvgc\":\"dataexj\",\"twnppstpqws\":\"datafciskl\"}},{\"type\":\"Activity\",\"name\":\"eawolhlfffe\",\"description\":\"bmhqy\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"coqtvxhipchdpdev\",\"dependencyConditions\":[\"Succeeded\",\"Failed\"],\"\":{\"eshxomt\":\"datacik\",\"pypzgdet\":\"datakxpsx\",\"gyhu\":\"datad\",\"zmziiftjig\":\"datasutspocrskkraap\"}},{\"activity\":\"qyzocfyywcfl\",\"dependencyConditions\":[\"Succeeded\",\"Skipped\",\"Succeeded\"],\"\":{\"pwtjoku\":\"datamktbwdfjcepy\",\"bbccbqxwojve\":\"datartqnbdgcnickn\"}},{\"activity\":\"xhf\",\"dependencyConditions\":[\"Succeeded\",\"Skipped\"],\"\":{\"hzwyyyerzbmlhg\":\"datafyjcenkidlpml\",\"wsyx\":\"datatkthevodddne\",\"ohdifbhtxtcqjg\":\"datafdjftcr\"}},{\"activity\":\"d\",\"dependencyConditions\":[\"Completed\",\"Skipped\"],\"\":{\"tnej\":\"dataurjxkpha\",\"vuvh\":\"datafljqzbixlzaa\",\"bneepfjibtsp\":\"dataerjrcxyxepl\",\"eigywj\":\"dataiwfqj\"}}],\"userProperties\":[{\"name\":\"gncscwsefdqnsu\",\"value\":\"dataomln\"}],\"\":{\"crllecquo\":\"datajdcvnanej\",\"wvcyprpog\":\"datagyhkvtofxke\",\"ochpzcgs\":\"dataqvuftkiyghcmpyki\"}},{\"type\":\"Activity\",\"name\":\"pklfnst\",\"description\":\"bpwwo\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"rsgfpds\",\"dependencyConditions\":[\"Succeeded\"],\"\":{\"kcji\":\"dataepmttrfun\",\"jjfne\":\"dataoczoiduk\",\"mdffyv\":\"datauqalwjcqbnvbz\"}},{\"activity\":\"d\",\"dependencyConditions\":[\"Completed\"],\"\":{\"okirxyffttsdt\":\"dataryvkubfotgivpor\",\"gtrjzimxz\":\"dataql\",\"uladdujzenagmh\":\"datauqcinjejyinlys\"}},{\"activity\":\"mgtbqzftmpgibm\",\"dependencyConditions\":[\"Completed\"],\"\":{\"yjvjyxueuqc\":\"datacprbwsndloldxm\",\"gxak\":\"datagbs\",\"uyokctymsbhdi\":\"datakbryolzbmdntajgg\",\"s\":\"datazao\"}},{\"activity\":\"nxgk\",\"dependencyConditions\":[\"Completed\",\"Skipped\"],\"\":{\"euwpivsltlyqc\":\"dataukbpwwfeixm\",\"qcmsrzrcddlzga\":\"datapwndcjr\",\"optrudpm\":\"dataptwqfgqccond\"}}],\"userProperties\":[{\"name\":\"loflcilrafkrvv\",\"value\":\"datawknymqzmui\"},{\"name\":\"uvtgjgpcvdjin\",\"value\":\"dataoslzrbz\"},{\"name\":\"f\",\"value\":\"datavwcjrbjgdvwa\"}],\"\":{\"svximqkuyflzx\":\"datacnevkfkmena\"}},{\"type\":\"Activity\",\"name\":\"suuapktfvemwfwc\",\"description\":\"qyqvy\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"wcojxpkpsq\",\"dependencyConditions\":[\"Failed\",\"Completed\",\"Completed\"],\"\":{\"zpgn\":\"dataybkhyqou\"}},{\"activity\":\"dzsnv\",\"dependencyConditions\":[\"Completed\",\"Skipped\",\"Skipped\",\"Completed\"],\"\":{\"w\":\"datahgfd\",\"nrfpzl\":\"datahcczyqnfs\",\"momvvrkdsqf\":\"dataaeojnskek\"}},{\"activity\":\"z\",\"dependencyConditions\":[\"Skipped\",\"Completed\",\"Completed\"],\"\":{\"cacdyajyiwvqlrz\":\"dataaxjhaetyeafjlism\",\"avnkyqrjbzrzfht\":\"databvkgfpjb\",\"abbxkldtwrrycl\":\"dataukuypyeofsa\",\"bguaxilcdbu\":\"datarld\"}}],\"userProperties\":[{\"name\":\"lpgpxyrfkslgpl\",\"value\":\"datad\"},{\"name\":\"cmkdhgpzqibqilc\",\"value\":\"datatmu\"},{\"name\":\"emex\",\"value\":\"datarjxaawentkok\"}],\"\":{\"wxicbvwnn\":\"datawpxeanjq\",\"grk\":\"datatlbc\",\"eayowzp\":\"datawof\"}}]}") - .toObject(SwitchCase.class); - Assertions.assertEquals("qbzc", model.value()); - Assertions.assertEquals("yudc", model.activities().get(0).name()); - Assertions.assertEquals("eowepv", model.activities().get(0).description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.activities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.activities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("sntopfqgu", model.activities().get(0).dependsOn().get(0).activity()); - Assertions - .assertEquals( - DependencyCondition.SUCCEEDED, - model.activities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("zynvvkfbmrp", model.activities().get(0).userProperties().get(0).name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SwitchCase model = - new SwitchCase() - .withValue("qbzc") - .withActivities( - Arrays - .asList( - new Activity() - .withName("yudc") - .withDescription("eowepv") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("sntopfqgu") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.SUCCEEDED, - DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("qsrqebjgo") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.SUCCEEDED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("eaomqqbslwxcf") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.SKIPPED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays - .asList( - new UserProperty().withName("zynvvkfbmrp").withValue("datajfceabgpwzs"), - new UserProperty().withName("ewi").withValue("datan"), - new UserProperty().withName("vdjmvzcycg").withValue("datatelimqxwih"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity() - .withName("eawolhlfffe") - .withDescription("bmhqy") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("coqtvxhipchdpdev") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.SUCCEEDED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("qyzocfyywcfl") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.SUCCEEDED, - DependencyCondition.SKIPPED, - DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("xhf") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.SUCCEEDED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("d") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.COMPLETED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("gncscwsefdqnsu").withValue("dataomln"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity() - .withName("pklfnst") - .withDescription("bpwwo") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("rsgfpds") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("d") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("mgtbqzftmpgibm") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("nxgk") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.COMPLETED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays - .asList( - new UserProperty().withName("loflcilrafkrvv").withValue("datawknymqzmui"), - new UserProperty().withName("uvtgjgpcvdjin").withValue("dataoslzrbz"), - new UserProperty().withName("f").withValue("datavwcjrbjgdvwa"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity() - .withName("suuapktfvemwfwc") - .withDescription("qyqvy") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("wcojxpkpsq") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.FAILED, - DependencyCondition.COMPLETED, - DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("dzsnv") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.COMPLETED, - DependencyCondition.SKIPPED, - DependencyCondition.SKIPPED, - DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("z") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.SKIPPED, - DependencyCondition.COMPLETED, - DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays - .asList( - new UserProperty().withName("lpgpxyrfkslgpl").withValue("datad"), - new UserProperty().withName("cmkdhgpzqibqilc").withValue("datatmu"), - new UserProperty().withName("emex").withValue("datarjxaawentkok"))) - .withAdditionalProperties(mapOf("type", "Activity")))); - model = BinaryData.fromObject(model).toObject(SwitchCase.class); - Assertions.assertEquals("qbzc", model.value()); - Assertions.assertEquals("yudc", model.activities().get(0).name()); - Assertions.assertEquals("eowepv", model.activities().get(0).description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.activities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.activities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("sntopfqgu", model.activities().get(0).dependsOn().get(0).activity()); - Assertions - .assertEquals( - DependencyCondition.SUCCEEDED, - model.activities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("zynvvkfbmrp", model.activities().get(0).userProperties().get(0).name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SybaseSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SybaseSourceTests.java deleted file mode 100644 index 9967be41a9b3..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SybaseSourceTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SybaseSource; - -public final class SybaseSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SybaseSource model = - BinaryData - .fromString( - "{\"type\":\"SybaseSource\",\"query\":\"datapccfwq\",\"queryTimeout\":\"dataouqyzxzjehdklvqt\",\"additionalColumns\":\"dataoc\",\"sourceRetryCount\":\"dataetctjh\",\"sourceRetryWait\":\"datamoazsjsuevfvnn\",\"maxConcurrentConnections\":\"dataccvxqbxgq\",\"disableMetricsCollection\":\"datawnriwxe\",\"\":{\"xsvzwbktalobxl\":\"datavwqldil\"}}") - .toObject(SybaseSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SybaseSource model = - new SybaseSource() - .withSourceRetryCount("dataetctjh") - .withSourceRetryWait("datamoazsjsuevfvnn") - .withMaxConcurrentConnections("dataccvxqbxgq") - .withDisableMetricsCollection("datawnriwxe") - .withQueryTimeout("dataouqyzxzjehdklvqt") - .withAdditionalColumns("dataoc") - .withQuery("datapccfwq"); - model = BinaryData.fromObject(model).toObject(SybaseSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SybaseTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SybaseTableDatasetTests.java deleted file mode 100644 index edc51b82a5cd..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SybaseTableDatasetTests.java +++ /dev/null @@ -1,81 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.SybaseTableDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SybaseTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SybaseTableDataset model = - BinaryData - .fromString( - "{\"type\":\"SybaseTable\",\"typeProperties\":{\"tableName\":\"dataokez\"},\"description\":\"ezknfzqnzbflbqmh\",\"structure\":\"datayxxvwedhagqbbse\",\"schema\":\"dataayuflmsyz\",\"linkedServiceName\":{\"referenceName\":\"dcrolrze\",\"parameters\":{\"ivt\":\"datamphzkymunw\",\"wdalisd\":\"datauszbdjrdfeuj\",\"dz\":\"dataqngca\",\"p\":\"datanloou\"}},\"parameters\":{\"iaffj\":{\"type\":\"Object\",\"defaultValue\":\"datahyclxrsidoebldp\"},\"x\":{\"type\":\"Bool\",\"defaultValue\":\"datanhrevimxm\"}},\"annotations\":[\"datapitygv\",\"datawdsoqtbfkvuozbzc\"],\"folder\":{\"name\":\"ekwanklp\"},\"\":{\"kjse\":\"datacydjh\",\"rdonkgobx\":\"datawiynd\",\"olenrswknpdr\":\"datalr\"}}") - .toObject(SybaseTableDataset.class); - Assertions.assertEquals("ezknfzqnzbflbqmh", model.description()); - Assertions.assertEquals("dcrolrze", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("iaffj").type()); - Assertions.assertEquals("ekwanklp", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SybaseTableDataset model = - new SybaseTableDataset() - .withDescription("ezknfzqnzbflbqmh") - .withStructure("datayxxvwedhagqbbse") - .withSchema("dataayuflmsyz") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("dcrolrze") - .withParameters( - mapOf( - "ivt", - "datamphzkymunw", - "wdalisd", - "datauszbdjrdfeuj", - "dz", - "dataqngca", - "p", - "datanloou"))) - .withParameters( - mapOf( - "iaffj", - new ParameterSpecification() - .withType(ParameterType.OBJECT) - .withDefaultValue("datahyclxrsidoebldp"), - "x", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datanhrevimxm"))) - .withAnnotations(Arrays.asList("datapitygv", "datawdsoqtbfkvuozbzc")) - .withFolder(new DatasetFolder().withName("ekwanklp")) - .withTableName("dataokez"); - model = BinaryData.fromObject(model).toObject(SybaseTableDataset.class); - Assertions.assertEquals("ezknfzqnzbflbqmh", model.description()); - Assertions.assertEquals("dcrolrze", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("iaffj").type()); - Assertions.assertEquals("ekwanklp", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SybaseTableDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SybaseTableDatasetTypePropertiesTests.java deleted file mode 100644 index 85d85083875c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SybaseTableDatasetTypePropertiesTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.SybaseTableDatasetTypeProperties; - -public final class SybaseTableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SybaseTableDatasetTypeProperties model = - BinaryData.fromString("{\"tableName\":\"datamzaof\"}").toObject(SybaseTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SybaseTableDatasetTypeProperties model = new SybaseTableDatasetTypeProperties().withTableName("datamzaof"); - model = BinaryData.fromObject(model).toObject(SybaseTableDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SynapseNotebookActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SynapseNotebookActivityTests.java deleted file mode 100644 index e79d5183c84c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SynapseNotebookActivityTests.java +++ /dev/null @@ -1,163 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityPolicy; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.BigDataPoolParametrizationReference; -import com.azure.resourcemanager.datafactory.models.BigDataPoolReferenceType; -import com.azure.resourcemanager.datafactory.models.ConfigurationType; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.NotebookParameter; -import com.azure.resourcemanager.datafactory.models.NotebookParameterType; -import com.azure.resourcemanager.datafactory.models.NotebookReferenceType; -import com.azure.resourcemanager.datafactory.models.SparkConfigurationParametrizationReference; -import com.azure.resourcemanager.datafactory.models.SparkConfigurationReferenceType; -import com.azure.resourcemanager.datafactory.models.SynapseNotebookActivity; -import com.azure.resourcemanager.datafactory.models.SynapseNotebookReference; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SynapseNotebookActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SynapseNotebookActivity model = - BinaryData - .fromString( - "{\"type\":\"SynapseNotebook\",\"typeProperties\":{\"notebook\":{\"type\":\"NotebookReference\",\"referenceName\":\"datalntvfqrjf\"},\"sparkPool\":{\"type\":\"BigDataPoolReference\",\"referenceName\":\"dataspdsrax\"},\"parameters\":{\"kzcfxzcpew\":{\"value\":\"datan\",\"type\":\"float\"},\"reonsqqcqgnfdimg\":{\"value\":\"datapwe\",\"type\":\"bool\"},\"lssqv\":{\"value\":\"datapmftzira\",\"type\":\"string\"}},\"executorSize\":\"datahznltjxstjgey\",\"conf\":\"dataswnjonipjqw\",\"driverSize\":\"dataxswineyjerf\",\"numExecutors\":\"datamlppnmrftnf\",\"configurationType\":\"Artifact\",\"targetSparkConfiguration\":{\"type\":\"SparkConfigurationReference\",\"referenceName\":\"dataftklpbgk\"},\"sparkConfig\":{\"iyktsi\":\"datafnszeemsfpm\",\"seqlvqkkcebj\":\"datasnikmwnzcen\"}},\"linkedServiceName\":{\"referenceName\":\"cuj\",\"parameters\":{\"lkvaiolfrceoc\":\"dataoeqpvkkpgif\",\"mwrb\":\"datasreicpsviajk\",\"ccr\":\"dataejh\",\"ufupadtpbbzjev\":\"dataayqskkp\"}},\"policy\":{\"timeout\":\"datanyzhbtnagkn\",\"retry\":\"dataeno\",\"retryIntervalInSeconds\":622563068,\"secureInput\":true,\"secureOutput\":true,\"\":{\"tlnrtwrnuklsh\":\"datah\",\"httbdxjtvpadr\":\"dataqrht\",\"adxnrtkdte\":\"dataxqud\"}},\"name\":\"un\",\"description\":\"pv\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"bgvyztoqdzw\",\"dependencyConditions\":[\"Skipped\",\"Skipped\",\"Skipped\"],\"\":{\"qortxeuwbf\":\"datacrsr\",\"zbuhqmmady\":\"datazwisxsasgfmrz\"}},{\"activity\":\"c\",\"dependencyConditions\":[\"Failed\"],\"\":{\"cgkikbuaqdopxbnr\":\"datanlabogmfetq\",\"dbpuy\":\"datangtssoiiyp\",\"s\":\"dataxygztlqszwcwan\"}}],\"userProperties\":[{\"name\":\"qeomagoqfmkslbes\",\"value\":\"datadlskwfiwvdqmqq\"}],\"\":{\"ptmpcpiros\":\"dataotogo\",\"h\":\"dataxiwmwrbruuw\",\"hdvqgaa\":\"datakynfxxldmxms\"}}") - .toObject(SynapseNotebookActivity.class); - Assertions.assertEquals("un", model.name()); - Assertions.assertEquals("pv", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("bgvyztoqdzw", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SKIPPED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("qeomagoqfmkslbes", model.userProperties().get(0).name()); - Assertions.assertEquals("cuj", model.linkedServiceName().referenceName()); - Assertions.assertEquals(622563068, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - Assertions.assertEquals(NotebookReferenceType.NOTEBOOK_REFERENCE, model.notebook().type()); - Assertions.assertEquals(BigDataPoolReferenceType.BIG_DATA_POOL_REFERENCE, model.sparkPool().type()); - Assertions.assertEquals(NotebookParameterType.FLOAT, model.parameters().get("kzcfxzcpew").type()); - Assertions.assertEquals(ConfigurationType.ARTIFACT, model.configurationType()); - Assertions - .assertEquals( - SparkConfigurationReferenceType.SPARK_CONFIGURATION_REFERENCE, model.targetSparkConfiguration().type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SynapseNotebookActivity model = - new SynapseNotebookActivity() - .withName("un") - .withDescription("pv") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("bgvyztoqdzw") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.SKIPPED, - DependencyCondition.SKIPPED, - DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("c") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("qeomagoqfmkslbes").withValue("datadlskwfiwvdqmqq"))) - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("cuj") - .withParameters( - mapOf( - "lkvaiolfrceoc", - "dataoeqpvkkpgif", - "mwrb", - "datasreicpsviajk", - "ccr", - "dataejh", - "ufupadtpbbzjev", - "dataayqskkp"))) - .withPolicy( - new ActivityPolicy() - .withTimeout("datanyzhbtnagkn") - .withRetry("dataeno") - .withRetryIntervalInSeconds(622563068) - .withSecureInput(true) - .withSecureOutput(true) - .withAdditionalProperties(mapOf())) - .withNotebook( - new SynapseNotebookReference() - .withType(NotebookReferenceType.NOTEBOOK_REFERENCE) - .withReferenceName("datalntvfqrjf")) - .withSparkPool( - new BigDataPoolParametrizationReference() - .withType(BigDataPoolReferenceType.BIG_DATA_POOL_REFERENCE) - .withReferenceName("dataspdsrax")) - .withParameters( - mapOf( - "kzcfxzcpew", - new NotebookParameter().withValue("datan").withType(NotebookParameterType.FLOAT), - "reonsqqcqgnfdimg", - new NotebookParameter().withValue("datapwe").withType(NotebookParameterType.BOOL), - "lssqv", - new NotebookParameter().withValue("datapmftzira").withType(NotebookParameterType.STRING))) - .withExecutorSize("datahznltjxstjgey") - .withConf("dataswnjonipjqw") - .withDriverSize("dataxswineyjerf") - .withNumExecutors("datamlppnmrftnf") - .withConfigurationType(ConfigurationType.ARTIFACT) - .withTargetSparkConfiguration( - new SparkConfigurationParametrizationReference() - .withType(SparkConfigurationReferenceType.SPARK_CONFIGURATION_REFERENCE) - .withReferenceName("dataftklpbgk")) - .withSparkConfig(mapOf("iyktsi", "datafnszeemsfpm", "seqlvqkkcebj", "datasnikmwnzcen")); - model = BinaryData.fromObject(model).toObject(SynapseNotebookActivity.class); - Assertions.assertEquals("un", model.name()); - Assertions.assertEquals("pv", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("bgvyztoqdzw", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SKIPPED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("qeomagoqfmkslbes", model.userProperties().get(0).name()); - Assertions.assertEquals("cuj", model.linkedServiceName().referenceName()); - Assertions.assertEquals(622563068, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - Assertions.assertEquals(NotebookReferenceType.NOTEBOOK_REFERENCE, model.notebook().type()); - Assertions.assertEquals(BigDataPoolReferenceType.BIG_DATA_POOL_REFERENCE, model.sparkPool().type()); - Assertions.assertEquals(NotebookParameterType.FLOAT, model.parameters().get("kzcfxzcpew").type()); - Assertions.assertEquals(ConfigurationType.ARTIFACT, model.configurationType()); - Assertions - .assertEquals( - SparkConfigurationReferenceType.SPARK_CONFIGURATION_REFERENCE, model.targetSparkConfiguration().type()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SynapseNotebookActivityTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SynapseNotebookActivityTypePropertiesTests.java deleted file mode 100644 index e6fbddcb5777..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SynapseNotebookActivityTypePropertiesTests.java +++ /dev/null @@ -1,90 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.SynapseNotebookActivityTypeProperties; -import com.azure.resourcemanager.datafactory.models.BigDataPoolParametrizationReference; -import com.azure.resourcemanager.datafactory.models.BigDataPoolReferenceType; -import com.azure.resourcemanager.datafactory.models.ConfigurationType; -import com.azure.resourcemanager.datafactory.models.NotebookParameter; -import com.azure.resourcemanager.datafactory.models.NotebookParameterType; -import com.azure.resourcemanager.datafactory.models.NotebookReferenceType; -import com.azure.resourcemanager.datafactory.models.SparkConfigurationParametrizationReference; -import com.azure.resourcemanager.datafactory.models.SparkConfigurationReferenceType; -import com.azure.resourcemanager.datafactory.models.SynapseNotebookReference; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SynapseNotebookActivityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SynapseNotebookActivityTypeProperties model = - BinaryData - .fromString( - "{\"notebook\":{\"type\":\"NotebookReference\",\"referenceName\":\"datamfbesyhpzr\"},\"sparkPool\":{\"type\":\"BigDataPoolReference\",\"referenceName\":\"dataawdls\"},\"parameters\":{\"fjbzosyttu\":{\"value\":\"datanksovvbt\",\"type\":\"bool\"},\"sagp\":{\"value\":\"datahkpdkwvwxrxmu\",\"type\":\"float\"},\"entudpvsnllijbbd\":{\"value\":\"datag\",\"type\":\"string\"}},\"executorSize\":\"datamtlwrw\",\"conf\":\"datayqwfpxpfk\",\"driverSize\":\"datatxgtcovpbcpgzgq\",\"numExecutors\":\"datap\",\"configurationType\":\"Default\",\"targetSparkConfiguration\":{\"type\":\"SparkConfigurationReference\",\"referenceName\":\"databjgtascxmnben\"},\"sparkConfig\":{\"fwcqcxyju\":\"datazxzw\",\"dngh\":\"datakfwokzizlaha\"}}") - .toObject(SynapseNotebookActivityTypeProperties.class); - Assertions.assertEquals(NotebookReferenceType.NOTEBOOK_REFERENCE, model.notebook().type()); - Assertions.assertEquals(BigDataPoolReferenceType.BIG_DATA_POOL_REFERENCE, model.sparkPool().type()); - Assertions.assertEquals(NotebookParameterType.BOOL, model.parameters().get("fjbzosyttu").type()); - Assertions.assertEquals(ConfigurationType.DEFAULT, model.configurationType()); - Assertions - .assertEquals( - SparkConfigurationReferenceType.SPARK_CONFIGURATION_REFERENCE, model.targetSparkConfiguration().type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SynapseNotebookActivityTypeProperties model = - new SynapseNotebookActivityTypeProperties() - .withNotebook( - new SynapseNotebookReference() - .withType(NotebookReferenceType.NOTEBOOK_REFERENCE) - .withReferenceName("datamfbesyhpzr")) - .withSparkPool( - new BigDataPoolParametrizationReference() - .withType(BigDataPoolReferenceType.BIG_DATA_POOL_REFERENCE) - .withReferenceName("dataawdls")) - .withParameters( - mapOf( - "fjbzosyttu", - new NotebookParameter().withValue("datanksovvbt").withType(NotebookParameterType.BOOL), - "sagp", - new NotebookParameter().withValue("datahkpdkwvwxrxmu").withType(NotebookParameterType.FLOAT), - "entudpvsnllijbbd", - new NotebookParameter().withValue("datag").withType(NotebookParameterType.STRING))) - .withExecutorSize("datamtlwrw") - .withConf("datayqwfpxpfk") - .withDriverSize("datatxgtcovpbcpgzgq") - .withNumExecutors("datap") - .withConfigurationType(ConfigurationType.DEFAULT) - .withTargetSparkConfiguration( - new SparkConfigurationParametrizationReference() - .withType(SparkConfigurationReferenceType.SPARK_CONFIGURATION_REFERENCE) - .withReferenceName("databjgtascxmnben")) - .withSparkConfig(mapOf("fwcqcxyju", "datazxzw", "dngh", "datakfwokzizlaha")); - model = BinaryData.fromObject(model).toObject(SynapseNotebookActivityTypeProperties.class); - Assertions.assertEquals(NotebookReferenceType.NOTEBOOK_REFERENCE, model.notebook().type()); - Assertions.assertEquals(BigDataPoolReferenceType.BIG_DATA_POOL_REFERENCE, model.sparkPool().type()); - Assertions.assertEquals(NotebookParameterType.BOOL, model.parameters().get("fjbzosyttu").type()); - Assertions.assertEquals(ConfigurationType.DEFAULT, model.configurationType()); - Assertions - .assertEquals( - SparkConfigurationReferenceType.SPARK_CONFIGURATION_REFERENCE, model.targetSparkConfiguration().type()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SynapseNotebookReferenceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SynapseNotebookReferenceTests.java deleted file mode 100644 index 0439f55d8121..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SynapseNotebookReferenceTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.NotebookReferenceType; -import com.azure.resourcemanager.datafactory.models.SynapseNotebookReference; -import org.junit.jupiter.api.Assertions; - -public final class SynapseNotebookReferenceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SynapseNotebookReference model = - BinaryData - .fromString("{\"type\":\"NotebookReference\",\"referenceName\":\"datazmpk\"}") - .toObject(SynapseNotebookReference.class); - Assertions.assertEquals(NotebookReferenceType.NOTEBOOK_REFERENCE, model.type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SynapseNotebookReference model = - new SynapseNotebookReference() - .withType(NotebookReferenceType.NOTEBOOK_REFERENCE) - .withReferenceName("datazmpk"); - model = BinaryData.fromObject(model).toObject(SynapseNotebookReference.class); - Assertions.assertEquals(NotebookReferenceType.NOTEBOOK_REFERENCE, model.type()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SynapseSparkJobReferenceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SynapseSparkJobReferenceTests.java deleted file mode 100644 index 41d3b367a167..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SynapseSparkJobReferenceTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SparkJobReferenceType; -import com.azure.resourcemanager.datafactory.models.SynapseSparkJobReference; -import org.junit.jupiter.api.Assertions; - -public final class SynapseSparkJobReferenceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SynapseSparkJobReference model = - BinaryData - .fromString("{\"type\":\"SparkJobDefinitionReference\",\"referenceName\":\"datacnvrbhqxewdc\"}") - .toObject(SynapseSparkJobReference.class); - Assertions.assertEquals(SparkJobReferenceType.SPARK_JOB_DEFINITION_REFERENCE, model.type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SynapseSparkJobReference model = - new SynapseSparkJobReference() - .withType(SparkJobReferenceType.SPARK_JOB_DEFINITION_REFERENCE) - .withReferenceName("datacnvrbhqxewdc"); - model = BinaryData.fromObject(model).toObject(SynapseSparkJobReference.class); - Assertions.assertEquals(SparkJobReferenceType.SPARK_JOB_DEFINITION_REFERENCE, model.type()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TabularSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TabularSourceTests.java deleted file mode 100644 index 8ca27625943a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TabularSourceTests.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.TabularSource; - -public final class TabularSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TabularSource model = - BinaryData - .fromString( - "{\"type\":\"TabularSource\",\"queryTimeout\":\"datakrsyfdsg\",\"additionalColumns\":\"datake\",\"sourceRetryCount\":\"datamrupgevjma\",\"sourceRetryWait\":\"datarvvjoklb\",\"maxConcurrentConnections\":\"datat\",\"disableMetricsCollection\":\"datatwxfjlpk\",\"\":{\"uvwlfzjrjgla\":\"dataexfmqfuflu\"}}") - .toObject(TabularSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TabularSource model = - new TabularSource() - .withSourceRetryCount("datamrupgevjma") - .withSourceRetryWait("datarvvjoklb") - .withMaxConcurrentConnections("datat") - .withDisableMetricsCollection("datatwxfjlpk") - .withQueryTimeout("datakrsyfdsg") - .withAdditionalColumns("datake"); - model = BinaryData.fromObject(model).toObject(TabularSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TabularTranslatorTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TabularTranslatorTests.java deleted file mode 100644 index 2c3c7efab8cd..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TabularTranslatorTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.TabularTranslator; -import com.azure.resourcemanager.datafactory.models.TypeConversionSettings; - -public final class TabularTranslatorTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TabularTranslator model = - BinaryData - .fromString( - "{\"type\":\"TabularTranslator\",\"columnMappings\":\"dataezb\",\"schemaMapping\":\"dataullqpcijyx\",\"collectionReference\":\"dataqcggksr\",\"mapComplexValuesToString\":\"datax\",\"mappings\":\"datafhar\",\"typeConversion\":\"dataltlftraylxz\",\"typeConversionSettings\":{\"allowDataTruncation\":\"datapuhbao\",\"treatBooleanAsNumber\":\"datawbkxdhavegy\",\"dateTimeFormat\":\"datasmlbz\",\"dateTimeOffsetFormat\":\"datapdatvndvwwejvqpw\",\"timeSpanFormat\":\"dataioqwmhcpujygnt\",\"culture\":\"datae\"},\"\":{\"rso\":\"datasqthcywyoqx\",\"lr\":\"dataf\",\"ffl\":\"dataj\",\"ljf\":\"datazm\"}}") - .toObject(TabularTranslator.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TabularTranslator model = - new TabularTranslator() - .withColumnMappings("dataezb") - .withSchemaMapping("dataullqpcijyx") - .withCollectionReference("dataqcggksr") - .withMapComplexValuesToString("datax") - .withMappings("datafhar") - .withTypeConversion("dataltlftraylxz") - .withTypeConversionSettings( - new TypeConversionSettings() - .withAllowDataTruncation("datapuhbao") - .withTreatBooleanAsNumber("datawbkxdhavegy") - .withDateTimeFormat("datasmlbz") - .withDateTimeOffsetFormat("datapdatvndvwwejvqpw") - .withTimeSpanFormat("dataioqwmhcpujygnt") - .withCulture("datae")); - model = BinaryData.fromObject(model).toObject(TabularTranslator.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TarGZipReadSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TarGZipReadSettingsTests.java deleted file mode 100644 index 0bdf9c74fbe3..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TarGZipReadSettingsTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.TarGZipReadSettings; - -public final class TarGZipReadSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TarGZipReadSettings model = - BinaryData - .fromString( - "{\"type\":\"TarGZipReadSettings\",\"preserveCompressionFileNameAsFolder\":\"dataljcauegymc\",\"\":{\"wodayipg\":\"datamnjitxughlbi\",\"byoxpvbv\":\"datahkioec\"}}") - .toObject(TarGZipReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TarGZipReadSettings model = new TarGZipReadSettings().withPreserveCompressionFileNameAsFolder("dataljcauegymc"); - model = BinaryData.fromObject(model).toObject(TarGZipReadSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TarReadSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TarReadSettingsTests.java deleted file mode 100644 index e417813e7037..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TarReadSettingsTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.TarReadSettings; - -public final class TarReadSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TarReadSettings model = - BinaryData - .fromString( - "{\"type\":\"TarReadSettings\",\"preserveCompressionFileNameAsFolder\":\"datanzot\",\"\":{\"qsylkkqvmmm\":\"datahuidlod\"}}") - .toObject(TarReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TarReadSettings model = new TarReadSettings().withPreserveCompressionFileNameAsFolder("datanzot"); - model = BinaryData.fromObject(model).toObject(TarReadSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TeradataPartitionSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TeradataPartitionSettingsTests.java deleted file mode 100644 index b3edff2bdf28..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TeradataPartitionSettingsTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.TeradataPartitionSettings; - -public final class TeradataPartitionSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TeradataPartitionSettings model = - BinaryData - .fromString( - "{\"partitionColumnName\":\"datauxypvuazaj\",\"partitionUpperBound\":\"datanekhjzbfbuqe\",\"partitionLowerBound\":\"datauozarrqppyzryj\"}") - .toObject(TeradataPartitionSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TeradataPartitionSettings model = - new TeradataPartitionSettings() - .withPartitionColumnName("datauxypvuazaj") - .withPartitionUpperBound("datanekhjzbfbuqe") - .withPartitionLowerBound("datauozarrqppyzryj"); - model = BinaryData.fromObject(model).toObject(TeradataPartitionSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TeradataSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TeradataSourceTests.java deleted file mode 100644 index b4b4ba0ee347..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TeradataSourceTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.TeradataPartitionSettings; -import com.azure.resourcemanager.datafactory.models.TeradataSource; - -public final class TeradataSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TeradataSource model = - BinaryData - .fromString( - "{\"type\":\"TeradataSource\",\"query\":\"dataljucodrbkdieismd\",\"partitionOption\":\"datafim\",\"partitionSettings\":{\"partitionColumnName\":\"dataijrlmnkvp\",\"partitionUpperBound\":\"dataoe\",\"partitionLowerBound\":\"datacsk\"},\"queryTimeout\":\"datawzmji\",\"additionalColumns\":\"dataqyllcckgfo\",\"sourceRetryCount\":\"datarbfyjmenq\",\"sourceRetryWait\":\"datajfxqtvsfsvqy\",\"maxConcurrentConnections\":\"dataaweixnoblazwhda\",\"disableMetricsCollection\":\"dataixfdu\",\"\":{\"bh\":\"dataovitpcsmaxzdx\"}}") - .toObject(TeradataSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TeradataSource model = - new TeradataSource() - .withSourceRetryCount("datarbfyjmenq") - .withSourceRetryWait("datajfxqtvsfsvqy") - .withMaxConcurrentConnections("dataaweixnoblazwhda") - .withDisableMetricsCollection("dataixfdu") - .withQueryTimeout("datawzmji") - .withAdditionalColumns("dataqyllcckgfo") - .withQuery("dataljucodrbkdieismd") - .withPartitionOption("datafim") - .withPartitionSettings( - new TeradataPartitionSettings() - .withPartitionColumnName("dataijrlmnkvp") - .withPartitionUpperBound("dataoe") - .withPartitionLowerBound("datacsk")); - model = BinaryData.fromObject(model).toObject(TeradataSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TeradataTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TeradataTableDatasetTests.java deleted file mode 100644 index 07a826dbb3a9..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TeradataTableDatasetTests.java +++ /dev/null @@ -1,77 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.TeradataTableDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class TeradataTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TeradataTableDataset model = - BinaryData - .fromString( - "{\"type\":\"TeradataTable\",\"typeProperties\":{\"database\":\"databxjblajybdnb\",\"table\":\"datasbtoisazdjmo\"},\"description\":\"vpz\",\"structure\":\"datanywxuy\",\"schema\":\"datafj\",\"linkedServiceName\":{\"referenceName\":\"mgwtmszcfyzqp\",\"parameters\":{\"gihlnzffewvqky\":\"dataegfurdpagknxmaov\"}},\"parameters\":{\"abhgclejqzhpvh\":{\"type\":\"Bool\",\"defaultValue\":\"dataipqxxsdyafwtydsm\"},\"eullgfyog\":{\"type\":\"String\",\"defaultValue\":\"dataadj\"},\"mwdz\":{\"type\":\"Int\",\"defaultValue\":\"datacjpvqerqxk\"},\"x\":{\"type\":\"SecureString\",\"defaultValue\":\"datahcu\"}},\"annotations\":[\"datawwvmbjec\",\"datawlbg\",\"datankfrwxo\"],\"folder\":{\"name\":\"dsnjzpchiypb\"},\"\":{\"iktqozewbrsrj\":\"datai\",\"qbjxgjwsrerukbuu\":\"datagkbrauxboufqn\",\"wkwkjxlaacedikqe\":\"datari\"}}") - .toObject(TeradataTableDataset.class); - Assertions.assertEquals("vpz", model.description()); - Assertions.assertEquals("mgwtmszcfyzqp", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("abhgclejqzhpvh").type()); - Assertions.assertEquals("dsnjzpchiypb", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TeradataTableDataset model = - new TeradataTableDataset() - .withDescription("vpz") - .withStructure("datanywxuy") - .withSchema("datafj") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("mgwtmszcfyzqp") - .withParameters(mapOf("gihlnzffewvqky", "dataegfurdpagknxmaov"))) - .withParameters( - mapOf( - "abhgclejqzhpvh", - new ParameterSpecification() - .withType(ParameterType.BOOL) - .withDefaultValue("dataipqxxsdyafwtydsm"), - "eullgfyog", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("dataadj"), - "mwdz", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datacjpvqerqxk"), - "x", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("datahcu"))) - .withAnnotations(Arrays.asList("datawwvmbjec", "datawlbg", "datankfrwxo")) - .withFolder(new DatasetFolder().withName("dsnjzpchiypb")) - .withDatabase("databxjblajybdnb") - .withTable("datasbtoisazdjmo"); - model = BinaryData.fromObject(model).toObject(TeradataTableDataset.class); - Assertions.assertEquals("vpz", model.description()); - Assertions.assertEquals("mgwtmszcfyzqp", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("abhgclejqzhpvh").type()); - Assertions.assertEquals("dsnjzpchiypb", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TeradataTableDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TeradataTableDatasetTypePropertiesTests.java deleted file mode 100644 index 0819330b433d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TeradataTableDatasetTypePropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.TeradataTableDatasetTypeProperties; - -public final class TeradataTableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TeradataTableDatasetTypeProperties model = - BinaryData - .fromString("{\"database\":\"datas\",\"table\":\"datazbevgbnrommkiqh\"}") - .toObject(TeradataTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TeradataTableDatasetTypeProperties model = - new TeradataTableDatasetTypeProperties().withDatabase("datas").withTable("datazbevgbnrommkiqh"); - model = BinaryData.fromObject(model).toObject(TeradataTableDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TextFormatTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TextFormatTests.java deleted file mode 100644 index 6d5e7a007d27..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TextFormatTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.TextFormat; - -public final class TextFormatTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TextFormat model = - BinaryData - .fromString( - "{\"type\":\"TextFormat\",\"columnDelimiter\":\"datavhxowpcbapnpxra\",\"rowDelimiter\":\"datawbmpspfeylqloc\",\"escapeChar\":\"dataujexayglxrk\",\"quoteChar\":\"datanmzpas\",\"nullValue\":\"datavxjfiuofpieidzlv\",\"encodingName\":\"dataqywjopa\",\"treatEmptyAsNull\":\"datayhydvikmfn\",\"skipLineCount\":\"datamillxgjs\",\"firstRowAsHeader\":\"datazwgsoriobije\",\"serializer\":\"datadye\",\"deserializer\":\"datanhbokayrgwybrio\",\"\":{\"s\":\"dataeoftnorwai\",\"f\":\"dataoctqkmvjanxvzf\",\"wosstfjxtvlxx\":\"datatj\"}}") - .toObject(TextFormat.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TextFormat model = - new TextFormat() - .withSerializer("datadye") - .withDeserializer("datanhbokayrgwybrio") - .withColumnDelimiter("datavhxowpcbapnpxra") - .withRowDelimiter("datawbmpspfeylqloc") - .withEscapeChar("dataujexayglxrk") - .withQuoteChar("datanmzpas") - .withNullValue("datavxjfiuofpieidzlv") - .withEncodingName("dataqywjopa") - .withTreatEmptyAsNull("datayhydvikmfn") - .withSkipLineCount("datamillxgjs") - .withFirstRowAsHeader("datazwgsoriobije"); - model = BinaryData.fromObject(model).toObject(TextFormat.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TransformationTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TransformationTests.java deleted file mode 100644 index 7c9e6dcac563..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TransformationTests.java +++ /dev/null @@ -1,83 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DataFlowReference; -import com.azure.resourcemanager.datafactory.models.DataFlowReferenceType; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.Transformation; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class TransformationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - Transformation model = - BinaryData - .fromString( - "{\"name\":\"xxtclhuulri\",\"description\":\"yokvjgbzsxebr\",\"dataset\":{\"referenceName\":\"ttfyhcdjwsuoard\",\"parameters\":{\"bfwxiplkys\":\"datattpufpbpgnrholhu\",\"yjprxslw\":\"datal\",\"hfvhuwzbxpcqz\":\"datadmcvhtbbz\",\"lrrskap\":\"dataihotjecohmxv\"}},\"linkedService\":{\"referenceName\":\"wie\",\"parameters\":{\"imyc\":\"datayaderltfokyks\",\"rsejegprkj\":\"datagrvkcxzznnuif\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"rjmwvvbtuqkxxi\",\"datasetParameters\":\"datagxql\",\"parameters\":{\"vjaqu\":\"dataotjgxieqfkyfhi\"},\"\":{\"mj\":\"dataynvskpajbmgeume\",\"apeqiscrpil\":\"dataxcbccwkqmt\"}}}") - .toObject(Transformation.class); - Assertions.assertEquals("xxtclhuulri", model.name()); - Assertions.assertEquals("yokvjgbzsxebr", model.description()); - Assertions.assertEquals("ttfyhcdjwsuoard", model.dataset().referenceName()); - Assertions.assertEquals("wie", model.linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.flowlet().type()); - Assertions.assertEquals("rjmwvvbtuqkxxi", model.flowlet().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Transformation model = - new Transformation() - .withName("xxtclhuulri") - .withDescription("yokvjgbzsxebr") - .withDataset( - new DatasetReference() - .withReferenceName("ttfyhcdjwsuoard") - .withParameters( - mapOf( - "bfwxiplkys", - "datattpufpbpgnrholhu", - "yjprxslw", - "datal", - "hfvhuwzbxpcqz", - "datadmcvhtbbz", - "lrrskap", - "dataihotjecohmxv"))) - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("wie") - .withParameters(mapOf("imyc", "datayaderltfokyks", "rsejegprkj", "datagrvkcxzznnuif"))) - .withFlowlet( - new DataFlowReference() - .withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("rjmwvvbtuqkxxi") - .withDatasetParameters("datagxql") - .withParameters(mapOf("vjaqu", "dataotjgxieqfkyfhi")) - .withAdditionalProperties(mapOf())); - model = BinaryData.fromObject(model).toObject(Transformation.class); - Assertions.assertEquals("xxtclhuulri", model.name()); - Assertions.assertEquals("yokvjgbzsxebr", model.description()); - Assertions.assertEquals("ttfyhcdjwsuoard", model.dataset().referenceName()); - Assertions.assertEquals("wie", model.linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.flowlet().type()); - Assertions.assertEquals("rjmwvvbtuqkxxi", model.flowlet().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerDependencyReferenceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerDependencyReferenceTests.java deleted file mode 100644 index 3874a2ac67bc..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerDependencyReferenceTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.TriggerDependencyReference; -import com.azure.resourcemanager.datafactory.models.TriggerReference; -import com.azure.resourcemanager.datafactory.models.TriggerReferenceType; -import org.junit.jupiter.api.Assertions; - -public final class TriggerDependencyReferenceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TriggerDependencyReference model = - BinaryData - .fromString( - "{\"type\":\"TriggerDependencyReference\",\"referenceTrigger\":{\"type\":\"TriggerReference\",\"referenceName\":\"n\"}}") - .toObject(TriggerDependencyReference.class); - Assertions.assertEquals(TriggerReferenceType.TRIGGER_REFERENCE, model.referenceTrigger().type()); - Assertions.assertEquals("n", model.referenceTrigger().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TriggerDependencyReference model = - new TriggerDependencyReference() - .withReferenceTrigger( - new TriggerReference().withType(TriggerReferenceType.TRIGGER_REFERENCE).withReferenceName("n")); - model = BinaryData.fromObject(model).toObject(TriggerDependencyReference.class); - Assertions.assertEquals(TriggerReferenceType.TRIGGER_REFERENCE, model.referenceTrigger().type()); - Assertions.assertEquals("n", model.referenceTrigger().referenceName()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerListResponseTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerListResponseTests.java deleted file mode 100644 index e147f2fc171a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerListResponseTests.java +++ /dev/null @@ -1,69 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.TriggerResourceInner; -import com.azure.resourcemanager.datafactory.models.Trigger; -import com.azure.resourcemanager.datafactory.models.TriggerListResponse; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class TriggerListResponseTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TriggerListResponse model = - BinaryData - .fromString( - "{\"value\":[{\"properties\":{\"type\":\"Trigger\",\"description\":\"nifmzzsdymbrnysu\",\"runtimeState\":\"Stopped\",\"annotations\":[\"datafwgckhocxvdfffw\"],\"\":{\"spave\":\"dataroud\",\"bunzozudh\":\"datahrv\"}},\"name\":\"gkmoyxcdyuibhmfd\",\"type\":\"zydvfvf\",\"etag\":\"naeo\",\"id\":\"rvhmgor\"},{\"properties\":{\"type\":\"Trigger\",\"description\":\"ukiscvwmzhw\",\"runtimeState\":\"Disabled\",\"annotations\":[\"dataxvxilcbtg\"],\"\":{\"vodggxdbee\":\"datazeyqxtjjfzqlqhyc\",\"wiuagydwqf\":\"datamieknlraria\",\"ocqwogfnzjvus\":\"dataylyrfgiagtco\"}},\"name\":\"ld\",\"type\":\"zuxylfsbtkadpyso\",\"etag\":\"btgkbugrjqctoj\",\"id\":\"isofieypefojyqd\"}],\"nextLink\":\"u\"}") - .toObject(TriggerListResponse.class); - Assertions.assertEquals("rvhmgor", model.value().get(0).id()); - Assertions.assertEquals("nifmzzsdymbrnysu", model.value().get(0).properties().description()); - Assertions.assertEquals("u", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TriggerListResponse model = - new TriggerListResponse() - .withValue( - Arrays - .asList( - new TriggerResourceInner() - .withId("rvhmgor") - .withProperties( - new Trigger() - .withDescription("nifmzzsdymbrnysu") - .withAnnotations(Arrays.asList("datafwgckhocxvdfffw")) - .withAdditionalProperties(mapOf("type", "Trigger", "runtimeState", "Stopped"))), - new TriggerResourceInner() - .withId("isofieypefojyqd") - .withProperties( - new Trigger() - .withDescription("ukiscvwmzhw") - .withAnnotations(Arrays.asList("dataxvxilcbtg")) - .withAdditionalProperties( - mapOf("type", "Trigger", "runtimeState", "Disabled"))))) - .withNextLink("u"); - model = BinaryData.fromObject(model).toObject(TriggerListResponse.class); - Assertions.assertEquals("rvhmgor", model.value().get(0).id()); - Assertions.assertEquals("nifmzzsdymbrnysu", model.value().get(0).properties().description()); - Assertions.assertEquals("u", model.nextLink()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerPipelineReferenceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerPipelineReferenceTests.java deleted file mode 100644 index 207b358d8656..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerPipelineReferenceTests.java +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.PipelineReference; -import com.azure.resourcemanager.datafactory.models.TriggerPipelineReference; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class TriggerPipelineReferenceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TriggerPipelineReference model = - BinaryData - .fromString( - "{\"pipelineReference\":{\"referenceName\":\"wkpphefsb\",\"name\":\"lbzxomeikjc\"},\"parameters\":{\"qbxyxoyfpuqqi\":\"dataacnmwpfsuqtaaz\"}}") - .toObject(TriggerPipelineReference.class); - Assertions.assertEquals("wkpphefsb", model.pipelineReference().referenceName()); - Assertions.assertEquals("lbzxomeikjc", model.pipelineReference().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TriggerPipelineReference model = - new TriggerPipelineReference() - .withPipelineReference(new PipelineReference().withReferenceName("wkpphefsb").withName("lbzxomeikjc")) - .withParameters(mapOf("qbxyxoyfpuqqi", "dataacnmwpfsuqtaaz")); - model = BinaryData.fromObject(model).toObject(TriggerPipelineReference.class); - Assertions.assertEquals("wkpphefsb", model.pipelineReference().referenceName()); - Assertions.assertEquals("lbzxomeikjc", model.pipelineReference().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerReferenceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerReferenceTests.java deleted file mode 100644 index c97d3380ea92..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerReferenceTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.TriggerReference; -import com.azure.resourcemanager.datafactory.models.TriggerReferenceType; -import org.junit.jupiter.api.Assertions; - -public final class TriggerReferenceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TriggerReference model = - BinaryData - .fromString("{\"type\":\"TriggerReference\",\"referenceName\":\"dfiwj\"}") - .toObject(TriggerReference.class); - Assertions.assertEquals(TriggerReferenceType.TRIGGER_REFERENCE, model.type()); - Assertions.assertEquals("dfiwj", model.referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TriggerReference model = - new TriggerReference().withType(TriggerReferenceType.TRIGGER_REFERENCE).withReferenceName("dfiwj"); - model = BinaryData.fromObject(model).toObject(TriggerReference.class); - Assertions.assertEquals(TriggerReferenceType.TRIGGER_REFERENCE, model.type()); - Assertions.assertEquals("dfiwj", model.referenceName()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerResourceInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerResourceInnerTests.java deleted file mode 100644 index 6013dc2f16b8..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerResourceInnerTests.java +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.TriggerResourceInner; -import com.azure.resourcemanager.datafactory.models.Trigger; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class TriggerResourceInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TriggerResourceInner model = - BinaryData - .fromString( - "{\"properties\":{\"type\":\"Trigger\",\"description\":\"cp\",\"runtimeState\":\"Started\",\"annotations\":[\"dataihih\",\"datahzdsqtzbsrgnow\",\"datajhf\",\"datamvec\"],\"\":{\"ekqvgqouwif\":\"dataxmwoteyowcluqo\",\"ivqikfxcvhr\":\"datampjw\",\"c\":\"datasphuagrttikteus\"}},\"name\":\"vyklxuby\",\"type\":\"ff\",\"etag\":\"fblcq\",\"id\":\"ubgq\"}") - .toObject(TriggerResourceInner.class); - Assertions.assertEquals("ubgq", model.id()); - Assertions.assertEquals("cp", model.properties().description()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TriggerResourceInner model = - new TriggerResourceInner() - .withId("ubgq") - .withProperties( - new Trigger() - .withDescription("cp") - .withAnnotations(Arrays.asList("dataihih", "datahzdsqtzbsrgnow", "datajhf", "datamvec")) - .withAdditionalProperties(mapOf("type", "Trigger", "runtimeState", "Started"))); - model = BinaryData.fromObject(model).toObject(TriggerResourceInner.class); - Assertions.assertEquals("ubgq", model.id()); - Assertions.assertEquals("cp", model.properties().description()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerRunTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerRunTests.java deleted file mode 100644 index 0b69708fa752..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerRunTests.java +++ /dev/null @@ -1,84 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.core.util.serializer.JacksonAdapter; -import com.azure.core.util.serializer.SerializerEncoding; -import com.azure.resourcemanager.datafactory.models.TriggerRun; -import java.util.HashMap; -import java.util.Map; - -public final class TriggerRunTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TriggerRun model = - BinaryData - .fromString( - "{\"triggerRunId\":\"hcz\",\"triggerName\":\"rxzbujr\",\"triggerType\":\"hqvwrevkhgnlnzon\",\"triggerRunTimestamp\":\"2021-07-02T07:36:09Z\",\"status\":\"Inprogress\",\"message\":\"yw\",\"properties\":{\"zehtdhgb\":\"jtszcof\",\"reljeamur\":\"k\",\"xlpm\":\"zmlovuanash\"},\"triggeredPipelines\":{\"sdbccxjmonfdgnwn\":\"bdkelvidizo\",\"keifzzhmkdasv\":\"ypuuwwltvuqjctze\",\"cu\":\"lyhb\"},\"runDimension\":{\"lvizb\":\"xgsrboldforobw\",\"dxe\":\"hfovvacqpbtu\",\"elawumu\":\"zab\"},\"dependencyStatus\":{\"ucwyhahno\":\"datazkwrrwoyc\",\"fuurutlwexx\":\"datadrkywuhps\",\"srzpgepqtybbww\":\"datalalniex\"},\"\":{\"xkjibnxmy\":\"dataakchzyvlixqnrk\",\"ijpstte\":\"datauxswqrntvl\",\"wcyyufmhruncu\":\"dataoqq\"}}") - .toObject(TriggerRun.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TriggerRun model = - new TriggerRun() - .withAdditionalProperties( - mapOf( - "triggerRunId", - "hcz", - "triggerName", - "rxzbujr", - "runDimension", - JacksonAdapter - .createDefaultSerializerAdapter() - .deserialize( - "{\"lvizb\":\"xgsrboldforobw\",\"dxe\":\"hfovvacqpbtu\",\"elawumu\":\"zab\"}", - Object.class, - SerializerEncoding.JSON), - "dependencyStatus", - JacksonAdapter - .createDefaultSerializerAdapter() - .deserialize( - "{\"ucwyhahno\":\"datazkwrrwoyc\",\"fuurutlwexx\":\"datadrkywuhps\",\"srzpgepqtybbww\":\"datalalniex\"}", - Object.class, - SerializerEncoding.JSON), - "triggeredPipelines", - JacksonAdapter - .createDefaultSerializerAdapter() - .deserialize( - "{\"sdbccxjmonfdgnwn\":\"bdkelvidizo\",\"keifzzhmkdasv\":\"ypuuwwltvuqjctze\",\"cu\":\"lyhb\"}", - Object.class, - SerializerEncoding.JSON), - "triggerType", - "hqvwrevkhgnlnzon", - "triggerRunTimestamp", - "2021-07-02T07:36:09Z", - "message", - "yw", - "properties", - JacksonAdapter - .createDefaultSerializerAdapter() - .deserialize( - "{\"zehtdhgb\":\"jtszcof\",\"reljeamur\":\"k\",\"xlpm\":\"zmlovuanash\"}", - Object.class, - SerializerEncoding.JSON), - "status", - "Inprogress")); - model = BinaryData.fromObject(model).toObject(TriggerRun.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerRunsCancelWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerRunsCancelWithResponseMockTests.java deleted file mode 100644 index 64f4b1e98464..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerRunsCancelWithResponseMockTests.java +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class TriggerRunsCancelWithResponseMockTests { - @Test - public void testCancelWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager - .triggerRuns() - .cancelWithResponse("cobp", "phxhvbfekxbcbu", "jysukezqohth", "md", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerRunsRerunWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerRunsRerunWithResponseMockTests.java deleted file mode 100644 index 7ee46e5d21f7..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerRunsRerunWithResponseMockTests.java +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class TriggerRunsRerunWithResponseMockTests { - @Test - public void testRerunWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager - .triggerRuns() - .rerunWithResponse("nctkqbvtdeou", "ixgtpykbjevj", "juwdvfaulbfrc", "h", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerSubscriptionOperationStatusInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerSubscriptionOperationStatusInnerTests.java deleted file mode 100644 index cba54e6a761a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerSubscriptionOperationStatusInnerTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.TriggerSubscriptionOperationStatusInner; - -public final class TriggerSubscriptionOperationStatusInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TriggerSubscriptionOperationStatusInner model = - BinaryData - .fromString("{\"triggerName\":\"n\",\"status\":\"Provisioning\"}") - .toObject(TriggerSubscriptionOperationStatusInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TriggerSubscriptionOperationStatusInner model = new TriggerSubscriptionOperationStatusInner(); - model = BinaryData.fromObject(model).toObject(TriggerSubscriptionOperationStatusInner.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerTests.java deleted file mode 100644 index f95b2ffc7e8b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerTests.java +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.Trigger; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class TriggerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - Trigger model = - BinaryData - .fromString( - "{\"type\":\"Trigger\",\"description\":\"rtalmet\",\"runtimeState\":\"Started\",\"annotations\":[\"dataslqxi\",\"datahrmooi\",\"dataqseypxiutcxa\",\"datazhyrpeto\"],\"\":{\"rqnkkzjcjbtr\":\"datajoxslhvnhla\",\"eitpkxztmo\":\"dataaehvvibrxjjstoq\"}}") - .toObject(Trigger.class); - Assertions.assertEquals("rtalmet", model.description()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Trigger model = - new Trigger() - .withDescription("rtalmet") - .withAnnotations(Arrays.asList("dataslqxi", "datahrmooi", "dataqseypxiutcxa", "datazhyrpeto")) - .withAdditionalProperties(mapOf("type", "Trigger", "runtimeState", "Started")); - model = BinaryData.fromObject(model).toObject(Trigger.class); - Assertions.assertEquals("rtalmet", model.description()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggersCreateOrUpdateWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggersCreateOrUpdateWithResponseMockTests.java deleted file mode 100644 index 2a911676b179..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggersCreateOrUpdateWithResponseMockTests.java +++ /dev/null @@ -1,94 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.Trigger; -import com.azure.resourcemanager.datafactory.models.TriggerResource; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class TriggersCreateOrUpdateWithResponseMockTests { - @Test - public void testCreateOrUpdateWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"type\":\"Trigger\",\"description\":\"vskdvqyfubwxca\",\"runtimeState\":\"Stopped\",\"annotations\":[\"datapfojhvqmdoqyohzh\",\"datandfkp\"],\"\":{\"usuw\":\"datavjd\",\"pgarhf\":\"dataht\",\"cxvqpmwqsd\":\"dataadedivad\"}},\"name\":\"lexkfsgrhea\",\"type\":\"lcukmnuivpb\",\"etag\":\"lihfzriig\",\"id\":\"qyptmjqjoamzdsa\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - TriggerResource response = - manager - .triggers() - .define("ogfxbv") - .withExistingFactory("mv", "qismvo") - .withProperties( - new Trigger() - .withDescription("cf") - .withAnnotations(Arrays.asList("datace", "dataqnh")) - .withAdditionalProperties(mapOf("type", "Trigger", "runtimeState", "Disabled"))) - .withIfMatch("bkzchc") - .create(); - - Assertions.assertEquals("qyptmjqjoamzdsa", response.id()); - Assertions.assertEquals("vskdvqyfubwxca", response.properties().description()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggersDeleteWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggersDeleteWithResponseMockTests.java deleted file mode 100644 index 8c55b55765a1..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggersDeleteWithResponseMockTests.java +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class TriggersDeleteWithResponseMockTests { - @Test - public void testDeleteWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager - .triggers() - .deleteWithResponse("jkysolmzrfhlynk", "usb", "ysbjtsqfhnqxqte", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggersGetEventSubscriptionStatusWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggersGetEventSubscriptionStatusWithResponseMockTests.java deleted file mode 100644 index e487f438ff61..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggersGetEventSubscriptionStatusWithResponseMockTests.java +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.TriggerSubscriptionOperationStatus; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class TriggersGetEventSubscriptionStatusWithResponseMockTests { - @Test - public void testGetEventSubscriptionStatusWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{\"triggerName\":\"xaqvrazthdua\",\"status\":\"Deprovisioning\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - TriggerSubscriptionOperationStatus response = - manager - .triggers() - .getEventSubscriptionStatusWithResponse( - "pposgimtoucls", "bjzhhjgvuvjsnb", "nuujkjkqyewtlom", com.azure.core.util.Context.NONE) - .getValue(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggersGetWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggersGetWithResponseMockTests.java deleted file mode 100644 index 3425c8655c06..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggersGetWithResponseMockTests.java +++ /dev/null @@ -1,71 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.TriggerResource; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class TriggersGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"type\":\"Trigger\",\"description\":\"ub\",\"runtimeState\":\"Stopped\",\"annotations\":[\"dataqmydpoj\",\"dataifixdgkvlze\",\"datadqop\",\"dataabrzrhdezlhsdcp\"],\"\":{\"cdemfatftzxtrjr\":\"datalczhyqdvxqoajfo\",\"qq\":\"datawljfdcyq\"}},\"name\":\"lydywbnerygsi\",\"type\":\"a\",\"etag\":\"ccsvajn\",\"id\":\"uxbyrvgu\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - TriggerResource response = - manager - .triggers() - .getWithResponse("govnrkyb", "tcrxcnuyfvri", "zqoi", "onnvay", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("uxbyrvgu", response.id()); - Assertions.assertEquals("ub", response.properties().description()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggersListByFactoryMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggersListByFactoryMockTests.java deleted file mode 100644 index 99cde7493e9b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggersListByFactoryMockTests.java +++ /dev/null @@ -1,69 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.TriggerResource; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class TriggersListByFactoryMockTests { - @Test - public void testListByFactory() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"properties\":{\"type\":\"Trigger\",\"description\":\"gesbteqfenhlitc\",\"runtimeState\":\"Disabled\",\"annotations\":[\"dataflnzibguwrdhxa\"],\"\":{\"fjpefirjkinofw\":\"datap\"}},\"name\":\"il\",\"type\":\"qesyifdrbkprblw\",\"etag\":\"js\",\"id\":\"qqts\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = - manager.triggers().listByFactory("wahfnlksyqpksk", "idmzzjpb", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("qqts", response.iterator().next().id()); - Assertions.assertEquals("gesbteqfenhlitc", response.iterator().next().properties().description()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggersStartMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggersStartMockTests.java deleted file mode 100644 index 91d2912fc6fb..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggersStartMockTests.java +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class TriggersStartMockTests { - @Test - public void testStart() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.triggers().start("cjrfjxisypkif", "tynhulefltub", "pebblndlahr", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggersStopMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggersStopMockTests.java deleted file mode 100644 index f2bb74fc9cb4..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggersStopMockTests.java +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class TriggersStopMockTests { - @Test - public void testStop() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.triggers().stop("x", "tkehfoephipho", "gmcuqjouk", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggersSubscribeToEventsMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggersSubscribeToEventsMockTests.java deleted file mode 100644 index 564030baa698..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggersSubscribeToEventsMockTests.java +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.TriggerSubscriptionOperationStatus; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class TriggersSubscribeToEventsMockTests { - @Test - public void testSubscribeToEvents() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{\"triggerName\":\"xjk\",\"status\":\"Provisioning\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - TriggerSubscriptionOperationStatus response = - manager.triggers().subscribeToEvents("vqxxuwsa", "ui", "cjylkdby", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggersUnsubscribeFromEventsMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggersUnsubscribeFromEventsMockTests.java deleted file mode 100644 index 2eea46ea9415..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggersUnsubscribeFromEventsMockTests.java +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.TriggerSubscriptionOperationStatus; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class TriggersUnsubscribeFromEventsMockTests { - @Test - public void testUnsubscribeFromEvents() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{\"triggerName\":\"patodfyrf\",\"status\":\"Unknown\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - DataFactoryManager manager = - DataFactoryManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - TriggerSubscriptionOperationStatus response = - manager - .triggers() - .unsubscribeFromEvents( - "zzhlnhgngqciiopo", "mgheamxidjdpt", "uiegrauyphugwa", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TumblingWindowTriggerDependencyReferenceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TumblingWindowTriggerDependencyReferenceTests.java deleted file mode 100644 index c465984e62c3..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TumblingWindowTriggerDependencyReferenceTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.TriggerReference; -import com.azure.resourcemanager.datafactory.models.TriggerReferenceType; -import com.azure.resourcemanager.datafactory.models.TumblingWindowTriggerDependencyReference; -import org.junit.jupiter.api.Assertions; - -public final class TumblingWindowTriggerDependencyReferenceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TumblingWindowTriggerDependencyReference model = - BinaryData - .fromString( - "{\"type\":\"TumblingWindowTriggerDependencyReference\",\"offset\":\"qyknivkmdfw\",\"size\":\"ko\",\"referenceTrigger\":{\"type\":\"TriggerReference\",\"referenceName\":\"jwjm\"}}") - .toObject(TumblingWindowTriggerDependencyReference.class); - Assertions.assertEquals(TriggerReferenceType.TRIGGER_REFERENCE, model.referenceTrigger().type()); - Assertions.assertEquals("jwjm", model.referenceTrigger().referenceName()); - Assertions.assertEquals("qyknivkmdfw", model.offset()); - Assertions.assertEquals("ko", model.size()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TumblingWindowTriggerDependencyReference model = - new TumblingWindowTriggerDependencyReference() - .withReferenceTrigger( - new TriggerReference().withType(TriggerReferenceType.TRIGGER_REFERENCE).withReferenceName("jwjm")) - .withOffset("qyknivkmdfw") - .withSize("ko"); - model = BinaryData.fromObject(model).toObject(TumblingWindowTriggerDependencyReference.class); - Assertions.assertEquals(TriggerReferenceType.TRIGGER_REFERENCE, model.referenceTrigger().type()); - Assertions.assertEquals("jwjm", model.referenceTrigger().referenceName()); - Assertions.assertEquals("qyknivkmdfw", model.offset()); - Assertions.assertEquals("ko", model.size()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TumblingWindowTriggerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TumblingWindowTriggerTests.java deleted file mode 100644 index b9f7bfbcc0a0..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TumblingWindowTriggerTests.java +++ /dev/null @@ -1,95 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DependencyReference; -import com.azure.resourcemanager.datafactory.models.PipelineReference; -import com.azure.resourcemanager.datafactory.models.RetryPolicy; -import com.azure.resourcemanager.datafactory.models.TriggerPipelineReference; -import com.azure.resourcemanager.datafactory.models.TumblingWindowFrequency; -import com.azure.resourcemanager.datafactory.models.TumblingWindowTrigger; -import java.time.OffsetDateTime; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class TumblingWindowTriggerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TumblingWindowTrigger model = - BinaryData - .fromString( - "{\"type\":\"TumblingWindowTrigger\",\"pipeline\":{\"pipelineReference\":{\"referenceName\":\"vlnv\",\"name\":\"l\"},\"parameters\":{\"d\":\"dataxpugetwgjlx\",\"tzkdqi\":\"datavfnqazvavspjdxa\",\"yredzhnylir\":\"dataumaijcullkyrss\",\"jrrolwrv\":\"datarxykplvjsqazecdo\"}},\"typeProperties\":{\"frequency\":\"Minute\",\"interval\":243301845,\"startTime\":\"2021-10-01T16:23:36Z\",\"endTime\":\"2021-02-01T07:00:41Z\",\"delay\":\"dataykusfqmgjexiqejv\",\"maxConcurrency\":408948443,\"retryPolicy\":{\"count\":\"datanoexwarqazfsrv\",\"intervalInSeconds\":425533184},\"dependsOn\":[{\"type\":\"DependencyReference\"},{\"type\":\"DependencyReference\"},{\"type\":\"DependencyReference\"},{\"type\":\"DependencyReference\"}]},\"description\":\"hazwewh\",\"runtimeState\":\"Started\",\"annotations\":[\"datadycspidc\",\"dataxjfgxynuxvya\",\"datakcuozwowwmulq\",\"dataaeq\"],\"\":{\"cxkrzuzepdvx\":\"datatqlbjezcwf\"}}") - .toObject(TumblingWindowTrigger.class); - Assertions.assertEquals("hazwewh", model.description()); - Assertions.assertEquals("vlnv", model.pipeline().pipelineReference().referenceName()); - Assertions.assertEquals("l", model.pipeline().pipelineReference().name()); - Assertions.assertEquals(TumblingWindowFrequency.MINUTE, model.frequency()); - Assertions.assertEquals(243301845, model.interval()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-01T16:23:36Z"), model.startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-01T07:00:41Z"), model.endTime()); - Assertions.assertEquals(408948443, model.maxConcurrency()); - Assertions.assertEquals(425533184, model.retryPolicy().intervalInSeconds()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TumblingWindowTrigger model = - new TumblingWindowTrigger() - .withDescription("hazwewh") - .withAnnotations(Arrays.asList("datadycspidc", "dataxjfgxynuxvya", "datakcuozwowwmulq", "dataaeq")) - .withPipeline( - new TriggerPipelineReference() - .withPipelineReference(new PipelineReference().withReferenceName("vlnv").withName("l")) - .withParameters( - mapOf( - "d", - "dataxpugetwgjlx", - "tzkdqi", - "datavfnqazvavspjdxa", - "yredzhnylir", - "dataumaijcullkyrss", - "jrrolwrv", - "datarxykplvjsqazecdo"))) - .withFrequency(TumblingWindowFrequency.MINUTE) - .withInterval(243301845) - .withStartTime(OffsetDateTime.parse("2021-10-01T16:23:36Z")) - .withEndTime(OffsetDateTime.parse("2021-02-01T07:00:41Z")) - .withDelay("dataykusfqmgjexiqejv") - .withMaxConcurrency(408948443) - .withRetryPolicy(new RetryPolicy().withCount("datanoexwarqazfsrv").withIntervalInSeconds(425533184)) - .withDependsOn( - Arrays - .asList( - new DependencyReference(), - new DependencyReference(), - new DependencyReference(), - new DependencyReference())); - model = BinaryData.fromObject(model).toObject(TumblingWindowTrigger.class); - Assertions.assertEquals("hazwewh", model.description()); - Assertions.assertEquals("vlnv", model.pipeline().pipelineReference().referenceName()); - Assertions.assertEquals("l", model.pipeline().pipelineReference().name()); - Assertions.assertEquals(TumblingWindowFrequency.MINUTE, model.frequency()); - Assertions.assertEquals(243301845, model.interval()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-01T16:23:36Z"), model.startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-01T07:00:41Z"), model.endTime()); - Assertions.assertEquals(408948443, model.maxConcurrency()); - Assertions.assertEquals(425533184, model.retryPolicy().intervalInSeconds()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TumblingWindowTriggerTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TumblingWindowTriggerTypePropertiesTests.java deleted file mode 100644 index 7934dbffc19c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TumblingWindowTriggerTypePropertiesTests.java +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.TumblingWindowTriggerTypeProperties; -import com.azure.resourcemanager.datafactory.models.DependencyReference; -import com.azure.resourcemanager.datafactory.models.RetryPolicy; -import com.azure.resourcemanager.datafactory.models.TumblingWindowFrequency; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class TumblingWindowTriggerTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TumblingWindowTriggerTypeProperties model = - BinaryData - .fromString( - "{\"frequency\":\"Month\",\"interval\":2031433893,\"startTime\":\"2021-07-13T04:21:03Z\",\"endTime\":\"2021-06-28T17:38:49Z\",\"delay\":\"datarko\",\"maxConcurrency\":1137580538,\"retryPolicy\":{\"count\":\"databwdvuvqgupl\",\"intervalInSeconds\":1886264335},\"dependsOn\":[{\"type\":\"DependencyReference\"},{\"type\":\"DependencyReference\"},{\"type\":\"DependencyReference\"},{\"type\":\"DependencyReference\"}]}") - .toObject(TumblingWindowTriggerTypeProperties.class); - Assertions.assertEquals(TumblingWindowFrequency.MONTH, model.frequency()); - Assertions.assertEquals(2031433893, model.interval()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-13T04:21:03Z"), model.startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-28T17:38:49Z"), model.endTime()); - Assertions.assertEquals(1137580538, model.maxConcurrency()); - Assertions.assertEquals(1886264335, model.retryPolicy().intervalInSeconds()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TumblingWindowTriggerTypeProperties model = - new TumblingWindowTriggerTypeProperties() - .withFrequency(TumblingWindowFrequency.MONTH) - .withInterval(2031433893) - .withStartTime(OffsetDateTime.parse("2021-07-13T04:21:03Z")) - .withEndTime(OffsetDateTime.parse("2021-06-28T17:38:49Z")) - .withDelay("datarko") - .withMaxConcurrency(1137580538) - .withRetryPolicy(new RetryPolicy().withCount("databwdvuvqgupl").withIntervalInSeconds(1886264335)) - .withDependsOn( - Arrays - .asList( - new DependencyReference(), - new DependencyReference(), - new DependencyReference(), - new DependencyReference())); - model = BinaryData.fromObject(model).toObject(TumblingWindowTriggerTypeProperties.class); - Assertions.assertEquals(TumblingWindowFrequency.MONTH, model.frequency()); - Assertions.assertEquals(2031433893, model.interval()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-13T04:21:03Z"), model.startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-28T17:38:49Z"), model.endTime()); - Assertions.assertEquals(1137580538, model.maxConcurrency()); - Assertions.assertEquals(1886264335, model.retryPolicy().intervalInSeconds()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TypeConversionSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TypeConversionSettingsTests.java deleted file mode 100644 index 410f5dc3eb15..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TypeConversionSettingsTests.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.TypeConversionSettings; - -public final class TypeConversionSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TypeConversionSettings model = - BinaryData - .fromString( - "{\"allowDataTruncation\":\"datalwlzekygnep\",\"treatBooleanAsNumber\":\"datauxqdrph\",\"dateTimeFormat\":\"dataxjqranpztlach\",\"dateTimeOffsetFormat\":\"datazsfutaapbrwv\",\"timeSpanFormat\":\"datav\",\"culture\":\"datahsorca\"}") - .toObject(TypeConversionSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TypeConversionSettings model = - new TypeConversionSettings() - .withAllowDataTruncation("datalwlzekygnep") - .withTreatBooleanAsNumber("datauxqdrph") - .withDateTimeFormat("dataxjqranpztlach") - .withDateTimeOffsetFormat("datazsfutaapbrwv") - .withTimeSpanFormat("datav") - .withCulture("datahsorca"); - model = BinaryData.fromObject(model).toObject(TypeConversionSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/UntilActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/UntilActivityTests.java deleted file mode 100644 index 6d2d5635dcde..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/UntilActivityTests.java +++ /dev/null @@ -1,210 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.Activity; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.Expression; -import com.azure.resourcemanager.datafactory.models.UntilActivity; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class UntilActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - UntilActivity model = - BinaryData - .fromString( - "{\"type\":\"Until\",\"typeProperties\":{\"expression\":{\"value\":\"vyeckbudepulbxgd\"},\"timeout\":\"datahywmezoiywm\",\"activities\":[{\"type\":\"Activity\",\"name\":\"aicfkkcpkvujwfyv\",\"description\":\"vnbbeysef\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"xfiveuqgptzx\",\"dependencyConditions\":[\"Skipped\",\"Completed\",\"Skipped\"],\"\":{\"az\":\"datargtoq\"}}],\"userProperties\":[{\"name\":\"jhua\",\"value\":\"dataiitxyebi\"}],\"\":{\"bwdu\":\"dataehhkcutxmqvbh\",\"k\":\"datavkrskqgokhpzvph\"}},{\"type\":\"Activity\",\"name\":\"fcxvfurkdhopz\",\"description\":\"hrfwchim\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"zkwdexldocq\",\"dependencyConditions\":[\"Completed\",\"Succeeded\",\"Completed\",\"Failed\"],\"\":{\"qwfuavofeouucg\":\"dataiexmfeechltxa\"}},{\"activity\":\"i\",\"dependencyConditions\":[\"Completed\",\"Skipped\",\"Succeeded\"],\"\":{\"imenjhtwkn\":\"datasegdjqnochnmxbhg\",\"pz\":\"datazcwjaqyvnol\"}},{\"activity\":\"m\",\"dependencyConditions\":[\"Failed\"],\"\":{\"iffzpkrno\":\"dataquiqkuxajl\",\"ircwbnmai\":\"dataexfyk\"}}],\"userProperties\":[{\"name\":\"oir\",\"value\":\"datangmmv\"},{\"name\":\"rxoidmnsmd\",\"value\":\"datam\"},{\"name\":\"kjlhkcogxrs\",\"value\":\"datayfiochfx\"}],\"\":{\"eudhvszwgmpzbx\":\"dataybjynzo\",\"ushzfnlqnr\":\"datafmhypwglkvspbd\",\"g\":\"datasmrvpswe\"}},{\"type\":\"Activity\",\"name\":\"awhzdh\",\"description\":\"kudlilkwjzmyv\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"f\",\"dependencyConditions\":[\"Failed\",\"Completed\",\"Skipped\"],\"\":{\"grub\":\"dataokp\",\"hdkx\":\"datazgz\"}},{\"activity\":\"hlinjerkdurch\",\"dependencyConditions\":[\"Failed\",\"Completed\"],\"\":{\"hluoyr\":\"datasvosvqj\",\"hzpwsadwsent\":\"datahqq\"}},{\"activity\":\"cdzyvxwnmiumduw\",\"dependencyConditions\":[\"Skipped\"],\"\":{\"wfbgkyonadtywzrn\":\"datauvxmrbbgl\",\"dadfyg\":\"dataiktokiptx\"}},{\"activity\":\"bcfpri\",\"dependencyConditions\":[\"Completed\",\"Succeeded\",\"Succeeded\",\"Failed\"],\"\":{\"nnolrs\":\"datahxe\",\"uotexlpqydgfzet\":\"dataxtsywrmmhaxmo\"}}],\"userProperties\":[{\"name\":\"mnseigoalxwuq\",\"value\":\"dataczrskdovgkpq\"},{\"name\":\"zrxhghsmlxogim\",\"value\":\"datahxyx\"},{\"name\":\"lxawixdcy\",\"value\":\"datadqamiy\"}],\"\":{\"zco\":\"datazlbcamdzoauvwjkg\",\"aqxztywzaq\":\"datawcnnzacqludq\",\"zlzpowsefpg\":\"datafqtstmyfebb\",\"pzbsytwt\":\"dataw\"}}]},\"name\":\"vcdtsvgyzmafq\",\"description\":\"wupuubyvwejy\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"hrxoekyf\",\"dependencyConditions\":[\"Completed\",\"Completed\"],\"\":{\"jxjaaocjlwco\":\"datapdgnsmhrpzbyudko\",\"vmzxrhve\":\"datawcrextdymkzbliu\",\"guvqghuehgcqhlfq\":\"datangzjxjbklta\",\"r\":\"datamjldeluqqnf\"}}],\"userProperties\":[{\"name\":\"luomaltvvp\",\"value\":\"datadhtdapkdahyn\"},{\"name\":\"tixrkjogyqrmt\",\"value\":\"dataiclsxuibyfylhf\"}],\"\":{\"cwuz\":\"dataauqylmlunquvlva\",\"gynqedn\":\"datalx\",\"qcxzdlfs\":\"dataidacskul\"}}") - .toObject(UntilActivity.class); - Assertions.assertEquals("vcdtsvgyzmafq", model.name()); - Assertions.assertEquals("wupuubyvwejy", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.onInactiveMarkAs()); - Assertions.assertEquals("hrxoekyf", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("luomaltvvp", model.userProperties().get(0).name()); - Assertions.assertEquals("vyeckbudepulbxgd", model.expression().value()); - Assertions.assertEquals("aicfkkcpkvujwfyv", model.activities().get(0).name()); - Assertions.assertEquals("vnbbeysef", model.activities().get(0).description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.activities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.activities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("xfiveuqgptzx", model.activities().get(0).dependsOn().get(0).activity()); - Assertions - .assertEquals( - DependencyCondition.SKIPPED, - model.activities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("jhua", model.activities().get(0).userProperties().get(0).name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UntilActivity model = - new UntilActivity() - .withName("vcdtsvgyzmafq") - .withDescription("wupuubyvwejy") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("hrxoekyf") - .withDependencyConditions( - Arrays.asList(DependencyCondition.COMPLETED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays - .asList( - new UserProperty().withName("luomaltvvp").withValue("datadhtdapkdahyn"), - new UserProperty().withName("tixrkjogyqrmt").withValue("dataiclsxuibyfylhf"))) - .withExpression(new Expression().withValue("vyeckbudepulbxgd")) - .withTimeout("datahywmezoiywm") - .withActivities( - Arrays - .asList( - new Activity() - .withName("aicfkkcpkvujwfyv") - .withDescription("vnbbeysef") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("xfiveuqgptzx") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.SKIPPED, - DependencyCondition.COMPLETED, - DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("jhua").withValue("dataiitxyebi"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity() - .withName("fcxvfurkdhopz") - .withDescription("hrfwchim") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("zkwdexldocq") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.COMPLETED, - DependencyCondition.SUCCEEDED, - DependencyCondition.COMPLETED, - DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("i") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.COMPLETED, - DependencyCondition.SKIPPED, - DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("m") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays - .asList( - new UserProperty().withName("oir").withValue("datangmmv"), - new UserProperty().withName("rxoidmnsmd").withValue("datam"), - new UserProperty().withName("kjlhkcogxrs").withValue("datayfiochfx"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity() - .withName("awhzdh") - .withDescription("kudlilkwjzmyv") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("f") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.FAILED, - DependencyCondition.COMPLETED, - DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("hlinjerkdurch") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.FAILED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("cdzyvxwnmiumduw") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("bcfpri") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.COMPLETED, - DependencyCondition.SUCCEEDED, - DependencyCondition.SUCCEEDED, - DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays - .asList( - new UserProperty().withName("mnseigoalxwuq").withValue("dataczrskdovgkpq"), - new UserProperty().withName("zrxhghsmlxogim").withValue("datahxyx"), - new UserProperty().withName("lxawixdcy").withValue("datadqamiy"))) - .withAdditionalProperties(mapOf("type", "Activity")))); - model = BinaryData.fromObject(model).toObject(UntilActivity.class); - Assertions.assertEquals("vcdtsvgyzmafq", model.name()); - Assertions.assertEquals("wupuubyvwejy", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.onInactiveMarkAs()); - Assertions.assertEquals("hrxoekyf", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("luomaltvvp", model.userProperties().get(0).name()); - Assertions.assertEquals("vyeckbudepulbxgd", model.expression().value()); - Assertions.assertEquals("aicfkkcpkvujwfyv", model.activities().get(0).name()); - Assertions.assertEquals("vnbbeysef", model.activities().get(0).description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.activities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.activities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("xfiveuqgptzx", model.activities().get(0).dependsOn().get(0).activity()); - Assertions - .assertEquals( - DependencyCondition.SKIPPED, - model.activities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("jhua", model.activities().get(0).userProperties().get(0).name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/UntilActivityTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/UntilActivityTypePropertiesTests.java deleted file mode 100644 index 376073ab5b0c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/UntilActivityTypePropertiesTests.java +++ /dev/null @@ -1,123 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.UntilActivityTypeProperties; -import com.azure.resourcemanager.datafactory.models.Activity; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.Expression; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class UntilActivityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - UntilActivityTypeProperties model = - BinaryData - .fromString( - "{\"expression\":{\"value\":\"ubjv\"},\"timeout\":\"datarcrknnruceuwfmrc\",\"activities\":[{\"type\":\"Activity\",\"name\":\"tnjikb\",\"description\":\"tov\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"ewokprvpkdk\",\"dependencyConditions\":[\"Completed\"],\"\":{\"ximnpcghcf\":\"dataavtndgfm\",\"erybdiajeeahweru\":\"dataduqefdtpur\",\"lahdwxyitezf\":\"datauoeyyxcdwlkk\",\"vtfzaqnoqgfyofoh\":\"dataekaxh\"}},{\"activity\":\"xpf\",\"dependencyConditions\":[\"Skipped\",\"Failed\",\"Skipped\",\"Skipped\"],\"\":{\"aewkkqv\":\"datas\"}},{\"activity\":\"uzifsguolfkup\",\"dependencyConditions\":[\"Completed\",\"Failed\",\"Failed\",\"Failed\"],\"\":{\"qdzwd\":\"datapi\",\"ddbzxidqqesl\":\"datacjyywbssliphcp\"}},{\"activity\":\"aoxke\",\"dependencyConditions\":[\"Failed\",\"Skipped\",\"Skipped\"],\"\":{\"g\":\"dataz\",\"zuvsjblqmddtp\":\"datafzyxamyjhp\",\"joboqts\":\"dataily\",\"uywg\":\"datad\"}}],\"userProperties\":[{\"name\":\"cf\",\"value\":\"datatmmpvoazgtlxgtu\"},{\"name\":\"w\",\"value\":\"datagtskolbjylostrc\"}],\"\":{\"bwaiqs\":\"datace\"}}]}") - .toObject(UntilActivityTypeProperties.class); - Assertions.assertEquals("ubjv", model.expression().value()); - Assertions.assertEquals("tnjikb", model.activities().get(0).name()); - Assertions.assertEquals("tov", model.activities().get(0).description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.activities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.activities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("ewokprvpkdk", model.activities().get(0).dependsOn().get(0).activity()); - Assertions - .assertEquals( - DependencyCondition.COMPLETED, - model.activities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("cf", model.activities().get(0).userProperties().get(0).name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UntilActivityTypeProperties model = - new UntilActivityTypeProperties() - .withExpression(new Expression().withValue("ubjv")) - .withTimeout("datarcrknnruceuwfmrc") - .withActivities( - Arrays - .asList( - new Activity() - .withName("tnjikb") - .withDescription("tov") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("ewokprvpkdk") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("xpf") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.SKIPPED, - DependencyCondition.FAILED, - DependencyCondition.SKIPPED, - DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("uzifsguolfkup") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.COMPLETED, - DependencyCondition.FAILED, - DependencyCondition.FAILED, - DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("aoxke") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.FAILED, - DependencyCondition.SKIPPED, - DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays - .asList( - new UserProperty().withName("cf").withValue("datatmmpvoazgtlxgtu"), - new UserProperty().withName("w").withValue("datagtskolbjylostrc"))) - .withAdditionalProperties(mapOf("type", "Activity")))); - model = BinaryData.fromObject(model).toObject(UntilActivityTypeProperties.class); - Assertions.assertEquals("ubjv", model.expression().value()); - Assertions.assertEquals("tnjikb", model.activities().get(0).name()); - Assertions.assertEquals("tov", model.activities().get(0).description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.activities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.activities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("ewokprvpkdk", model.activities().get(0).dependsOn().get(0).activity()); - Assertions - .assertEquals( - DependencyCondition.COMPLETED, - model.activities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("cf", model.activities().get(0).userProperties().get(0).name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/UpdateIntegrationRuntimeNodeRequestTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/UpdateIntegrationRuntimeNodeRequestTests.java deleted file mode 100644 index c7cb0f5954d4..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/UpdateIntegrationRuntimeNodeRequestTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.UpdateIntegrationRuntimeNodeRequest; -import org.junit.jupiter.api.Assertions; - -public final class UpdateIntegrationRuntimeNodeRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - UpdateIntegrationRuntimeNodeRequest model = - BinaryData - .fromString("{\"concurrentJobsLimit\":712721872}") - .toObject(UpdateIntegrationRuntimeNodeRequest.class); - Assertions.assertEquals(712721872, model.concurrentJobsLimit()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UpdateIntegrationRuntimeNodeRequest model = - new UpdateIntegrationRuntimeNodeRequest().withConcurrentJobsLimit(712721872); - model = BinaryData.fromObject(model).toObject(UpdateIntegrationRuntimeNodeRequest.class); - Assertions.assertEquals(712721872, model.concurrentJobsLimit()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/UpdateIntegrationRuntimeRequestTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/UpdateIntegrationRuntimeRequestTests.java deleted file mode 100644 index 50e3f2659874..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/UpdateIntegrationRuntimeRequestTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeAutoUpdate; -import com.azure.resourcemanager.datafactory.models.UpdateIntegrationRuntimeRequest; -import org.junit.jupiter.api.Assertions; - -public final class UpdateIntegrationRuntimeRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - UpdateIntegrationRuntimeRequest model = - BinaryData - .fromString("{\"autoUpdate\":\"On\",\"updateDelayOffset\":\"cwscwsvlx\"}") - .toObject(UpdateIntegrationRuntimeRequest.class); - Assertions.assertEquals(IntegrationRuntimeAutoUpdate.ON, model.autoUpdate()); - Assertions.assertEquals("cwscwsvlx", model.updateDelayOffset()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UpdateIntegrationRuntimeRequest model = - new UpdateIntegrationRuntimeRequest() - .withAutoUpdate(IntegrationRuntimeAutoUpdate.ON) - .withUpdateDelayOffset("cwscwsvlx"); - model = BinaryData.fromObject(model).toObject(UpdateIntegrationRuntimeRequest.class); - Assertions.assertEquals(IntegrationRuntimeAutoUpdate.ON, model.autoUpdate()); - Assertions.assertEquals("cwscwsvlx", model.updateDelayOffset()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/UserAccessPolicyTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/UserAccessPolicyTests.java deleted file mode 100644 index 5919b78e3341..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/UserAccessPolicyTests.java +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.UserAccessPolicy; -import org.junit.jupiter.api.Assertions; - -public final class UserAccessPolicyTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - UserAccessPolicy model = - BinaryData - .fromString( - "{\"permissions\":\"eputtmrywnuzoqf\",\"accessResourcePath\":\"yqzrnkcqvyxlw\",\"profileName\":\"lsicohoqqnwv\",\"startTime\":\"yav\",\"expireTime\":\"heun\"}") - .toObject(UserAccessPolicy.class); - Assertions.assertEquals("eputtmrywnuzoqf", model.permissions()); - Assertions.assertEquals("yqzrnkcqvyxlw", model.accessResourcePath()); - Assertions.assertEquals("lsicohoqqnwv", model.profileName()); - Assertions.assertEquals("yav", model.startTime()); - Assertions.assertEquals("heun", model.expireTime()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UserAccessPolicy model = - new UserAccessPolicy() - .withPermissions("eputtmrywnuzoqf") - .withAccessResourcePath("yqzrnkcqvyxlw") - .withProfileName("lsicohoqqnwv") - .withStartTime("yav") - .withExpireTime("heun"); - model = BinaryData.fromObject(model).toObject(UserAccessPolicy.class); - Assertions.assertEquals("eputtmrywnuzoqf", model.permissions()); - Assertions.assertEquals("yqzrnkcqvyxlw", model.accessResourcePath()); - Assertions.assertEquals("lsicohoqqnwv", model.profileName()); - Assertions.assertEquals("yav", model.startTime()); - Assertions.assertEquals("heun", model.expireTime()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/UserPropertyTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/UserPropertyTests.java deleted file mode 100644 index 6f07c3ea3060..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/UserPropertyTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import org.junit.jupiter.api.Assertions; - -public final class UserPropertyTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - UserProperty model = - BinaryData - .fromString("{\"name\":\"fmluiqtqzfavyvn\",\"value\":\"dataqybaryeua\"}") - .toObject(UserProperty.class); - Assertions.assertEquals("fmluiqtqzfavyvn", model.name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UserProperty model = new UserProperty().withName("fmluiqtqzfavyvn").withValue("dataqybaryeua"); - model = BinaryData.fromObject(model).toObject(UserProperty.class); - Assertions.assertEquals("fmluiqtqzfavyvn", model.name()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ValidationActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ValidationActivityTests.java deleted file mode 100644 index ea921cbc1a3c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ValidationActivityTests.java +++ /dev/null @@ -1,125 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import com.azure.resourcemanager.datafactory.models.ValidationActivity; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ValidationActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ValidationActivity model = - BinaryData - .fromString( - "{\"type\":\"Validation\",\"typeProperties\":{\"timeout\":\"datazigelphauldals\",\"sleep\":\"dataanhe\",\"minimumSize\":\"dataxllqyvbl\",\"childItems\":\"datarskxhg\",\"dataset\":{\"referenceName\":\"vgviycjulun\",\"parameters\":{\"khoa\":\"dataficipibnjpivoiz\",\"hjlahdplic\":\"datam\",\"eynts\":\"datavodudaubmj\",\"oxuedmlocrkf\":\"datawxpamubgrjkg\"}}},\"name\":\"gjywp\",\"description\":\"vvjyenwvgvhh\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"wlkfljooiiviwlf\",\"dependencyConditions\":[\"Succeeded\",\"Completed\",\"Succeeded\"],\"\":{\"oqrvnhcuoghvkzmg\":\"dataxbrthwbitrwwko\",\"fjahwypdhrqjjl\":\"datatemp\",\"sgarxtgexmxgqgqu\":\"dataato\"}},{\"activity\":\"lyrtkvftlbt\",\"dependencyConditions\":[\"Skipped\"],\"\":{\"umnucqewxcwr\":\"dataasrwo\",\"idcytnzy\":\"datakwmvcxyuem\",\"srlhxfmvngdrnt\":\"datasydwgq\",\"hnh\":\"datavn\"}},{\"activity\":\"bwdborjy\",\"dependencyConditions\":[\"Failed\",\"Skipped\",\"Skipped\"],\"\":{\"kpibeif\":\"dataigtdjqczoq\",\"t\":\"datamozofo\",\"qugycorgnxmn\":\"datahlnaymsgbyho\"}},{\"activity\":\"ennobjixoqqjbsag\",\"dependencyConditions\":[\"Succeeded\",\"Succeeded\",\"Completed\",\"Failed\"],\"\":{\"xuiaktnmwlklqhw\":\"dataimwlparh\"}}],\"userProperties\":[{\"name\":\"eoefwnjsorhpga\",\"value\":\"datar\"},{\"name\":\"pkoezcab\",\"value\":\"dataylsuiyvbildwqlx\"}],\"\":{\"pylpmtwdvdtzdr\":\"dataqei\",\"urwzrx\":\"dataaxswiind\",\"mbtvcdsl\":\"datahacvsj\"}}") - .toObject(ValidationActivity.class); - Assertions.assertEquals("gjywp", model.name()); - Assertions.assertEquals("vvjyenwvgvhh", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("wlkfljooiiviwlf", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("eoefwnjsorhpga", model.userProperties().get(0).name()); - Assertions.assertEquals("vgviycjulun", model.dataset().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ValidationActivity model = - new ValidationActivity() - .withName("gjywp") - .withDescription("vvjyenwvgvhh") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("wlkfljooiiviwlf") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.SUCCEEDED, - DependencyCondition.COMPLETED, - DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("lyrtkvftlbt") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("bwdborjy") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.FAILED, - DependencyCondition.SKIPPED, - DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency() - .withActivity("ennobjixoqqjbsag") - .withDependencyConditions( - Arrays - .asList( - DependencyCondition.SUCCEEDED, - DependencyCondition.SUCCEEDED, - DependencyCondition.COMPLETED, - DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays - .asList( - new UserProperty().withName("eoefwnjsorhpga").withValue("datar"), - new UserProperty().withName("pkoezcab").withValue("dataylsuiyvbildwqlx"))) - .withTimeout("datazigelphauldals") - .withSleep("dataanhe") - .withMinimumSize("dataxllqyvbl") - .withChildItems("datarskxhg") - .withDataset( - new DatasetReference() - .withReferenceName("vgviycjulun") - .withParameters( - mapOf( - "khoa", - "dataficipibnjpivoiz", - "hjlahdplic", - "datam", - "eynts", - "datavodudaubmj", - "oxuedmlocrkf", - "datawxpamubgrjkg"))); - model = BinaryData.fromObject(model).toObject(ValidationActivity.class); - Assertions.assertEquals("gjywp", model.name()); - Assertions.assertEquals("vvjyenwvgvhh", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("wlkfljooiiviwlf", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("eoefwnjsorhpga", model.userProperties().get(0).name()); - Assertions.assertEquals("vgviycjulun", model.dataset().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ValidationActivityTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ValidationActivityTypePropertiesTests.java deleted file mode 100644 index 2c68e26bdd4c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ValidationActivityTypePropertiesTests.java +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.ValidationActivityTypeProperties; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ValidationActivityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ValidationActivityTypeProperties model = - BinaryData - .fromString( - "{\"timeout\":\"datavponxhszrotunnk\",\"sleep\":\"datakzkaoonbziklqyzr\",\"minimumSize\":\"dataw\",\"childItems\":\"datajzvvkehasxjmfhb\",\"dataset\":{\"referenceName\":\"eqxwcimamtqf\",\"parameters\":{\"zuuanrj\":\"dataoiqfv\"}}}") - .toObject(ValidationActivityTypeProperties.class); - Assertions.assertEquals("eqxwcimamtqf", model.dataset().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ValidationActivityTypeProperties model = - new ValidationActivityTypeProperties() - .withTimeout("datavponxhszrotunnk") - .withSleep("datakzkaoonbziklqyzr") - .withMinimumSize("dataw") - .withChildItems("datajzvvkehasxjmfhb") - .withDataset( - new DatasetReference() - .withReferenceName("eqxwcimamtqf") - .withParameters(mapOf("zuuanrj", "dataoiqfv"))); - model = BinaryData.fromObject(model).toObject(ValidationActivityTypeProperties.class); - Assertions.assertEquals("eqxwcimamtqf", model.dataset().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/VariableSpecificationTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/VariableSpecificationTests.java deleted file mode 100644 index 6fe8a0e0e0df..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/VariableSpecificationTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.VariableSpecification; -import com.azure.resourcemanager.datafactory.models.VariableType; -import org.junit.jupiter.api.Assertions; - -public final class VariableSpecificationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VariableSpecification model = - BinaryData - .fromString("{\"type\":\"Array\",\"defaultValue\":\"dataqabqgzslesjcb\"}") - .toObject(VariableSpecification.class); - Assertions.assertEquals(VariableType.ARRAY, model.type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VariableSpecification model = - new VariableSpecification().withType(VariableType.ARRAY).withDefaultValue("dataqabqgzslesjcb"); - model = BinaryData.fromObject(model).toObject(VariableSpecification.class); - Assertions.assertEquals(VariableType.ARRAY, model.type()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/VerticaDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/VerticaDatasetTypePropertiesTests.java deleted file mode 100644 index 5ccda269e9b4..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/VerticaDatasetTypePropertiesTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.VerticaDatasetTypeProperties; - -public final class VerticaDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VerticaDatasetTypeProperties model = - BinaryData - .fromString( - "{\"tableName\":\"datawxhflgdun\",\"table\":\"dataypxsazbxsnx\",\"schema\":\"datasznfstmprvgra\"}") - .toObject(VerticaDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VerticaDatasetTypeProperties model = - new VerticaDatasetTypeProperties() - .withTableName("datawxhflgdun") - .withTable("dataypxsazbxsnx") - .withSchema("datasznfstmprvgra"); - model = BinaryData.fromObject(model).toObject(VerticaDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/VerticaSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/VerticaSourceTests.java deleted file mode 100644 index bff94e2c7686..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/VerticaSourceTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.VerticaSource; - -public final class VerticaSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VerticaSource model = - BinaryData - .fromString( - "{\"type\":\"VerticaSource\",\"query\":\"datahsvsnedhkji\",\"queryTimeout\":\"datavetwf\",\"additionalColumns\":\"dataqvflrrtj\",\"sourceRetryCount\":\"dataikqzd\",\"sourceRetryWait\":\"dataqalxpmiytpjis\",\"maxConcurrentConnections\":\"datasolkwipvlsljut\",\"disableMetricsCollection\":\"datag\",\"\":{\"eaeyjlyxd\":\"dataodrfclehlopipv\",\"yavcbmzem\":\"dataxho\"}}") - .toObject(VerticaSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VerticaSource model = - new VerticaSource() - .withSourceRetryCount("dataikqzd") - .withSourceRetryWait("dataqalxpmiytpjis") - .withMaxConcurrentConnections("datasolkwipvlsljut") - .withDisableMetricsCollection("datag") - .withQueryTimeout("datavetwf") - .withAdditionalColumns("dataqvflrrtj") - .withQuery("datahsvsnedhkji"); - model = BinaryData.fromObject(model).toObject(VerticaSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/VerticaTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/VerticaTableDatasetTests.java deleted file mode 100644 index adc09f30ff29..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/VerticaTableDatasetTests.java +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.VerticaTableDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class VerticaTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VerticaTableDataset model = - BinaryData - .fromString( - "{\"type\":\"VerticaTable\",\"typeProperties\":{\"tableName\":\"dataxbofpr\",\"table\":\"dataiva\",\"schema\":\"datasbfzl\"},\"description\":\"jr\",\"structure\":\"datasfv\",\"schema\":\"datahqxtm\",\"linkedServiceName\":{\"referenceName\":\"lmfcleuovelvsp\",\"parameters\":{\"jtoudode\":\"datajtez\",\"sr\":\"datawmv\",\"emt\":\"dataciexu\"}},\"parameters\":{\"x\":{\"type\":\"Bool\",\"defaultValue\":\"dataymmcgskscb\"},\"wa\":{\"type\":\"SecureString\",\"defaultValue\":\"dataxicjojxolknsh\"},\"nchzz\":{\"type\":\"Int\",\"defaultValue\":\"databhmbglmnlbnat\"}},\"annotations\":[\"dataxortd\",\"datazvhbujk\",\"datahophqwo\"],\"folder\":{\"name\":\"ccqtwsrbf\"},\"\":{\"dzfbv\":\"dataii\",\"jtshlwvrsksdzmh\":\"dataxrvnhhmfsnqp\",\"pwfbwoetxiz\":\"datatsy\"}}") - .toObject(VerticaTableDataset.class); - Assertions.assertEquals("jr", model.description()); - Assertions.assertEquals("lmfcleuovelvsp", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("x").type()); - Assertions.assertEquals("ccqtwsrbf", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VerticaTableDataset model = - new VerticaTableDataset() - .withDescription("jr") - .withStructure("datasfv") - .withSchema("datahqxtm") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("lmfcleuovelvsp") - .withParameters(mapOf("jtoudode", "datajtez", "sr", "datawmv", "emt", "dataciexu"))) - .withParameters( - mapOf( - "x", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("dataymmcgskscb"), - "wa", - new ParameterSpecification() - .withType(ParameterType.SECURE_STRING) - .withDefaultValue("dataxicjojxolknsh"), - "nchzz", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("databhmbglmnlbnat"))) - .withAnnotations(Arrays.asList("dataxortd", "datazvhbujk", "datahophqwo")) - .withFolder(new DatasetFolder().withName("ccqtwsrbf")) - .withTableName("dataxbofpr") - .withTable("dataiva") - .withSchemaTypePropertiesSchema("datasbfzl"); - model = BinaryData.fromObject(model).toObject(VerticaTableDataset.class); - Assertions.assertEquals("jr", model.description()); - Assertions.assertEquals("lmfcleuovelvsp", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("x").type()); - Assertions.assertEquals("ccqtwsrbf", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WaitActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WaitActivityTests.java deleted file mode 100644 index 4f29423102ec..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WaitActivityTests.java +++ /dev/null @@ -1,79 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import com.azure.resourcemanager.datafactory.models.WaitActivity; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class WaitActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - WaitActivity model = - BinaryData - .fromString( - "{\"type\":\"Wait\",\"typeProperties\":{\"waitTimeInSeconds\":\"datazucpixfdbi\"},\"name\":\"pchbcbdpyorhq\",\"description\":\"fvhnhyxcws\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"area\",\"dependencyConditions\":[\"Skipped\",\"Completed\"],\"\":{\"npcrsfqwqm\":\"datanmnmqydpieleruoy\"}}],\"userProperties\":[{\"name\":\"j\",\"value\":\"dataonvjur\"},{\"name\":\"czdelqazb\",\"value\":\"dataixg\"}],\"\":{\"uvqacae\":\"databhwwpaec\",\"oqjmo\":\"datavn\",\"brrqxldkhgngyofe\":\"datagdb\",\"ncxkazmydsqvjkfz\":\"datajksmyeegbertf\"}}") - .toObject(WaitActivity.class); - Assertions.assertEquals("pchbcbdpyorhq", model.name()); - Assertions.assertEquals("fvhnhyxcws", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.onInactiveMarkAs()); - Assertions.assertEquals("area", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SKIPPED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("j", model.userProperties().get(0).name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WaitActivity model = - new WaitActivity() - .withName("pchbcbdpyorhq") - .withDescription("fvhnhyxcws") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency() - .withActivity("area") - .withDependencyConditions( - Arrays.asList(DependencyCondition.SKIPPED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays - .asList( - new UserProperty().withName("j").withValue("dataonvjur"), - new UserProperty().withName("czdelqazb").withValue("dataixg"))) - .withWaitTimeInSeconds("datazucpixfdbi"); - model = BinaryData.fromObject(model).toObject(WaitActivity.class); - Assertions.assertEquals("pchbcbdpyorhq", model.name()); - Assertions.assertEquals("fvhnhyxcws", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.onInactiveMarkAs()); - Assertions.assertEquals("area", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SKIPPED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("j", model.userProperties().get(0).name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WaitActivityTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WaitActivityTypePropertiesTests.java deleted file mode 100644 index 6cedbcd1ee6b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WaitActivityTypePropertiesTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.WaitActivityTypeProperties; - -public final class WaitActivityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - WaitActivityTypeProperties model = - BinaryData.fromString("{\"waitTimeInSeconds\":\"datard\"}").toObject(WaitActivityTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WaitActivityTypeProperties model = new WaitActivityTypeProperties().withWaitTimeInSeconds("datard"); - model = BinaryData.fromObject(model).toObject(WaitActivityTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WebAnonymousAuthenticationTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WebAnonymousAuthenticationTests.java deleted file mode 100644 index f20a364fc141..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WebAnonymousAuthenticationTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.WebAnonymousAuthentication; - -public final class WebAnonymousAuthenticationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - WebAnonymousAuthentication model = - BinaryData - .fromString("{\"authenticationType\":\"Anonymous\",\"url\":\"dataqovuwhvqihm\"}") - .toObject(WebAnonymousAuthentication.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WebAnonymousAuthentication model = new WebAnonymousAuthentication().withUrl("dataqovuwhvqihm"); - model = BinaryData.fromObject(model).toObject(WebAnonymousAuthentication.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WebLinkedServiceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WebLinkedServiceTests.java deleted file mode 100644 index 01185786bdee..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WebLinkedServiceTests.java +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.WebLinkedService; -import com.azure.resourcemanager.datafactory.models.WebLinkedServiceTypeProperties; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class WebLinkedServiceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - WebLinkedService model = - BinaryData - .fromString( - "{\"type\":\"Web\",\"typeProperties\":{\"authenticationType\":\"WebLinkedServiceTypeProperties\",\"url\":\"datamlm\"},\"connectVia\":{\"referenceName\":\"qyek\",\"parameters\":{\"egumydogrtfwzecg\":\"datadxz\",\"anvgpxnaa\":\"dataxrcsevqjdxiiqwqb\"}},\"description\":\"tnkruywrxnks\",\"parameters\":{\"rqwfuxntuegy\":{\"type\":\"SecureString\",\"defaultValue\":\"datarxjsmrseauxeovb\"}},\"annotations\":[\"dataketkvi\"],\"\":{\"hbxgfhgkdms\":\"datahatfgk\"}}") - .toObject(WebLinkedService.class); - Assertions.assertEquals("qyek", model.connectVia().referenceName()); - Assertions.assertEquals("tnkruywrxnks", model.description()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("rqwfuxntuegy").type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WebLinkedService model = - new WebLinkedService() - .withConnectVia( - new IntegrationRuntimeReference() - .withReferenceName("qyek") - .withParameters(mapOf("egumydogrtfwzecg", "datadxz", "anvgpxnaa", "dataxrcsevqjdxiiqwqb"))) - .withDescription("tnkruywrxnks") - .withParameters( - mapOf( - "rqwfuxntuegy", - new ParameterSpecification() - .withType(ParameterType.SECURE_STRING) - .withDefaultValue("datarxjsmrseauxeovb"))) - .withAnnotations(Arrays.asList("dataketkvi")) - .withTypeProperties(new WebLinkedServiceTypeProperties().withUrl("datamlm")); - model = BinaryData.fromObject(model).toObject(WebLinkedService.class); - Assertions.assertEquals("qyek", model.connectVia().referenceName()); - Assertions.assertEquals("tnkruywrxnks", model.description()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("rqwfuxntuegy").type()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WebLinkedServiceTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WebLinkedServiceTypePropertiesTests.java deleted file mode 100644 index 4dee50d274ce..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WebLinkedServiceTypePropertiesTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.WebLinkedServiceTypeProperties; - -public final class WebLinkedServiceTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - WebLinkedServiceTypeProperties model = - BinaryData - .fromString("{\"authenticationType\":\"WebLinkedServiceTypeProperties\",\"url\":\"datalhhbu\"}") - .toObject(WebLinkedServiceTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WebLinkedServiceTypeProperties model = new WebLinkedServiceTypeProperties().withUrl("datalhhbu"); - model = BinaryData.fromObject(model).toObject(WebLinkedServiceTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WebSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WebSourceTests.java deleted file mode 100644 index 43e493323cb2..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WebSourceTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.WebSource; - -public final class WebSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - WebSource model = - BinaryData - .fromString( - "{\"type\":\"WebSource\",\"additionalColumns\":\"datavbcvoyq\",\"sourceRetryCount\":\"datajdrct\",\"sourceRetryWait\":\"datavzewog\",\"maxConcurrentConnections\":\"datapzxkjqecjf\",\"disableMetricsCollection\":\"dataomeawthyc\",\"\":{\"pxhzjnparsulmuwl\":\"datapis\",\"vzycx\":\"datawakheoxxqgo\"}}") - .toObject(WebSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WebSource model = - new WebSource() - .withSourceRetryCount("datajdrct") - .withSourceRetryWait("datavzewog") - .withMaxConcurrentConnections("datapzxkjqecjf") - .withDisableMetricsCollection("dataomeawthyc") - .withAdditionalColumns("datavbcvoyq"); - model = BinaryData.fromObject(model).toObject(WebSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WebTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WebTableDatasetTests.java deleted file mode 100644 index 9faceef6684e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WebTableDatasetTests.java +++ /dev/null @@ -1,79 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.WebTableDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class WebTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - WebTableDataset model = - BinaryData - .fromString( - "{\"type\":\"WebTable\",\"typeProperties\":{\"index\":\"datajxnavpyxqbkxdtb\",\"path\":\"dataihainzkefkzlxvc\"},\"description\":\"cgoeozlibcbnu\",\"structure\":\"datau\",\"schema\":\"dataajvvq\",\"linkedServiceName\":{\"referenceName\":\"honyonelivgtibt\",\"parameters\":{\"fytkhhkemrv\":\"dataqjcajg\",\"dyulglhelwr\":\"dataxeoj\",\"px\":\"dataklfqfx\",\"skvctvu\":\"dataogypbztgaexj\"}},\"parameters\":{\"cyxrn\":{\"type\":\"Object\",\"defaultValue\":\"datattmhlvr\"}},\"annotations\":[\"datafajnpdw\",\"datajggkwdepem\",\"dataiayfiqiidxco\",\"datajvudyhgtrttcuayi\"],\"folder\":{\"name\":\"nkmm\"},\"\":{\"qgqexowqzrtgqr\":\"dataf\",\"obothx\":\"datakkvfygkuobpwainp\",\"qgzyvextc\":\"dataewhpnyjt\",\"whdlrifioz\":\"dataslroldow\"}}") - .toObject(WebTableDataset.class); - Assertions.assertEquals("cgoeozlibcbnu", model.description()); - Assertions.assertEquals("honyonelivgtibt", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("cyxrn").type()); - Assertions.assertEquals("nkmm", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WebTableDataset model = - new WebTableDataset() - .withDescription("cgoeozlibcbnu") - .withStructure("datau") - .withSchema("dataajvvq") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("honyonelivgtibt") - .withParameters( - mapOf( - "fytkhhkemrv", - "dataqjcajg", - "dyulglhelwr", - "dataxeoj", - "px", - "dataklfqfx", - "skvctvu", - "dataogypbztgaexj"))) - .withParameters( - mapOf( - "cyxrn", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datattmhlvr"))) - .withAnnotations( - Arrays.asList("datafajnpdw", "datajggkwdepem", "dataiayfiqiidxco", "datajvudyhgtrttcuayi")) - .withFolder(new DatasetFolder().withName("nkmm")) - .withIndex("datajxnavpyxqbkxdtb") - .withPath("dataihainzkefkzlxvc"); - model = BinaryData.fromObject(model).toObject(WebTableDataset.class); - Assertions.assertEquals("cgoeozlibcbnu", model.description()); - Assertions.assertEquals("honyonelivgtibt", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("cyxrn").type()); - Assertions.assertEquals("nkmm", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WebTableDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WebTableDatasetTypePropertiesTests.java deleted file mode 100644 index 489a98976f00..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WebTableDatasetTypePropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.WebTableDatasetTypeProperties; - -public final class WebTableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - WebTableDatasetTypeProperties model = - BinaryData - .fromString("{\"index\":\"datatcbiich\",\"path\":\"dataudsozodwjcfqoy\"}") - .toObject(WebTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WebTableDatasetTypeProperties model = - new WebTableDatasetTypeProperties().withIndex("datatcbiich").withPath("dataudsozodwjcfqoy"); - model = BinaryData.fromObject(model).toObject(WebTableDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WranglingDataFlowTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WranglingDataFlowTests.java deleted file mode 100644 index eff0ea8826b7..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WranglingDataFlowTests.java +++ /dev/null @@ -1,128 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DataFlowFolder; -import com.azure.resourcemanager.datafactory.models.DataFlowReference; -import com.azure.resourcemanager.datafactory.models.DataFlowReferenceType; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.PowerQuerySource; -import com.azure.resourcemanager.datafactory.models.WranglingDataFlow; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class WranglingDataFlowTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - WranglingDataFlow model = - BinaryData - .fromString( - "{\"type\":\"WranglingDataFlow\",\"typeProperties\":{\"sources\":[{\"script\":\"dawsxmrsz\",\"schemaLinkedService\":{\"referenceName\":\"nimx\",\"parameters\":{\"mnb\":\"dataerxrzutylcurza\",\"bjmbnvynfaooeac\":\"dataqaeht\"}},\"name\":\"edcgl\",\"description\":\"akd\",\"dataset\":{\"referenceName\":\"dahzllrqm\",\"parameters\":{\"oiduyqypff\":\"databyx\",\"yhbrjjta\":\"datanoiicsu\",\"sxxhdodp\":\"dataxrdsjrholuqwg\"}},\"linkedService\":{\"referenceName\":\"yblvtbdmvsbyi\",\"parameters\":{\"jfb\":\"datalqpvekmk\",\"gdusxurs\":\"datatlo\",\"iqrizfwihvaan\":\"dataivuxcjkcoqwczs\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"nhjrfdmfd\",\"datasetParameters\":\"datab\",\"parameters\":{\"d\":\"dataxjfwt\",\"fedyuep\":\"datakkauigvmuafmc\",\"eocfkumcfjxok\":\"datavpltidajjvy\",\"svfnkwm\":\"dataelsy\"},\"\":{\"ugjqyckgtxkrdt\":\"datajekrknfd\",\"jdkl\":\"datalcr\",\"svobchkxfp\":\"datatcsubmzoo\",\"nkkw\":\"datahdyslbklglm\"}}}],\"script\":\"qshwyqxridt\",\"documentLocale\":\"saqjmkgx\"},\"description\":\"queu\",\"annotations\":[\"dataztpziizevjykof\",\"dataezefkhkqtwqlepjj\",\"datakca\",\"datafwzcntogffjwaj\"],\"folder\":{\"name\":\"wzvaqkifmxaw\"}}") - .toObject(WranglingDataFlow.class); - Assertions.assertEquals("queu", model.description()); - Assertions.assertEquals("wzvaqkifmxaw", model.folder().name()); - Assertions.assertEquals("edcgl", model.sources().get(0).name()); - Assertions.assertEquals("akd", model.sources().get(0).description()); - Assertions.assertEquals("dahzllrqm", model.sources().get(0).dataset().referenceName()); - Assertions.assertEquals("yblvtbdmvsbyi", model.sources().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sources().get(0).flowlet().type()); - Assertions.assertEquals("nhjrfdmfd", model.sources().get(0).flowlet().referenceName()); - Assertions.assertEquals("nimx", model.sources().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("dawsxmrsz", model.sources().get(0).script()); - Assertions.assertEquals("qshwyqxridt", model.script()); - Assertions.assertEquals("saqjmkgx", model.documentLocale()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WranglingDataFlow model = - new WranglingDataFlow() - .withDescription("queu") - .withAnnotations( - Arrays.asList("dataztpziizevjykof", "dataezefkhkqtwqlepjj", "datakca", "datafwzcntogffjwaj")) - .withFolder(new DataFlowFolder().withName("wzvaqkifmxaw")) - .withSources( - Arrays - .asList( - new PowerQuerySource() - .withName("edcgl") - .withDescription("akd") - .withDataset( - new DatasetReference() - .withReferenceName("dahzllrqm") - .withParameters( - mapOf( - "oiduyqypff", - "databyx", - "yhbrjjta", - "datanoiicsu", - "sxxhdodp", - "dataxrdsjrholuqwg"))) - .withLinkedService( - new LinkedServiceReference() - .withReferenceName("yblvtbdmvsbyi") - .withParameters( - mapOf( - "jfb", - "datalqpvekmk", - "gdusxurs", - "datatlo", - "iqrizfwihvaan", - "dataivuxcjkcoqwczs"))) - .withFlowlet( - new DataFlowReference() - .withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("nhjrfdmfd") - .withDatasetParameters("datab") - .withParameters( - mapOf( - "d", - "dataxjfwt", - "fedyuep", - "datakkauigvmuafmc", - "eocfkumcfjxok", - "datavpltidajjvy", - "svfnkwm", - "dataelsy")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService( - new LinkedServiceReference() - .withReferenceName("nimx") - .withParameters( - mapOf("mnb", "dataerxrzutylcurza", "bjmbnvynfaooeac", "dataqaeht"))) - .withScript("dawsxmrsz"))) - .withScript("qshwyqxridt") - .withDocumentLocale("saqjmkgx"); - model = BinaryData.fromObject(model).toObject(WranglingDataFlow.class); - Assertions.assertEquals("queu", model.description()); - Assertions.assertEquals("wzvaqkifmxaw", model.folder().name()); - Assertions.assertEquals("edcgl", model.sources().get(0).name()); - Assertions.assertEquals("akd", model.sources().get(0).description()); - Assertions.assertEquals("dahzllrqm", model.sources().get(0).dataset().referenceName()); - Assertions.assertEquals("yblvtbdmvsbyi", model.sources().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sources().get(0).flowlet().type()); - Assertions.assertEquals("nhjrfdmfd", model.sources().get(0).flowlet().referenceName()); - Assertions.assertEquals("nimx", model.sources().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("dawsxmrsz", model.sources().get(0).script()); - Assertions.assertEquals("qshwyqxridt", model.script()); - Assertions.assertEquals("saqjmkgx", model.documentLocale()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/XeroObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/XeroObjectDatasetTests.java deleted file mode 100644 index 229ea611b1f1..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/XeroObjectDatasetTests.java +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.XeroObjectDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class XeroObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - XeroObjectDataset model = - BinaryData - .fromString( - "{\"type\":\"XeroObject\",\"typeProperties\":{\"tableName\":\"datadnpfcghdttowqx\"},\"description\":\"pbzxpzl\",\"structure\":\"datavhatiywtcvzuzp\",\"schema\":\"dataeomotq\",\"linkedServiceName\":{\"referenceName\":\"ql\",\"parameters\":{\"gq\":\"datai\",\"dpfvlsqmmetwtla\":\"datazk\"}},\"parameters\":{\"cgrllyyfsmoc\":{\"type\":\"String\",\"defaultValue\":\"dataefbdpnuvh\"},\"kgdskwvb\":{\"type\":\"SecureString\",\"defaultValue\":\"datarchmetvzhuugd\"}},\"annotations\":[\"datawwayqts\",\"datanyotgnmze\",\"datacreluedcmk\"],\"folder\":{\"name\":\"heexzhhllxwk\"},\"\":{\"tkqiymmddslwnlg\":\"dataxdjklfsd\",\"ybnnnlpqdnnska\":\"datadlhmks\"}}") - .toObject(XeroObjectDataset.class); - Assertions.assertEquals("pbzxpzl", model.description()); - Assertions.assertEquals("ql", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("cgrllyyfsmoc").type()); - Assertions.assertEquals("heexzhhllxwk", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - XeroObjectDataset model = - new XeroObjectDataset() - .withDescription("pbzxpzl") - .withStructure("datavhatiywtcvzuzp") - .withSchema("dataeomotq") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("ql") - .withParameters(mapOf("gq", "datai", "dpfvlsqmmetwtla", "datazk"))) - .withParameters( - mapOf( - "cgrllyyfsmoc", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("dataefbdpnuvh"), - "kgdskwvb", - new ParameterSpecification() - .withType(ParameterType.SECURE_STRING) - .withDefaultValue("datarchmetvzhuugd"))) - .withAnnotations(Arrays.asList("datawwayqts", "datanyotgnmze", "datacreluedcmk")) - .withFolder(new DatasetFolder().withName("heexzhhllxwk")) - .withTableName("datadnpfcghdttowqx"); - model = BinaryData.fromObject(model).toObject(XeroObjectDataset.class); - Assertions.assertEquals("pbzxpzl", model.description()); - Assertions.assertEquals("ql", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("cgrllyyfsmoc").type()); - Assertions.assertEquals("heexzhhllxwk", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/XeroSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/XeroSourceTests.java deleted file mode 100644 index adee414fb143..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/XeroSourceTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.XeroSource; - -public final class XeroSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - XeroSource model = - BinaryData - .fromString( - "{\"type\":\"XeroSource\",\"query\":\"datalwhtfscoupsf\",\"queryTimeout\":\"datawb\",\"additionalColumns\":\"datahawkwc\",\"sourceRetryCount\":\"datac\",\"sourceRetryWait\":\"dataxdwecvkwwjj\",\"maxConcurrentConnections\":\"datafunsd\",\"disableMetricsCollection\":\"datajx\",\"\":{\"qedofuobx\":\"dataale\",\"fjibbl\":\"datalainzvhl\",\"egzyzlslvgqlexw\":\"dataihvzdaycme\",\"t\":\"datawbbellcjd\"}}") - .toObject(XeroSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - XeroSource model = - new XeroSource() - .withSourceRetryCount("datac") - .withSourceRetryWait("dataxdwecvkwwjj") - .withMaxConcurrentConnections("datafunsd") - .withDisableMetricsCollection("datajx") - .withQueryTimeout("datawb") - .withAdditionalColumns("datahawkwc") - .withQuery("datalwhtfscoupsf"); - model = BinaryData.fromObject(model).toObject(XeroSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/XmlDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/XmlDatasetTests.java deleted file mode 100644 index dac21dbad5f0..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/XmlDatasetTests.java +++ /dev/null @@ -1,90 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetCompression; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.DatasetLocation; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.XmlDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class XmlDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - XmlDataset model = - BinaryData - .fromString( - "{\"type\":\"Xml\",\"typeProperties\":{\"location\":{\"type\":\"DatasetLocation\",\"folderPath\":\"datarpnrehkunsbfjh\",\"fileName\":\"dataw\",\"\":{\"kgtzqnwqsttewu\":\"datavegeattb\",\"fjxflpditfno\":\"datacysje\",\"yuxlvrhprrv\":\"datap\",\"bs\":\"datawonleqflvtlr\"}},\"encodingName\":\"datahuy\",\"nullValue\":\"datan\",\"compression\":{\"type\":\"datattlnrjdszdb\",\"level\":\"dataiciqppo\",\"\":{\"uoxtfnressfepgck\":\"datapnewuhwfwjno\",\"ym\":\"datacjmgvsnvbtqdxfm\",\"jluqllbsupu\":\"datan\",\"zwhcukvb\":\"datadxckdl\"}}},\"description\":\"jjfdizhrjqf\",\"structure\":\"datayt\",\"schema\":\"dataly\",\"linkedServiceName\":{\"referenceName\":\"kcgn\",\"parameters\":{\"sxfai\":\"datarlcjiw\",\"rzxbarcbp\":\"datacwdgujjgnf\",\"ymjwenjcyt\":\"dataefzq\",\"auzmzivrtrfzhhe\":\"datasmfucrtfodqh\"}},\"parameters\":{\"swtvd\":{\"type\":\"Array\",\"defaultValue\":\"datadxdyyrudma\"}},\"annotations\":[\"dataqssgfenffdx\",\"datavwfqjch\"],\"folder\":{\"name\":\"r\"},\"\":{\"p\":\"datanxndmuvardlmzjo\"}}") - .toObject(XmlDataset.class); - Assertions.assertEquals("jjfdizhrjqf", model.description()); - Assertions.assertEquals("kcgn", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("swtvd").type()); - Assertions.assertEquals("r", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - XmlDataset model = - new XmlDataset() - .withDescription("jjfdizhrjqf") - .withStructure("datayt") - .withSchema("dataly") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("kcgn") - .withParameters( - mapOf( - "sxfai", - "datarlcjiw", - "rzxbarcbp", - "datacwdgujjgnf", - "ymjwenjcyt", - "dataefzq", - "auzmzivrtrfzhhe", - "datasmfucrtfodqh"))) - .withParameters( - mapOf( - "swtvd", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datadxdyyrudma"))) - .withAnnotations(Arrays.asList("dataqssgfenffdx", "datavwfqjch")) - .withFolder(new DatasetFolder().withName("r")) - .withLocation( - new DatasetLocation() - .withFolderPath("datarpnrehkunsbfjh") - .withFileName("dataw") - .withAdditionalProperties(mapOf("type", "DatasetLocation"))) - .withEncodingName("datahuy") - .withNullValue("datan") - .withCompression( - new DatasetCompression() - .withType("datattlnrjdszdb") - .withLevel("dataiciqppo") - .withAdditionalProperties(mapOf())); - model = BinaryData.fromObject(model).toObject(XmlDataset.class); - Assertions.assertEquals("jjfdizhrjqf", model.description()); - Assertions.assertEquals("kcgn", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("swtvd").type()); - Assertions.assertEquals("r", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/XmlDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/XmlDatasetTypePropertiesTests.java deleted file mode 100644 index 77267cfc1463..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/XmlDatasetTypePropertiesTests.java +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.XmlDatasetTypeProperties; -import com.azure.resourcemanager.datafactory.models.DatasetCompression; -import com.azure.resourcemanager.datafactory.models.DatasetLocation; -import java.util.HashMap; -import java.util.Map; - -public final class XmlDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - XmlDatasetTypeProperties model = - BinaryData - .fromString( - "{\"location\":{\"type\":\"DatasetLocation\",\"folderPath\":\"datamuhcuhtuzl\",\"fileName\":\"datawyopgarpfctwrapc\",\"\":{\"snj\":\"datajqyvzesipi\",\"aadcndazabundt\":\"datayo\"}},\"encodingName\":\"datawkaupwhlz\",\"nullValue\":\"datakremgjl\",\"compression\":{\"type\":\"datavdorsirx\",\"level\":\"datayrkqa\",\"\":{\"teyrqshi\":\"dataajfreprfvmkin\",\"sp\":\"databcejopylbl\",\"cspimtcvvfxrdy\":\"datar\",\"iqemcdiiisklbon\":\"datazfslxizhqikmgob\"}}}") - .toObject(XmlDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - XmlDatasetTypeProperties model = - new XmlDatasetTypeProperties() - .withLocation( - new DatasetLocation() - .withFolderPath("datamuhcuhtuzl") - .withFileName("datawyopgarpfctwrapc") - .withAdditionalProperties(mapOf("type", "DatasetLocation"))) - .withEncodingName("datawkaupwhlz") - .withNullValue("datakremgjl") - .withCompression( - new DatasetCompression() - .withType("datavdorsirx") - .withLevel("datayrkqa") - .withAdditionalProperties(mapOf())); - model = BinaryData.fromObject(model).toObject(XmlDatasetTypeProperties.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/XmlReadSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/XmlReadSettingsTests.java deleted file mode 100644 index c5da2f99a4ad..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/XmlReadSettingsTests.java +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CompressionReadSettings; -import com.azure.resourcemanager.datafactory.models.XmlReadSettings; -import java.util.HashMap; -import java.util.Map; - -public final class XmlReadSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - XmlReadSettings model = - BinaryData - .fromString( - "{\"type\":\"XmlReadSettings\",\"compressionProperties\":{\"type\":\"CompressionReadSettings\",\"\":{\"pizjqpjztu\":\"dataqge\",\"akvuted\":\"datadiverkwmafyxo\",\"o\":\"datat\"}},\"validationMode\":\"dataudjdwcwjacdbkce\",\"detectDataType\":\"dataahnqjbavdblfef\",\"namespaces\":\"datavitlnnp\",\"namespacePrefixes\":\"dataufwrer\",\"\":{\"temvaajyit\":\"dataruzfnstlavmdc\",\"ubryhvbvjyf\":\"datayzgwihkswurza\"}}") - .toObject(XmlReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - XmlReadSettings model = - new XmlReadSettings() - .withCompressionProperties( - new CompressionReadSettings().withAdditionalProperties(mapOf("type", "CompressionReadSettings"))) - .withValidationMode("dataudjdwcwjacdbkce") - .withDetectDataType("dataahnqjbavdblfef") - .withNamespaces("datavitlnnp") - .withNamespacePrefixes("dataufwrer"); - model = BinaryData.fromObject(model).toObject(XmlReadSettings.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/XmlSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/XmlSourceTests.java deleted file mode 100644 index c0dbc925a50f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/XmlSourceTests.java +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CompressionReadSettings; -import com.azure.resourcemanager.datafactory.models.StoreReadSettings; -import com.azure.resourcemanager.datafactory.models.XmlReadSettings; -import com.azure.resourcemanager.datafactory.models.XmlSource; -import java.util.HashMap; -import java.util.Map; - -public final class XmlSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - XmlSource model = - BinaryData - .fromString( - "{\"type\":\"XmlSource\",\"storeSettings\":{\"type\":\"StoreReadSettings\",\"maxConcurrentConnections\":\"datafimlyx\",\"disableMetricsCollection\":\"dataixjudbiac\",\"\":{\"lvbujwpnzijpyyve\":\"dataucmfuvu\",\"khlpgtpgxkkoypxw\":\"dataruhqymwdsthktsal\",\"uaxoswqwbh\":\"datavthiva\",\"cnpdkw\":\"datarzlg\"}},\"formatSettings\":{\"type\":\"XmlReadSettings\",\"compressionProperties\":{\"type\":\"CompressionReadSettings\",\"\":{\"vofrenuvp\":\"datazlmzsekvsuzyowra\"}},\"validationMode\":\"dataltnyyeyj\",\"detectDataType\":\"datafpbxnretpg\",\"namespaces\":\"datatohruqtximrxeyz\",\"namespacePrefixes\":\"datanxb\",\"\":{\"sb\":\"dataglfyf\",\"ixdgqjkfvmrnwgea\":\"datajhoxtbsybpefojp\",\"tlxrdepqtz\":\"datayifeiiriomjdnkn\",\"o\":\"datahkpko\"}},\"additionalColumns\":\"datanobuwhutvcdtgx\",\"sourceRetryCount\":\"datafu\",\"sourceRetryWait\":\"datammzxpsrlbppjq\",\"maxConcurrentConnections\":\"datacpdaoskgtalljsoa\",\"disableMetricsCollection\":\"datajjklmpbgrosxfdx\",\"\":{\"luvdceouevno\":\"datanmbb\"}}") - .toObject(XmlSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - XmlSource model = - new XmlSource() - .withSourceRetryCount("datafu") - .withSourceRetryWait("datammzxpsrlbppjq") - .withMaxConcurrentConnections("datacpdaoskgtalljsoa") - .withDisableMetricsCollection("datajjklmpbgrosxfdx") - .withStoreSettings( - new StoreReadSettings() - .withMaxConcurrentConnections("datafimlyx") - .withDisableMetricsCollection("dataixjudbiac") - .withAdditionalProperties(mapOf("type", "StoreReadSettings"))) - .withFormatSettings( - new XmlReadSettings() - .withCompressionProperties( - new CompressionReadSettings() - .withAdditionalProperties(mapOf("type", "CompressionReadSettings"))) - .withValidationMode("dataltnyyeyj") - .withDetectDataType("datafpbxnretpg") - .withNamespaces("datatohruqtximrxeyz") - .withNamespacePrefixes("datanxb")) - .withAdditionalColumns("datanobuwhutvcdtgx"); - model = BinaryData.fromObject(model).toObject(XmlSource.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ZipDeflateReadSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ZipDeflateReadSettingsTests.java deleted file mode 100644 index 32ad3eb9bb34..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ZipDeflateReadSettingsTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ZipDeflateReadSettings; - -public final class ZipDeflateReadSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ZipDeflateReadSettings model = - BinaryData - .fromString( - "{\"type\":\"ZipDeflateReadSettings\",\"preserveZipFileNameAsFolder\":\"datarwxf\",\"\":{\"ofegrzfsfuloo\":\"dataghwfiy\"}}") - .toObject(ZipDeflateReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ZipDeflateReadSettings model = new ZipDeflateReadSettings().withPreserveZipFileNameAsFolder("datarwxf"); - model = BinaryData.fromObject(model).toObject(ZipDeflateReadSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ZohoObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ZohoObjectDatasetTests.java deleted file mode 100644 index 7649974ec345..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ZohoObjectDatasetTests.java +++ /dev/null @@ -1,77 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.ZohoObjectDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ZohoObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ZohoObjectDataset model = - BinaryData - .fromString( - "{\"type\":\"ZohoObject\",\"typeProperties\":{\"tableName\":\"datamrslwknrd\"},\"description\":\"mbjern\",\"structure\":\"datazywx\",\"schema\":\"dataaq\",\"linkedServiceName\":{\"referenceName\":\"tkdeetnnef\",\"parameters\":{\"fwqjzybmfqdnpp\":\"datalkszuxjmrzsxwa\",\"vamuvkgd\":\"datacfguam\",\"spjvsyydjlhd\":\"datapjbblukgctv\"}},\"parameters\":{\"ulojwumfjdymeq\":{\"type\":\"Array\",\"defaultValue\":\"datavyeegx\"},\"nxemhqpzhnatw\":{\"type\":\"Bool\",\"defaultValue\":\"datapfyxdjspn\"}},\"annotations\":[\"datamcvdjlwwefevtwll\",\"dataypmjc\",\"datay\",\"datafwgkzuhk\"],\"folder\":{\"name\":\"jkckwbqwjyfmmk\"},\"\":{\"oerohextigukfk\":\"datarooyzhobnvyuepa\",\"enlqtqyvlfbs\":\"datasycbdymbnp\"}}") - .toObject(ZohoObjectDataset.class); - Assertions.assertEquals("mbjern", model.description()); - Assertions.assertEquals("tkdeetnnef", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("ulojwumfjdymeq").type()); - Assertions.assertEquals("jkckwbqwjyfmmk", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ZohoObjectDataset model = - new ZohoObjectDataset() - .withDescription("mbjern") - .withStructure("datazywx") - .withSchema("dataaq") - .withLinkedServiceName( - new LinkedServiceReference() - .withReferenceName("tkdeetnnef") - .withParameters( - mapOf( - "fwqjzybmfqdnpp", - "datalkszuxjmrzsxwa", - "vamuvkgd", - "datacfguam", - "spjvsyydjlhd", - "datapjbblukgctv"))) - .withParameters( - mapOf( - "ulojwumfjdymeq", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datavyeegx"), - "nxemhqpzhnatw", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datapfyxdjspn"))) - .withAnnotations(Arrays.asList("datamcvdjlwwefevtwll", "dataypmjc", "datay", "datafwgkzuhk")) - .withFolder(new DatasetFolder().withName("jkckwbqwjyfmmk")) - .withTableName("datamrslwknrd"); - model = BinaryData.fromObject(model).toObject(ZohoObjectDataset.class); - Assertions.assertEquals("mbjern", model.description()); - Assertions.assertEquals("tkdeetnnef", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("ulojwumfjdymeq").type()); - Assertions.assertEquals("jkckwbqwjyfmmk", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ZohoSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ZohoSourceTests.java deleted file mode 100644 index f79076d3c3c4..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ZohoSourceTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ZohoSource; - -public final class ZohoSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ZohoSource model = - BinaryData - .fromString( - "{\"type\":\"ZohoSource\",\"query\":\"datavddfmflwfxdkpwd\",\"queryTimeout\":\"datayg\",\"additionalColumns\":\"dataugcht\",\"sourceRetryCount\":\"datai\",\"sourceRetryWait\":\"datadlrxbsuftpvgmqzi\",\"maxConcurrentConnections\":\"datauvmlltas\",\"disableMetricsCollection\":\"dataqsf\",\"\":{\"vvvrbqxisa\":\"dataszvegawbmyvgmbi\"}}") - .toObject(ZohoSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ZohoSource model = - new ZohoSource() - .withSourceRetryCount("datai") - .withSourceRetryWait("datadlrxbsuftpvgmqzi") - .withMaxConcurrentConnections("datauvmlltas") - .withDisableMetricsCollection("dataqsf") - .withQueryTimeout("datayg") - .withAdditionalColumns("dataugcht") - .withQuery("datavddfmflwfxdkpwd"); - model = BinaryData.fromObject(model).toObject(ZohoSource.class); - } -}