Skip to content

Commit

Permalink
CodeGen from PR 17810 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
[Azure Data Factory] Support rest-based connectors in ADF (I) (Azure#17810)

* Enable excel in public swagger

* update

* rollback dataflow change

* Support rest-based connectors in ADF (I)

* update

* Update

Co-authored-by: zhanyu2014 <zhanyu@microsoft.com>
  • Loading branch information
SDKAuto and zhanyu2024 committed Feb 15, 2022
1 parent 5f9614d commit 2e7877e
Show file tree
Hide file tree
Showing 13 changed files with 1,443 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release History

## 1.0.0-beta.1 (2022-02-15)

- 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).

## 1.0.0-beta.11 (2022-02-14)

- 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).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ public DataFactoryManager authenticate(TokenCredential credential, AzureProfile
.append("-")
.append("com.azure.resourcemanager.datafactory")
.append("/")
.append("1.0.0-beta.11");
.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
@@ -0,0 +1,122 @@
// Copyright (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.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Quickbase linked service type properties. */
@Fluent
public final class QuickbaseLinkedServiceTypeProperties {
@JsonIgnore private final ClientLogger logger = new ClientLogger(QuickbaseLinkedServiceTypeProperties.class);

/*
* The url to connect Quickbase source. Type: string (or Expression with
* resultType string).
*/
@JsonProperty(value = "url", required = true)
private Object url;

/*
* The user token for the Quickbase source.
*/
@JsonProperty(value = "userToken", required = true)
private SecretBase userToken;

/*
* 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;

/**
* Get the url property: The url to connect Quickbase source. Type: string (or Expression with resultType string).
*
* @return the url value.
*/
public Object url() {
return this.url;
}

/**
* Set the url property: The url to connect Quickbase source. Type: string (or Expression with resultType string).
*
* @param url the url value to set.
* @return the QuickbaseLinkedServiceTypeProperties object itself.
*/
public QuickbaseLinkedServiceTypeProperties withUrl(Object url) {
this.url = url;
return this;
}

/**
* Get the userToken property: The user token for the Quickbase source.
*
* @return the userToken value.
*/
public SecretBase userToken() {
return this.userToken;
}

/**
* Set the userToken property: The user token for the Quickbase source.
*
* @param userToken the userToken value to set.
* @return the QuickbaseLinkedServiceTypeProperties object itself.
*/
public QuickbaseLinkedServiceTypeProperties withUserToken(SecretBase userToken) {
this.userToken = userToken;
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 QuickbaseLinkedServiceTypeProperties object itself.
*/
public QuickbaseLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) {
this.encryptedCredential = encryptedCredential;
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 QuickbaseLinkedServiceTypeProperties"));
}
if (userToken() == null) {
throw logger
.logExceptionAsError(
new IllegalArgumentException(
"Missing required property userToken in model QuickbaseLinkedServiceTypeProperties"));
} else {
userToken().validate();
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
// Copyright (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.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Smartsheet linked service type properties. */
@Fluent
public final class SmartsheetLinkedServiceTypeProperties {
@JsonIgnore private final ClientLogger logger = new ClientLogger(SmartsheetLinkedServiceTypeProperties.class);

/*
* The api token for the Smartsheet 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;

/**
* Get the apiToken property: The api token for the Smartsheet source.
*
* @return the apiToken value.
*/
public SecretBase apiToken() {
return this.apiToken;
}

/**
* Set the apiToken property: The api token for the Smartsheet source.
*
* @param apiToken the apiToken value to set.
* @return the SmartsheetLinkedServiceTypeProperties object itself.
*/
public SmartsheetLinkedServiceTypeProperties 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 SmartsheetLinkedServiceTypeProperties object itself.
*/
public SmartsheetLinkedServiceTypeProperties 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 SmartsheetLinkedServiceTypeProperties"));
} else {
apiToken().validate();
}
}
}
Loading

0 comments on commit 2e7877e

Please sign in to comment.