diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/CHANGELOG.md b/sdk/datafactory/azure-resourcemanager-datafactory/CHANGELOG.md index 9a1e4e1e37c0..18b8dc7d0778 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.21 (Unreleased) +## 1.0.0-beta.1 (2023-02-20) + +- 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 fe35ac03e5a0..69b938254977 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.20 + 1.0.0-beta.21 ``` [//]: # ({x-version-update-end}) 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 5fe3be23f802..b0053ea4665c 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 @@ -290,7 +290,7 @@ public DataFactoryManager authenticate(TokenCredential credential, AzureProfile .append("-") .append("com.azure.resourcemanager.datafactory") .append("/") - .append("1.0.0-beta.20"); + .append("1.0.0-beta.1"); if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) { userAgentBuilder .append(" (") diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureBlobFSLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureBlobFSLinkedServiceTypeProperties.java index 416672df4054..3343f657b628 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,7 +5,6 @@ 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; @@ -16,7 +15,7 @@ public final class AzureBlobFSLinkedServiceTypeProperties { /* * Endpoint for the Azure Data Lake Storage Gen2 service. Type: string (or Expression with resultType string). */ - @JsonProperty(value = "url", required = true) + @JsonProperty(value = "url") private Object url; /* @@ -82,6 +81,18 @@ 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() { } @@ -314,18 +325,54 @@ 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(); } @@ -335,7 +382,8 @@ 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 6eb21e285ca5..02150fcc15e8 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,6 +6,7 @@ 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; @@ -94,6 +95,19 @@ 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() { } @@ -360,6 +374,49 @@ 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/models/AzureBlobFSLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobFSLinkedService.java index 532e2bfcc86d..6888052e42ec 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,6 +321,54 @@ 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 eac63c9bf667..1c11c9947859 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,6 +364,54 @@ 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/AzureStorageAuthenticationType.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureStorageAuthenticationType.java new file mode 100644 index 000000000000..ddec08071dda --- /dev/null +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureStorageAuthenticationType.java @@ -0,0 +1,56 @@ +// Copyright (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/CopyComputeScaleProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CopyComputeScaleProperties.java new file mode 100644 index 000000000000..26e0999aac24 --- /dev/null +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CopyComputeScaleProperties.java @@ -0,0 +1,119 @@ +// Copyright (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/IntegrationRuntimeComputeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IntegrationRuntimeComputeProperties.java index 658836d7ece9..71421fb70f46 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,6 +52,18 @@ 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. */ @@ -186,6 +198,50 @@ 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. * @@ -227,5 +283,11 @@ 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/PipelineExternalComputeScaleProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PipelineExternalComputeScaleProperties.java new file mode 100644 index 000000000000..22c7ea4d11a3 --- /dev/null +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PipelineExternalComputeScaleProperties.java @@ -0,0 +1,91 @@ +// Copyright (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() { + } +}