diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/CHANGELOG.md b/sdk/datafactory/azure-resourcemanager-datafactory/CHANGELOG.md index 09bf4dbf2470..4bea5337f6e9 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.23 (Unreleased) +## 1.0.0-beta.1 (2023-11-07) + +- 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 aa491db959ff..63c7374a5c1a 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.22 + 1.0.0-beta.23 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/SAMPLE.md b/sdk/datafactory/azure-resourcemanager-datafactory/SAMPLE.md index 9cdc7b270cf2..99591a5533cd 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/SAMPLE.md +++ b/sdk/datafactory/azure-resourcemanager-datafactory/SAMPLE.md @@ -5,13 +5,6 @@ - [QueryByPipelineRun](#activityruns_querybypipelinerun) -## CredentialOperations - -- [CreateOrUpdate](#credentialoperations_createorupdate) -- [Delete](#credentialoperations_delete) -- [Get](#credentialoperations_get) -- [ListByFactory](#credentialoperations_listbyfactory) - ## DataFlowDebugSession - [AddDataFlow](#dataflowdebugsession_adddataflow) @@ -193,104 +186,6 @@ public final class ActivityRunsQueryByPipelineRunSamples { } ``` -### CredentialOperations_CreateOrUpdate - -```java -import com.azure.resourcemanager.datafactory.models.ManagedIdentityCredential; - -/** Samples for CredentialOperations CreateOrUpdate. */ -public final class CredentialOperationsCreateOrUpdateSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Credentials_Create.json - */ - /** - * Sample code: Credentials_Create. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void credentialsCreate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .credentialOperations() - .define("exampleCredential") - .withExistingFactory("exampleResourceGroup", "exampleFactoryName") - .withProperties( - new ManagedIdentityCredential() - .withResourceId( - "/subscriptions/12345678-1234-1234-1234-12345678abc/resourcegroups/exampleResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleUami")) - .create(); - } -} -``` - -### CredentialOperations_Delete - -```java -/** Samples for CredentialOperations Delete. */ -public final class CredentialOperationsDeleteSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Credentials_Delete.json - */ - /** - * Sample code: Credentials_Delete. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void credentialsDelete(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .credentialOperations() - .deleteWithResponse( - "exampleResourceGroup", "exampleFactoryName", "exampleCredential", com.azure.core.util.Context.NONE); - } -} -``` - -### CredentialOperations_Get - -```java -/** Samples for CredentialOperations Get. */ -public final class CredentialOperationsGetSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Credentials_Get.json - */ - /** - * Sample code: Credentials_Get. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void credentialsGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .credentialOperations() - .getWithResponse( - "exampleResourceGroup", - "exampleFactoryName", - "exampleCredential", - null, - com.azure.core.util.Context.NONE); - } -} -``` - -### CredentialOperations_ListByFactory - -```java -/** Samples for CredentialOperations ListByFactory. */ -public final class CredentialOperationsListByFactorySamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Credentials_ListByFactory.json - */ - /** - * Sample code: Credentials_ListByFactory. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void credentialsListByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .credentialOperations() - .listByFactory("exampleResourceGroup", "exampleFactoryName", com.azure.core.util.Context.NONE); - } -} -``` - ### DataFlowDebugSession_AddDataFlow ```java @@ -619,32 +514,19 @@ public final class DataFlowsCreateOrUpdateSamples { new DataFlowSink() .withName("CADSink") .withDataset(new DatasetReference().withReferenceName("CADOutput")))) - .withScriptLines( - Arrays - .asList( - "source(output(", - "PreviousConversionRate as double,", - "Country as string,", - "DateTime1 as string,", - "CurrentConversionRate as double", - "),", - "allowSchemaDrift: false,", - "validateSchema: false) ~> USDCurrency", - "source(output(", - "PreviousConversionRate as double,", - "Country as string,", - "DateTime1 as string,", - "CurrentConversionRate as double", - "),", - "allowSchemaDrift: true,", - "validateSchema: false) ~> CADSource", - "USDCurrency, CADSource union(byName: true)~> Union", - "Union derive(NewCurrencyRate = round(CurrentConversionRate*1.25)) ~>" - + " NewCurrencyColumn", - "NewCurrencyColumn split(Country == 'USD',", - "Country == 'CAD',disjoint: false) ~> ConditionalSplit1@(USD, CAD)", - "ConditionalSplit1@USD sink(saveMode:'overwrite' ) ~> USDSink", - "ConditionalSplit1@CAD sink(saveMode:'overwrite' ) ~> CADSink"))) + .withScript( + "source(output(PreviousConversionRate as double,Country as string,DateTime1 as" + + " string,CurrentConversionRate as double),allowSchemaDrift: false,validateSchema: false)" + + " ~> USDCurrency\n" + + "source(output(PreviousConversionRate as double,Country as string,DateTime1 as" + + " string,CurrentConversionRate as double),allowSchemaDrift: true,validateSchema: false)" + + " ~> CADSource\n" + + "USDCurrency, CADSource union(byName: true)~> Union\n" + + "Union derive(NewCurrencyRate = round(CurrentConversionRate*1.25)) ~> NewCurrencyColumn\n" + + "NewCurrencyColumn split(Country == 'USD',Country == 'CAD',disjoint: false) ~>" + + " ConditionalSplit1@(USD, CAD)\n" + + "ConditionalSplit1@USD sink(saveMode:'overwrite' ) ~> USDSink\n" + + "ConditionalSplit1@CAD sink(saveMode:'overwrite' ) ~> CADSink")) .create(); } @@ -692,32 +574,19 @@ public final class DataFlowsCreateOrUpdateSamples { new DataFlowSink() .withName("CADSink") .withDataset(new DatasetReference().withReferenceName("CADOutput")))) - .withScriptLines( - Arrays - .asList( - "source(output(", - "PreviousConversionRate as double,", - "Country as string,", - "DateTime1 as string,", - "CurrentConversionRate as double", - "),", - "allowSchemaDrift: false,", - "validateSchema: false) ~> USDCurrency", - "source(output(", - "PreviousConversionRate as double,", - "Country as string,", - "DateTime1 as string,", - "CurrentConversionRate as double", - "),", - "allowSchemaDrift: true,", - "validateSchema: false) ~> CADSource", - "USDCurrency, CADSource union(byName: true)~> Union", - "Union derive(NewCurrencyRate = round(CurrentConversionRate*1.25)) ~>" - + " NewCurrencyColumn", - "NewCurrencyColumn split(Country == 'USD',", - "Country == 'CAD',disjoint: false) ~> ConditionalSplit1@(USD, CAD)", - "ConditionalSplit1@USD sink(saveMode:'overwrite' ) ~> USDSink", - "ConditionalSplit1@CAD sink(saveMode:'overwrite' ) ~> CADSink"))) + .withScript( + "source(output(PreviousConversionRate as double,Country as string,DateTime1 as" + + " string,CurrentConversionRate as double),allowSchemaDrift: false,validateSchema: false)" + + " ~> USDCurrency\n" + + "source(output(PreviousConversionRate as double,Country as string,DateTime1 as" + + " string,CurrentConversionRate as double),allowSchemaDrift: true,validateSchema: false)" + + " ~> CADSource\n" + + "USDCurrency, CADSource union(byName: true)~> Union\n" + + "Union derive(NewCurrencyRate = round(CurrentConversionRate*1.25)) ~> NewCurrencyColumn\n" + + "NewCurrencyColumn split(Country == 'USD',Country == 'CAD',disjoint: false) ~>" + + " ConditionalSplit1@(USD, CAD)\n" + + "ConditionalSplit1@USD sink(saveMode:'overwrite' ) ~> USDSink\n" + + "ConditionalSplit1@CAD sink(saveMode:'overwrite' ) ~> CADSink")) .apply(); } } 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 7e65231d4a17..22ca53205881 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 @@ -25,7 +25,6 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.datafactory.fluent.DataFactoryManagementClient; import com.azure.resourcemanager.datafactory.implementation.ActivityRunsImpl; -import com.azure.resourcemanager.datafactory.implementation.CredentialOperationsImpl; import com.azure.resourcemanager.datafactory.implementation.DataFactoryManagementClientBuilder; import com.azure.resourcemanager.datafactory.implementation.DataFlowDebugSessionsImpl; import com.azure.resourcemanager.datafactory.implementation.DataFlowsImpl; @@ -48,7 +47,6 @@ import com.azure.resourcemanager.datafactory.implementation.TriggerRunsImpl; import com.azure.resourcemanager.datafactory.implementation.TriggersImpl; import com.azure.resourcemanager.datafactory.models.ActivityRuns; -import com.azure.resourcemanager.datafactory.models.CredentialOperations; import com.azure.resourcemanager.datafactory.models.DataFlowDebugSessions; import com.azure.resourcemanager.datafactory.models.DataFlows; import com.azure.resourcemanager.datafactory.models.Datasets; @@ -115,8 +113,6 @@ public final class DataFactoryManager { private ManagedPrivateEndpoints managedPrivateEndpoints; - private CredentialOperations credentialOperations; - private PrivateEndPointConnections privateEndPointConnections; private PrivateEndpointConnectionOperations privateEndpointConnectionOperations; @@ -290,7 +286,7 @@ public DataFactoryManager authenticate(TokenCredential credential, AzureProfile .append("-") .append("com.azure.resourcemanager.datafactory") .append("/") - .append("1.0.0-beta.22"); + .append("1.0.0-beta.1"); if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) { userAgentBuilder .append(" (") @@ -555,18 +551,6 @@ public ManagedPrivateEndpoints managedPrivateEndpoints() { return managedPrivateEndpoints; } - /** - * Gets the resource collection API of CredentialOperations. It manages ManagedIdentityCredentialResource. - * - * @return Resource collection API of CredentialOperations. - */ - public CredentialOperations credentialOperations() { - if (this.credentialOperations == null) { - this.credentialOperations = new CredentialOperationsImpl(clientObject.getCredentialOperations(), this); - } - return credentialOperations; - } - /** * Gets the resource collection API of PrivateEndPointConnections. * diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/CredentialOperationsClient.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/CredentialOperationsClient.java deleted file mode 100644 index b8254c77b6f8..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/CredentialOperationsClient.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.fluent; - -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.fluent.models.ManagedIdentityCredentialResourceInner; - -/** An instance of this class provides access to all the operations defined in CredentialOperationsClient. */ -public interface CredentialOperationsClient { - /** - * List credentials. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of credential resources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByFactory(String resourceGroupName, String factoryName); - - /** - * List credentials. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of credential resources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByFactory( - String resourceGroupName, String factoryName, Context context); - - /** - * Creates or updates a credential. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param credentialName Credential name. - * @param credential Credential resource definition. - * @param ifMatch ETag of the credential entity. Should only be specified for update, for which it should match - * existing entity or can be * for unconditional update. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return credential resource type along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response createOrUpdateWithResponse( - String resourceGroupName, - String factoryName, - String credentialName, - ManagedIdentityCredentialResourceInner credential, - String ifMatch, - Context context); - - /** - * Creates or updates a credential. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param credentialName Credential name. - * @param credential Credential resource definition. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return credential resource type. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ManagedIdentityCredentialResourceInner createOrUpdate( - String resourceGroupName, - String factoryName, - String credentialName, - ManagedIdentityCredentialResourceInner credential); - - /** - * Gets a credential. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param credentialName Credential name. - * @param ifNoneMatch ETag of the credential entity. Should only be specified for get. If the ETag matches the - * existing entity tag, or if * was provided, then no content will be returned. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a credential along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String factoryName, String credentialName, String ifNoneMatch, Context context); - - /** - * Gets a credential. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param credentialName Credential name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a credential. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ManagedIdentityCredentialResourceInner get(String resourceGroupName, String factoryName, String credentialName); - - /** - * Deletes a credential. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param credentialName Credential name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response deleteWithResponse( - String resourceGroupName, String factoryName, String credentialName, Context context); - - /** - * Deletes a credential. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param credentialName Credential name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String factoryName, String credentialName); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/DataFactoryManagementClient.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/DataFactoryManagementClient.java index 81c1344f83a8..6e9bbb0433f3 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/DataFactoryManagementClient.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/DataFactoryManagementClient.java @@ -163,13 +163,6 @@ public interface DataFactoryManagementClient { */ ManagedPrivateEndpointsClient getManagedPrivateEndpoints(); - /** - * Gets the CredentialOperationsClient object to access its operations. - * - * @return the CredentialOperationsClient object. - */ - CredentialOperationsClient getCredentialOperations(); - /** * Gets the PrivateEndPointConnectionsClient object to access its operations. * diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureBlobFSLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureBlobFSLinkedServiceTypeProperties.java index 3343f657b628..416672df4054 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureBlobFSLinkedServiceTypeProperties.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureBlobFSLinkedServiceTypeProperties.java @@ -5,6 +5,7 @@ package com.azure.resourcemanager.datafactory.fluent.models; import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.datafactory.models.CredentialReference; import com.azure.resourcemanager.datafactory.models.SecretBase; import com.fasterxml.jackson.annotation.JsonProperty; @@ -15,7 +16,7 @@ public final class AzureBlobFSLinkedServiceTypeProperties { /* * Endpoint for the Azure Data Lake Storage Gen2 service. Type: string (or Expression with resultType string). */ - @JsonProperty(value = "url") + @JsonProperty(value = "url", required = true) private Object url; /* @@ -81,18 +82,6 @@ public final class AzureBlobFSLinkedServiceTypeProperties { @JsonProperty(value = "servicePrincipalCredential") private SecretBase servicePrincipalCredential; - /* - * SAS URI of the Azure Data Lake Storage Gen2 service. Type: string, SecureString or AzureKeyVaultSecretReference. - */ - @JsonProperty(value = "sasUri") - private Object sasUri; - - /* - * The Azure key vault secret reference of sasToken in sas uri. - */ - @JsonProperty(value = "sasToken") - private SecretBase sasToken; - /** Creates an instance of AzureBlobFSLinkedServiceTypeProperties class. */ public AzureBlobFSLinkedServiceTypeProperties() { } @@ -325,54 +314,18 @@ public AzureBlobFSLinkedServiceTypeProperties withServicePrincipalCredential( return this; } - /** - * Get the sasUri property: SAS URI of the Azure Data Lake Storage Gen2 service. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @return the sasUri value. - */ - public Object sasUri() { - return this.sasUri; - } - - /** - * Set the sasUri property: SAS URI of the Azure Data Lake Storage Gen2 service. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @param sasUri the sasUri value to set. - * @return the AzureBlobFSLinkedServiceTypeProperties object itself. - */ - public AzureBlobFSLinkedServiceTypeProperties withSasUri(Object sasUri) { - this.sasUri = sasUri; - return this; - } - - /** - * Get the sasToken property: The Azure key vault secret reference of sasToken in sas uri. - * - * @return the sasToken value. - */ - public SecretBase sasToken() { - return this.sasToken; - } - - /** - * Set the sasToken property: The Azure key vault secret reference of sasToken in sas uri. - * - * @param sasToken the sasToken value to set. - * @return the AzureBlobFSLinkedServiceTypeProperties object itself. - */ - public AzureBlobFSLinkedServiceTypeProperties withSasToken(SecretBase sasToken) { - this.sasToken = sasToken; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { + if (url() == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property url in model AzureBlobFSLinkedServiceTypeProperties")); + } if (servicePrincipalKey() != null) { servicePrincipalKey().validate(); } @@ -382,8 +335,7 @@ public void validate() { if (servicePrincipalCredential() != null) { servicePrincipalCredential().validate(); } - if (sasToken() != null) { - sasToken().validate(); - } } + + private static final ClientLogger LOGGER = new ClientLogger(AzureBlobFSLinkedServiceTypeProperties.class); } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureBlobStorageLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureBlobStorageLinkedServiceTypeProperties.java index 02150fcc15e8..6eb21e285ca5 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureBlobStorageLinkedServiceTypeProperties.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureBlobStorageLinkedServiceTypeProperties.java @@ -6,7 +6,6 @@ import com.azure.core.annotation.Fluent; import com.azure.resourcemanager.datafactory.models.AzureKeyVaultSecretReference; -import com.azure.resourcemanager.datafactory.models.AzureStorageAuthenticationType; import com.azure.resourcemanager.datafactory.models.CredentialReference; import com.azure.resourcemanager.datafactory.models.SecretBase; import com.fasterxml.jackson.annotation.JsonProperty; @@ -95,19 +94,6 @@ public final class AzureBlobStorageLinkedServiceTypeProperties { @JsonProperty(value = "credential") private CredentialReference credential; - /* - * The type used for authentication. Type: string. - */ - @JsonProperty(value = "authenticationType") - private AzureStorageAuthenticationType authenticationType; - - /* - * Container uri of the Azure Blob Storage resource only support for anonymous access. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "containerUri") - private Object containerUri; - /** Creates an instance of AzureBlobStorageLinkedServiceTypeProperties class. */ public AzureBlobStorageLinkedServiceTypeProperties() { } @@ -374,49 +360,6 @@ public AzureBlobStorageLinkedServiceTypeProperties withCredential(CredentialRefe return this; } - /** - * Get the authenticationType property: The type used for authentication. Type: string. - * - * @return the authenticationType value. - */ - public AzureStorageAuthenticationType authenticationType() { - return this.authenticationType; - } - - /** - * Set the authenticationType property: The type used for authentication. Type: string. - * - * @param authenticationType the authenticationType value to set. - * @return the AzureBlobStorageLinkedServiceTypeProperties object itself. - */ - public AzureBlobStorageLinkedServiceTypeProperties withAuthenticationType( - AzureStorageAuthenticationType authenticationType) { - this.authenticationType = authenticationType; - return this; - } - - /** - * Get the containerUri property: Container uri of the Azure Blob Storage resource only support for anonymous - * access. Type: string (or Expression with resultType string). - * - * @return the containerUri value. - */ - public Object containerUri() { - return this.containerUri; - } - - /** - * Set the containerUri property: Container uri of the Azure Blob Storage resource only support for anonymous - * access. Type: string (or Expression with resultType string). - * - * @param containerUri the containerUri value to set. - * @return the AzureBlobStorageLinkedServiceTypeProperties object itself. - */ - public AzureBlobStorageLinkedServiceTypeProperties withContainerUri(Object containerUri) { - this.containerUri = containerUri; - return this; - } - /** * Validates the instance. * diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSynapseArtifactsLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSynapseArtifactsLinkedServiceTypeProperties.java index 5008b151a1b7..9dcb25deb360 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSynapseArtifactsLinkedServiceTypeProperties.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSynapseArtifactsLinkedServiceTypeProperties.java @@ -25,14 +25,6 @@ public final class AzureSynapseArtifactsLinkedServiceTypeProperties { @JsonProperty(value = "authentication") private Object authentication; - /* - * The resource ID of the Synapse workspace. The format should be: - * /subscriptions/{subscriptionID}/resourceGroups/{resourceGroup}/providers/Microsoft.Synapse/workspaces/{workspaceName}. - * Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "workspaceResourceId") - private Object workspaceResourceId; - /** Creates an instance of AzureSynapseArtifactsLinkedServiceTypeProperties class. */ public AzureSynapseArtifactsLinkedServiceTypeProperties() { } @@ -81,30 +73,6 @@ public AzureSynapseArtifactsLinkedServiceTypeProperties withAuthentication(Objec return this; } - /** - * Get the workspaceResourceId property: The resource ID of the Synapse workspace. The format should be: - * /subscriptions/{subscriptionID}/resourceGroups/{resourceGroup}/providers/Microsoft.Synapse/workspaces/{workspaceName}. - * Type: string (or Expression with resultType string). - * - * @return the workspaceResourceId value. - */ - public Object workspaceResourceId() { - return this.workspaceResourceId; - } - - /** - * Set the workspaceResourceId property: The resource ID of the Synapse workspace. The format should be: - * /subscriptions/{subscriptionID}/resourceGroups/{resourceGroup}/providers/Microsoft.Synapse/workspaces/{workspaceName}. - * Type: string (or Expression with resultType string). - * - * @param workspaceResourceId the workspaceResourceId value to set. - * @return the AzureSynapseArtifactsLinkedServiceTypeProperties object itself. - */ - public AzureSynapseArtifactsLinkedServiceTypeProperties withWorkspaceResourceId(Object workspaceResourceId) { - this.workspaceResourceId = workspaceResourceId; - return this; - } - /** * Validates the instance. * diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GoogleSheetsLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GoogleSheetsLinkedServiceTypeProperties.java deleted file mode 100644 index 6638c2365ecc..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GoogleSheetsLinkedServiceTypeProperties.java +++ /dev/null @@ -1,91 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** GoogleSheets linked service type properties. */ -@Fluent -public final class GoogleSheetsLinkedServiceTypeProperties { - /* - * The api token for the GoogleSheets source. - */ - @JsonProperty(value = "apiToken", required = true) - private SecretBase apiToken; - - /* - * The encrypted credential used for authentication. Credentials are encrypted using the integration runtime - * credential manager. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** Creates an instance of GoogleSheetsLinkedServiceTypeProperties class. */ - public GoogleSheetsLinkedServiceTypeProperties() { - } - - /** - * Get the apiToken property: The api token for the GoogleSheets source. - * - * @return the apiToken value. - */ - public SecretBase apiToken() { - return this.apiToken; - } - - /** - * Set the apiToken property: The api token for the GoogleSheets source. - * - * @param apiToken the apiToken value to set. - * @return the GoogleSheetsLinkedServiceTypeProperties object itself. - */ - public GoogleSheetsLinkedServiceTypeProperties withApiToken(SecretBase apiToken) { - this.apiToken = apiToken; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the GoogleSheetsLinkedServiceTypeProperties object itself. - */ - public GoogleSheetsLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (apiToken() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property apiToken in model GoogleSheetsLinkedServiceTypeProperties")); - } else { - apiToken().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(GoogleSheetsLinkedServiceTypeProperties.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/LakeHouseLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/LakeHouseLinkedServiceTypeProperties.java new file mode 100644 index 000000000000..fa6dd7102458 --- /dev/null +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/LakeHouseLinkedServiceTypeProperties.java @@ -0,0 +1,269 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.datafactory.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.resourcemanager.datafactory.models.SecretBase; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** Microsoft Fabric LakeHouse linked service properties. */ +@Fluent +public final class LakeHouseLinkedServiceTypeProperties { + /* + * The ID of Microsoft Fabric workspace. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "workspaceId") + private Object workspaceId; + + /* + * The ID of Microsoft Fabric LakeHouse artifact. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "artifactId") + private Object artifactId; + + /* + * The ID of the application used to authenticate against Microsoft Fabric LakeHouse. Type: string (or Expression + * with resultType string). + */ + @JsonProperty(value = "servicePrincipalId") + private Object servicePrincipalId; + + /* + * The Key of the application used to authenticate against Microsoft Fabric LakeHouse. + */ + @JsonProperty(value = "servicePrincipalKey") + private SecretBase servicePrincipalKey; + + /* + * The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "tenant") + private Object tenant; + + /* + * The encrypted credential used for authentication. Credentials are encrypted using the integration runtime + * credential manager. Type: string. + */ + @JsonProperty(value = "encryptedCredential") + private String encryptedCredential; + + /* + * The service principal credential type to use in Server-To-Server authentication. 'ServicePrincipalKey' for + * key/secret, 'ServicePrincipalCert' for certificate. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "servicePrincipalCredentialType") + private Object servicePrincipalCredentialType; + + /* + * The credential of the service principal object in Azure Active Directory. If servicePrincipalCredentialType is + * 'ServicePrincipalKey', servicePrincipalCredential can be SecureString or AzureKeyVaultSecretReference. If + * servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can only be + * AzureKeyVaultSecretReference. + */ + @JsonProperty(value = "servicePrincipalCredential") + private SecretBase servicePrincipalCredential; + + /** Creates an instance of LakeHouseLinkedServiceTypeProperties class. */ + public LakeHouseLinkedServiceTypeProperties() { + } + + /** + * Get the workspaceId property: The ID of Microsoft Fabric workspace. Type: string (or Expression with resultType + * string). + * + * @return the workspaceId value. + */ + public Object workspaceId() { + return this.workspaceId; + } + + /** + * Set the workspaceId property: The ID of Microsoft Fabric workspace. Type: string (or Expression with resultType + * string). + * + * @param workspaceId the workspaceId value to set. + * @return the LakeHouseLinkedServiceTypeProperties object itself. + */ + public LakeHouseLinkedServiceTypeProperties withWorkspaceId(Object workspaceId) { + this.workspaceId = workspaceId; + return this; + } + + /** + * Get the artifactId property: The ID of Microsoft Fabric LakeHouse artifact. Type: string (or Expression with + * resultType string). + * + * @return the artifactId value. + */ + public Object artifactId() { + return this.artifactId; + } + + /** + * Set the artifactId property: The ID of Microsoft Fabric LakeHouse artifact. Type: string (or Expression with + * resultType string). + * + * @param artifactId the artifactId value to set. + * @return the LakeHouseLinkedServiceTypeProperties object itself. + */ + public LakeHouseLinkedServiceTypeProperties withArtifactId(Object artifactId) { + this.artifactId = artifactId; + return this; + } + + /** + * Get the servicePrincipalId property: The ID of the application used to authenticate against Microsoft Fabric + * LakeHouse. Type: string (or Expression with resultType string). + * + * @return the servicePrincipalId value. + */ + public Object servicePrincipalId() { + return this.servicePrincipalId; + } + + /** + * Set the servicePrincipalId property: The ID of the application used to authenticate against Microsoft Fabric + * LakeHouse. Type: string (or Expression with resultType string). + * + * @param servicePrincipalId the servicePrincipalId value to set. + * @return the LakeHouseLinkedServiceTypeProperties object itself. + */ + public LakeHouseLinkedServiceTypeProperties withServicePrincipalId(Object servicePrincipalId) { + this.servicePrincipalId = servicePrincipalId; + return this; + } + + /** + * Get the servicePrincipalKey property: The Key of the application used to authenticate against Microsoft Fabric + * LakeHouse. + * + * @return the servicePrincipalKey value. + */ + public SecretBase servicePrincipalKey() { + return this.servicePrincipalKey; + } + + /** + * Set the servicePrincipalKey property: The Key of the application used to authenticate against Microsoft Fabric + * LakeHouse. + * + * @param servicePrincipalKey the servicePrincipalKey value to set. + * @return the LakeHouseLinkedServiceTypeProperties object itself. + */ + public LakeHouseLinkedServiceTypeProperties withServicePrincipalKey(SecretBase servicePrincipalKey) { + this.servicePrincipalKey = servicePrincipalKey; + return this; + } + + /** + * Get the tenant property: The name or ID of the tenant to which the service principal belongs. Type: string (or + * Expression with resultType string). + * + * @return the tenant value. + */ + public Object tenant() { + return this.tenant; + } + + /** + * Set the tenant property: The name or ID of the tenant to which the service principal belongs. Type: string (or + * Expression with resultType string). + * + * @param tenant the tenant value to set. + * @return the LakeHouseLinkedServiceTypeProperties object itself. + */ + public LakeHouseLinkedServiceTypeProperties withTenant(Object tenant) { + this.tenant = tenant; + return this; + } + + /** + * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted + * using the integration runtime credential manager. Type: string. + * + * @return the encryptedCredential value. + */ + public String encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted + * using the integration runtime credential manager. Type: string. + * + * @param encryptedCredential the encryptedCredential value to set. + * @return the LakeHouseLinkedServiceTypeProperties object itself. + */ + public LakeHouseLinkedServiceTypeProperties withEncryptedCredential(String encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + + /** + * Get the servicePrincipalCredentialType property: The service principal credential type to use in Server-To-Server + * authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' for certificate. Type: string (or + * Expression with resultType string). + * + * @return the servicePrincipalCredentialType value. + */ + public Object servicePrincipalCredentialType() { + return this.servicePrincipalCredentialType; + } + + /** + * Set the servicePrincipalCredentialType property: The service principal credential type to use in Server-To-Server + * authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' for certificate. Type: string (or + * Expression with resultType string). + * + * @param servicePrincipalCredentialType the servicePrincipalCredentialType value to set. + * @return the LakeHouseLinkedServiceTypeProperties object itself. + */ + public LakeHouseLinkedServiceTypeProperties withServicePrincipalCredentialType( + Object servicePrincipalCredentialType) { + this.servicePrincipalCredentialType = servicePrincipalCredentialType; + return this; + } + + /** + * Get the servicePrincipalCredential property: The credential of the service principal object in Azure Active + * Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', servicePrincipalCredential can be + * SecureString or AzureKeyVaultSecretReference. If servicePrincipalCredentialType is 'ServicePrincipalCert', + * servicePrincipalCredential can only be AzureKeyVaultSecretReference. + * + * @return the servicePrincipalCredential value. + */ + public SecretBase servicePrincipalCredential() { + return this.servicePrincipalCredential; + } + + /** + * Set the servicePrincipalCredential property: The credential of the service principal object in Azure Active + * Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', servicePrincipalCredential can be + * SecureString or AzureKeyVaultSecretReference. If servicePrincipalCredentialType is 'ServicePrincipalCert', + * servicePrincipalCredential can only be AzureKeyVaultSecretReference. + * + * @param servicePrincipalCredential the servicePrincipalCredential value to set. + * @return the LakeHouseLinkedServiceTypeProperties object itself. + */ + public LakeHouseLinkedServiceTypeProperties withServicePrincipalCredential(SecretBase servicePrincipalCredential) { + this.servicePrincipalCredential = servicePrincipalCredential; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (servicePrincipalKey() != null) { + servicePrincipalKey().validate(); + } + if (servicePrincipalCredential() != null) { + servicePrincipalCredential().validate(); + } + } +} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ManagedIdentityCredentialResourceInner.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ManagedIdentityCredentialResourceInner.java deleted file mode 100644 index adf405666f33..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ManagedIdentityCredentialResourceInner.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.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.management.SubResource; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.ManagedIdentityCredential; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Credential resource type. */ -@Fluent -public final class ManagedIdentityCredentialResourceInner extends SubResource { - /* - * Managed Identity Credential properties. - */ - @JsonProperty(value = "properties", required = true) - private ManagedIdentityCredential properties; - - /* - * The resource name. - */ - @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY) - private String name; - - /* - * The resource type. - */ - @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY) - private String type; - - /* - * Etag identifies change in the resource. - */ - @JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY) - private String etag; - - /** Creates an instance of ManagedIdentityCredentialResourceInner class. */ - public ManagedIdentityCredentialResourceInner() { - } - - /** - * Get the properties property: Managed Identity Credential properties. - * - * @return the properties value. - */ - public ManagedIdentityCredential properties() { - return this.properties; - } - - /** - * Set the properties property: Managed Identity Credential properties. - * - * @param properties the properties value to set. - * @return the ManagedIdentityCredentialResourceInner object itself. - */ - public ManagedIdentityCredentialResourceInner withProperties(ManagedIdentityCredential properties) { - this.properties = properties; - return this; - } - - /** - * Get the name property: The resource name. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Get the type property: The resource type. - * - * @return the type value. - */ - public String type() { - return this.type; - } - - /** - * Get the etag property: Etag identifies change in the resource. - * - * @return the etag value. - */ - public String etag() { - return this.etag; - } - - /** {@inheritDoc} */ - @Override - public ManagedIdentityCredentialResourceInner withId(String id) { - super.withId(id); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (properties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property properties in model ManagedIdentityCredentialResourceInner")); - } else { - properties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ManagedIdentityCredentialResourceInner.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ScriptActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ScriptActivityTypeProperties.java index aa0b2023a117..150e05e92dda 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ScriptActivityTypeProperties.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ScriptActivityTypeProperties.java @@ -13,13 +13,6 @@ /** Script activity properties. */ @Fluent public final class ScriptActivityTypeProperties { - /* - * ScriptBlock execution timeout. Type: string (or Expression with resultType string), pattern: - * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - */ - @JsonProperty(value = "scriptBlockExecutionTimeout") - private Object scriptBlockExecutionTimeout; - /* * Array of script blocks. Type: array. */ @@ -36,28 +29,6 @@ public final class ScriptActivityTypeProperties { public ScriptActivityTypeProperties() { } - /** - * Get the scriptBlockExecutionTimeout property: ScriptBlock execution timeout. Type: string (or Expression with - * resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - * - * @return the scriptBlockExecutionTimeout value. - */ - public Object scriptBlockExecutionTimeout() { - return this.scriptBlockExecutionTimeout; - } - - /** - * Set the scriptBlockExecutionTimeout property: ScriptBlock execution timeout. Type: string (or Expression with - * resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - * - * @param scriptBlockExecutionTimeout the scriptBlockExecutionTimeout value to set. - * @return the ScriptActivityTypeProperties object itself. - */ - public ScriptActivityTypeProperties withScriptBlockExecutionTimeout(Object scriptBlockExecutionTimeout) { - this.scriptBlockExecutionTimeout = scriptBlockExecutionTimeout; - return this; - } - /** * Get the scripts property: Array of script blocks. Type: array. * diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SynapseSparkJobActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SynapseSparkJobActivityTypeProperties.java index 906b5e321405..db268c2e3a4b 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SynapseSparkJobActivityTypeProperties.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SynapseSparkJobActivityTypeProperties.java @@ -7,13 +7,9 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.datafactory.models.BigDataPoolParametrizationReference; -import com.azure.resourcemanager.datafactory.models.ConfigurationType; -import com.azure.resourcemanager.datafactory.models.SparkConfigurationParametrizationReference; import com.azure.resourcemanager.datafactory.models.SynapseSparkJobReference; -import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -import java.util.Map; /** Execute spark job activity properties. */ @Fluent @@ -37,14 +33,6 @@ public final class SynapseSparkJobActivityTypeProperties { @JsonProperty(value = "file") private Object file; - /* - * Scanning subfolders from the root folder of the main definition file, these files will be added as reference - * files. The folders named 'jars', 'pyFiles', 'files' or 'archives' will be scanned, and the folders name are case - * sensitive. Type: boolean (or Expression with resultType boolean). - */ - @JsonProperty(value = "scanFolder") - private Object scanFolder; - /* * The fully-qualified identifier or the main class that is in the main definition file, which will override the * 'className' of the spark job definition you provide. Type: string (or Expression with resultType string). @@ -53,26 +41,12 @@ public final class SynapseSparkJobActivityTypeProperties { private Object className; /* - * (Deprecated. Please use pythonCodeReference and filesV2) Additional files used for reference in the main - * definition file, which will override the 'files' of the spark job definition you provide. + * Additional files used for reference in the main definition file, which will override the 'files' of the spark + * job definition you provide. */ @JsonProperty(value = "files") private List files; - /* - * Additional python code files used for reference in the main definition file, which will override the 'pyFiles' - * of the spark job definition you provide. - */ - @JsonProperty(value = "pythonCodeReference") - private List pythonCodeReference; - - /* - * Additional files used for reference in the main definition file, which will override the 'jars' and 'files' of - * the spark job definition you provide. - */ - @JsonProperty(value = "filesV2") - private List filesV2; - /* * The name of the big data pool which will be used to execute the spark batch job, which will override the * 'targetBigDataPool' of the spark job definition you provide. @@ -104,29 +78,10 @@ public final class SynapseSparkJobActivityTypeProperties { /* * Number of executors to launch for this job, which will override the 'numExecutors' of the spark job definition - * you provide. Type: integer (or Expression with resultType integer). + * you provide. */ @JsonProperty(value = "numExecutors") - private Object numExecutors; - - /* - * The type of the spark config. - */ - @JsonProperty(value = "configurationType") - private ConfigurationType configurationType; - - /* - * The spark configuration of the spark job. - */ - @JsonProperty(value = "targetSparkConfiguration") - private SparkConfigurationParametrizationReference targetSparkConfiguration; - - /* - * Spark configuration property. - */ - @JsonProperty(value = "sparkConfig") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map sparkConfig; + private Integer numExecutors; /** Creates an instance of SynapseSparkJobActivityTypeProperties class. */ public SynapseSparkJobActivityTypeProperties() { @@ -194,30 +149,6 @@ public SynapseSparkJobActivityTypeProperties withFile(Object file) { return this; } - /** - * Get the scanFolder property: Scanning subfolders from the root folder of the main definition file, these files - * will be added as reference files. The folders named 'jars', 'pyFiles', 'files' or 'archives' will be scanned, and - * the folders name are case sensitive. Type: boolean (or Expression with resultType boolean). - * - * @return the scanFolder value. - */ - public Object scanFolder() { - return this.scanFolder; - } - - /** - * Set the scanFolder property: Scanning subfolders from the root folder of the main definition file, these files - * will be added as reference files. The folders named 'jars', 'pyFiles', 'files' or 'archives' will be scanned, and - * the folders name are case sensitive. Type: boolean (or Expression with resultType boolean). - * - * @param scanFolder the scanFolder value to set. - * @return the SynapseSparkJobActivityTypeProperties object itself. - */ - public SynapseSparkJobActivityTypeProperties withScanFolder(Object scanFolder) { - this.scanFolder = scanFolder; - return this; - } - /** * Get the className property: The fully-qualified identifier or the main class that is in the main definition file, * which will override the 'className' of the spark job definition you provide. Type: string (or Expression with @@ -243,8 +174,8 @@ public SynapseSparkJobActivityTypeProperties withClassName(Object className) { } /** - * Get the files property: (Deprecated. Please use pythonCodeReference and filesV2) Additional files used for - * reference in the main definition file, which will override the 'files' of the spark job definition you provide. + * Get the files property: Additional files used for reference in the main definition file, which will override the + * 'files' of the spark job definition you provide. * * @return the files value. */ @@ -253,8 +184,8 @@ public List files() { } /** - * Set the files property: (Deprecated. Please use pythonCodeReference and filesV2) Additional files used for - * reference in the main definition file, which will override the 'files' of the spark job definition you provide. + * Set the files property: Additional files used for reference in the main definition file, which will override the + * 'files' of the spark job definition you provide. * * @param files the files value to set. * @return the SynapseSparkJobActivityTypeProperties object itself. @@ -264,50 +195,6 @@ public SynapseSparkJobActivityTypeProperties withFiles(List files) { return this; } - /** - * Get the pythonCodeReference property: Additional python code files used for reference in the main definition - * file, which will override the 'pyFiles' of the spark job definition you provide. - * - * @return the pythonCodeReference value. - */ - public List pythonCodeReference() { - return this.pythonCodeReference; - } - - /** - * Set the pythonCodeReference property: Additional python code files used for reference in the main definition - * file, which will override the 'pyFiles' of the spark job definition you provide. - * - * @param pythonCodeReference the pythonCodeReference value to set. - * @return the SynapseSparkJobActivityTypeProperties object itself. - */ - public SynapseSparkJobActivityTypeProperties withPythonCodeReference(List pythonCodeReference) { - this.pythonCodeReference = pythonCodeReference; - return this; - } - - /** - * Get the filesV2 property: Additional files used for reference in the main definition file, which will override - * the 'jars' and 'files' of the spark job definition you provide. - * - * @return the filesV2 value. - */ - public List filesV2() { - return this.filesV2; - } - - /** - * Set the filesV2 property: Additional files used for reference in the main definition file, which will override - * the 'jars' and 'files' of the spark job definition you provide. - * - * @param filesV2 the filesV2 value to set. - * @return the SynapseSparkJobActivityTypeProperties object itself. - */ - public SynapseSparkJobActivityTypeProperties withFilesV2(List filesV2) { - this.filesV2 = filesV2; - return this; - } - /** * Get the targetBigDataPool property: The name of the big data pool which will be used to execute the spark batch * job, which will override the 'targetBigDataPool' of the spark job definition you provide. @@ -403,87 +290,26 @@ public SynapseSparkJobActivityTypeProperties withDriverSize(Object driverSize) { /** * Get the numExecutors property: Number of executors to launch for this job, which will override the 'numExecutors' - * of the spark job definition you provide. Type: integer (or Expression with resultType integer). + * of the spark job definition you provide. * * @return the numExecutors value. */ - public Object numExecutors() { + public Integer numExecutors() { return this.numExecutors; } /** * Set the numExecutors property: Number of executors to launch for this job, which will override the 'numExecutors' - * of the spark job definition you provide. Type: integer (or Expression with resultType integer). + * of the spark job definition you provide. * * @param numExecutors the numExecutors value to set. * @return the SynapseSparkJobActivityTypeProperties object itself. */ - public SynapseSparkJobActivityTypeProperties withNumExecutors(Object numExecutors) { + public SynapseSparkJobActivityTypeProperties withNumExecutors(Integer numExecutors) { this.numExecutors = numExecutors; return this; } - /** - * Get the configurationType property: The type of the spark config. - * - * @return the configurationType value. - */ - public ConfigurationType configurationType() { - return this.configurationType; - } - - /** - * Set the configurationType property: The type of the spark config. - * - * @param configurationType the configurationType value to set. - * @return the SynapseSparkJobActivityTypeProperties object itself. - */ - public SynapseSparkJobActivityTypeProperties withConfigurationType(ConfigurationType configurationType) { - this.configurationType = configurationType; - return this; - } - - /** - * Get the targetSparkConfiguration property: The spark configuration of the spark job. - * - * @return the targetSparkConfiguration value. - */ - public SparkConfigurationParametrizationReference targetSparkConfiguration() { - return this.targetSparkConfiguration; - } - - /** - * Set the targetSparkConfiguration property: The spark configuration of the spark job. - * - * @param targetSparkConfiguration the targetSparkConfiguration value to set. - * @return the SynapseSparkJobActivityTypeProperties object itself. - */ - public SynapseSparkJobActivityTypeProperties withTargetSparkConfiguration( - SparkConfigurationParametrizationReference targetSparkConfiguration) { - this.targetSparkConfiguration = targetSparkConfiguration; - return this; - } - - /** - * Get the sparkConfig property: Spark configuration property. - * - * @return the sparkConfig value. - */ - public Map sparkConfig() { - return this.sparkConfig; - } - - /** - * Set the sparkConfig property: Spark configuration property. - * - * @param sparkConfig the sparkConfig value to set. - * @return the SynapseSparkJobActivityTypeProperties object itself. - */ - public SynapseSparkJobActivityTypeProperties withSparkConfig(Map sparkConfig) { - this.sparkConfig = sparkConfig; - return this; - } - /** * Validates the instance. * @@ -501,9 +327,6 @@ public void validate() { if (targetBigDataPool() != null) { targetBigDataPool().validate(); } - if (targetSparkConfiguration() != null) { - targetSparkConfiguration().validate(); - } } private static final ClientLogger LOGGER = new ClientLogger(SynapseSparkJobActivityTypeProperties.class); diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ActivityRunsClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ActivityRunsClientImpl.java index 9f27731f1b6f..0e0fbbde620a 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ActivityRunsClientImpl.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ActivityRunsClientImpl.java @@ -55,8 +55,7 @@ public final class ActivityRunsClientImpl implements ActivityRunsClient { public interface ActivityRunsService { @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/pipelineruns/{runId}/queryActivityruns") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/pipelineruns/{runId}/queryActivityruns") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> queryByPipelineRun( diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/CredentialOperationsClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/CredentialOperationsClientImpl.java deleted file mode 100644 index 97bb8c75856c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/CredentialOperationsClientImpl.java +++ /dev/null @@ -1,924 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.core.annotation.BodyParam; -import com.azure.core.annotation.Delete; -import com.azure.core.annotation.ExpectedResponses; -import com.azure.core.annotation.Get; -import com.azure.core.annotation.HeaderParam; -import com.azure.core.annotation.Headers; -import com.azure.core.annotation.Host; -import com.azure.core.annotation.HostParam; -import com.azure.core.annotation.PathParam; -import com.azure.core.annotation.Put; -import com.azure.core.annotation.QueryParam; -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceInterface; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.annotation.UnexpectedResponseExceptionType; -import com.azure.core.http.rest.PagedFlux; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.PagedResponse; -import com.azure.core.http.rest.PagedResponseBase; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.RestProxy; -import com.azure.core.management.exception.ManagementException; -import com.azure.core.util.Context; -import com.azure.core.util.FluxUtil; -import com.azure.resourcemanager.datafactory.fluent.CredentialOperationsClient; -import com.azure.resourcemanager.datafactory.fluent.models.ManagedIdentityCredentialResourceInner; -import com.azure.resourcemanager.datafactory.models.CredentialListResponse; -import reactor.core.publisher.Mono; - -/** An instance of this class provides access to all the operations defined in CredentialOperationsClient. */ -public final class CredentialOperationsClientImpl implements CredentialOperationsClient { - /** The proxy service used to perform REST calls. */ - private final CredentialOperationsService service; - - /** The service client containing this operation class. */ - private final DataFactoryManagementClientImpl client; - - /** - * Initializes an instance of CredentialOperationsClientImpl. - * - * @param client the instance of the service client containing this operation class. - */ - CredentialOperationsClientImpl(DataFactoryManagementClientImpl client) { - this.service = - RestProxy - .create(CredentialOperationsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); - this.client = client; - } - - /** - * The interface defining all the services for DataFactoryManagementClientCredentialOperations to be used by the - * proxy service to perform REST calls. - */ - @Host("{$host}") - @ServiceInterface(name = "DataFactoryManagemen") - public interface CredentialOperationsService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/credentials") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByFactory( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/credentials/{credentialName}") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> createOrUpdate( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @PathParam("credentialName") String credentialName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("If-Match") String ifMatch, - @BodyParam("application/json") ManagedIdentityCredentialResourceInner credential, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/credentials/{credentialName}") - @ExpectedResponses({200, 304}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @PathParam("credentialName") String credentialName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("If-None-Match") String ifNoneMatch, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/credentials/{credentialName}") - @ExpectedResponses({200, 204}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> delete( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("factoryName") String factoryName, - @PathParam("credentialName") String credentialName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Get("{nextLink}") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByFactoryNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, - Context context); - } - - /** - * List credentials. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of credential resources along with {@link PagedResponse} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByFactorySinglePageAsync( - String resourceGroupName, String factoryName) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .listByFactory( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - this.client.getApiVersion(), - accept, - context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * List credentials. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of credential resources along with {@link PagedResponse} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByFactorySinglePageAsync( - String resourceGroupName, String factoryName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .listByFactory( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - this.client.getApiVersion(), - accept, - context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); - } - - /** - * List credentials. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of credential resources as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByFactoryAsync( - String resourceGroupName, String factoryName) { - return new PagedFlux<>( - () -> listByFactorySinglePageAsync(resourceGroupName, factoryName), - nextLink -> listByFactoryNextSinglePageAsync(nextLink)); - } - - /** - * List credentials. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of credential resources as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByFactoryAsync( - String resourceGroupName, String factoryName, Context context) { - return new PagedFlux<>( - () -> listByFactorySinglePageAsync(resourceGroupName, factoryName, context), - nextLink -> listByFactoryNextSinglePageAsync(nextLink, context)); - } - - /** - * List credentials. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of credential resources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByFactory( - String resourceGroupName, String factoryName) { - return new PagedIterable<>(listByFactoryAsync(resourceGroupName, factoryName)); - } - - /** - * List credentials. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of credential resources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByFactory( - String resourceGroupName, String factoryName, Context context) { - return new PagedIterable<>(listByFactoryAsync(resourceGroupName, factoryName, context)); - } - - /** - * Creates or updates a credential. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param credentialName Credential name. - * @param credential Credential resource definition. - * @param ifMatch ETag of the credential entity. Should only be specified for update, for which it should match - * existing entity or can be * for unconditional update. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return credential resource type along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> createOrUpdateWithResponseAsync( - String resourceGroupName, - String factoryName, - String credentialName, - ManagedIdentityCredentialResourceInner credential, - String ifMatch) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (credentialName == null) { - return Mono.error(new IllegalArgumentException("Parameter credentialName is required and cannot be null.")); - } - if (credential == null) { - return Mono.error(new IllegalArgumentException("Parameter credential is required and cannot be null.")); - } else { - credential.validate(); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .createOrUpdate( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - credentialName, - this.client.getApiVersion(), - ifMatch, - credential, - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Creates or updates a credential. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param credentialName Credential name. - * @param credential Credential resource definition. - * @param ifMatch ETag of the credential entity. Should only be specified for update, for which it should match - * existing entity or can be * for unconditional update. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return credential resource type along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> createOrUpdateWithResponseAsync( - String resourceGroupName, - String factoryName, - String credentialName, - ManagedIdentityCredentialResourceInner credential, - String ifMatch, - Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (credentialName == null) { - return Mono.error(new IllegalArgumentException("Parameter credentialName is required and cannot be null.")); - } - if (credential == null) { - return Mono.error(new IllegalArgumentException("Parameter credential is required and cannot be null.")); - } else { - credential.validate(); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .createOrUpdate( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - credentialName, - this.client.getApiVersion(), - ifMatch, - credential, - accept, - context); - } - - /** - * Creates or updates a credential. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param credentialName Credential name. - * @param credential Credential resource definition. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return credential resource type on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String resourceGroupName, - String factoryName, - String credentialName, - ManagedIdentityCredentialResourceInner credential) { - final String ifMatch = null; - return createOrUpdateWithResponseAsync(resourceGroupName, factoryName, credentialName, credential, ifMatch) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Creates or updates a credential. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param credentialName Credential name. - * @param credential Credential resource definition. - * @param ifMatch ETag of the credential entity. Should only be specified for update, for which it should match - * existing entity or can be * for unconditional update. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return credential resource type along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response createOrUpdateWithResponse( - String resourceGroupName, - String factoryName, - String credentialName, - ManagedIdentityCredentialResourceInner credential, - String ifMatch, - Context context) { - return createOrUpdateWithResponseAsync( - resourceGroupName, factoryName, credentialName, credential, ifMatch, context) - .block(); - } - - /** - * Creates or updates a credential. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param credentialName Credential name. - * @param credential Credential resource definition. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return credential resource type. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ManagedIdentityCredentialResourceInner createOrUpdate( - String resourceGroupName, - String factoryName, - String credentialName, - ManagedIdentityCredentialResourceInner credential) { - final String ifMatch = null; - return createOrUpdateWithResponse( - resourceGroupName, factoryName, credentialName, credential, ifMatch, Context.NONE) - .getValue(); - } - - /** - * Gets a credential. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param credentialName Credential name. - * @param ifNoneMatch ETag of the credential entity. Should only be specified for get. If the ETag matches the - * existing entity tag, or if * was provided, then no content will be returned. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a credential along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String factoryName, String credentialName, String ifNoneMatch) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (credentialName == null) { - return Mono.error(new IllegalArgumentException("Parameter credentialName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - credentialName, - this.client.getApiVersion(), - ifNoneMatch, - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Gets a credential. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param credentialName Credential name. - * @param ifNoneMatch ETag of the credential entity. Should only be specified for get. If the ETag matches the - * existing entity tag, or if * was provided, then no content will be returned. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a credential along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String factoryName, String credentialName, String ifNoneMatch, Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (credentialName == null) { - return Mono.error(new IllegalArgumentException("Parameter credentialName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - credentialName, - this.client.getApiVersion(), - ifNoneMatch, - accept, - context); - } - - /** - * Gets a credential. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param credentialName Credential name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a credential on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync( - String resourceGroupName, String factoryName, String credentialName) { - final String ifNoneMatch = null; - return getWithResponseAsync(resourceGroupName, factoryName, credentialName, ifNoneMatch) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Gets a credential. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param credentialName Credential name. - * @param ifNoneMatch ETag of the credential entity. Should only be specified for get. If the ETag matches the - * existing entity tag, or if * was provided, then no content will be returned. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a credential along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String factoryName, String credentialName, String ifNoneMatch, Context context) { - return getWithResponseAsync(resourceGroupName, factoryName, credentialName, ifNoneMatch, context).block(); - } - - /** - * Gets a credential. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param credentialName Credential name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a credential. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ManagedIdentityCredentialResourceInner get( - String resourceGroupName, String factoryName, String credentialName) { - final String ifNoneMatch = null; - return getWithResponse(resourceGroupName, factoryName, credentialName, ifNoneMatch, Context.NONE).getValue(); - } - - /** - * Deletes a credential. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param credentialName Credential name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> deleteWithResponseAsync( - String resourceGroupName, String factoryName, String credentialName) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (credentialName == null) { - return Mono.error(new IllegalArgumentException("Parameter credentialName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .delete( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - credentialName, - this.client.getApiVersion(), - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Deletes a credential. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param credentialName Credential name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> deleteWithResponseAsync( - String resourceGroupName, String factoryName, String credentialName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (credentialName == null) { - return Mono.error(new IllegalArgumentException("Parameter credentialName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .delete( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - factoryName, - credentialName, - this.client.getApiVersion(), - accept, - context); - } - - /** - * Deletes a credential. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param credentialName Credential name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String factoryName, String credentialName) { - return deleteWithResponseAsync(resourceGroupName, factoryName, credentialName).flatMap(ignored -> Mono.empty()); - } - - /** - * Deletes a credential. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param credentialName Credential name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteWithResponse( - String resourceGroupName, String factoryName, String credentialName, Context context) { - return deleteWithResponseAsync(resourceGroupName, factoryName, credentialName, context).block(); - } - - /** - * Deletes a credential. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param credentialName Credential name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String factoryName, String credentialName) { - deleteWithResponse(resourceGroupName, factoryName, credentialName, Context.NONE); - } - - /** - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of credential resources along with {@link PagedResponse} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByFactoryNextSinglePageAsync( - String nextLink) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listByFactoryNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of credential resources along with {@link PagedResponse} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByFactoryNextSinglePageAsync( - String nextLink, Context context) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .listByFactoryNext(nextLink, this.client.getEndpoint(), accept, context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/CredentialOperationsImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/CredentialOperationsImpl.java deleted file mode 100644 index 3267086e01cd..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/CredentialOperationsImpl.java +++ /dev/null @@ -1,198 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.SimpleResponse; -import com.azure.core.util.Context; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.CredentialOperationsClient; -import com.azure.resourcemanager.datafactory.fluent.models.ManagedIdentityCredentialResourceInner; -import com.azure.resourcemanager.datafactory.models.CredentialOperations; -import com.azure.resourcemanager.datafactory.models.ManagedIdentityCredentialResource; - -public final class CredentialOperationsImpl implements CredentialOperations { - private static final ClientLogger LOGGER = new ClientLogger(CredentialOperationsImpl.class); - - private final CredentialOperationsClient innerClient; - - private final com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager; - - public CredentialOperationsImpl( - CredentialOperationsClient innerClient, - com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager) { - this.innerClient = innerClient; - this.serviceManager = serviceManager; - } - - public PagedIterable listByFactory( - String resourceGroupName, String factoryName) { - PagedIterable inner = - this.serviceClient().listByFactory(resourceGroupName, factoryName); - return Utils.mapPage(inner, inner1 -> new ManagedIdentityCredentialResourceImpl(inner1, this.manager())); - } - - public PagedIterable listByFactory( - String resourceGroupName, String factoryName, Context context) { - PagedIterable inner = - this.serviceClient().listByFactory(resourceGroupName, factoryName, context); - return Utils.mapPage(inner, inner1 -> new ManagedIdentityCredentialResourceImpl(inner1, this.manager())); - } - - public Response getWithResponse( - String resourceGroupName, String factoryName, String credentialName, String ifNoneMatch, Context context) { - Response inner = - this.serviceClient().getWithResponse(resourceGroupName, factoryName, credentialName, ifNoneMatch, context); - if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), - new ManagedIdentityCredentialResourceImpl(inner.getValue(), this.manager())); - } else { - return null; - } - } - - public ManagedIdentityCredentialResource get(String resourceGroupName, String factoryName, String credentialName) { - ManagedIdentityCredentialResourceInner inner = - this.serviceClient().get(resourceGroupName, factoryName, credentialName); - if (inner != null) { - return new ManagedIdentityCredentialResourceImpl(inner, this.manager()); - } else { - return null; - } - } - - public Response deleteWithResponse( - String resourceGroupName, String factoryName, String credentialName, Context context) { - return this.serviceClient().deleteWithResponse(resourceGroupName, factoryName, credentialName, context); - } - - public void delete(String resourceGroupName, String factoryName, String credentialName) { - this.serviceClient().delete(resourceGroupName, factoryName, credentialName); - } - - public ManagedIdentityCredentialResource getById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String factoryName = Utils.getValueFromIdByName(id, "factories"); - if (factoryName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'factories'.", id))); - } - String credentialName = Utils.getValueFromIdByName(id, "credentials"); - if (credentialName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'credentials'.", id))); - } - String localIfNoneMatch = null; - return this - .getWithResponse(resourceGroupName, factoryName, credentialName, localIfNoneMatch, Context.NONE) - .getValue(); - } - - public Response getByIdWithResponse( - String id, String ifNoneMatch, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String factoryName = Utils.getValueFromIdByName(id, "factories"); - if (factoryName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'factories'.", id))); - } - String credentialName = Utils.getValueFromIdByName(id, "credentials"); - if (credentialName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'credentials'.", id))); - } - return this.getWithResponse(resourceGroupName, factoryName, credentialName, ifNoneMatch, context); - } - - public void deleteById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String factoryName = Utils.getValueFromIdByName(id, "factories"); - if (factoryName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'factories'.", id))); - } - String credentialName = Utils.getValueFromIdByName(id, "credentials"); - if (credentialName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'credentials'.", id))); - } - this.deleteWithResponse(resourceGroupName, factoryName, credentialName, Context.NONE); - } - - public Response deleteByIdWithResponse(String id, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String factoryName = Utils.getValueFromIdByName(id, "factories"); - if (factoryName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'factories'.", id))); - } - String credentialName = Utils.getValueFromIdByName(id, "credentials"); - if (credentialName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'credentials'.", id))); - } - return this.deleteWithResponse(resourceGroupName, factoryName, credentialName, context); - } - - private CredentialOperationsClient serviceClient() { - return this.innerClient; - } - - private com.azure.resourcemanager.datafactory.DataFactoryManager manager() { - return this.serviceManager; - } - - public ManagedIdentityCredentialResourceImpl define(String name) { - return new ManagedIdentityCredentialResourceImpl(name, this.manager()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DataFactoryManagementClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DataFactoryManagementClientImpl.java index 815b8e875ce7..bc13e3a55864 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DataFactoryManagementClientImpl.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DataFactoryManagementClientImpl.java @@ -23,7 +23,6 @@ import com.azure.core.util.serializer.SerializerAdapter; import com.azure.core.util.serializer.SerializerEncoding; import com.azure.resourcemanager.datafactory.fluent.ActivityRunsClient; -import com.azure.resourcemanager.datafactory.fluent.CredentialOperationsClient; import com.azure.resourcemanager.datafactory.fluent.DataFactoryManagementClient; import com.azure.resourcemanager.datafactory.fluent.DataFlowDebugSessionsClient; import com.azure.resourcemanager.datafactory.fluent.DataFlowsClient; @@ -333,18 +332,6 @@ public ManagedPrivateEndpointsClient getManagedPrivateEndpoints() { return this.managedPrivateEndpoints; } - /** The CredentialOperationsClient object to access its operations. */ - private final CredentialOperationsClient credentialOperations; - - /** - * Gets the CredentialOperationsClient object to access its operations. - * - * @return the CredentialOperationsClient object. - */ - public CredentialOperationsClient getCredentialOperations() { - return this.credentialOperations; - } - /** The PrivateEndPointConnectionsClient object to access its operations. */ private final PrivateEndPointConnectionsClient privateEndPointConnections; @@ -433,7 +420,6 @@ public GlobalParametersClient getGlobalParameters() { this.dataFlowDebugSessions = new DataFlowDebugSessionsClientImpl(this); this.managedVirtualNetworks = new ManagedVirtualNetworksClientImpl(this); this.managedPrivateEndpoints = new ManagedPrivateEndpointsClientImpl(this); - this.credentialOperations = new CredentialOperationsClientImpl(this); this.privateEndPointConnections = new PrivateEndPointConnectionsClientImpl(this); this.privateEndpointConnectionOperations = new PrivateEndpointConnectionOperationsClientImpl(this); this.privateLinkResources = new PrivateLinkResourcesClientImpl(this); diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DataFlowDebugSessionsClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DataFlowDebugSessionsClientImpl.java index 44032621b4c6..7ca84b0b6820 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DataFlowDebugSessionsClientImpl.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DataFlowDebugSessionsClientImpl.java @@ -73,8 +73,7 @@ public final class DataFlowDebugSessionsClientImpl implements DataFlowDebugSessi public interface DataFlowDebugSessionsService { @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/createDataFlowDebugSession") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/createDataFlowDebugSession") @ExpectedResponses({200, 202}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> create( @@ -89,8 +88,7 @@ Mono>> create( @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/queryDataFlowDebugSessions") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/queryDataFlowDebugSessions") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> queryByFactory( @@ -104,8 +102,7 @@ Mono> queryByFactory( @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/addDataFlowToDebugSession") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/addDataFlowToDebugSession") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> addDataFlow( @@ -120,8 +117,7 @@ Mono> addDataFlow( @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/deleteDataFlowDebugSession") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/deleteDataFlowDebugSession") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> delete( @@ -136,8 +132,7 @@ Mono> delete( @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/executeDataFlowDebugCommand") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/executeDataFlowDebugCommand") @ExpectedResponses({200, 202}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> executeCommand( diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DataFlowsClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DataFlowsClientImpl.java index 0fcaf831179d..d7b26a4533af 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DataFlowsClientImpl.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DataFlowsClientImpl.java @@ -61,8 +61,7 @@ public final class DataFlowsClientImpl implements DataFlowsClient { public interface DataFlowsService { @Headers({"Content-Type: application/json"}) @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/dataflows/{dataFlowName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/dataflows/{dataFlowName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> createOrUpdate( @@ -79,8 +78,7 @@ Mono> createOrUpdate( @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/dataflows/{dataFlowName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/dataflows/{dataFlowName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> get( @@ -96,8 +94,7 @@ Mono> get( @Headers({"Content-Type: application/json"}) @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/dataflows/{dataFlowName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/dataflows/{dataFlowName}") @ExpectedResponses({200, 204}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> delete( @@ -112,8 +109,7 @@ Mono> delete( @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/dataflows") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/dataflows") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByFactory( diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DatasetsClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DatasetsClientImpl.java index f2b491250414..b2bcd5ff90e4 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DatasetsClientImpl.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DatasetsClientImpl.java @@ -60,8 +60,7 @@ public final class DatasetsClientImpl implements DatasetsClient { public interface DatasetsService { @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/datasets") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/datasets") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByFactory( @@ -75,8 +74,7 @@ Mono> listByFactory( @Headers({"Content-Type: application/json"}) @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/datasets/{datasetName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/datasets/{datasetName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> createOrUpdate( @@ -93,8 +91,7 @@ Mono> createOrUpdate( @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/datasets/{datasetName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/datasets/{datasetName}") @ExpectedResponses({200, 304}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> get( @@ -110,8 +107,7 @@ Mono> get( @Headers({"Content-Type: application/json"}) @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/datasets/{datasetName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/datasets/{datasetName}") @ExpectedResponses({200, 204}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> delete( diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ExposureControlsClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ExposureControlsClientImpl.java index 3517c04e53cf..e9ba199edb5e 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ExposureControlsClientImpl.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ExposureControlsClientImpl.java @@ -70,8 +70,7 @@ Mono> getFeatureValue( @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/getFeatureValue") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/getFeatureValue") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> getFeatureValueByFactory( @@ -86,8 +85,7 @@ Mono> getFeatureValueByFactory( @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/queryFeaturesValue") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/queryFeaturesValue") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> queryFeatureValuesByFactory( diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/FactoriesClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/FactoriesClientImpl.java index 4ee52904c94f..370b6d434661 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/FactoriesClientImpl.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/FactoriesClientImpl.java @@ -80,8 +80,7 @@ Mono> list( @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/providers/Microsoft.DataFactory/locations/{locationId}" - + "/configureFactoryRepo") + "/subscriptions/{subscriptionId}/providers/Microsoft.DataFactory/locations/{locationId}/configureFactoryRepo") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> configureFactoryRepo( @@ -95,8 +94,7 @@ Mono> configureFactoryRepo( @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByResourceGroup( @@ -109,8 +107,7 @@ Mono> listByResourceGroup( @Headers({"Content-Type: application/json"}) @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> createOrUpdate( @@ -126,8 +123,7 @@ Mono> createOrUpdate( @Headers({"Content-Type: application/json"}) @Patch( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> update( @@ -142,8 +138,7 @@ Mono> update( @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}") @ExpectedResponses({200, 304}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> getByResourceGroup( @@ -158,8 +153,7 @@ Mono> getByResourceGroup( @Headers({"Content-Type: application/json"}) @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}") @ExpectedResponses({200, 204}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> delete( @@ -173,8 +167,7 @@ Mono> delete( @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/getGitHubAccessToken") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/getGitHubAccessToken") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> getGitHubAccessToken( @@ -189,8 +182,7 @@ Mono> getGitHubAccessToken( @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/getDataPlaneAccess") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/getDataPlaneAccess") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> getDataPlaneAccess( diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/GlobalParametersClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/GlobalParametersClientImpl.java index da4ec73e4f8e..648498dfc679 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/GlobalParametersClientImpl.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/GlobalParametersClientImpl.java @@ -61,8 +61,7 @@ public final class GlobalParametersClientImpl implements GlobalParametersClient public interface GlobalParametersService { @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/globalParameters") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/globalParameters") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByFactory( @@ -76,8 +75,7 @@ Mono> listByFactory( @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/globalParameters/{globalParameterName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/globalParameters/{globalParameterName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> get( @@ -92,8 +90,7 @@ Mono> get( @Headers({"Content-Type: application/json"}) @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/globalParameters/{globalParameterName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/globalParameters/{globalParameterName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> createOrUpdate( @@ -109,8 +106,7 @@ Mono> createOrUpdate( @Headers({"Content-Type: application/json"}) @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/globalParameters/{globalParameterName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/globalParameters/{globalParameterName}") @ExpectedResponses({200, 204}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> delete( diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/IntegrationRuntimeNodesClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/IntegrationRuntimeNodesClientImpl.java index ca0e79142247..b108ff26379c 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/IntegrationRuntimeNodesClientImpl.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/IntegrationRuntimeNodesClientImpl.java @@ -60,8 +60,7 @@ public final class IntegrationRuntimeNodesClientImpl implements IntegrationRunti public interface IntegrationRuntimeNodesService { @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> get( @@ -77,8 +76,7 @@ Mono> get( @Headers({"Content-Type: application/json"}) @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}") @ExpectedResponses({200, 204}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> delete( @@ -94,8 +92,7 @@ Mono> delete( @Headers({"Content-Type: application/json"}) @Patch( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> update( @@ -112,8 +109,7 @@ Mono> update( @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}/ipAddress") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}/ipAddress") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> getIpAddress( diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/IntegrationRuntimeObjectMetadatasClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/IntegrationRuntimeObjectMetadatasClientImpl.java index 7258cf33556a..6133aa8f0a3d 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/IntegrationRuntimeObjectMetadatasClientImpl.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/IntegrationRuntimeObjectMetadatasClientImpl.java @@ -67,8 +67,7 @@ public final class IntegrationRuntimeObjectMetadatasClientImpl implements Integr public interface IntegrationRuntimeObjectMetadatasService { @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/refreshObjectMetadata") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/refreshObjectMetadata") @ExpectedResponses({200, 202}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> refresh( @@ -83,8 +82,7 @@ Mono>> refresh( @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/getObjectMetadata") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/getObjectMetadata") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> get( diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/IntegrationRuntimesClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/IntegrationRuntimesClientImpl.java index a84cb6976f4a..06ee9c6acd5e 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/IntegrationRuntimesClientImpl.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/IntegrationRuntimesClientImpl.java @@ -77,8 +77,7 @@ public final class IntegrationRuntimesClientImpl implements IntegrationRuntimesC public interface IntegrationRuntimesService { @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/integrationRuntimes") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByFactory( @@ -92,8 +91,7 @@ Mono> listByFactory( @Headers({"Content-Type: application/json"}) @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> createOrUpdate( @@ -110,8 +108,7 @@ Mono> createOrUpdate( @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}") @ExpectedResponses({200, 304}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> get( @@ -127,8 +124,7 @@ Mono> get( @Headers({"Content-Type: application/json"}) @Patch( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> update( @@ -144,8 +140,7 @@ Mono> update( @Headers({"Content-Type: application/json"}) @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}") @ExpectedResponses({200, 204}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> delete( @@ -160,8 +155,7 @@ Mono> delete( @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/getStatus") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/getStatus") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> getStatus( @@ -176,9 +170,7 @@ Mono> getStatus( @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}" - + "/outboundNetworkDependenciesEndpoints") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/outboundNetworkDependenciesEndpoints") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> @@ -194,8 +186,7 @@ Mono> getStatus( @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/getConnectionInfo") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/getConnectionInfo") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> getConnectionInfo( @@ -210,8 +201,7 @@ Mono> getConnectionInfo( @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/regenerateAuthKey") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/regenerateAuthKey") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> regenerateAuthKey( @@ -227,8 +217,7 @@ Mono> regenerateAuthKey( @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/listAuthKeys") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/listAuthKeys") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listAuthKeys( @@ -243,8 +232,7 @@ Mono> listAuthKeys( @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/start") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/start") @ExpectedResponses({200, 202}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> start( @@ -259,8 +247,7 @@ Mono>> start( @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/stop") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/stop") @ExpectedResponses({200, 202}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> stop( @@ -275,8 +262,7 @@ Mono>> stop( @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/syncCredentials") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/syncCredentials") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> syncCredentials( @@ -291,8 +277,7 @@ Mono> syncCredentials( @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/monitoringData") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/monitoringData") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> getMonitoringData( @@ -307,8 +292,7 @@ Mono> getMonitoringData( @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/upgrade") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/upgrade") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> upgrade( @@ -323,8 +307,7 @@ Mono> upgrade( @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/removeLinks") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/removeLinks") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> removeLinks( @@ -340,8 +323,7 @@ Mono> removeLinks( @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/linkedIntegrationRuntime") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/linkedIntegrationRuntime") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> createLinkedIntegrationRuntime( diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/LinkedServicesClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/LinkedServicesClientImpl.java index 1857becf276d..4e5a63403b27 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/LinkedServicesClientImpl.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/LinkedServicesClientImpl.java @@ -61,8 +61,7 @@ public final class LinkedServicesClientImpl implements LinkedServicesClient { public interface LinkedServicesService { @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/linkedservices") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/linkedservices") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByFactory( @@ -76,8 +75,7 @@ Mono> listByFactory( @Headers({"Content-Type: application/json"}) @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/linkedservices/{linkedServiceName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/linkedservices/{linkedServiceName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> createOrUpdate( @@ -94,8 +92,7 @@ Mono> createOrUpdate( @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/linkedservices/{linkedServiceName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/linkedservices/{linkedServiceName}") @ExpectedResponses({200, 304}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> get( @@ -111,8 +108,7 @@ Mono> get( @Headers({"Content-Type: application/json"}) @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/linkedservices/{linkedServiceName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/linkedservices/{linkedServiceName}") @ExpectedResponses({200, 204}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> delete( diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ManagedIdentityCredentialResourceImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ManagedIdentityCredentialResourceImpl.java deleted file mode 100644 index d7dbbbe3f729..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ManagedIdentityCredentialResourceImpl.java +++ /dev/null @@ -1,175 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.implementation; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.fluent.models.ManagedIdentityCredentialResourceInner; -import com.azure.resourcemanager.datafactory.models.ManagedIdentityCredential; -import com.azure.resourcemanager.datafactory.models.ManagedIdentityCredentialResource; - -public final class ManagedIdentityCredentialResourceImpl - implements ManagedIdentityCredentialResource, - ManagedIdentityCredentialResource.Definition, - ManagedIdentityCredentialResource.Update { - private ManagedIdentityCredentialResourceInner innerObject; - - private final com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager; - - public String id() { - return this.innerModel().id(); - } - - public ManagedIdentityCredential properties() { - return this.innerModel().properties(); - } - - public String name() { - return this.innerModel().name(); - } - - public String type() { - return this.innerModel().type(); - } - - public String etag() { - return this.innerModel().etag(); - } - - public String resourceGroupName() { - return resourceGroupName; - } - - public ManagedIdentityCredentialResourceInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.datafactory.DataFactoryManager manager() { - return this.serviceManager; - } - - private String resourceGroupName; - - private String factoryName; - - private String credentialName; - - private String createIfMatch; - - private String updateIfMatch; - - public ManagedIdentityCredentialResourceImpl withExistingFactory(String resourceGroupName, String factoryName) { - this.resourceGroupName = resourceGroupName; - this.factoryName = factoryName; - return this; - } - - public ManagedIdentityCredentialResource create() { - this.innerObject = - serviceManager - .serviceClient() - .getCredentialOperations() - .createOrUpdateWithResponse( - resourceGroupName, factoryName, credentialName, this.innerModel(), createIfMatch, Context.NONE) - .getValue(); - return this; - } - - public ManagedIdentityCredentialResource create(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getCredentialOperations() - .createOrUpdateWithResponse( - resourceGroupName, factoryName, credentialName, this.innerModel(), createIfMatch, context) - .getValue(); - return this; - } - - ManagedIdentityCredentialResourceImpl( - String name, com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager) { - this.innerObject = new ManagedIdentityCredentialResourceInner(); - this.serviceManager = serviceManager; - this.credentialName = name; - this.createIfMatch = null; - } - - public ManagedIdentityCredentialResourceImpl update() { - this.updateIfMatch = null; - return this; - } - - public ManagedIdentityCredentialResource apply() { - this.innerObject = - serviceManager - .serviceClient() - .getCredentialOperations() - .createOrUpdateWithResponse( - resourceGroupName, factoryName, credentialName, this.innerModel(), updateIfMatch, Context.NONE) - .getValue(); - return this; - } - - public ManagedIdentityCredentialResource apply(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getCredentialOperations() - .createOrUpdateWithResponse( - resourceGroupName, factoryName, credentialName, this.innerModel(), updateIfMatch, context) - .getValue(); - return this; - } - - ManagedIdentityCredentialResourceImpl( - ManagedIdentityCredentialResourceInner innerObject, - com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.factoryName = Utils.getValueFromIdByName(innerObject.id(), "factories"); - this.credentialName = Utils.getValueFromIdByName(innerObject.id(), "credentials"); - } - - public ManagedIdentityCredentialResource refresh() { - String localIfNoneMatch = null; - this.innerObject = - serviceManager - .serviceClient() - .getCredentialOperations() - .getWithResponse(resourceGroupName, factoryName, credentialName, localIfNoneMatch, Context.NONE) - .getValue(); - return this; - } - - public ManagedIdentityCredentialResource refresh(Context context) { - String localIfNoneMatch = null; - this.innerObject = - serviceManager - .serviceClient() - .getCredentialOperations() - .getWithResponse(resourceGroupName, factoryName, credentialName, localIfNoneMatch, context) - .getValue(); - return this; - } - - public ManagedIdentityCredentialResourceImpl withProperties(ManagedIdentityCredential properties) { - this.innerModel().withProperties(properties); - return this; - } - - public ManagedIdentityCredentialResourceImpl withIfMatch(String ifMatch) { - if (isInCreateMode()) { - this.createIfMatch = ifMatch; - return this; - } else { - this.updateIfMatch = ifMatch; - return this; - } - } - - private boolean isInCreateMode() { - return this.innerModel().id() == null; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ManagedPrivateEndpointsClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ManagedPrivateEndpointsClientImpl.java index dfea03654002..ba9877fbd3e7 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ManagedPrivateEndpointsClientImpl.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ManagedPrivateEndpointsClientImpl.java @@ -62,8 +62,7 @@ public final class ManagedPrivateEndpointsClientImpl implements ManagedPrivateEn public interface ManagedPrivateEndpointsService { @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/managedVirtualNetworks/{managedVirtualNetworkName}/managedPrivateEndpoints") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/managedVirtualNetworks/{managedVirtualNetworkName}/managedPrivateEndpoints") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByFactory( @@ -78,9 +77,7 @@ Mono> listByFactory( @Headers({"Content-Type: application/json"}) @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/managedVirtualNetworks/{managedVirtualNetworkName}/managedPrivateEndpoints" - + "/{managedPrivateEndpointName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/managedVirtualNetworks/{managedVirtualNetworkName}/managedPrivateEndpoints/{managedPrivateEndpointName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> createOrUpdate( @@ -98,9 +95,7 @@ Mono> createOrUpdate( @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/managedVirtualNetworks/{managedVirtualNetworkName}/managedPrivateEndpoints" - + "/{managedPrivateEndpointName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/managedVirtualNetworks/{managedVirtualNetworkName}/managedPrivateEndpoints/{managedPrivateEndpointName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> get( @@ -117,9 +112,7 @@ Mono> get( @Headers({"Content-Type: application/json"}) @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/managedVirtualNetworks/{managedVirtualNetworkName}/managedPrivateEndpoints" - + "/{managedPrivateEndpointName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/managedVirtualNetworks/{managedVirtualNetworkName}/managedPrivateEndpoints/{managedPrivateEndpointName}") @ExpectedResponses({200, 204}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> delete( diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ManagedVirtualNetworksClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ManagedVirtualNetworksClientImpl.java index a146685d2c10..6074976ec7a0 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ManagedVirtualNetworksClientImpl.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ManagedVirtualNetworksClientImpl.java @@ -61,8 +61,7 @@ public final class ManagedVirtualNetworksClientImpl implements ManagedVirtualNet public interface ManagedVirtualNetworksService { @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/managedVirtualNetworks") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/managedVirtualNetworks") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByFactory( @@ -76,8 +75,7 @@ Mono> listByFactory( @Headers({"Content-Type: application/json"}) @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/managedVirtualNetworks/{managedVirtualNetworkName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/managedVirtualNetworks/{managedVirtualNetworkName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> createOrUpdate( @@ -94,8 +92,7 @@ Mono> createOrUpdate( @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/managedVirtualNetworks/{managedVirtualNetworkName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/managedVirtualNetworks/{managedVirtualNetworkName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> get( diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PipelineRunsClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PipelineRunsClientImpl.java index 9ab7da9137b7..a398a5aa3ea4 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PipelineRunsClientImpl.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PipelineRunsClientImpl.java @@ -57,8 +57,7 @@ public final class PipelineRunsClientImpl implements PipelineRunsClient { public interface PipelineRunsService { @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/queryPipelineRuns") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/queryPipelineRuns") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> queryByFactory( @@ -73,8 +72,7 @@ Mono> queryByFactory( @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/pipelineruns/{runId}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/pipelineruns/{runId}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> get( @@ -89,8 +87,7 @@ Mono> get( @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/pipelineruns/{runId}/cancel") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/pipelineruns/{runId}/cancel") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> cancel( diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PipelinesClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PipelinesClientImpl.java index 69ee14b74c28..f712230c2b96 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PipelinesClientImpl.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PipelinesClientImpl.java @@ -64,8 +64,7 @@ public final class PipelinesClientImpl implements PipelinesClient { public interface PipelinesService { @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/pipelines") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/pipelines") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByFactory( @@ -79,8 +78,7 @@ Mono> listByFactory( @Headers({"Content-Type: application/json"}) @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/pipelines/{pipelineName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/pipelines/{pipelineName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> createOrUpdate( @@ -97,8 +95,7 @@ Mono> createOrUpdate( @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/pipelines/{pipelineName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/pipelines/{pipelineName}") @ExpectedResponses({200, 304}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> get( @@ -114,8 +111,7 @@ Mono> get( @Headers({"Content-Type: application/json"}) @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/pipelines/{pipelineName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/pipelines/{pipelineName}") @ExpectedResponses({200, 204}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> delete( @@ -130,8 +126,7 @@ Mono> delete( @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/pipelines/{pipelineName}/createRun") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/pipelines/{pipelineName}/createRun") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> createRun( diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PrivateEndPointConnectionsClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PrivateEndPointConnectionsClientImpl.java index b3bd1668f084..45198706d842 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PrivateEndPointConnectionsClientImpl.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PrivateEndPointConnectionsClientImpl.java @@ -60,8 +60,7 @@ public final class PrivateEndPointConnectionsClientImpl implements PrivateEndPoi public interface PrivateEndPointConnectionsService { @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/privateEndPointConnections") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/privateEndPointConnections") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByFactory( diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PrivateEndpointConnectionOperationsClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PrivateEndpointConnectionOperationsClientImpl.java index 6d0d098cba81..8b78e880952a 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PrivateEndpointConnectionOperationsClientImpl.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PrivateEndpointConnectionOperationsClientImpl.java @@ -63,8 +63,7 @@ public final class PrivateEndpointConnectionOperationsClientImpl implements Priv public interface PrivateEndpointConnectionOperationsService { @Headers({"Content-Type: application/json"}) @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/privateEndpointConnections/{privateEndpointConnectionName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/privateEndpointConnections/{privateEndpointConnectionName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> createOrUpdate( @@ -81,8 +80,7 @@ Mono> createOrUpdate( @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/privateEndpointConnections/{privateEndpointConnectionName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/privateEndpointConnections/{privateEndpointConnectionName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> get( @@ -98,8 +96,7 @@ Mono> get( @Headers({"Content-Type: application/json"}) @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/privateEndpointConnections/{privateEndpointConnectionName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/privateEndpointConnections/{privateEndpointConnectionName}") @ExpectedResponses({200, 204}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> delete( diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PrivateLinkResourcesClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PrivateLinkResourcesClientImpl.java index e19bb60c2612..a5b5c13ae3b1 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PrivateLinkResourcesClientImpl.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PrivateLinkResourcesClientImpl.java @@ -54,8 +54,7 @@ public final class PrivateLinkResourcesClientImpl implements PrivateLinkResource public interface PrivateLinkResourcesService { @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/privateLinkResources") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/privateLinkResources") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> get( diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/TriggerRunsClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/TriggerRunsClientImpl.java index 54c0f60d32b2..6784bf269079 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/TriggerRunsClientImpl.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/TriggerRunsClientImpl.java @@ -55,8 +55,7 @@ public final class TriggerRunsClientImpl implements TriggerRunsClient { public interface TriggerRunsService { @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/triggers/{triggerName}/triggerRuns/{runId}/rerun") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/triggerRuns/{runId}/rerun") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> rerun( @@ -72,8 +71,7 @@ Mono> rerun( @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/triggers/{triggerName}/triggerRuns/{runId}/cancel") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/triggerRuns/{runId}/cancel") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> cancel( @@ -89,8 +87,7 @@ Mono> cancel( @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/queryTriggerRuns") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/queryTriggerRuns") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> queryByFactory( diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/TriggersClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/TriggersClientImpl.java index d0e9f2d2ed78..d5fc6e439d28 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/TriggersClientImpl.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/TriggersClientImpl.java @@ -69,8 +69,7 @@ public final class TriggersClientImpl implements TriggersClient { public interface TriggersService { @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/triggers") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByFactory( @@ -84,8 +83,7 @@ Mono> listByFactory( @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/querytriggers") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/querytriggers") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> queryByFactory( @@ -100,8 +98,7 @@ Mono> queryByFactory( @Headers({"Content-Type: application/json"}) @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/triggers/{triggerName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> createOrUpdate( @@ -118,8 +115,7 @@ Mono> createOrUpdate( @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/triggers/{triggerName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}") @ExpectedResponses({200, 304}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> get( @@ -135,8 +131,7 @@ Mono> get( @Headers({"Content-Type: application/json"}) @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/triggers/{triggerName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}") @ExpectedResponses({200, 204}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> delete( @@ -151,8 +146,7 @@ Mono> delete( @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/triggers/{triggerName}/subscribeToEvents") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/subscribeToEvents") @ExpectedResponses({200, 202}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> subscribeToEvents( @@ -167,8 +161,7 @@ Mono>> subscribeToEvents( @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/triggers/{triggerName}/getEventSubscriptionStatus") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/getEventSubscriptionStatus") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> getEventSubscriptionStatus( @@ -183,8 +176,7 @@ Mono> getEventSubscriptionStat @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/triggers/{triggerName}/unsubscribeFromEvents") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/unsubscribeFromEvents") @ExpectedResponses({200, 202}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> unsubscribeFromEvents( @@ -199,8 +191,7 @@ Mono>> unsubscribeFromEvents( @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/triggers/{triggerName}/start") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/start") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> start( @@ -215,8 +206,7 @@ Mono>> start( @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory" - + "/factories/{factoryName}/triggers/{triggerName}/stop") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/stop") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> stop( diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRdsForSqlServerSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRdsForSqlServerSource.java index 85691497948a..39fbe934761b 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRdsForSqlServerSource.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRdsForSqlServerSource.java @@ -5,9 +5,11 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; +import java.util.Map; /** A copy activity Amazon RDS for SQL Server source. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @@ -31,7 +33,8 @@ public final class AmazonRdsForSqlServerSource extends TabularSource { * Value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". */ @JsonProperty(value = "storedProcedureParameters") - private Object storedProcedureParameters; + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) + private Map storedProcedureParameters; /* * Which additional types to produce. @@ -104,7 +107,7 @@ public AmazonRdsForSqlServerSource withSqlReaderStoredProcedureName(Object sqlRe * * @return the storedProcedureParameters value. */ - public Object storedProcedureParameters() { + public Map storedProcedureParameters() { return this.storedProcedureParameters; } @@ -115,7 +118,8 @@ public Object storedProcedureParameters() { * @param storedProcedureParameters the storedProcedureParameters value to set. * @return the AmazonRdsForSqlServerSource object itself. */ - public AmazonRdsForSqlServerSource withStoredProcedureParameters(Object storedProcedureParameters) { + public AmazonRdsForSqlServerSource withStoredProcedureParameters( + Map storedProcedureParameters) { this.storedProcedureParameters = storedProcedureParameters; return this; } @@ -232,6 +236,16 @@ public AmazonRdsForSqlServerSource withDisableMetricsCollection(Object disableMe @Override public void validate() { super.validate(); + if (storedProcedureParameters() != null) { + storedProcedureParameters() + .values() + .forEach( + e -> { + if (e != null) { + e.validate(); + } + }); + } if (partitionSettings() != null) { partitionSettings().validate(); } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobFSLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobFSLinkedService.java index 6888052e42ec..532e2bfcc86d 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobFSLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobFSLinkedService.java @@ -321,54 +321,6 @@ public AzureBlobFSLinkedService withServicePrincipalCredential(SecretBase servic return this; } - /** - * Get the sasUri property: SAS URI of the Azure Data Lake Storage Gen2 service. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @return the sasUri value. - */ - public Object sasUri() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().sasUri(); - } - - /** - * Set the sasUri property: SAS URI of the Azure Data Lake Storage Gen2 service. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @param sasUri the sasUri value to set. - * @return the AzureBlobFSLinkedService object itself. - */ - public AzureBlobFSLinkedService withSasUri(Object sasUri) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBlobFSLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withSasUri(sasUri); - return this; - } - - /** - * Get the sasToken property: The Azure key vault secret reference of sasToken in sas uri. - * - * @return the sasToken value. - */ - public SecretBase sasToken() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().sasToken(); - } - - /** - * Set the sasToken property: The Azure key vault secret reference of sasToken in sas uri. - * - * @param sasToken the sasToken value to set. - * @return the AzureBlobFSLinkedService object itself. - */ - public AzureBlobFSLinkedService withSasToken(SecretBase sasToken) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBlobFSLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withSasToken(sasToken); - return this; - } - /** * Validates the instance. * diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobStorageLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobStorageLinkedService.java index 1c11c9947859..eac63c9bf667 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobStorageLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobStorageLinkedService.java @@ -364,54 +364,6 @@ public AzureBlobStorageLinkedService withCredential(CredentialReference credenti return this; } - /** - * Get the authenticationType property: The type used for authentication. Type: string. - * - * @return the authenticationType value. - */ - public AzureStorageAuthenticationType authenticationType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authenticationType(); - } - - /** - * Set the authenticationType property: The type used for authentication. Type: string. - * - * @param authenticationType the authenticationType value to set. - * @return the AzureBlobStorageLinkedService object itself. - */ - public AzureBlobStorageLinkedService withAuthenticationType(AzureStorageAuthenticationType authenticationType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBlobStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAuthenticationType(authenticationType); - return this; - } - - /** - * Get the containerUri property: Container uri of the Azure Blob Storage resource only support for anonymous - * access. Type: string (or Expression with resultType string). - * - * @return the containerUri value. - */ - public Object containerUri() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().containerUri(); - } - - /** - * Set the containerUri property: Container uri of the Azure Blob Storage resource only support for anonymous - * access. Type: string (or Expression with resultType string). - * - * @param containerUri the containerUri value to set. - * @return the AzureBlobStorageLinkedService object itself. - */ - public AzureBlobStorageLinkedService withContainerUri(Object containerUri) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBlobStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withContainerUri(containerUri); - return this; - } - /** * Validates the instance. * diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlSink.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlSink.java index 7439ce95886f..8a04437c7650 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlSink.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlSink.java @@ -5,9 +5,11 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; +import java.util.Map; /** A copy activity Azure SQL sink. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @@ -36,7 +38,8 @@ public final class AzureSqlSink extends CopySink { * SQL stored procedure parameters. */ @JsonProperty(value = "storedProcedureParameters") - private Object storedProcedureParameters; + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) + private Map storedProcedureParameters; /* * The stored procedure parameter name of the table type. Type: string (or Expression with resultType string). @@ -141,7 +144,7 @@ public AzureSqlSink withPreCopyScript(Object preCopyScript) { * * @return the storedProcedureParameters value. */ - public Object storedProcedureParameters() { + public Map storedProcedureParameters() { return this.storedProcedureParameters; } @@ -151,7 +154,7 @@ public Object storedProcedureParameters() { * @param storedProcedureParameters the storedProcedureParameters value to set. * @return the AzureSqlSink object itself. */ - public AzureSqlSink withStoredProcedureParameters(Object storedProcedureParameters) { + public AzureSqlSink withStoredProcedureParameters(Map storedProcedureParameters) { this.storedProcedureParameters = storedProcedureParameters; return this; } @@ -314,6 +317,16 @@ public AzureSqlSink withDisableMetricsCollection(Object disableMetricsCollection @Override public void validate() { super.validate(); + if (storedProcedureParameters() != null) { + storedProcedureParameters() + .values() + .forEach( + e -> { + if (e != null) { + e.validate(); + } + }); + } if (upsertSettings() != null) { upsertSettings().validate(); } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlSource.java index 36dd564bbcff..d50a706ba023 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlSource.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSqlSource.java @@ -5,9 +5,11 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; +import java.util.Map; /** A copy activity Azure SQL source. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @@ -31,7 +33,8 @@ public final class AzureSqlSource extends TabularSource { * Value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". */ @JsonProperty(value = "storedProcedureParameters") - private Object storedProcedureParameters; + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) + private Map storedProcedureParameters; /* * Which additional types to produce. @@ -104,7 +107,7 @@ public AzureSqlSource withSqlReaderStoredProcedureName(Object sqlReaderStoredPro * * @return the storedProcedureParameters value. */ - public Object storedProcedureParameters() { + public Map storedProcedureParameters() { return this.storedProcedureParameters; } @@ -115,7 +118,8 @@ public Object storedProcedureParameters() { * @param storedProcedureParameters the storedProcedureParameters value to set. * @return the AzureSqlSource object itself. */ - public AzureSqlSource withStoredProcedureParameters(Object storedProcedureParameters) { + public AzureSqlSource withStoredProcedureParameters( + Map storedProcedureParameters) { this.storedProcedureParameters = storedProcedureParameters; return this; } @@ -232,6 +236,16 @@ public AzureSqlSource withDisableMetricsCollection(Object disableMetricsCollecti @Override public void validate() { super.validate(); + if (storedProcedureParameters() != null) { + storedProcedureParameters() + .values() + .forEach( + e -> { + if (e != null) { + e.validate(); + } + }); + } if (partitionSettings() != null) { partitionSettings().validate(); } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureStorageAuthenticationType.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureStorageAuthenticationType.java deleted file mode 100644 index ddec08071dda..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureStorageAuthenticationType.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.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** The type used for authentication. Type: string. */ -public final class AzureStorageAuthenticationType extends ExpandableStringEnum { - /** Static value Anonymous for AzureStorageAuthenticationType. */ - public static final AzureStorageAuthenticationType ANONYMOUS = fromString("Anonymous"); - - /** Static value AccountKey for AzureStorageAuthenticationType. */ - public static final AzureStorageAuthenticationType ACCOUNT_KEY = fromString("AccountKey"); - - /** Static value SasUri for AzureStorageAuthenticationType. */ - public static final AzureStorageAuthenticationType SAS_URI = fromString("SasUri"); - - /** Static value ServicePrincipal for AzureStorageAuthenticationType. */ - public static final AzureStorageAuthenticationType SERVICE_PRINCIPAL = fromString("ServicePrincipal"); - - /** Static value Msi for AzureStorageAuthenticationType. */ - public static final AzureStorageAuthenticationType MSI = fromString("Msi"); - - /** - * Creates a new instance of AzureStorageAuthenticationType value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public AzureStorageAuthenticationType() { - } - - /** - * Creates or finds a AzureStorageAuthenticationType from its string representation. - * - * @param name a name to look for. - * @return the corresponding AzureStorageAuthenticationType. - */ - @JsonCreator - public static AzureStorageAuthenticationType fromString(String name) { - return fromString(name, AzureStorageAuthenticationType.class); - } - - /** - * Gets known AzureStorageAuthenticationType values. - * - * @return known AzureStorageAuthenticationType values. - */ - public static Collection values() { - return values(AzureStorageAuthenticationType.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSynapseArtifactsLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSynapseArtifactsLinkedService.java index 345560cc1f0d..ce93678bfd4b 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSynapseArtifactsLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureSynapseArtifactsLinkedService.java @@ -116,33 +116,6 @@ public AzureSynapseArtifactsLinkedService withAuthentication(Object authenticati return this; } - /** - * Get the workspaceResourceId property: The resource ID of the Synapse workspace. The format should be: - * /subscriptions/{subscriptionID}/resourceGroups/{resourceGroup}/providers/Microsoft.Synapse/workspaces/{workspaceName}. - * Type: string (or Expression with resultType string). - * - * @return the workspaceResourceId value. - */ - public Object workspaceResourceId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().workspaceResourceId(); - } - - /** - * Set the workspaceResourceId property: The resource ID of the Synapse workspace. The format should be: - * /subscriptions/{subscriptionID}/resourceGroups/{resourceGroup}/providers/Microsoft.Synapse/workspaces/{workspaceName}. - * Type: string (or Expression with resultType string). - * - * @param workspaceResourceId the workspaceResourceId value to set. - * @return the AzureSynapseArtifactsLinkedService object itself. - */ - public AzureSynapseArtifactsLinkedService withWorkspaceResourceId(Object workspaceResourceId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureSynapseArtifactsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withWorkspaceResourceId(workspaceResourceId); - return this; - } - /** * Validates the instance. * diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ConfigurationType.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ConfigurationType.java deleted file mode 100644 index 9b15d87a73a1..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ConfigurationType.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.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** The type of the spark config. */ -public final class ConfigurationType extends ExpandableStringEnum { - /** Static value Default for ConfigurationType. */ - public static final ConfigurationType DEFAULT = fromString("Default"); - - /** Static value Customized for ConfigurationType. */ - public static final ConfigurationType CUSTOMIZED = fromString("Customized"); - - /** Static value Artifact for ConfigurationType. */ - public static final ConfigurationType ARTIFACT = fromString("Artifact"); - - /** - * Creates a new instance of ConfigurationType value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public ConfigurationType() { - } - - /** - * Creates or finds a ConfigurationType from its string representation. - * - * @param name a name to look for. - * @return the corresponding ConfigurationType. - */ - @JsonCreator - public static ConfigurationType fromString(String name) { - return fromString(name, ConfigurationType.class); - } - - /** - * Gets known ConfigurationType values. - * - * @return known ConfigurationType values. - */ - public static Collection values() { - return values(ConfigurationType.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CopyComputeScaleProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CopyComputeScaleProperties.java deleted file mode 100644 index 26e0999aac24..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CopyComputeScaleProperties.java +++ /dev/null @@ -1,119 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.HashMap; -import java.util.Map; - -/** CopyComputeScale properties for managed integration runtime. */ -@Fluent -public final class CopyComputeScaleProperties { - /* - * DIU number setting reserved for copy activity execution. Supported values are multiples of 4 in range 4-256. - */ - @JsonProperty(value = "dataIntegrationUnit") - private Integer dataIntegrationUnit; - - /* - * Time to live (in minutes) setting of integration runtime which will execute copy activity. - */ - @JsonProperty(value = "timeToLive") - private Integer timeToLive; - - /* - * CopyComputeScale properties for managed integration runtime. - */ - @JsonIgnore private Map additionalProperties; - - /** Creates an instance of CopyComputeScaleProperties class. */ - public CopyComputeScaleProperties() { - } - - /** - * Get the dataIntegrationUnit property: DIU number setting reserved for copy activity execution. Supported values - * are multiples of 4 in range 4-256. - * - * @return the dataIntegrationUnit value. - */ - public Integer dataIntegrationUnit() { - return this.dataIntegrationUnit; - } - - /** - * Set the dataIntegrationUnit property: DIU number setting reserved for copy activity execution. Supported values - * are multiples of 4 in range 4-256. - * - * @param dataIntegrationUnit the dataIntegrationUnit value to set. - * @return the CopyComputeScaleProperties object itself. - */ - public CopyComputeScaleProperties withDataIntegrationUnit(Integer dataIntegrationUnit) { - this.dataIntegrationUnit = dataIntegrationUnit; - return this; - } - - /** - * Get the timeToLive property: Time to live (in minutes) setting of integration runtime which will execute copy - * activity. - * - * @return the timeToLive value. - */ - public Integer timeToLive() { - return this.timeToLive; - } - - /** - * Set the timeToLive property: Time to live (in minutes) setting of integration runtime which will execute copy - * activity. - * - * @param timeToLive the timeToLive value to set. - * @return the CopyComputeScaleProperties object itself. - */ - public CopyComputeScaleProperties withTimeToLive(Integer timeToLive) { - this.timeToLive = timeToLive; - return this; - } - - /** - * Get the additionalProperties property: CopyComputeScale properties for managed integration runtime. - * - * @return the additionalProperties value. - */ - @JsonAnyGetter - public Map additionalProperties() { - return this.additionalProperties; - } - - /** - * Set the additionalProperties property: CopyComputeScale properties for managed integration runtime. - * - * @param additionalProperties the additionalProperties value to set. - * @return the CopyComputeScaleProperties object itself. - */ - public CopyComputeScaleProperties withAdditionalProperties(Map additionalProperties) { - this.additionalProperties = additionalProperties; - return this; - } - - @JsonAnySetter - void withAdditionalProperties(String key, Object value) { - if (additionalProperties == null) { - additionalProperties = new HashMap<>(); - } - additionalProperties.put(key, value); - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Credential.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Credential.java index 60221979e0ba..5abd0d654802 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Credential.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Credential.java @@ -27,8 +27,8 @@ defaultImpl = Credential.class) @JsonTypeName("Credential") @JsonSubTypes({ - @JsonSubTypes.Type(name = "ManagedIdentity", value = ManagedIdentityCredential.class), - @JsonSubTypes.Type(name = "ServicePrincipal", value = ServicePrincipalCredential.class) + @JsonSubTypes.Type(name = "ServicePrincipal", value = ServicePrincipalCredential.class), + @JsonSubTypes.Type(name = "ManagedIdentity", value = ManagedIdentityCredential.class) }) @Fluent public class Credential { diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CredentialListResponse.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CredentialListResponse.java deleted file mode 100644 index 6ec088c5576b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CredentialListResponse.java +++ /dev/null @@ -1,88 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.ManagedIdentityCredentialResourceInner; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** A list of credential resources. */ -@Fluent -public final class CredentialListResponse { - /* - * List of credentials. - */ - @JsonProperty(value = "value", required = true) - private List value; - - /* - * The link to the next page of results, if any remaining results exist. - */ - @JsonProperty(value = "nextLink") - private String nextLink; - - /** Creates an instance of CredentialListResponse class. */ - public CredentialListResponse() { - } - - /** - * Get the value property: List of credentials. - * - * @return the value value. - */ - public List value() { - return this.value; - } - - /** - * Set the value property: List of credentials. - * - * @param value the value value to set. - * @return the CredentialListResponse object itself. - */ - public CredentialListResponse withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The link to the next page of results, if any remaining results exist. - * - * @return the nextLink value. - */ - public String nextLink() { - return this.nextLink; - } - - /** - * Set the nextLink property: The link to the next page of results, if any remaining results exist. - * - * @param nextLink the nextLink value to set. - * @return the CredentialListResponse object itself. - */ - public CredentialListResponse withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property value in model CredentialListResponse")); - } else { - value().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(CredentialListResponse.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CredentialOperations.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CredentialOperations.java deleted file mode 100644 index 914c72ad5f41..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CredentialOperations.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.models; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; - -/** Resource collection API of CredentialOperations. */ -public interface CredentialOperations { - /** - * List credentials. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of credential resources as paginated response with {@link PagedIterable}. - */ - PagedIterable listByFactory(String resourceGroupName, String factoryName); - - /** - * List credentials. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of credential resources as paginated response with {@link PagedIterable}. - */ - PagedIterable listByFactory( - String resourceGroupName, String factoryName, Context context); - - /** - * Gets a credential. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param credentialName Credential name. - * @param ifNoneMatch ETag of the credential entity. Should only be specified for get. If the ETag matches the - * existing entity tag, or if * was provided, then no content will be returned. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a credential along with {@link Response}. - */ - Response getWithResponse( - String resourceGroupName, String factoryName, String credentialName, String ifNoneMatch, Context context); - - /** - * Gets a credential. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param credentialName Credential name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a credential. - */ - ManagedIdentityCredentialResource get(String resourceGroupName, String factoryName, String credentialName); - - /** - * Deletes a credential. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param credentialName Credential name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - Response deleteWithResponse( - String resourceGroupName, String factoryName, String credentialName, Context context); - - /** - * Deletes a credential. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @param credentialName Credential name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void delete(String resourceGroupName, String factoryName, String credentialName); - - /** - * Gets a credential. - * - * @param id the resource ID. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a credential along with {@link Response}. - */ - ManagedIdentityCredentialResource getById(String id); - - /** - * Gets a credential. - * - * @param id the resource ID. - * @param ifNoneMatch ETag of the credential entity. Should only be specified for get. If the ETag matches the - * existing entity tag, or if * was provided, then no content will be returned. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a credential along with {@link Response}. - */ - Response getByIdWithResponse(String id, String ifNoneMatch, Context context); - - /** - * Deletes a credential. - * - * @param id the resource ID. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void deleteById(String id); - - /** - * Deletes a credential. - * - * @param id the resource ID. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - Response deleteByIdWithResponse(String id, Context context); - - /** - * Begins definition for a new ManagedIdentityCredentialResource resource. - * - * @param name resource name. - * @return the first stage of the new ManagedIdentityCredentialResource definition. - */ - ManagedIdentityCredentialResource.DefinitionStages.Blank define(String name); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DatasetLocation.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DatasetLocation.java index a36cc93c3b30..d0666c923d7a 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DatasetLocation.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DatasetLocation.java @@ -35,7 +35,8 @@ @JsonSubTypes.Type(name = "FtpServerLocation", value = FtpServerLocation.class), @JsonSubTypes.Type(name = "SftpLocation", value = SftpLocation.class), @JsonSubTypes.Type(name = "HttpServerLocation", value = HttpServerLocation.class), - @JsonSubTypes.Type(name = "HdfsLocation", value = HdfsLocation.class) + @JsonSubTypes.Type(name = "HdfsLocation", value = HdfsLocation.class), + @JsonSubTypes.Type(name = "LakeHouseLocation", value = LakeHouseLocation.class) }) @Fluent public class DatasetLocation { diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FactoryGitHubConfiguration.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FactoryGitHubConfiguration.java index 2eebbca2ff16..6e2753eb02f1 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FactoryGitHubConfiguration.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FactoryGitHubConfiguration.java @@ -131,13 +131,6 @@ public FactoryGitHubConfiguration withLastCommitId(String lastCommitId) { return this; } - /** {@inheritDoc} */ - @Override - public FactoryGitHubConfiguration withDisablePublish(Boolean disablePublish) { - super.withDisablePublish(disablePublish); - return this; - } - /** * Validates the instance. * diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FactoryIdentity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FactoryIdentity.java index 950a13e96a61..67dc4a5aa07b 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FactoryIdentity.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FactoryIdentity.java @@ -13,7 +13,7 @@ /** Identity properties of the factory resource. */ @Fluent -public class FactoryIdentity { +public final class FactoryIdentity { /* * The identity type. */ diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FactoryRepoConfiguration.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FactoryRepoConfiguration.java index 7b352c67f50b..6c0e5da937c3 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FactoryRepoConfiguration.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FactoryRepoConfiguration.java @@ -54,12 +54,6 @@ public class FactoryRepoConfiguration { @JsonProperty(value = "lastCommitId") private String lastCommitId; - /* - * Disable manual publish operation in ADF studio to favor automated publish. - */ - @JsonProperty(value = "disablePublish") - private Boolean disablePublish; - /** Creates an instance of FactoryRepoConfiguration class. */ public FactoryRepoConfiguration() { } @@ -164,26 +158,6 @@ public FactoryRepoConfiguration withLastCommitId(String lastCommitId) { return this; } - /** - * Get the disablePublish property: Disable manual publish operation in ADF studio to favor automated publish. - * - * @return the disablePublish value. - */ - public Boolean disablePublish() { - return this.disablePublish; - } - - /** - * Set the disablePublish property: Disable manual publish operation in ADF studio to favor automated publish. - * - * @param disablePublish the disablePublish value to set. - * @return the FactoryRepoConfiguration object itself. - */ - public FactoryRepoConfiguration withDisablePublish(Boolean disablePublish) { - this.disablePublish = disablePublish; - return this; - } - /** * Validates the instance. * diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FactoryVstsConfiguration.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FactoryVstsConfiguration.java index 8b5c4a8fcd48..aac2300a20ce 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FactoryVstsConfiguration.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FactoryVstsConfiguration.java @@ -106,13 +106,6 @@ public FactoryVstsConfiguration withLastCommitId(String lastCommitId) { return this; } - /** {@inheritDoc} */ - @Override - public FactoryVstsConfiguration withDisablePublish(Boolean disablePublish) { - super.withDisablePublish(disablePublish); - return this; - } - /** * Validates the instance. * diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleSheetsLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleSheetsLinkedService.java deleted file mode 100644 index c7dfd7169064..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleSheetsLinkedService.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.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.GoogleSheetsLinkedServiceTypeProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.List; -import java.util.Map; - -/** Linked service for GoogleSheets. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("GoogleSheets") -@Fluent -public final class GoogleSheetsLinkedService extends LinkedService { - /* - * GoogleSheets linked service properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private GoogleSheetsLinkedServiceTypeProperties innerTypeProperties = new GoogleSheetsLinkedServiceTypeProperties(); - - /** Creates an instance of GoogleSheetsLinkedService class. */ - public GoogleSheetsLinkedService() { - } - - /** - * Get the innerTypeProperties property: GoogleSheets linked service properties. - * - * @return the innerTypeProperties value. - */ - private GoogleSheetsLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public GoogleSheetsLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public GoogleSheetsLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public GoogleSheetsLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public GoogleSheetsLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** - * Get the apiToken property: The api token for the GoogleSheets source. - * - * @return the apiToken value. - */ - public SecretBase apiToken() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().apiToken(); - } - - /** - * Set the apiToken property: The api token for the GoogleSheets source. - * - * @param apiToken the apiToken value to set. - * @return the GoogleSheetsLinkedService object itself. - */ - public GoogleSheetsLinkedService withApiToken(SecretBase apiToken) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GoogleSheetsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withApiToken(apiToken); - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the GoogleSheetsLinkedService object itself. - */ - public GoogleSheetsLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GoogleSheetsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model GoogleSheetsLinkedService")); - } else { - innerTypeProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(GoogleSheetsLinkedService.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeComputeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeComputeProperties.java index 71421fb70f46..658836d7ece9 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeComputeProperties.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeComputeProperties.java @@ -52,18 +52,6 @@ public final class IntegrationRuntimeComputeProperties { @JsonProperty(value = "vNetProperties") private IntegrationRuntimeVNetProperties vNetProperties; - /* - * CopyComputeScale properties for managed integration runtime. - */ - @JsonProperty(value = "copyComputeScaleProperties") - private CopyComputeScaleProperties copyComputeScaleProperties; - - /* - * PipelineExternalComputeScale properties for managed integration runtime. - */ - @JsonProperty(value = "pipelineExternalComputeScaleProperties") - private PipelineExternalComputeScaleProperties pipelineExternalComputeScaleProperties; - /* * The compute resource properties for managed integration runtime. */ @@ -198,50 +186,6 @@ public IntegrationRuntimeComputeProperties withVNetProperties(IntegrationRuntime return this; } - /** - * Get the copyComputeScaleProperties property: CopyComputeScale properties for managed integration runtime. - * - * @return the copyComputeScaleProperties value. - */ - public CopyComputeScaleProperties copyComputeScaleProperties() { - return this.copyComputeScaleProperties; - } - - /** - * Set the copyComputeScaleProperties property: CopyComputeScale properties for managed integration runtime. - * - * @param copyComputeScaleProperties the copyComputeScaleProperties value to set. - * @return the IntegrationRuntimeComputeProperties object itself. - */ - public IntegrationRuntimeComputeProperties withCopyComputeScaleProperties( - CopyComputeScaleProperties copyComputeScaleProperties) { - this.copyComputeScaleProperties = copyComputeScaleProperties; - return this; - } - - /** - * Get the pipelineExternalComputeScaleProperties property: PipelineExternalComputeScale properties for managed - * integration runtime. - * - * @return the pipelineExternalComputeScaleProperties value. - */ - public PipelineExternalComputeScaleProperties pipelineExternalComputeScaleProperties() { - return this.pipelineExternalComputeScaleProperties; - } - - /** - * Set the pipelineExternalComputeScaleProperties property: PipelineExternalComputeScale properties for managed - * integration runtime. - * - * @param pipelineExternalComputeScaleProperties the pipelineExternalComputeScaleProperties value to set. - * @return the IntegrationRuntimeComputeProperties object itself. - */ - public IntegrationRuntimeComputeProperties withPipelineExternalComputeScaleProperties( - PipelineExternalComputeScaleProperties pipelineExternalComputeScaleProperties) { - this.pipelineExternalComputeScaleProperties = pipelineExternalComputeScaleProperties; - return this; - } - /** * Get the additionalProperties property: The compute resource properties for managed integration runtime. * @@ -283,11 +227,5 @@ public void validate() { if (vNetProperties() != null) { vNetProperties().validate(); } - if (copyComputeScaleProperties() != null) { - copyComputeScaleProperties().validate(); - } - if (pipelineExternalComputeScaleProperties() != null) { - pipelineExternalComputeScaleProperties().validate(); - } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LakeHouseLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LakeHouseLinkedService.java new file mode 100644 index 000000000000..996c0aafd053 --- /dev/null +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LakeHouseLinkedService.java @@ -0,0 +1,293 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.datafactory.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.datafactory.fluent.models.LakeHouseLinkedServiceTypeProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import java.util.List; +import java.util.Map; + +/** Microsoft Fabric LakeHouse linked service. */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("LakeHouse") +@Fluent +public final class LakeHouseLinkedService extends LinkedService { + /* + * Microsoft Fabric LakeHouse linked service properties. + */ + @JsonProperty(value = "typeProperties", required = true) + private LakeHouseLinkedServiceTypeProperties innerTypeProperties = new LakeHouseLinkedServiceTypeProperties(); + + /** Creates an instance of LakeHouseLinkedService class. */ + public LakeHouseLinkedService() { + } + + /** + * Get the innerTypeProperties property: Microsoft Fabric LakeHouse linked service properties. + * + * @return the innerTypeProperties value. + */ + private LakeHouseLinkedServiceTypeProperties innerTypeProperties() { + return this.innerTypeProperties; + } + + /** {@inheritDoc} */ + @Override + public LakeHouseLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public LakeHouseLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public LakeHouseLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public LakeHouseLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); + return this; + } + + /** + * Get the workspaceId property: The ID of Microsoft Fabric workspace. Type: string (or Expression with resultType + * string). + * + * @return the workspaceId value. + */ + public Object workspaceId() { + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().workspaceId(); + } + + /** + * Set the workspaceId property: The ID of Microsoft Fabric workspace. Type: string (or Expression with resultType + * string). + * + * @param workspaceId the workspaceId value to set. + * @return the LakeHouseLinkedService object itself. + */ + public LakeHouseLinkedService withWorkspaceId(Object workspaceId) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new LakeHouseLinkedServiceTypeProperties(); + } + this.innerTypeProperties().withWorkspaceId(workspaceId); + return this; + } + + /** + * Get the artifactId property: The ID of Microsoft Fabric LakeHouse artifact. Type: string (or Expression with + * resultType string). + * + * @return the artifactId value. + */ + public Object artifactId() { + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().artifactId(); + } + + /** + * Set the artifactId property: The ID of Microsoft Fabric LakeHouse artifact. Type: string (or Expression with + * resultType string). + * + * @param artifactId the artifactId value to set. + * @return the LakeHouseLinkedService object itself. + */ + public LakeHouseLinkedService withArtifactId(Object artifactId) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new LakeHouseLinkedServiceTypeProperties(); + } + this.innerTypeProperties().withArtifactId(artifactId); + return this; + } + + /** + * Get the servicePrincipalId property: The ID of the application used to authenticate against Microsoft Fabric + * LakeHouse. Type: string (or Expression with resultType string). + * + * @return the servicePrincipalId value. + */ + public Object servicePrincipalId() { + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalId(); + } + + /** + * Set the servicePrincipalId property: The ID of the application used to authenticate against Microsoft Fabric + * LakeHouse. Type: string (or Expression with resultType string). + * + * @param servicePrincipalId the servicePrincipalId value to set. + * @return the LakeHouseLinkedService object itself. + */ + public LakeHouseLinkedService withServicePrincipalId(Object servicePrincipalId) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new LakeHouseLinkedServiceTypeProperties(); + } + this.innerTypeProperties().withServicePrincipalId(servicePrincipalId); + return this; + } + + /** + * Get the servicePrincipalKey property: The Key of the application used to authenticate against Microsoft Fabric + * LakeHouse. + * + * @return the servicePrincipalKey value. + */ + public SecretBase servicePrincipalKey() { + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalKey(); + } + + /** + * Set the servicePrincipalKey property: The Key of the application used to authenticate against Microsoft Fabric + * LakeHouse. + * + * @param servicePrincipalKey the servicePrincipalKey value to set. + * @return the LakeHouseLinkedService object itself. + */ + public LakeHouseLinkedService withServicePrincipalKey(SecretBase servicePrincipalKey) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new LakeHouseLinkedServiceTypeProperties(); + } + this.innerTypeProperties().withServicePrincipalKey(servicePrincipalKey); + return this; + } + + /** + * Get the tenant property: The name or ID of the tenant to which the service principal belongs. Type: string (or + * Expression with resultType string). + * + * @return the tenant value. + */ + public Object tenant() { + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tenant(); + } + + /** + * Set the tenant property: The name or ID of the tenant to which the service principal belongs. Type: string (or + * Expression with resultType string). + * + * @param tenant the tenant value to set. + * @return the LakeHouseLinkedService object itself. + */ + public LakeHouseLinkedService withTenant(Object tenant) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new LakeHouseLinkedServiceTypeProperties(); + } + this.innerTypeProperties().withTenant(tenant); + return this; + } + + /** + * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted + * using the integration runtime credential manager. Type: string. + * + * @return the encryptedCredential value. + */ + public String encryptedCredential() { + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + } + + /** + * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted + * using the integration runtime credential manager. Type: string. + * + * @param encryptedCredential the encryptedCredential value to set. + * @return the LakeHouseLinkedService object itself. + */ + public LakeHouseLinkedService withEncryptedCredential(String encryptedCredential) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new LakeHouseLinkedServiceTypeProperties(); + } + this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + return this; + } + + /** + * Get the servicePrincipalCredentialType property: The service principal credential type to use in Server-To-Server + * authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' for certificate. Type: string (or + * Expression with resultType string). + * + * @return the servicePrincipalCredentialType value. + */ + public Object servicePrincipalCredentialType() { + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalCredentialType(); + } + + /** + * Set the servicePrincipalCredentialType property: The service principal credential type to use in Server-To-Server + * authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' for certificate. Type: string (or + * Expression with resultType string). + * + * @param servicePrincipalCredentialType the servicePrincipalCredentialType value to set. + * @return the LakeHouseLinkedService object itself. + */ + public LakeHouseLinkedService withServicePrincipalCredentialType(Object servicePrincipalCredentialType) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new LakeHouseLinkedServiceTypeProperties(); + } + this.innerTypeProperties().withServicePrincipalCredentialType(servicePrincipalCredentialType); + return this; + } + + /** + * Get the servicePrincipalCredential property: The credential of the service principal object in Azure Active + * Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', servicePrincipalCredential can be + * SecureString or AzureKeyVaultSecretReference. If servicePrincipalCredentialType is 'ServicePrincipalCert', + * servicePrincipalCredential can only be AzureKeyVaultSecretReference. + * + * @return the servicePrincipalCredential value. + */ + public SecretBase servicePrincipalCredential() { + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalCredential(); + } + + /** + * Set the servicePrincipalCredential property: The credential of the service principal object in Azure Active + * Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', servicePrincipalCredential can be + * SecureString or AzureKeyVaultSecretReference. If servicePrincipalCredentialType is 'ServicePrincipalCert', + * servicePrincipalCredential can only be AzureKeyVaultSecretReference. + * + * @param servicePrincipalCredential the servicePrincipalCredential value to set. + * @return the LakeHouseLinkedService object itself. + */ + public LakeHouseLinkedService withServicePrincipalCredential(SecretBase servicePrincipalCredential) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new LakeHouseLinkedServiceTypeProperties(); + } + this.innerTypeProperties().withServicePrincipalCredential(servicePrincipalCredential); + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + @Override + public void validate() { + super.validate(); + if (innerTypeProperties() == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property innerTypeProperties in model LakeHouseLinkedService")); + } else { + innerTypeProperties().validate(); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(LakeHouseLinkedService.class); +} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LakeHouseLocation.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LakeHouseLocation.java new file mode 100644 index 000000000000..4fd9a1015c61 --- /dev/null +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LakeHouseLocation.java @@ -0,0 +1,43 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.datafactory.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** The location of Microsoft Fabric LakeHouse Files dataset. */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("LakeHouseLocation") +@Fluent +public final class LakeHouseLocation extends DatasetLocation { + /** Creates an instance of LakeHouseLocation class. */ + public LakeHouseLocation() { + } + + /** {@inheritDoc} */ + @Override + public LakeHouseLocation withFolderPath(Object folderPath) { + super.withFolderPath(folderPath); + return this; + } + + /** {@inheritDoc} */ + @Override + public LakeHouseLocation withFileName(Object fileName) { + super.withFileName(fileName); + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + @Override + public void validate() { + super.validate(); + } +} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LakeHouseReadSettings.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LakeHouseReadSettings.java new file mode 100644 index 000000000000..4374da2a1327 --- /dev/null +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LakeHouseReadSettings.java @@ -0,0 +1,300 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.datafactory.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** Microsoft Fabric LakeHouse Files read settings. */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("LakeHouseReadSettings") +@Fluent +public final class LakeHouseReadSettings extends StoreReadSettings { + /* + * If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression + * with resultType boolean). + */ + @JsonProperty(value = "recursive") + private Object recursive; + + /* + * Microsoft Fabric LakeHouse Files wildcardFolderPath. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "wildcardFolderPath") + private Object wildcardFolderPath; + + /* + * Microsoft Fabric LakeHouse Files wildcardFileName. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "wildcardFileName") + private Object wildcardFileName; + + /* + * Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to + * copy. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "fileListPath") + private Object fileListPath; + + /* + * Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType boolean). + */ + @JsonProperty(value = "enablePartitionDiscovery") + private Object enablePartitionDiscovery; + + /* + * Specify the root path where partition discovery starts from. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "partitionRootPath") + private Object partitionRootPath; + + /* + * Indicates whether the source files need to be deleted after copy completion. Default is false. Type: boolean (or + * Expression with resultType boolean). + */ + @JsonProperty(value = "deleteFilesAfterCompletion") + private Object deleteFilesAfterCompletion; + + /* + * The start of file's modified datetime. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "modifiedDatetimeStart") + private Object modifiedDatetimeStart; + + /* + * The end of file's modified datetime. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "modifiedDatetimeEnd") + private Object modifiedDatetimeEnd; + + /** Creates an instance of LakeHouseReadSettings class. */ + public LakeHouseReadSettings() { + } + + /** + * Get the recursive property: If true, files under the folder path will be read recursively. Default is true. Type: + * boolean (or Expression with resultType boolean). + * + * @return the recursive value. + */ + public Object recursive() { + return this.recursive; + } + + /** + * Set the recursive property: If true, files under the folder path will be read recursively. Default is true. Type: + * boolean (or Expression with resultType boolean). + * + * @param recursive the recursive value to set. + * @return the LakeHouseReadSettings object itself. + */ + public LakeHouseReadSettings withRecursive(Object recursive) { + this.recursive = recursive; + return this; + } + + /** + * Get the wildcardFolderPath property: Microsoft Fabric LakeHouse Files wildcardFolderPath. Type: string (or + * Expression with resultType string). + * + * @return the wildcardFolderPath value. + */ + public Object wildcardFolderPath() { + return this.wildcardFolderPath; + } + + /** + * Set the wildcardFolderPath property: Microsoft Fabric LakeHouse Files wildcardFolderPath. Type: string (or + * Expression with resultType string). + * + * @param wildcardFolderPath the wildcardFolderPath value to set. + * @return the LakeHouseReadSettings object itself. + */ + public LakeHouseReadSettings withWildcardFolderPath(Object wildcardFolderPath) { + this.wildcardFolderPath = wildcardFolderPath; + return this; + } + + /** + * Get the wildcardFileName property: Microsoft Fabric LakeHouse Files wildcardFileName. Type: string (or Expression + * with resultType string). + * + * @return the wildcardFileName value. + */ + public Object wildcardFileName() { + return this.wildcardFileName; + } + + /** + * Set the wildcardFileName property: Microsoft Fabric LakeHouse Files wildcardFileName. Type: string (or Expression + * with resultType string). + * + * @param wildcardFileName the wildcardFileName value to set. + * @return the LakeHouseReadSettings object itself. + */ + public LakeHouseReadSettings withWildcardFileName(Object wildcardFileName) { + this.wildcardFileName = wildcardFileName; + return this; + } + + /** + * Get the fileListPath property: Point to a text file that lists each file (relative path to the path configured in + * the dataset) that you want to copy. Type: string (or Expression with resultType string). + * + * @return the fileListPath value. + */ + public Object fileListPath() { + return this.fileListPath; + } + + /** + * Set the fileListPath property: Point to a text file that lists each file (relative path to the path configured in + * the dataset) that you want to copy. Type: string (or Expression with resultType string). + * + * @param fileListPath the fileListPath value to set. + * @return the LakeHouseReadSettings object itself. + */ + public LakeHouseReadSettings withFileListPath(Object fileListPath) { + this.fileListPath = fileListPath; + return this; + } + + /** + * Get the enablePartitionDiscovery property: Indicates whether to enable partition discovery. Type: boolean (or + * Expression with resultType boolean). + * + * @return the enablePartitionDiscovery value. + */ + public Object enablePartitionDiscovery() { + return this.enablePartitionDiscovery; + } + + /** + * Set the enablePartitionDiscovery property: Indicates whether to enable partition discovery. Type: boolean (or + * Expression with resultType boolean). + * + * @param enablePartitionDiscovery the enablePartitionDiscovery value to set. + * @return the LakeHouseReadSettings object itself. + */ + public LakeHouseReadSettings withEnablePartitionDiscovery(Object enablePartitionDiscovery) { + this.enablePartitionDiscovery = enablePartitionDiscovery; + return this; + } + + /** + * Get the partitionRootPath property: Specify the root path where partition discovery starts from. Type: string (or + * Expression with resultType string). + * + * @return the partitionRootPath value. + */ + public Object partitionRootPath() { + return this.partitionRootPath; + } + + /** + * Set the partitionRootPath property: Specify the root path where partition discovery starts from. Type: string (or + * Expression with resultType string). + * + * @param partitionRootPath the partitionRootPath value to set. + * @return the LakeHouseReadSettings object itself. + */ + public LakeHouseReadSettings withPartitionRootPath(Object partitionRootPath) { + this.partitionRootPath = partitionRootPath; + return this; + } + + /** + * Get the deleteFilesAfterCompletion property: Indicates whether the source files need to be deleted after copy + * completion. Default is false. Type: boolean (or Expression with resultType boolean). + * + * @return the deleteFilesAfterCompletion value. + */ + public Object deleteFilesAfterCompletion() { + return this.deleteFilesAfterCompletion; + } + + /** + * Set the deleteFilesAfterCompletion property: Indicates whether the source files need to be deleted after copy + * completion. Default is false. Type: boolean (or Expression with resultType boolean). + * + * @param deleteFilesAfterCompletion the deleteFilesAfterCompletion value to set. + * @return the LakeHouseReadSettings object itself. + */ + public LakeHouseReadSettings withDeleteFilesAfterCompletion(Object deleteFilesAfterCompletion) { + this.deleteFilesAfterCompletion = deleteFilesAfterCompletion; + return this; + } + + /** + * Get the modifiedDatetimeStart property: The start of file's modified datetime. Type: string (or Expression with + * resultType string). + * + * @return the modifiedDatetimeStart value. + */ + public Object modifiedDatetimeStart() { + return this.modifiedDatetimeStart; + } + + /** + * Set the modifiedDatetimeStart property: The start of file's modified datetime. Type: string (or Expression with + * resultType string). + * + * @param modifiedDatetimeStart the modifiedDatetimeStart value to set. + * @return the LakeHouseReadSettings object itself. + */ + public LakeHouseReadSettings withModifiedDatetimeStart(Object modifiedDatetimeStart) { + this.modifiedDatetimeStart = modifiedDatetimeStart; + return this; + } + + /** + * Get the modifiedDatetimeEnd property: The end of file's modified datetime. Type: string (or Expression with + * resultType string). + * + * @return the modifiedDatetimeEnd value. + */ + public Object modifiedDatetimeEnd() { + return this.modifiedDatetimeEnd; + } + + /** + * Set the modifiedDatetimeEnd property: The end of file's modified datetime. Type: string (or Expression with + * resultType string). + * + * @param modifiedDatetimeEnd the modifiedDatetimeEnd value to set. + * @return the LakeHouseReadSettings object itself. + */ + public LakeHouseReadSettings withModifiedDatetimeEnd(Object modifiedDatetimeEnd) { + this.modifiedDatetimeEnd = modifiedDatetimeEnd; + return this; + } + + /** {@inheritDoc} */ + @Override + public LakeHouseReadSettings withMaxConcurrentConnections(Object maxConcurrentConnections) { + super.withMaxConcurrentConnections(maxConcurrentConnections); + return this; + } + + /** {@inheritDoc} */ + @Override + public LakeHouseReadSettings withDisableMetricsCollection(Object disableMetricsCollection) { + super.withDisableMetricsCollection(disableMetricsCollection); + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + @Override + public void validate() { + super.validate(); + } +} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LinkedService.java index d41960095232..a95264a7e8f6 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LinkedService.java @@ -87,7 +87,6 @@ @JsonSubTypes.Type(name = "AppFigures", value = AppFiguresLinkedService.class), @JsonSubTypes.Type(name = "Asana", value = AsanaLinkedService.class), @JsonSubTypes.Type(name = "Twilio", value = TwilioLinkedService.class), - @JsonSubTypes.Type(name = "GoogleSheets", value = GoogleSheetsLinkedService.class), @JsonSubTypes.Type(name = "AmazonS3", value = AmazonS3LinkedService.class), @JsonSubTypes.Type(name = "AmazonRedshift", value = AmazonRedshiftLinkedService.class), @JsonSubTypes.Type(name = "CustomDataSource", value = CustomDataSourceLinkedService.class), @@ -140,7 +139,8 @@ @JsonSubTypes.Type(name = "AzureFunction", value = AzureFunctionLinkedService.class), @JsonSubTypes.Type(name = "Snowflake", value = SnowflakeLinkedService.class), @JsonSubTypes.Type(name = "SharePointOnlineList", value = SharePointOnlineListLinkedService.class), - @JsonSubTypes.Type(name = "AzureSynapseArtifacts", value = AzureSynapseArtifactsLinkedService.class) + @JsonSubTypes.Type(name = "AzureSynapseArtifacts", value = AzureSynapseArtifactsLinkedService.class), + @JsonSubTypes.Type(name = "LakeHouse", value = LakeHouseLinkedService.class) }) @Fluent public class LinkedService { diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ManagedIdentityCredentialResource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ManagedIdentityCredentialResource.java deleted file mode 100644 index 8803e5935a6f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ManagedIdentityCredentialResource.java +++ /dev/null @@ -1,190 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.fluent.models.ManagedIdentityCredentialResourceInner; - -/** An immutable client-side representation of ManagedIdentityCredentialResource. */ -public interface ManagedIdentityCredentialResource { - /** - * Gets the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - String id(); - - /** - * Gets the properties property: Managed Identity Credential properties. - * - * @return the properties value. - */ - ManagedIdentityCredential properties(); - - /** - * Gets the name property: The resource name. - * - * @return the name value. - */ - String name(); - - /** - * Gets the type property: The resource type. - * - * @return the type value. - */ - String type(); - - /** - * Gets the etag property: Etag identifies change in the resource. - * - * @return the etag value. - */ - String etag(); - - /** - * Gets the name of the resource group. - * - * @return the name of the resource group. - */ - String resourceGroupName(); - - /** - * Gets the inner com.azure.resourcemanager.datafactory.fluent.models.ManagedIdentityCredentialResourceInner object. - * - * @return the inner object. - */ - ManagedIdentityCredentialResourceInner innerModel(); - - /** The entirety of the ManagedIdentityCredentialResource definition. */ - interface Definition - extends DefinitionStages.Blank, - DefinitionStages.WithParentResource, - DefinitionStages.WithProperties, - DefinitionStages.WithCreate { - } - /** The ManagedIdentityCredentialResource definition stages. */ - interface DefinitionStages { - /** The first stage of the ManagedIdentityCredentialResource definition. */ - interface Blank extends WithParentResource { - } - /** The stage of the ManagedIdentityCredentialResource definition allowing to specify parent resource. */ - interface WithParentResource { - /** - * Specifies resourceGroupName, factoryName. - * - * @param resourceGroupName The resource group name. - * @param factoryName The factory name. - * @return the next definition stage. - */ - WithProperties withExistingFactory(String resourceGroupName, String factoryName); - } - /** The stage of the ManagedIdentityCredentialResource definition allowing to specify properties. */ - interface WithProperties { - /** - * Specifies the properties property: Managed Identity Credential properties.. - * - * @param properties Managed Identity Credential properties. - * @return the next definition stage. - */ - WithCreate withProperties(ManagedIdentityCredential properties); - } - /** - * The stage of the ManagedIdentityCredentialResource definition which contains all the minimum required - * properties for the resource to be created, but also allows for any other optional properties to be specified. - */ - interface WithCreate extends DefinitionStages.WithIfMatch { - /** - * Executes the create request. - * - * @return the created resource. - */ - ManagedIdentityCredentialResource create(); - - /** - * Executes the create request. - * - * @param context The context to associate with this operation. - * @return the created resource. - */ - ManagedIdentityCredentialResource create(Context context); - } - /** The stage of the ManagedIdentityCredentialResource definition allowing to specify ifMatch. */ - interface WithIfMatch { - /** - * Specifies the ifMatch property: ETag of the credential entity. Should only be specified for update, for - * which it should match existing entity or can be * for unconditional update.. - * - * @param ifMatch ETag of the credential entity. Should only be specified for update, for which it should - * match existing entity or can be * for unconditional update. - * @return the next definition stage. - */ - WithCreate withIfMatch(String ifMatch); - } - } - /** - * Begins update for the ManagedIdentityCredentialResource resource. - * - * @return the stage of resource update. - */ - ManagedIdentityCredentialResource.Update update(); - - /** The template for ManagedIdentityCredentialResource update. */ - interface Update extends UpdateStages.WithProperties, UpdateStages.WithIfMatch { - /** - * Executes the update request. - * - * @return the updated resource. - */ - ManagedIdentityCredentialResource apply(); - - /** - * Executes the update request. - * - * @param context The context to associate with this operation. - * @return the updated resource. - */ - ManagedIdentityCredentialResource apply(Context context); - } - /** The ManagedIdentityCredentialResource update stages. */ - interface UpdateStages { - /** The stage of the ManagedIdentityCredentialResource update allowing to specify properties. */ - interface WithProperties { - /** - * Specifies the properties property: Managed Identity Credential properties.. - * - * @param properties Managed Identity Credential properties. - * @return the next definition stage. - */ - Update withProperties(ManagedIdentityCredential properties); - } - /** The stage of the ManagedIdentityCredentialResource update allowing to specify ifMatch. */ - interface WithIfMatch { - /** - * Specifies the ifMatch property: ETag of the credential entity. Should only be specified for update, for - * which it should match existing entity or can be * for unconditional update.. - * - * @param ifMatch ETag of the credential entity. Should only be specified for update, for which it should - * match existing entity or can be * for unconditional update. - * @return the next definition stage. - */ - Update withIfMatch(String ifMatch); - } - } - /** - * Refreshes the resource to sync with Azure. - * - * @return the refreshed resource. - */ - ManagedIdentityCredentialResource refresh(); - - /** - * Refreshes the resource to sync with Azure. - * - * @param context The context to associate with this operation. - * @return the refreshed resource. - */ - ManagedIdentityCredentialResource refresh(Context context); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PipelineExternalComputeScaleProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PipelineExternalComputeScaleProperties.java deleted file mode 100644 index 22c7ea4d11a3..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PipelineExternalComputeScaleProperties.java +++ /dev/null @@ -1,91 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.HashMap; -import java.util.Map; - -/** PipelineExternalComputeScale properties for managed integration runtime. */ -@Fluent -public final class PipelineExternalComputeScaleProperties { - /* - * Time to live (in minutes) setting of integration runtime which will execute pipeline and external activity. - */ - @JsonProperty(value = "timeToLive") - private Integer timeToLive; - - /* - * PipelineExternalComputeScale properties for managed integration runtime. - */ - @JsonIgnore private Map additionalProperties; - - /** Creates an instance of PipelineExternalComputeScaleProperties class. */ - public PipelineExternalComputeScaleProperties() { - } - - /** - * Get the timeToLive property: Time to live (in minutes) setting of integration runtime which will execute pipeline - * and external activity. - * - * @return the timeToLive value. - */ - public Integer timeToLive() { - return this.timeToLive; - } - - /** - * Set the timeToLive property: Time to live (in minutes) setting of integration runtime which will execute pipeline - * and external activity. - * - * @param timeToLive the timeToLive value to set. - * @return the PipelineExternalComputeScaleProperties object itself. - */ - public PipelineExternalComputeScaleProperties withTimeToLive(Integer timeToLive) { - this.timeToLive = timeToLive; - return this; - } - - /** - * Get the additionalProperties property: PipelineExternalComputeScale properties for managed integration runtime. - * - * @return the additionalProperties value. - */ - @JsonAnyGetter - public Map additionalProperties() { - return this.additionalProperties; - } - - /** - * Set the additionalProperties property: PipelineExternalComputeScale properties for managed integration runtime. - * - * @param additionalProperties the additionalProperties value to set. - * @return the PipelineExternalComputeScaleProperties object itself. - */ - public PipelineExternalComputeScaleProperties withAdditionalProperties(Map additionalProperties) { - this.additionalProperties = additionalProperties; - return this; - } - - @JsonAnySetter - void withAdditionalProperties(String key, Object value) { - if (additionalProperties == null) { - additionalProperties = new HashMap<>(); - } - additionalProperties.put(key, value); - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ScriptActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ScriptActivity.java index c4245ab74857..13337c411468 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ScriptActivity.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ScriptActivity.java @@ -78,31 +78,6 @@ public ScriptActivity withUserProperties(List userProperties) { return this; } - /** - * Get the scriptBlockExecutionTimeout property: ScriptBlock execution timeout. Type: string (or Expression with - * resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - * - * @return the scriptBlockExecutionTimeout value. - */ - public Object scriptBlockExecutionTimeout() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().scriptBlockExecutionTimeout(); - } - - /** - * Set the scriptBlockExecutionTimeout property: ScriptBlock execution timeout. Type: string (or Expression with - * resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - * - * @param scriptBlockExecutionTimeout the scriptBlockExecutionTimeout value to set. - * @return the ScriptActivity object itself. - */ - public ScriptActivity withScriptBlockExecutionTimeout(Object scriptBlockExecutionTimeout) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ScriptActivityTypeProperties(); - } - this.innerTypeProperties().withScriptBlockExecutionTimeout(scriptBlockExecutionTimeout); - return this; - } - /** * Get the scripts property: Array of script blocks. Type: array. * diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SnowflakeSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SnowflakeSource.java index 56e4dc70d955..0ed22754a857 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SnowflakeSource.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SnowflakeSource.java @@ -5,7 +5,6 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -24,7 +23,7 @@ public final class SnowflakeSource extends CopySource { /* * Snowflake export settings. */ - @JsonProperty(value = "exportSettings", required = true) + @JsonProperty(value = "exportSettings") private SnowflakeExportCopyCommand exportSettings; /** Creates an instance of SnowflakeSource class. */ @@ -107,14 +106,8 @@ public SnowflakeSource withDisableMetricsCollection(Object disableMetricsCollect @Override public void validate() { super.validate(); - if (exportSettings() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property exportSettings in model SnowflakeSource")); - } else { + if (exportSettings() != null) { exportSettings().validate(); } } - - private static final ClientLogger LOGGER = new ClientLogger(SnowflakeSource.class); } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SparkConfigurationParametrizationReference.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SparkConfigurationParametrizationReference.java deleted file mode 100644 index 9b1aba3efdcc..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SparkConfigurationParametrizationReference.java +++ /dev/null @@ -1,93 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Spark configuration reference. */ -@Fluent -public final class SparkConfigurationParametrizationReference { - /* - * Spark configuration reference type. - */ - @JsonProperty(value = "type", required = true) - private SparkConfigurationReferenceType type; - - /* - * Reference spark configuration name. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "referenceName", required = true) - private Object referenceName; - - /** Creates an instance of SparkConfigurationParametrizationReference class. */ - public SparkConfigurationParametrizationReference() { - } - - /** - * Get the type property: Spark configuration reference type. - * - * @return the type value. - */ - public SparkConfigurationReferenceType type() { - return this.type; - } - - /** - * Set the type property: Spark configuration reference type. - * - * @param type the type value to set. - * @return the SparkConfigurationParametrizationReference object itself. - */ - public SparkConfigurationParametrizationReference withType(SparkConfigurationReferenceType type) { - this.type = type; - return this; - } - - /** - * Get the referenceName property: Reference spark configuration name. Type: string (or Expression with resultType - * string). - * - * @return the referenceName value. - */ - public Object referenceName() { - return this.referenceName; - } - - /** - * Set the referenceName property: Reference spark configuration name. Type: string (or Expression with resultType - * string). - * - * @param referenceName the referenceName value to set. - * @return the SparkConfigurationParametrizationReference object itself. - */ - public SparkConfigurationParametrizationReference withReferenceName(Object referenceName) { - this.referenceName = referenceName; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (type() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property type in model SparkConfigurationParametrizationReference")); - } - if (referenceName() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property referenceName in model SparkConfigurationParametrizationReference")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(SparkConfigurationParametrizationReference.class); -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SparkConfigurationReferenceType.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SparkConfigurationReferenceType.java deleted file mode 100644 index a0a665b67eb9..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SparkConfigurationReferenceType.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.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Spark configuration reference type. */ -public final class SparkConfigurationReferenceType extends ExpandableStringEnum { - /** Static value SparkConfigurationReference for SparkConfigurationReferenceType. */ - public static final SparkConfigurationReferenceType SPARK_CONFIGURATION_REFERENCE = - fromString("SparkConfigurationReference"); - - /** - * Creates a new instance of SparkConfigurationReferenceType value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public SparkConfigurationReferenceType() { - } - - /** - * Creates or finds a SparkConfigurationReferenceType from its string representation. - * - * @param name a name to look for. - * @return the corresponding SparkConfigurationReferenceType. - */ - @JsonCreator - public static SparkConfigurationReferenceType fromString(String name) { - return fromString(name, SparkConfigurationReferenceType.class); - } - - /** - * Gets known SparkConfigurationReferenceType values. - * - * @return known SparkConfigurationReferenceType values. - */ - public static Collection values() { - return values(SparkConfigurationReferenceType.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlMISink.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlMISink.java index 6eaff602cb37..047ced0a3380 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlMISink.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlMISink.java @@ -5,9 +5,11 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; +import java.util.Map; /** A copy activity Azure SQL Managed Instance sink. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @@ -36,7 +38,8 @@ public final class SqlMISink extends CopySink { * SQL stored procedure parameters. */ @JsonProperty(value = "storedProcedureParameters") - private Object storedProcedureParameters; + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) + private Map storedProcedureParameters; /* * The stored procedure parameter name of the table type. Type: string (or Expression with resultType string). @@ -141,7 +144,7 @@ public SqlMISink withPreCopyScript(Object preCopyScript) { * * @return the storedProcedureParameters value. */ - public Object storedProcedureParameters() { + public Map storedProcedureParameters() { return this.storedProcedureParameters; } @@ -151,7 +154,7 @@ public Object storedProcedureParameters() { * @param storedProcedureParameters the storedProcedureParameters value to set. * @return the SqlMISink object itself. */ - public SqlMISink withStoredProcedureParameters(Object storedProcedureParameters) { + public SqlMISink withStoredProcedureParameters(Map storedProcedureParameters) { this.storedProcedureParameters = storedProcedureParameters; return this; } @@ -314,6 +317,16 @@ public SqlMISink withDisableMetricsCollection(Object disableMetricsCollection) { @Override public void validate() { super.validate(); + if (storedProcedureParameters() != null) { + storedProcedureParameters() + .values() + .forEach( + e -> { + if (e != null) { + e.validate(); + } + }); + } if (upsertSettings() != null) { upsertSettings().validate(); } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlMISource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlMISource.java index e4b85afed7f3..0be5a1c6af11 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlMISource.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlMISource.java @@ -5,9 +5,11 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; +import java.util.Map; /** A copy activity Azure SQL Managed Instance source. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @@ -31,7 +33,8 @@ public final class SqlMISource extends TabularSource { * Value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". */ @JsonProperty(value = "storedProcedureParameters") - private Object storedProcedureParameters; + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) + private Map storedProcedureParameters; /* * Which additional types to produce. @@ -106,7 +109,7 @@ public SqlMISource withSqlReaderStoredProcedureName(Object sqlReaderStoredProced * * @return the storedProcedureParameters value. */ - public Object storedProcedureParameters() { + public Map storedProcedureParameters() { return this.storedProcedureParameters; } @@ -117,7 +120,7 @@ public Object storedProcedureParameters() { * @param storedProcedureParameters the storedProcedureParameters value to set. * @return the SqlMISource object itself. */ - public SqlMISource withStoredProcedureParameters(Object storedProcedureParameters) { + public SqlMISource withStoredProcedureParameters(Map storedProcedureParameters) { this.storedProcedureParameters = storedProcedureParameters; return this; } @@ -234,6 +237,16 @@ public SqlMISource withDisableMetricsCollection(Object disableMetricsCollection) @Override public void validate() { super.validate(); + if (storedProcedureParameters() != null) { + storedProcedureParameters() + .values() + .forEach( + e -> { + if (e != null) { + e.validate(); + } + }); + } if (partitionSettings() != null) { partitionSettings().validate(); } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlServerSink.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlServerSink.java index 63499bc5fa89..ed9703b624be 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlServerSink.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlServerSink.java @@ -5,9 +5,11 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; +import java.util.Map; /** A copy activity SQL server sink. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @@ -36,7 +38,8 @@ public final class SqlServerSink extends CopySink { * SQL stored procedure parameters. */ @JsonProperty(value = "storedProcedureParameters") - private Object storedProcedureParameters; + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) + private Map storedProcedureParameters; /* * The stored procedure parameter name of the table type. Type: string (or Expression with resultType string). @@ -141,7 +144,7 @@ public SqlServerSink withPreCopyScript(Object preCopyScript) { * * @return the storedProcedureParameters value. */ - public Object storedProcedureParameters() { + public Map storedProcedureParameters() { return this.storedProcedureParameters; } @@ -151,7 +154,8 @@ public Object storedProcedureParameters() { * @param storedProcedureParameters the storedProcedureParameters value to set. * @return the SqlServerSink object itself. */ - public SqlServerSink withStoredProcedureParameters(Object storedProcedureParameters) { + public SqlServerSink withStoredProcedureParameters( + Map storedProcedureParameters) { this.storedProcedureParameters = storedProcedureParameters; return this; } @@ -314,6 +318,16 @@ public SqlServerSink withDisableMetricsCollection(Object disableMetricsCollectio @Override public void validate() { super.validate(); + if (storedProcedureParameters() != null) { + storedProcedureParameters() + .values() + .forEach( + e -> { + if (e != null) { + e.validate(); + } + }); + } if (upsertSettings() != null) { upsertSettings().validate(); } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlServerSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlServerSource.java index 3ecde0df125e..978d767ade6d 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlServerSource.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlServerSource.java @@ -5,9 +5,11 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; +import java.util.Map; /** A copy activity SQL server source. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @@ -31,7 +33,8 @@ public final class SqlServerSource extends TabularSource { * Value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". */ @JsonProperty(value = "storedProcedureParameters") - private Object storedProcedureParameters; + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) + private Map storedProcedureParameters; /* * Which additional types to produce. @@ -104,7 +107,7 @@ public SqlServerSource withSqlReaderStoredProcedureName(Object sqlReaderStoredPr * * @return the storedProcedureParameters value. */ - public Object storedProcedureParameters() { + public Map storedProcedureParameters() { return this.storedProcedureParameters; } @@ -115,7 +118,8 @@ public Object storedProcedureParameters() { * @param storedProcedureParameters the storedProcedureParameters value to set. * @return the SqlServerSource object itself. */ - public SqlServerSource withStoredProcedureParameters(Object storedProcedureParameters) { + public SqlServerSource withStoredProcedureParameters( + Map storedProcedureParameters) { this.storedProcedureParameters = storedProcedureParameters; return this; } @@ -232,6 +236,16 @@ public SqlServerSource withDisableMetricsCollection(Object disableMetricsCollect @Override public void validate() { super.validate(); + if (storedProcedureParameters() != null) { + storedProcedureParameters() + .values() + .forEach( + e -> { + if (e != null) { + e.validate(); + } + }); + } if (partitionSettings() != null) { partitionSettings().validate(); } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlSink.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlSink.java index 85ef1b264f4e..cc7517a0c2d7 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlSink.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlSink.java @@ -5,9 +5,11 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; +import java.util.Map; /** A copy activity SQL sink. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @@ -36,7 +38,8 @@ public final class SqlSink extends CopySink { * SQL stored procedure parameters. */ @JsonProperty(value = "storedProcedureParameters") - private Object storedProcedureParameters; + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) + private Map storedProcedureParameters; /* * The stored procedure parameter name of the table type. Type: string (or Expression with resultType string). @@ -141,7 +144,7 @@ public SqlSink withPreCopyScript(Object preCopyScript) { * * @return the storedProcedureParameters value. */ - public Object storedProcedureParameters() { + public Map storedProcedureParameters() { return this.storedProcedureParameters; } @@ -151,7 +154,7 @@ public Object storedProcedureParameters() { * @param storedProcedureParameters the storedProcedureParameters value to set. * @return the SqlSink object itself. */ - public SqlSink withStoredProcedureParameters(Object storedProcedureParameters) { + public SqlSink withStoredProcedureParameters(Map storedProcedureParameters) { this.storedProcedureParameters = storedProcedureParameters; return this; } @@ -314,6 +317,16 @@ public SqlSink withDisableMetricsCollection(Object disableMetricsCollection) { @Override public void validate() { super.validate(); + if (storedProcedureParameters() != null) { + storedProcedureParameters() + .values() + .forEach( + e -> { + if (e != null) { + e.validate(); + } + }); + } if (upsertSettings() != null) { upsertSettings().validate(); } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlSource.java index 009458570252..da4b637690c0 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlSource.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlSource.java @@ -5,9 +5,11 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; +import java.util.Map; /** A copy activity SQL source. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @@ -31,7 +33,8 @@ public final class SqlSource extends TabularSource { * Value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". */ @JsonProperty(value = "storedProcedureParameters") - private Object storedProcedureParameters; + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) + private Map storedProcedureParameters; /* * Specifies the transaction locking behavior for the SQL source. Allowed values: @@ -106,7 +109,7 @@ public SqlSource withSqlReaderStoredProcedureName(Object sqlReaderStoredProcedur * * @return the storedProcedureParameters value. */ - public Object storedProcedureParameters() { + public Map storedProcedureParameters() { return this.storedProcedureParameters; } @@ -117,7 +120,7 @@ public Object storedProcedureParameters() { * @param storedProcedureParameters the storedProcedureParameters value to set. * @return the SqlSource object itself. */ - public SqlSource withStoredProcedureParameters(Object storedProcedureParameters) { + public SqlSource withStoredProcedureParameters(Map storedProcedureParameters) { this.storedProcedureParameters = storedProcedureParameters; return this; } @@ -238,6 +241,16 @@ public SqlSource withDisableMetricsCollection(Object disableMetricsCollection) { @Override public void validate() { super.validate(); + if (storedProcedureParameters() != null) { + storedProcedureParameters() + .values() + .forEach( + e -> { + if (e != null) { + e.validate(); + } + }); + } if (partitionSettings() != null) { partitionSettings().validate(); } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/StoreReadSettings.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/StoreReadSettings.java index 65e4a5e61c2c..8dc940c80d34 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/StoreReadSettings.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/StoreReadSettings.java @@ -35,7 +35,8 @@ @JsonSubTypes.Type(name = "FtpReadSettings", value = FtpReadSettings.class), @JsonSubTypes.Type(name = "SftpReadSettings", value = SftpReadSettings.class), @JsonSubTypes.Type(name = "HttpReadSettings", value = HttpReadSettings.class), - @JsonSubTypes.Type(name = "HdfsReadSettings", value = HdfsReadSettings.class) + @JsonSubTypes.Type(name = "HdfsReadSettings", value = HdfsReadSettings.class), + @JsonSubTypes.Type(name = "LakeHouseReadSettings", value = LakeHouseReadSettings.class) }) @Fluent public class StoreReadSettings { diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/StoredProcedureParameter.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/StoredProcedureParameter.java new file mode 100644 index 000000000000..22280d3fb248 --- /dev/null +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/StoredProcedureParameter.java @@ -0,0 +1,76 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.datafactory.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** SQL stored procedure parameter. */ +@Fluent +public final class StoredProcedureParameter { + /* + * Stored procedure parameter value. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "value") + private Object value; + + /* + * Stored procedure parameter type. + */ + @JsonProperty(value = "type") + private StoredProcedureParameterType type; + + /** Creates an instance of StoredProcedureParameter class. */ + public StoredProcedureParameter() { + } + + /** + * Get the value property: Stored procedure parameter value. Type: string (or Expression with resultType string). + * + * @return the value value. + */ + public Object value() { + return this.value; + } + + /** + * Set the value property: Stored procedure parameter value. Type: string (or Expression with resultType string). + * + * @param value the value value to set. + * @return the StoredProcedureParameter object itself. + */ + public StoredProcedureParameter withValue(Object value) { + this.value = value; + return this; + } + + /** + * Get the type property: Stored procedure parameter type. + * + * @return the type value. + */ + public StoredProcedureParameterType type() { + return this.type; + } + + /** + * Set the type property: Stored procedure parameter type. + * + * @param type the type value to set. + * @return the StoredProcedureParameter object itself. + */ + public StoredProcedureParameter withType(StoredProcedureParameterType type) { + this.type = type; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/StoredProcedureParameterType.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/StoredProcedureParameterType.java new file mode 100644 index 000000000000..5209e3587e0f --- /dev/null +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/StoredProcedureParameterType.java @@ -0,0 +1,62 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.datafactory.models; + +import com.azure.core.util.ExpandableStringEnum; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.Collection; + +/** Stored procedure parameter type. */ +public final class StoredProcedureParameterType extends ExpandableStringEnum { + /** Static value String for StoredProcedureParameterType. */ + public static final StoredProcedureParameterType STRING = fromString("String"); + + /** Static value Int for StoredProcedureParameterType. */ + public static final StoredProcedureParameterType INT = fromString("Int"); + + /** Static value Int64 for StoredProcedureParameterType. */ + public static final StoredProcedureParameterType INT64 = fromString("Int64"); + + /** Static value Decimal for StoredProcedureParameterType. */ + public static final StoredProcedureParameterType DECIMAL = fromString("Decimal"); + + /** Static value Guid for StoredProcedureParameterType. */ + public static final StoredProcedureParameterType GUID = fromString("Guid"); + + /** Static value Boolean for StoredProcedureParameterType. */ + public static final StoredProcedureParameterType BOOLEAN = fromString("Boolean"); + + /** Static value Date for StoredProcedureParameterType. */ + public static final StoredProcedureParameterType DATE = fromString("Date"); + + /** + * Creates a new instance of StoredProcedureParameterType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public StoredProcedureParameterType() { + } + + /** + * Creates or finds a StoredProcedureParameterType from its string representation. + * + * @param name a name to look for. + * @return the corresponding StoredProcedureParameterType. + */ + @JsonCreator + public static StoredProcedureParameterType fromString(String name) { + return fromString(name, StoredProcedureParameterType.class); + } + + /** + * Gets known StoredProcedureParameterType values. + * + * @return known StoredProcedureParameterType values. + */ + public static Collection values() { + return values(StoredProcedureParameterType.class); + } +} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SynapseSparkJobDefinitionActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SynapseSparkJobDefinitionActivity.java index 21ae566aa65f..9889105a81fc 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SynapseSparkJobDefinitionActivity.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SynapseSparkJobDefinitionActivity.java @@ -11,7 +11,6 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import java.util.List; -import java.util.Map; /** Execute spark job activity. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @@ -150,33 +149,6 @@ public SynapseSparkJobDefinitionActivity withFile(Object file) { return this; } - /** - * Get the scanFolder property: Scanning subfolders from the root folder of the main definition file, these files - * will be added as reference files. The folders named 'jars', 'pyFiles', 'files' or 'archives' will be scanned, and - * the folders name are case sensitive. Type: boolean (or Expression with resultType boolean). - * - * @return the scanFolder value. - */ - public Object scanFolder() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().scanFolder(); - } - - /** - * Set the scanFolder property: Scanning subfolders from the root folder of the main definition file, these files - * will be added as reference files. The folders named 'jars', 'pyFiles', 'files' or 'archives' will be scanned, and - * the folders name are case sensitive. Type: boolean (or Expression with resultType boolean). - * - * @param scanFolder the scanFolder value to set. - * @return the SynapseSparkJobDefinitionActivity object itself. - */ - public SynapseSparkJobDefinitionActivity withScanFolder(Object scanFolder) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SynapseSparkJobActivityTypeProperties(); - } - this.innerTypeProperties().withScanFolder(scanFolder); - return this; - } - /** * Get the className property: The fully-qualified identifier or the main class that is in the main definition file, * which will override the 'className' of the spark job definition you provide. Type: string (or Expression with @@ -205,8 +177,8 @@ public SynapseSparkJobDefinitionActivity withClassName(Object className) { } /** - * Get the files property: (Deprecated. Please use pythonCodeReference and filesV2) Additional files used for - * reference in the main definition file, which will override the 'files' of the spark job definition you provide. + * Get the files property: Additional files used for reference in the main definition file, which will override the + * 'files' of the spark job definition you provide. * * @return the files value. */ @@ -215,8 +187,8 @@ public List files() { } /** - * Set the files property: (Deprecated. Please use pythonCodeReference and filesV2) Additional files used for - * reference in the main definition file, which will override the 'files' of the spark job definition you provide. + * Set the files property: Additional files used for reference in the main definition file, which will override the + * 'files' of the spark job definition you provide. * * @param files the files value to set. * @return the SynapseSparkJobDefinitionActivity object itself. @@ -229,56 +201,6 @@ public SynapseSparkJobDefinitionActivity withFiles(List files) { return this; } - /** - * Get the pythonCodeReference property: Additional python code files used for reference in the main definition - * file, which will override the 'pyFiles' of the spark job definition you provide. - * - * @return the pythonCodeReference value. - */ - public List pythonCodeReference() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().pythonCodeReference(); - } - - /** - * Set the pythonCodeReference property: Additional python code files used for reference in the main definition - * file, which will override the 'pyFiles' of the spark job definition you provide. - * - * @param pythonCodeReference the pythonCodeReference value to set. - * @return the SynapseSparkJobDefinitionActivity object itself. - */ - public SynapseSparkJobDefinitionActivity withPythonCodeReference(List pythonCodeReference) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SynapseSparkJobActivityTypeProperties(); - } - this.innerTypeProperties().withPythonCodeReference(pythonCodeReference); - return this; - } - - /** - * Get the filesV2 property: Additional files used for reference in the main definition file, which will override - * the 'jars' and 'files' of the spark job definition you provide. - * - * @return the filesV2 value. - */ - public List filesV2() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().filesV2(); - } - - /** - * Set the filesV2 property: Additional files used for reference in the main definition file, which will override - * the 'jars' and 'files' of the spark job definition you provide. - * - * @param filesV2 the filesV2 value to set. - * @return the SynapseSparkJobDefinitionActivity object itself. - */ - public SynapseSparkJobDefinitionActivity withFilesV2(List filesV2) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SynapseSparkJobActivityTypeProperties(); - } - this.innerTypeProperties().withFilesV2(filesV2); - return this; - } - /** * Get the targetBigDataPool property: The name of the big data pool which will be used to execute the spark batch * job, which will override the 'targetBigDataPool' of the spark job definition you provide. @@ -386,22 +308,22 @@ public SynapseSparkJobDefinitionActivity withDriverSize(Object driverSize) { /** * Get the numExecutors property: Number of executors to launch for this job, which will override the 'numExecutors' - * of the spark job definition you provide. Type: integer (or Expression with resultType integer). + * of the spark job definition you provide. * * @return the numExecutors value. */ - public Object numExecutors() { + public Integer numExecutors() { return this.innerTypeProperties() == null ? null : this.innerTypeProperties().numExecutors(); } /** * Set the numExecutors property: Number of executors to launch for this job, which will override the 'numExecutors' - * of the spark job definition you provide. Type: integer (or Expression with resultType integer). + * of the spark job definition you provide. * * @param numExecutors the numExecutors value to set. * @return the SynapseSparkJobDefinitionActivity object itself. */ - public SynapseSparkJobDefinitionActivity withNumExecutors(Object numExecutors) { + public SynapseSparkJobDefinitionActivity withNumExecutors(Integer numExecutors) { if (this.innerTypeProperties() == null) { this.innerTypeProperties = new SynapseSparkJobActivityTypeProperties(); } @@ -409,76 +331,6 @@ public SynapseSparkJobDefinitionActivity withNumExecutors(Object numExecutors) { return this; } - /** - * Get the configurationType property: The type of the spark config. - * - * @return the configurationType value. - */ - public ConfigurationType configurationType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().configurationType(); - } - - /** - * Set the configurationType property: The type of the spark config. - * - * @param configurationType the configurationType value to set. - * @return the SynapseSparkJobDefinitionActivity object itself. - */ - public SynapseSparkJobDefinitionActivity withConfigurationType(ConfigurationType configurationType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SynapseSparkJobActivityTypeProperties(); - } - this.innerTypeProperties().withConfigurationType(configurationType); - return this; - } - - /** - * Get the targetSparkConfiguration property: The spark configuration of the spark job. - * - * @return the targetSparkConfiguration value. - */ - public SparkConfigurationParametrizationReference targetSparkConfiguration() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().targetSparkConfiguration(); - } - - /** - * Set the targetSparkConfiguration property: The spark configuration of the spark job. - * - * @param targetSparkConfiguration the targetSparkConfiguration value to set. - * @return the SynapseSparkJobDefinitionActivity object itself. - */ - public SynapseSparkJobDefinitionActivity withTargetSparkConfiguration( - SparkConfigurationParametrizationReference targetSparkConfiguration) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SynapseSparkJobActivityTypeProperties(); - } - this.innerTypeProperties().withTargetSparkConfiguration(targetSparkConfiguration); - return this; - } - - /** - * Get the sparkConfig property: Spark configuration property. - * - * @return the sparkConfig value. - */ - public Map sparkConfig() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().sparkConfig(); - } - - /** - * Set the sparkConfig property: Spark configuration property. - * - * @param sparkConfig the sparkConfig value to set. - * @return the SynapseSparkJobDefinitionActivity object itself. - */ - public SynapseSparkJobDefinitionActivity withSparkConfig(Map sparkConfig) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SynapseSparkJobActivityTypeProperties(); - } - this.innerTypeProperties().withSparkConfig(sparkConfig); - return this; - } - /** * Validates the instance. * diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SynapseSparkJobReference.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SynapseSparkJobReference.java index 06eb6d757fd4..3c5679221a01 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SynapseSparkJobReference.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SynapseSparkJobReference.java @@ -18,10 +18,10 @@ public final class SynapseSparkJobReference { private SparkJobReferenceType type; /* - * Reference spark job name. Expression with resultType string. + * Reference spark job name. */ @JsonProperty(value = "referenceName", required = true) - private Object referenceName; + private String referenceName; /** Creates an instance of SynapseSparkJobReference class. */ public SynapseSparkJobReference() { @@ -48,21 +48,21 @@ public SynapseSparkJobReference withType(SparkJobReferenceType type) { } /** - * Get the referenceName property: Reference spark job name. Expression with resultType string. + * Get the referenceName property: Reference spark job name. * * @return the referenceName value. */ - public Object referenceName() { + public String referenceName() { return this.referenceName; } /** - * Set the referenceName property: Reference spark job name. Expression with resultType string. + * Set the referenceName property: Reference spark job name. * * @param referenceName the referenceName value to set. * @return the SynapseSparkJobReference object itself. */ - public SynapseSparkJobReference withReferenceName(Object referenceName) { + public SynapseSparkJobReference withReferenceName(String referenceName) { this.referenceName = referenceName; return this; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TabularTranslator.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TabularTranslator.java index badce7e3669e..796062cd57f2 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TabularTranslator.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TabularTranslator.java @@ -45,12 +45,9 @@ public final class TabularTranslator extends CopyTranslator { /* * Column mappings with logical types. Tabular->tabular example: - * [{"source":{"name":"CustomerName","type":"String"},"sink":{"name":"ClientName","type":"String"}}" - + ",{"source":{"name":"CustomerAddress","type":"String"},"sink":{"name":"ClientAddress","type":"String"}}]. + * [{"source":{"name":"CustomerName","type":"String"},"sink":{"name":"ClientName","type":"String"}},{"source":{"name":"CustomerAddress","type":"String"},"sink":{"name":"ClientAddress","type":"String"}}]. * Hierarchical->tabular example: - * [{"source":{"path":"$" - + ".CustomerName","type":"String"},"sink":{"name":"ClientName","type":"String"}},{"source":{"path":"$" - + ".CustomerAddress","type":"String"},"sink":{"name":"ClientAddress","type":"String"}}]. + * [{"source":{"path":"$.CustomerName","type":"String"},"sink":{"name":"ClientName","type":"String"}},{"source":{"path":"$.CustomerAddress","type":"String"},"sink":{"name":"ClientAddress","type":"String"}}]. * Type: object (or Expression with resultType object). */ @JsonProperty(value = "mappings") @@ -165,12 +162,9 @@ public TabularTranslator withMapComplexValuesToString(Object mapComplexValuesToS /** * Get the mappings property: Column mappings with logical types. Tabular->tabular example: - * [{"source":{"name":"CustomerName","type":"String"},"sink":{"name":"ClientName","type":"String"}}" - + ",{"source":{"name":"CustomerAddress","type":"String"},"sink":{"name":"ClientAddress","type":"String"}}]. + * [{"source":{"name":"CustomerName","type":"String"},"sink":{"name":"ClientName","type":"String"}},{"source":{"name":"CustomerAddress","type":"String"},"sink":{"name":"ClientAddress","type":"String"}}]. * Hierarchical->tabular example: - * [{"source":{"path":"$" - + ".CustomerName","type":"String"},"sink":{"name":"ClientName","type":"String"}},{"source":{"path":"$" - + ".CustomerAddress","type":"String"},"sink":{"name":"ClientAddress","type":"String"}}]. + * [{"source":{"path":"$.CustomerName","type":"String"},"sink":{"name":"ClientName","type":"String"}},{"source":{"path":"$.CustomerAddress","type":"String"},"sink":{"name":"ClientAddress","type":"String"}}]. * Type: object (or Expression with resultType object). * * @return the mappings value. @@ -181,12 +175,9 @@ public Object mappings() { /** * Set the mappings property: Column mappings with logical types. Tabular->tabular example: - * [{"source":{"name":"CustomerName","type":"String"},"sink":{"name":"ClientName","type":"String"}}" - + ",{"source":{"name":"CustomerAddress","type":"String"},"sink":{"name":"ClientAddress","type":"String"}}]. + * [{"source":{"name":"CustomerName","type":"String"},"sink":{"name":"ClientName","type":"String"}},{"source":{"name":"CustomerAddress","type":"String"},"sink":{"name":"ClientAddress","type":"String"}}]. * Hierarchical->tabular example: - * [{"source":{"path":"$" - + ".CustomerName","type":"String"},"sink":{"name":"ClientName","type":"String"}},{"source":{"path":"$" - + ".CustomerAddress","type":"String"},"sink":{"name":"ClientAddress","type":"String"}}]. + * [{"source":{"path":"$.CustomerName","type":"String"},"sink":{"name":"ClientName","type":"String"}},{"source":{"path":"$.CustomerAddress","type":"String"},"sink":{"name":"ClientAddress","type":"String"}}]. * Type: object (or Expression with resultType object). * * @param mappings the mappings value to set. diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/CredentialOperationsCreateOrUpdateSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/CredentialOperationsCreateOrUpdateSamples.java deleted file mode 100644 index 46e2e3300c26..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/CredentialOperationsCreateOrUpdateSamples.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.resourcemanager.datafactory.models.ManagedIdentityCredential; - -/** Samples for CredentialOperations CreateOrUpdate. */ -public final class CredentialOperationsCreateOrUpdateSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Credentials_Create.json - */ - /** - * Sample code: Credentials_Create. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void credentialsCreate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .credentialOperations() - .define("exampleCredential") - .withExistingFactory("exampleResourceGroup", "exampleFactoryName") - .withProperties( - new ManagedIdentityCredential() - .withResourceId( - "/subscriptions/12345678-1234-1234-1234-12345678abc/resourcegroups/exampleResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleUami")) - .create(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/CredentialOperationsDeleteSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/CredentialOperationsDeleteSamples.java deleted file mode 100644 index be52c747a620..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/CredentialOperationsDeleteSamples.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; - -/** Samples for CredentialOperations Delete. */ -public final class CredentialOperationsDeleteSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Credentials_Delete.json - */ - /** - * Sample code: Credentials_Delete. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void credentialsDelete(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .credentialOperations() - .deleteWithResponse( - "exampleResourceGroup", "exampleFactoryName", "exampleCredential", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/CredentialOperationsGetSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/CredentialOperationsGetSamples.java deleted file mode 100644 index 9d25bc844ba5..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/CredentialOperationsGetSamples.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; - -/** Samples for CredentialOperations Get. */ -public final class CredentialOperationsGetSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Credentials_Get.json - */ - /** - * Sample code: Credentials_Get. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void credentialsGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .credentialOperations() - .getWithResponse( - "exampleResourceGroup", - "exampleFactoryName", - "exampleCredential", - null, - com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/CredentialOperationsListByFactorySamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/CredentialOperationsListByFactorySamples.java deleted file mode 100644 index 144e3b1ae646..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/CredentialOperationsListByFactorySamples.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; - -/** Samples for CredentialOperations ListByFactory. */ -public final class CredentialOperationsListByFactorySamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Credentials_ListByFactory.json - */ - /** - * Sample code: Credentials_ListByFactory. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void credentialsListByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .credentialOperations() - .listByFactory("exampleResourceGroup", "exampleFactoryName", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowsCreateOrUpdateSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowsCreateOrUpdateSamples.java index d892cb6d6d0d..638089498bae 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowsCreateOrUpdateSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowsCreateOrUpdateSamples.java @@ -49,32 +49,19 @@ public static void dataFlowsCreate(com.azure.resourcemanager.datafactory.DataFac new DataFlowSink() .withName("CADSink") .withDataset(new DatasetReference().withReferenceName("CADOutput")))) - .withScriptLines( - Arrays - .asList( - "source(output(", - "PreviousConversionRate as double,", - "Country as string,", - "DateTime1 as string,", - "CurrentConversionRate as double", - "),", - "allowSchemaDrift: false,", - "validateSchema: false) ~> USDCurrency", - "source(output(", - "PreviousConversionRate as double,", - "Country as string,", - "DateTime1 as string,", - "CurrentConversionRate as double", - "),", - "allowSchemaDrift: true,", - "validateSchema: false) ~> CADSource", - "USDCurrency, CADSource union(byName: true)~> Union", - "Union derive(NewCurrencyRate = round(CurrentConversionRate*1.25)) ~>" - + " NewCurrencyColumn", - "NewCurrencyColumn split(Country == 'USD',", - "Country == 'CAD',disjoint: false) ~> ConditionalSplit1@(USD, CAD)", - "ConditionalSplit1@USD sink(saveMode:'overwrite' ) ~> USDSink", - "ConditionalSplit1@CAD sink(saveMode:'overwrite' ) ~> CADSink"))) + .withScript( + "source(output(PreviousConversionRate as double,Country as string,DateTime1 as" + + " string,CurrentConversionRate as double),allowSchemaDrift: false,validateSchema: false)" + + " ~> USDCurrency\n" + + "source(output(PreviousConversionRate as double,Country as string,DateTime1 as" + + " string,CurrentConversionRate as double),allowSchemaDrift: true,validateSchema: false)" + + " ~> CADSource\n" + + "USDCurrency, CADSource union(byName: true)~> Union\n" + + "Union derive(NewCurrencyRate = round(CurrentConversionRate*1.25)) ~> NewCurrencyColumn\n" + + "NewCurrencyColumn split(Country == 'USD',Country == 'CAD',disjoint: false) ~>" + + " ConditionalSplit1@(USD, CAD)\n" + + "ConditionalSplit1@USD sink(saveMode:'overwrite' ) ~> USDSink\n" + + "ConditionalSplit1@CAD sink(saveMode:'overwrite' ) ~> CADSink")) .create(); } @@ -122,32 +109,19 @@ public static void dataFlowsUpdate(com.azure.resourcemanager.datafactory.DataFac new DataFlowSink() .withName("CADSink") .withDataset(new DatasetReference().withReferenceName("CADOutput")))) - .withScriptLines( - Arrays - .asList( - "source(output(", - "PreviousConversionRate as double,", - "Country as string,", - "DateTime1 as string,", - "CurrentConversionRate as double", - "),", - "allowSchemaDrift: false,", - "validateSchema: false) ~> USDCurrency", - "source(output(", - "PreviousConversionRate as double,", - "Country as string,", - "DateTime1 as string,", - "CurrentConversionRate as double", - "),", - "allowSchemaDrift: true,", - "validateSchema: false) ~> CADSource", - "USDCurrency, CADSource union(byName: true)~> Union", - "Union derive(NewCurrencyRate = round(CurrentConversionRate*1.25)) ~>" - + " NewCurrencyColumn", - "NewCurrencyColumn split(Country == 'USD',", - "Country == 'CAD',disjoint: false) ~> ConditionalSplit1@(USD, CAD)", - "ConditionalSplit1@USD sink(saveMode:'overwrite' ) ~> USDSink", - "ConditionalSplit1@CAD sink(saveMode:'overwrite' ) ~> CADSink"))) + .withScript( + "source(output(PreviousConversionRate as double,Country as string,DateTime1 as" + + " string,CurrentConversionRate as double),allowSchemaDrift: false,validateSchema: false)" + + " ~> USDCurrency\n" + + "source(output(PreviousConversionRate as double,Country as string,DateTime1 as" + + " string,CurrentConversionRate as double),allowSchemaDrift: true,validateSchema: false)" + + " ~> CADSource\n" + + "USDCurrency, CADSource union(byName: true)~> Union\n" + + "Union derive(NewCurrencyRate = round(CurrentConversionRate*1.25)) ~> NewCurrencyColumn\n" + + "NewCurrencyColumn split(Country == 'USD',Country == 'CAD',disjoint: false) ~>" + + " ConditionalSplit1@(USD, CAD)\n" + + "ConditionalSplit1@USD sink(saveMode:'overwrite' ) ~> USDSink\n" + + "ConditionalSplit1@CAD sink(saveMode:'overwrite' ) ~> CADSink")) .apply(); } }