Skip to content

Commit

Permalink
CodeGen from PR 26384 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Support ParquetReadSettings In DataFactory And Synapse For Bug Fix (Azure#26384)

* [Synapse]Fix Credential OperationId Not UnifiedIssue

* Revert "[Synapse]Fix Credential OperationId Not UnifiedIssue"

This reverts commit 83eef9f5a22bc7796d8b5ad51cd2077d2ac8a0e0.

* Support ParquetReadSettings In ADF And Synapse
  • Loading branch information
SDKAuto committed Oct 30, 2023
1 parent 8bae891 commit b6f5d70
Show file tree
Hide file tree
Showing 783 changed files with 5,657 additions and 50,723 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Release History

## 1.0.0-beta.24 (Unreleased)
## 1.0.0-beta.1 (2023-10-30)

- 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
6 changes: 3 additions & 3 deletions sdk/datafactory/azure-resourcemanager-datafactory/README.md
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.23</version>
<version>1.0.0-beta.24</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand All @@ -45,7 +45,7 @@ Azure Management Libraries require a `TokenCredential` implementation for authen

### Authentication

By default, Azure Active Directory token authentication depends on correct configuration of the following environment variables.
By default, Microsoft Entra ID token authentication depends on correct configuration of the following environment variables.

- `AZURE_CLIENT_ID` for Azure client ID.
- `AZURE_TENANT_ID` for Azure tenant ID.
Expand Down Expand Up @@ -181,7 +181,7 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m
<!-- LINKS -->
[survey]: https://microsoft.qualtrics.com/jfe/form/SV_ehN0lIk2FKEBkwd?Q_CHL=DOCS
[docs]: https://azure.github.io/azure-sdk-for-java/
[jdk]: https://docs.microsoft.com/java/azure/jdk/
[jdk]: https://learn.microsoft.com/azure/developer/java/fundamentals/
[azure_subscription]: https://azure.microsoft.com/free/
[azure_identity]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/identity/azure-identity
[azure_core_http_netty]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/core/azure-core-http-netty
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ public DataFactoryManager authenticate(TokenCredential credential, AzureProfile
.append("-")
.append("com.azure.resourcemanager.datafactory")
.append("/")
.append("1.0.0-beta.23");
.append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,6 @@
/** Google AdWords service linked service properties. */
@Fluent
public final class GoogleAdWordsLinkedServiceTypeProperties {
/*
* Properties used to connect to GoogleAds. It is mutually exclusive with any other properties in the linked
* service. Type: object.
*/
@JsonProperty(value = "connectionProperties")
private Object connectionProperties;

/*
* The Client customer ID of the AdWords account that you want to fetch report data for. Type: string (or
* Expression with resultType string).
Expand Down Expand Up @@ -66,26 +59,34 @@ public final class GoogleAdWordsLinkedServiceTypeProperties {
private Object email;

/*
* The full path to the .p12 key file that is used to authenticate the service account email address and can only
* be used on self-hosted IR. Type: string (or Expression with resultType string).
* The private key that is used to authenticate the service account email address and can only be used on
* self-hosted IR.
*/
@JsonProperty(value = "keyFilePath")
private Object keyFilePath;
@JsonProperty(value = "privateKey")
private SecretBase privateKey;

/*
* The full path of the .pem file containing trusted CA certificates for verifying the server when connecting over
* SSL. This property can only be set when using SSL on self-hosted IR. The default value is the cacerts.pem file
* installed with the IR. Type: string (or Expression with resultType string).
* The customer ID of the Google Ads Manager account through which you want to fetch report data of specific
* Customer. Type: string (or Expression with resultType string).
*/
@JsonProperty(value = "trustedCertPath")
private Object trustedCertPath;
@JsonProperty(value = "loginCustomerID")
private Object loginCustomerId;

/*
* Specifies whether to use a CA certificate from the system trust store or from a specified PEM file. The default
* value is false. Type: boolean (or Expression with resultType boolean).
* The Google Ads API major version such as v14. The supported major versions could be found on
* https://developers.google.com/google-ads/api/docs/sunset-dates#timetable. Type: string (or Expression with
* resultType string).
*/
@JsonProperty(value = "useSystemTrustStore")
private Object useSystemTrustStore;
@JsonProperty(value = "googleAdsApiVersion")
private Object googleAdsApiVersion;

/*
* Specifies whether to use the legacy data type mappings, which maps float, int32 and int64 from Google to string.
* Do not set this to true unless you want to keep backward compatibility with legacy driver's data type mappings.
* Type: boolean (or Expression with resultType boolean).
*/
@JsonProperty(value = "supportLegacyDataTypes")
private Object supportLegacyDataTypes;

/*
* The encrypted credential used for authentication. Credentials are encrypted using the integration runtime
Expand All @@ -98,28 +99,6 @@ public final class GoogleAdWordsLinkedServiceTypeProperties {
public GoogleAdWordsLinkedServiceTypeProperties() {
}

/**
* Get the connectionProperties property: Properties used to connect to GoogleAds. It is mutually exclusive with any
* other properties in the linked service. Type: object.
*
* @return the connectionProperties value.
*/
public Object connectionProperties() {
return this.connectionProperties;
}

/**
* Set the connectionProperties property: Properties used to connect to GoogleAds. It is mutually exclusive with any
* other properties in the linked service. Type: object.
*
* @param connectionProperties the connectionProperties value to set.
* @return the GoogleAdWordsLinkedServiceTypeProperties object itself.
*/
public GoogleAdWordsLinkedServiceTypeProperties withConnectionProperties(Object connectionProperties) {
this.connectionProperties = connectionProperties;
return this;
}

/**
* Get the clientCustomerId property: The Client customer ID of the AdWords account that you want to fetch report
* data for. Type: string (or Expression with resultType string).
Expand Down Expand Up @@ -274,70 +253,94 @@ public GoogleAdWordsLinkedServiceTypeProperties withEmail(Object email) {
}

/**
* Get the keyFilePath property: The full path to the .p12 key file that is used to authenticate the service account
* email address and can only be used on self-hosted IR. Type: string (or Expression with resultType string).
* Get the privateKey property: The private key that is used to authenticate the service account email address and
* can only be used on self-hosted IR.
*
* @return the keyFilePath value.
* @return the privateKey value.
*/
public Object keyFilePath() {
return this.keyFilePath;
public SecretBase privateKey() {
return this.privateKey;
}

/**
* Set the keyFilePath property: The full path to the .p12 key file that is used to authenticate the service account
* email address and can only be used on self-hosted IR. Type: string (or Expression with resultType string).
* Set the privateKey property: The private key that is used to authenticate the service account email address and
* can only be used on self-hosted IR.
*
* @param keyFilePath the keyFilePath value to set.
* @param privateKey the privateKey value to set.
* @return the GoogleAdWordsLinkedServiceTypeProperties object itself.
*/
public GoogleAdWordsLinkedServiceTypeProperties withKeyFilePath(Object keyFilePath) {
this.keyFilePath = keyFilePath;
public GoogleAdWordsLinkedServiceTypeProperties withPrivateKey(SecretBase privateKey) {
this.privateKey = privateKey;
return this;
}

/**
* Get the trustedCertPath property: The full path of the .pem file containing trusted CA certificates for verifying
* the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default
* value is the cacerts.pem file installed with the IR. Type: string (or Expression with resultType string).
* Get the loginCustomerId property: The customer ID of the Google Ads Manager account through which you want to
* fetch report data of specific Customer. Type: string (or Expression with resultType string).
*
* @return the trustedCertPath value.
* @return the loginCustomerId value.
*/
public Object trustedCertPath() {
return this.trustedCertPath;
public Object loginCustomerId() {
return this.loginCustomerId;
}

/**
* Set the trustedCertPath property: The full path of the .pem file containing trusted CA certificates for verifying
* the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default
* value is the cacerts.pem file installed with the IR. Type: string (or Expression with resultType string).
* Set the loginCustomerId property: The customer ID of the Google Ads Manager account through which you want to
* fetch report data of specific Customer. Type: string (or Expression with resultType string).
*
* @param trustedCertPath the trustedCertPath value to set.
* @param loginCustomerId the loginCustomerId value to set.
* @return the GoogleAdWordsLinkedServiceTypeProperties object itself.
*/
public GoogleAdWordsLinkedServiceTypeProperties withTrustedCertPath(Object trustedCertPath) {
this.trustedCertPath = trustedCertPath;
public GoogleAdWordsLinkedServiceTypeProperties withLoginCustomerId(Object loginCustomerId) {
this.loginCustomerId = loginCustomerId;
return this;
}

/**
* Get the useSystemTrustStore property: Specifies whether to use a CA certificate from the system trust store or
* from a specified PEM file. The default value is false. Type: boolean (or Expression with resultType boolean).
* Get the googleAdsApiVersion property: The Google Ads API major version such as v14. The supported major versions
* could be found on https://developers.google.com/google-ads/api/docs/sunset-dates#timetable. Type: string (or
* Expression with resultType string).
*
* @return the useSystemTrustStore value.
* @return the googleAdsApiVersion value.
*/
public Object useSystemTrustStore() {
return this.useSystemTrustStore;
public Object googleAdsApiVersion() {
return this.googleAdsApiVersion;
}

/**
* Set the useSystemTrustStore property: Specifies whether to use a CA certificate from the system trust store or
* from a specified PEM file. The default value is false. Type: boolean (or Expression with resultType boolean).
* Set the googleAdsApiVersion property: The Google Ads API major version such as v14. The supported major versions
* could be found on https://developers.google.com/google-ads/api/docs/sunset-dates#timetable. Type: string (or
* Expression with resultType string).
*
* @param useSystemTrustStore the useSystemTrustStore value to set.
* @param googleAdsApiVersion the googleAdsApiVersion value to set.
* @return the GoogleAdWordsLinkedServiceTypeProperties object itself.
*/
public GoogleAdWordsLinkedServiceTypeProperties withUseSystemTrustStore(Object useSystemTrustStore) {
this.useSystemTrustStore = useSystemTrustStore;
public GoogleAdWordsLinkedServiceTypeProperties withGoogleAdsApiVersion(Object googleAdsApiVersion) {
this.googleAdsApiVersion = googleAdsApiVersion;
return this;
}

/**
* Get the supportLegacyDataTypes property: Specifies whether to use the legacy data type mappings, which maps
* float, int32 and int64 from Google to string. Do not set this to true unless you want to keep backward
* compatibility with legacy driver's data type mappings. Type: boolean (or Expression with resultType boolean).
*
* @return the supportLegacyDataTypes value.
*/
public Object supportLegacyDataTypes() {
return this.supportLegacyDataTypes;
}

/**
* Set the supportLegacyDataTypes property: Specifies whether to use the legacy data type mappings, which maps
* float, int32 and int64 from Google to string. Do not set this to true unless you want to keep backward
* compatibility with legacy driver's data type mappings. Type: boolean (or Expression with resultType boolean).
*
* @param supportLegacyDataTypes the supportLegacyDataTypes value to set.
* @return the GoogleAdWordsLinkedServiceTypeProperties object itself.
*/
public GoogleAdWordsLinkedServiceTypeProperties withSupportLegacyDataTypes(Object supportLegacyDataTypes) {
this.supportLegacyDataTypes = supportLegacyDataTypes;
return this;
}

Expand Down Expand Up @@ -378,5 +381,8 @@ public void validate() {
if (clientSecret() != null) {
clientSecret().validate();
}
if (privateKey() != null) {
privateKey().validate();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
import reactor.core.publisher.Flux;

final class Utils {
private Utils() {
}

static String getValueFromIdByName(String id, String name) {
if (id == null) {
return null;
Expand Down Expand Up @@ -60,7 +63,7 @@ static String getValueFromIdByParameterName(String id, String pathTemplate, Stri
segments.add(idSegment);
idItrReverted.forEachRemaining(segments::add);
Collections.reverse(segments);
if (segments.size() > 0 && segments.get(0).isEmpty()) {
if (!segments.isEmpty() && segments.get(0).isEmpty()) {
segments.remove(0);
}
return String.join("/", segments);
Expand All @@ -74,7 +77,7 @@ static String getValueFromIdByParameterName(String id, String pathTemplate, Stri
}

static <T, S> PagedIterable<S> mapPage(PagedIterable<T> pageIterable, Function<T, S> mapper) {
return new PagedIterableImpl<T, S>(pageIterable, mapper);
return new PagedIterableImpl<>(pageIterable, mapper);
}

private static final class PagedIterableImpl<T, S> extends PagedIterable<S> {
Expand Down Expand Up @@ -133,30 +136,27 @@ public Stream<PagedResponse<S>> streamByPage(String continuationToken, int prefe

@Override
public Iterator<S> iterator() {
return new IteratorImpl<T, S>(pagedIterable.iterator(), mapper);
return new IteratorImpl<>(pagedIterable.iterator(), mapper);
}

@Override
public Iterable<PagedResponse<S>> iterableByPage() {
return new IterableImpl<PagedResponse<T>, PagedResponse<S>>(pagedIterable.iterableByPage(), pageMapper);
return new IterableImpl<>(pagedIterable.iterableByPage(), pageMapper);
}

@Override
public Iterable<PagedResponse<S>> iterableByPage(String continuationToken) {
return new IterableImpl<PagedResponse<T>, PagedResponse<S>>(
pagedIterable.iterableByPage(continuationToken), pageMapper);
return new IterableImpl<>(pagedIterable.iterableByPage(continuationToken), pageMapper);
}

@Override
public Iterable<PagedResponse<S>> iterableByPage(int preferredPageSize) {
return new IterableImpl<PagedResponse<T>, PagedResponse<S>>(
pagedIterable.iterableByPage(preferredPageSize), pageMapper);
return new IterableImpl<>(pagedIterable.iterableByPage(preferredPageSize), pageMapper);
}

@Override
public Iterable<PagedResponse<S>> iterableByPage(String continuationToken, int preferredPageSize) {
return new IterableImpl<PagedResponse<T>, PagedResponse<S>>(
pagedIterable.iterableByPage(continuationToken, preferredPageSize), pageMapper);
return new IterableImpl<>(pagedIterable.iterableByPage(continuationToken, preferredPageSize), pageMapper);
}
}

Expand Down Expand Up @@ -198,7 +198,7 @@ private IterableImpl(Iterable<T> iterable, Function<T, S> mapper) {

@Override
public Iterator<S> iterator() {
return new IteratorImpl<T, S>(iterable.iterator(), mapper);
return new IteratorImpl<>(iterable.iterator(), mapper);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
defaultImpl = FormatReadSettings.class)
@JsonTypeName("FormatReadSettings")
@JsonSubTypes({
@JsonSubTypes.Type(name = "ParquetReadSettings", value = ParquetReadSettings.class),
@JsonSubTypes.Type(name = "DelimitedTextReadSettings", value = DelimitedTextReadSettings.class),
@JsonSubTypes.Type(name = "JsonReadSettings", value = JsonReadSettings.class),
@JsonSubTypes.Type(name = "XmlReadSettings", value = XmlReadSettings.class),
Expand Down
Loading

0 comments on commit b6f5d70

Please sign in to comment.