forked from Azure/azure-sdk-for-java
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CodeGen from PR 17810 in Azure/azure-rest-api-specs
[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
1 parent
5f9614d
commit 2e7877e
Showing
13 changed files
with
1,443 additions
and
1 deletion.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
sdk/datafactory/azure-resourcemanager-datafactory/CHANGELOG.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
122 changes: 122 additions & 0 deletions
122
...azure/resourcemanager/datafactory/fluent/models/QuickbaseLinkedServiceTypeProperties.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
} | ||
} | ||
} |
89 changes: 89 additions & 0 deletions
89
...zure/resourcemanager/datafactory/fluent/models/SmartsheetLinkedServiceTypeProperties.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
} | ||
} | ||
} |
Oops, something went wrong.