Skip to content

Commit 9af562d

Browse files
author
SDKAuto
committed
CodeGen from PR 14690 in Azure/azure-rest-api-specs
Merge 12a6f754af1c645862d32ff39377ecac3a20e606 into 7cc0a47e7808f3247c71cda25b7c1da8503272ba
1 parent 787aeb6 commit 9af562d

File tree

55 files changed

+1841
-152
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+1841
-152
lines changed

sdk/datafactory/azure-resourcemanager-datafactory/CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# Release History
22

3-
## 1.0.0-beta.3 (Unreleased)
3+
## 1.0.0-beta.1 (2021-07-28)
44

5+
- 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).
56

67
## 1.0.0-beta.2 (2021-06-16)
78

sdk/datafactory/azure-resourcemanager-datafactory/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
3232
<dependency>
3333
<groupId>com.azure.resourcemanager</groupId>
3434
<artifactId>azure-resourcemanager-datafactory</artifactId>
35-
<version>1.0.0-beta.2</version>
35+
<version>1.0.0-beta.3</version>
3636
</dependency>
3737
```
3838
[//]: # ({x-version-update-end})

sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/DataFactoryManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ public DataFactoryManager authenticate(TokenCredential credential, AzureProfile
249249
.append("-")
250250
.append("com.azure.resourcemanager.datafactory")
251251
.append("/")
252-
.append("1.0.0-beta.2");
252+
.append("1.0.0-beta.1");
253253
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
254254
userAgentBuilder
255255
.append(" (")

sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AvroCompressionCodec.java

Lines changed: 0 additions & 43 deletions
This file was deleted.

sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AvroDataset.java

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,11 @@ public class AvroDataset extends Dataset {
2929
private DatasetLocation location;
3030

3131
/*
32-
* The avroCompressionCodec property.
32+
* The data avroCompressionCodec. Type: string (or Expression with
33+
* resultType string).
3334
*/
3435
@JsonProperty(value = "typeProperties.avroCompressionCodec")
35-
private AvroCompressionCodec avroCompressionCodec;
36+
private Object avroCompressionCodec;
3637

3738
/*
3839
* The avroCompressionLevel property.
@@ -61,21 +62,23 @@ public AvroDataset withLocation(DatasetLocation location) {
6162
}
6263

6364
/**
64-
* Get the avroCompressionCodec property: The avroCompressionCodec property.
65+
* Get the avroCompressionCodec property: The data avroCompressionCodec. Type: string (or Expression with resultType
66+
* string).
6567
*
6668
* @return the avroCompressionCodec value.
6769
*/
68-
public AvroCompressionCodec avroCompressionCodec() {
70+
public Object avroCompressionCodec() {
6971
return this.avroCompressionCodec;
7072
}
7173

7274
/**
73-
* Set the avroCompressionCodec property: The avroCompressionCodec property.
75+
* Set the avroCompressionCodec property: The data avroCompressionCodec. Type: string (or Expression with resultType
76+
* string).
7477
*
7578
* @param avroCompressionCodec the avroCompressionCodec value to set.
7679
* @return the AvroDataset object itself.
7780
*/
78-
public AvroDataset withAvroCompressionCodec(AvroCompressionCodec avroCompressionCodec) {
81+
public AvroDataset withAvroCompressionCodec(Object avroCompressionCodec) {
7982
this.avroCompressionCodec = avroCompressionCodec;
8083
return this;
8184
}

sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AvroFormat.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
package com.azure.resourcemanager.datafactory.models;
66

7-
import com.azure.core.annotation.Immutable;
7+
import com.azure.core.annotation.Fluent;
88
import com.azure.core.util.logging.ClientLogger;
99
import com.fasterxml.jackson.annotation.JsonIgnore;
1010
import com.fasterxml.jackson.annotation.JsonTypeInfo;
@@ -13,7 +13,7 @@
1313
/** The data stored in Avro format. */
1414
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type")
1515
@JsonTypeName("AvroFormat")
16-
@Immutable
16+
@Fluent
1717
public final class AvroFormat extends DatasetStorageFormat {
1818
@JsonIgnore private final ClientLogger logger = new ClientLogger(AvroFormat.class);
1919

sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBatchLinkedService.java

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,12 @@ public class AzureBatchLinkedService extends LinkedService {
6363
@JsonProperty(value = "typeProperties.encryptedCredential")
6464
private Object encryptedCredential;
6565

66+
/*
67+
* The credential reference containing authentication information.
68+
*/
69+
@JsonProperty(value = "typeProperties.credential")
70+
private CredentialReference credential;
71+
6672
/**
6773
* Get the accountName property: The Azure Batch account name. Type: string (or Expression with resultType string).
6874
*
@@ -185,6 +191,26 @@ public AzureBatchLinkedService withEncryptedCredential(Object encryptedCredentia
185191
return this;
186192
}
187193

194+
/**
195+
* Get the credential property: The credential reference containing authentication information.
196+
*
197+
* @return the credential value.
198+
*/
199+
public CredentialReference credential() {
200+
return this.credential;
201+
}
202+
203+
/**
204+
* Set the credential property: The credential reference containing authentication information.
205+
*
206+
* @param credential the credential value to set.
207+
* @return the AzureBatchLinkedService object itself.
208+
*/
209+
public AzureBatchLinkedService withCredential(CredentialReference credential) {
210+
this.credential = credential;
211+
return this;
212+
}
213+
188214
/** {@inheritDoc} */
189215
@Override
190216
public AzureBatchLinkedService withConnectVia(IntegrationRuntimeReference connectVia) {
@@ -250,5 +276,8 @@ public void validate() {
250276
} else {
251277
linkedServiceName().validate();
252278
}
279+
if (credential() != null) {
280+
credential().validate();
281+
}
253282
}
254283
}

sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobFSLinkedService.java

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,12 @@ public class AzureBlobFSLinkedService extends LinkedService {
7575
@JsonProperty(value = "typeProperties.encryptedCredential")
7676
private Object encryptedCredential;
7777

78+
/*
79+
* The credential reference containing authentication information.
80+
*/
81+
@JsonProperty(value = "typeProperties.credential")
82+
private CredentialReference credential;
83+
7884
/**
7985
* Get the url property: Endpoint for the Azure Data Lake Storage Gen2 service. Type: string (or Expression with
8086
* resultType string).
@@ -231,6 +237,26 @@ public AzureBlobFSLinkedService withEncryptedCredential(Object encryptedCredenti
231237
return this;
232238
}
233239

240+
/**
241+
* Get the credential property: The credential reference containing authentication information.
242+
*
243+
* @return the credential value.
244+
*/
245+
public CredentialReference credential() {
246+
return this.credential;
247+
}
248+
249+
/**
250+
* Set the credential property: The credential reference containing authentication information.
251+
*
252+
* @param credential the credential value to set.
253+
* @return the AzureBlobFSLinkedService object itself.
254+
*/
255+
public AzureBlobFSLinkedService withCredential(CredentialReference credential) {
256+
this.credential = credential;
257+
return this;
258+
}
259+
234260
/** {@inheritDoc} */
235261
@Override
236262
public AzureBlobFSLinkedService withConnectVia(IntegrationRuntimeReference connectVia) {
@@ -275,5 +301,8 @@ public void validate() {
275301
if (servicePrincipalKey() != null) {
276302
servicePrincipalKey().validate();
277303
}
304+
if (credential() != null) {
305+
credential().validate();
306+
}
278307
}
279308
}

sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureBlobStorageLinkedService.java

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,12 @@ public class AzureBlobStorageLinkedService extends LinkedService {
103103
@JsonProperty(value = "typeProperties.encryptedCredential")
104104
private String encryptedCredential;
105105

106+
/*
107+
* The credential reference containing authentication information.
108+
*/
109+
@JsonProperty(value = "typeProperties.credential")
110+
private CredentialReference credential;
111+
106112
/**
107113
* Get the connectionString property: The connection string. It is mutually exclusive with sasUri, serviceEndpoint
108114
* property. Type: string, SecureString or AzureKeyVaultSecretReference.
@@ -345,6 +351,26 @@ public AzureBlobStorageLinkedService withEncryptedCredential(String encryptedCre
345351
return this;
346352
}
347353

354+
/**
355+
* Get the credential property: The credential reference containing authentication information.
356+
*
357+
* @return the credential value.
358+
*/
359+
public CredentialReference credential() {
360+
return this.credential;
361+
}
362+
363+
/**
364+
* Set the credential property: The credential reference containing authentication information.
365+
*
366+
* @param credential the credential value to set.
367+
* @return the AzureBlobStorageLinkedService object itself.
368+
*/
369+
public AzureBlobStorageLinkedService withCredential(CredentialReference credential) {
370+
this.credential = credential;
371+
return this;
372+
}
373+
348374
/** {@inheritDoc} */
349375
@Override
350376
public AzureBlobStorageLinkedService withConnectVia(IntegrationRuntimeReference connectVia) {
@@ -390,5 +416,8 @@ public void validate() {
390416
if (servicePrincipalKey() != null) {
391417
servicePrincipalKey().validate();
392418
}
419+
if (credential() != null) {
420+
credential().validate();
421+
}
393422
}
394423
}

sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDataExplorerLinkedService.java

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,12 @@ public class AzureDataExplorerLinkedService extends LinkedService {
5757
@JsonProperty(value = "typeProperties.tenant")
5858
private Object tenant;
5959

60+
/*
61+
* The credential reference containing authentication information.
62+
*/
63+
@JsonProperty(value = "typeProperties.credential")
64+
private CredentialReference credential;
65+
6066
/**
6167
* Get the endpoint property: The endpoint of Azure Data Explorer (the engine's endpoint). URL will be in the format
6268
* https://&lt;clusterName&gt;.&lt;regionName&gt;.kusto.windows.net. Type: string (or Expression with resultType
@@ -165,6 +171,26 @@ public AzureDataExplorerLinkedService withTenant(Object tenant) {
165171
return this;
166172
}
167173

174+
/**
175+
* Get the credential property: The credential reference containing authentication information.
176+
*
177+
* @return the credential value.
178+
*/
179+
public CredentialReference credential() {
180+
return this.credential;
181+
}
182+
183+
/**
184+
* Set the credential property: The credential reference containing authentication information.
185+
*
186+
* @param credential the credential value to set.
187+
* @return the AzureDataExplorerLinkedService object itself.
188+
*/
189+
public AzureDataExplorerLinkedService withCredential(CredentialReference credential) {
190+
this.credential = credential;
191+
return this;
192+
}
193+
168194
/** {@inheritDoc} */
169195
@Override
170196
public AzureDataExplorerLinkedService withConnectVia(IntegrationRuntimeReference connectVia) {
@@ -216,5 +242,8 @@ public void validate() {
216242
new IllegalArgumentException(
217243
"Missing required property database in model AzureDataExplorerLinkedService"));
218244
}
245+
if (credential() != null) {
246+
credential().validate();
247+
}
219248
}
220249
}

0 commit comments

Comments
 (0)