Skip to content

Commit c6af8eb

Browse files
author
SDKAuto
committed
CodeGen from PR 29709 in Azure/azure-rest-api-specs
Merge 82babe394d207e7c924dabcdf02b6d1c2ed82b5e into c02b366afa77a3e2a746719cea713b231b4b41bb
1 parent 88ecc89 commit c6af8eb

File tree

1,940 files changed

+70148
-55596
lines changed

Some content is hidden

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

1,940 files changed

+70148
-55596
lines changed

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

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

3-
## 1.0.0-beta.30 (Unreleased)
3+
## 1.0.0-beta.1 (2024-07-17)
4+
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).
46

57
### Features Added
68

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

Lines changed: 5 additions & 8 deletions
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.29</version>
35+
<version>1.0.0-beta.30</version>
3636
</dependency>
3737
```
3838
[//]: # ({x-version-update-end})
@@ -45,15 +45,11 @@ Azure Management Libraries require a `TokenCredential` implementation for authen
4545

4646
### Authentication
4747

48-
By default, Microsoft Entra ID token authentication depends on correct configuration of the following environment variables.
48+
Microsoft Entra ID token authentication relies on the [credential class][azure_identity_credentials] from [Azure Identity][azure_identity] package.
4949

50-
- `AZURE_CLIENT_ID` for Azure client ID.
51-
- `AZURE_TENANT_ID` for Azure tenant ID.
52-
- `AZURE_CLIENT_SECRET` or `AZURE_CLIENT_CERTIFICATE_PATH` for client secret or client certificate.
50+
Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment variable.
5351

54-
In addition, Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment variable.
55-
56-
With above configuration, `azure` client can be authenticated using the following code:
52+
Assuming the use of the `DefaultAzureCredential` credential class, the client can be authenticated using the following code:
5753

5854
```java
5955
AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE);
@@ -184,6 +180,7 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m
184180
[jdk]: https://learn.microsoft.com/azure/developer/java/fundamentals/
185181
[azure_subscription]: https://azure.microsoft.com/free/
186182
[azure_identity]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/identity/azure-identity
183+
[azure_identity_credentials]: https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/identity/azure-identity#credentials
187184
[azure_core_http_netty]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/core/azure-core-http-netty
188185
[authenticate]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/AUTH.md
189186
[design]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/DESIGN.md

sdk/datafactory/azure-resourcemanager-datafactory/pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@
4848
<revapi.skip>true</revapi.skip>
4949
</properties>
5050
<dependencies>
51+
<dependency>
52+
<groupId>com.azure</groupId>
53+
<artifactId>azure-json</artifactId>
54+
<version>1.1.0</version> <!-- {x-version-update;com.azure:azure-json;dependency} -->
55+
</dependency>
5156
<dependency>
5257
<groupId>com.azure</groupId>
5358
<artifactId>azure-core</artifactId>

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
@@ -294,7 +294,7 @@ public DataFactoryManager authenticate(TokenCredential credential, AzureProfile
294294
.append("-")
295295
.append("com.azure.resourcemanager.datafactory")
296296
.append("/")
297-
.append("1.0.0-beta.29");
297+
.append("1.0.0-beta.1");
298298
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
299299
userAgentBuilder.append(" (")
300300
.append(Configuration.getGlobalConfiguration().get("java.version"))

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

Lines changed: 48 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,30 +5,31 @@
55
package com.azure.resourcemanager.datafactory.fluent.models;
66

77
import com.azure.core.annotation.Fluent;
8+
import com.azure.json.JsonReader;
9+
import com.azure.json.JsonSerializable;
10+
import com.azure.json.JsonToken;
11+
import com.azure.json.JsonWriter;
812
import com.azure.resourcemanager.datafactory.models.UserAccessPolicy;
9-
import com.fasterxml.jackson.annotation.JsonProperty;
13+
import java.io.IOException;
1014

1115
/**
1216
* Get Data Plane read only token response definition.
1317
*/
1418
@Fluent
15-
public final class AccessPolicyResponseInner {
19+
public final class AccessPolicyResponseInner implements JsonSerializable<AccessPolicyResponseInner> {
1620
/*
1721
* The user access policy.
1822
*/
19-
@JsonProperty(value = "policy")
2023
private UserAccessPolicy policy;
2124

2225
/*
2326
* Data Plane read only access token.
2427
*/
25-
@JsonProperty(value = "accessToken")
2628
private String accessToken;
2729

2830
/*
2931
* Data Plane service base URL.
3032
*/
31-
@JsonProperty(value = "dataPlaneUrl")
3233
private String dataPlaneUrl;
3334

3435
/**
@@ -107,4 +108,46 @@ public void validate() {
107108
policy().validate();
108109
}
109110
}
111+
112+
/**
113+
* {@inheritDoc}
114+
*/
115+
@Override
116+
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
117+
jsonWriter.writeStartObject();
118+
jsonWriter.writeJsonField("policy", this.policy);
119+
jsonWriter.writeStringField("accessToken", this.accessToken);
120+
jsonWriter.writeStringField("dataPlaneUrl", this.dataPlaneUrl);
121+
return jsonWriter.writeEndObject();
122+
}
123+
124+
/**
125+
* Reads an instance of AccessPolicyResponseInner from the JsonReader.
126+
*
127+
* @param jsonReader The JsonReader being read.
128+
* @return An instance of AccessPolicyResponseInner if the JsonReader was pointing to an instance of it, or null if
129+
* it was pointing to JSON null.
130+
* @throws IOException If an error occurs while reading the AccessPolicyResponseInner.
131+
*/
132+
public static AccessPolicyResponseInner fromJson(JsonReader jsonReader) throws IOException {
133+
return jsonReader.readObject(reader -> {
134+
AccessPolicyResponseInner deserializedAccessPolicyResponseInner = new AccessPolicyResponseInner();
135+
while (reader.nextToken() != JsonToken.END_OBJECT) {
136+
String fieldName = reader.getFieldName();
137+
reader.nextToken();
138+
139+
if ("policy".equals(fieldName)) {
140+
deserializedAccessPolicyResponseInner.policy = UserAccessPolicy.fromJson(reader);
141+
} else if ("accessToken".equals(fieldName)) {
142+
deserializedAccessPolicyResponseInner.accessToken = reader.getString();
143+
} else if ("dataPlaneUrl".equals(fieldName)) {
144+
deserializedAccessPolicyResponseInner.dataPlaneUrl = reader.getString();
145+
} else {
146+
reader.skipChildren();
147+
}
148+
}
149+
150+
return deserializedAccessPolicyResponseInner;
151+
});
152+
}
110153
}

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

Lines changed: 48 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,27 @@
66

77
import com.azure.core.annotation.Fluent;
88
import com.azure.core.util.logging.ClientLogger;
9+
import com.azure.json.JsonReader;
10+
import com.azure.json.JsonSerializable;
11+
import com.azure.json.JsonToken;
12+
import com.azure.json.JsonWriter;
913
import com.azure.resourcemanager.datafactory.models.ActivityRun;
10-
import com.fasterxml.jackson.annotation.JsonProperty;
14+
import java.io.IOException;
1115
import java.util.List;
1216

1317
/**
1418
* A list activity runs.
1519
*/
1620
@Fluent
17-
public final class ActivityRunsQueryResponseInner {
21+
public final class ActivityRunsQueryResponseInner implements JsonSerializable<ActivityRunsQueryResponseInner> {
1822
/*
1923
* List of activity runs.
2024
*/
21-
@JsonProperty(value = "value", required = true)
2225
private List<ActivityRun> value;
2326

2427
/*
2528
* The continuation token for getting the next page of results, if any remaining results exist, null otherwise.
2629
*/
27-
@JsonProperty(value = "continuationToken")
2830
private String continuationToken;
2931

3032
/**
@@ -91,4 +93,46 @@ public void validate() {
9193
}
9294

9395
private static final ClientLogger LOGGER = new ClientLogger(ActivityRunsQueryResponseInner.class);
96+
97+
/**
98+
* {@inheritDoc}
99+
*/
100+
@Override
101+
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
102+
jsonWriter.writeStartObject();
103+
jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element));
104+
jsonWriter.writeStringField("continuationToken", this.continuationToken);
105+
return jsonWriter.writeEndObject();
106+
}
107+
108+
/**
109+
* Reads an instance of ActivityRunsQueryResponseInner from the JsonReader.
110+
*
111+
* @param jsonReader The JsonReader being read.
112+
* @return An instance of ActivityRunsQueryResponseInner if the JsonReader was pointing to an instance of it, or
113+
* null if it was pointing to JSON null.
114+
* @throws IllegalStateException If the deserialized JSON object was missing any required properties.
115+
* @throws IOException If an error occurs while reading the ActivityRunsQueryResponseInner.
116+
*/
117+
public static ActivityRunsQueryResponseInner fromJson(JsonReader jsonReader) throws IOException {
118+
return jsonReader.readObject(reader -> {
119+
ActivityRunsQueryResponseInner deserializedActivityRunsQueryResponseInner
120+
= new ActivityRunsQueryResponseInner();
121+
while (reader.nextToken() != JsonToken.END_OBJECT) {
122+
String fieldName = reader.getFieldName();
123+
reader.nextToken();
124+
125+
if ("value".equals(fieldName)) {
126+
List<ActivityRun> value = reader.readArray(reader1 -> ActivityRun.fromJson(reader1));
127+
deserializedActivityRunsQueryResponseInner.value = value;
128+
} else if ("continuationToken".equals(fieldName)) {
129+
deserializedActivityRunsQueryResponseInner.continuationToken = reader.getString();
130+
} else {
131+
reader.skipChildren();
132+
}
133+
}
134+
135+
return deserializedActivityRunsQueryResponseInner;
136+
});
137+
}
94138
}

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

Lines changed: 44 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,21 @@
55
package com.azure.resourcemanager.datafactory.fluent.models;
66

77
import com.azure.core.annotation.Fluent;
8-
import com.fasterxml.jackson.annotation.JsonProperty;
8+
import com.azure.json.JsonReader;
9+
import com.azure.json.JsonSerializable;
10+
import com.azure.json.JsonToken;
11+
import com.azure.json.JsonWriter;
12+
import java.io.IOException;
913

1014
/**
1115
* Response body structure for starting data flow debug session.
1216
*/
1317
@Fluent
14-
public final class AddDataFlowToDebugSessionResponseInner {
18+
public final class AddDataFlowToDebugSessionResponseInner
19+
implements JsonSerializable<AddDataFlowToDebugSessionResponseInner> {
1520
/*
1621
* The ID of data flow debug job version.
1722
*/
18-
@JsonProperty(value = "jobVersion")
1923
private String jobVersion;
2024

2125
/**
@@ -51,4 +55,41 @@ public AddDataFlowToDebugSessionResponseInner withJobVersion(String jobVersion)
5155
*/
5256
public void validate() {
5357
}
58+
59+
/**
60+
* {@inheritDoc}
61+
*/
62+
@Override
63+
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
64+
jsonWriter.writeStartObject();
65+
jsonWriter.writeStringField("jobVersion", this.jobVersion);
66+
return jsonWriter.writeEndObject();
67+
}
68+
69+
/**
70+
* Reads an instance of AddDataFlowToDebugSessionResponseInner from the JsonReader.
71+
*
72+
* @param jsonReader The JsonReader being read.
73+
* @return An instance of AddDataFlowToDebugSessionResponseInner if the JsonReader was pointing to an instance of
74+
* it, or null if it was pointing to JSON null.
75+
* @throws IOException If an error occurs while reading the AddDataFlowToDebugSessionResponseInner.
76+
*/
77+
public static AddDataFlowToDebugSessionResponseInner fromJson(JsonReader jsonReader) throws IOException {
78+
return jsonReader.readObject(reader -> {
79+
AddDataFlowToDebugSessionResponseInner deserializedAddDataFlowToDebugSessionResponseInner
80+
= new AddDataFlowToDebugSessionResponseInner();
81+
while (reader.nextToken() != JsonToken.END_OBJECT) {
82+
String fieldName = reader.getFieldName();
83+
reader.nextToken();
84+
85+
if ("jobVersion".equals(fieldName)) {
86+
deserializedAddDataFlowToDebugSessionResponseInner.jobVersion = reader.getString();
87+
} else {
88+
reader.skipChildren();
89+
}
90+
}
91+
92+
return deserializedAddDataFlowToDebugSessionResponseInner;
93+
});
94+
}
5495
}

0 commit comments

Comments
 (0)