Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Various documentation is available to help you get started
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-datafactory</artifactId>
<version>1.0.0-beta.20</version>
<version>1.0.0-beta.21</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(" (")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;

/*
Expand Down Expand Up @@ -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() {
}
Expand Down Expand Up @@ -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();
}
Expand All @@ -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);
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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() {
}
Expand Down Expand Up @@ -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.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -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<AzureStorageAuthenticationType> {
/** 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<AzureStorageAuthenticationType> values() {
return values(AzureStorageAuthenticationType.class);
}
}
Loading