Skip to content

Commit 798ba70

Browse files
LLC, regen Purview SDKs (Azure#25427)
* regen administration * regen catalog * regen scanning * manual change * changelog
1 parent de9dd2a commit 798ba70

File tree

79 files changed

+1105
-1144
lines changed

Some content is hidden

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

79 files changed

+1105
-1144
lines changed

sdk/purview/azure-analytics-purview-administration/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
## 1.0.0-beta.2 (Unreleased)
44

5+
### Breaking Changes
56

7+
- Merged the `Context` parameter into the `RequestOptions` parameter in methods of clients.
68

79
## 1.0.0-beta.1 (2021-10-15)
810

sdk/purview/azure-analytics-purview-administration/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ AccountsClient client = new PurviewAccountClientBuilder()
7575
.endpoint(System.getenv("ACCOUNT_ENDPOINT"))
7676
.credential(new DefaultAzureCredentialBuilder().build())
7777
.buildAccountsClient();
78-
BinaryData response = client.getAccountPropertiesWithResponse(null, null).getValue();
78+
BinaryData response = client.getAccountPropertiesWithResponse(null).getValue();
7979
```
8080

8181
## Troubleshooting

sdk/purview/azure-analytics-purview-administration/src/main/java/com/azure/analytics/purview/administration/AccountsAsyncClient.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
package com.azure.analytics.purview.administration;
66

77
import com.azure.analytics.purview.administration.implementation.AccountsImpl;
8+
import com.azure.core.annotation.Generated;
89
import com.azure.core.annotation.ReturnType;
910
import com.azure.core.annotation.ServiceClient;
1011
import com.azure.core.annotation.ServiceMethod;
@@ -17,13 +18,14 @@
1718
/** Initializes a new instance of the asynchronous PurviewAccountClient type. */
1819
@ServiceClient(builder = PurviewAccountClientBuilder.class, isAsync = true)
1920
public final class AccountsAsyncClient {
20-
private final AccountsImpl serviceClient;
21+
@Generated private final AccountsImpl serviceClient;
2122

2223
/**
2324
* Initializes an instance of Accounts client.
2425
*
2526
* @param serviceClient the service client implementation.
2627
*/
28+
@Generated
2729
AccountsAsyncClient(AccountsImpl serviceClient) {
2830
this.serviceClient = serviceClient;
2931
}
@@ -115,6 +117,7 @@ public final class AccountsAsyncClient {
115117
* false.
116118
* @return an account.
117119
*/
120+
@Generated
118121
@ServiceMethod(returns = ReturnType.SINGLE)
119122
public Mono<Response<BinaryData>> getAccountPropertiesWithResponse(RequestOptions requestOptions) {
120123
return this.serviceClient.getAccountPropertiesWithResponseAsync(requestOptions);
@@ -216,6 +219,7 @@ public Mono<Response<BinaryData>> getAccountPropertiesWithResponse(RequestOption
216219
* false.
217220
* @return account resource.
218221
*/
222+
@Generated
219223
@ServiceMethod(returns = ReturnType.SINGLE)
220224
public Mono<Response<BinaryData>> updateAccountPropertiesWithResponse(
221225
BinaryData accountUpdateParameters, RequestOptions requestOptions) {
@@ -247,6 +251,7 @@ public Mono<Response<BinaryData>> updateAccountPropertiesWithResponse(
247251
* false.
248252
* @return the Account access keys.
249253
*/
254+
@Generated
250255
@ServiceMethod(returns = ReturnType.SINGLE)
251256
public Mono<Response<BinaryData>> getAccessKeysWithResponse(RequestOptions requestOptions) {
252257
return this.serviceClient.getAccessKeysWithResponseAsync(requestOptions);
@@ -286,6 +291,7 @@ public Mono<Response<BinaryData>> getAccessKeysWithResponse(RequestOptions reque
286291
* false.
287292
* @return the Account access keys.
288293
*/
294+
@Generated
289295
@ServiceMethod(returns = ReturnType.SINGLE)
290296
public Mono<Response<BinaryData>> regenerateAccessKeyWithResponse(
291297
BinaryData keyOptions, RequestOptions requestOptions) {

sdk/purview/azure-analytics-purview-administration/src/main/java/com/azure/analytics/purview/administration/AccountsClient.java

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,26 @@
55
package com.azure.analytics.purview.administration;
66

77
import com.azure.analytics.purview.administration.implementation.AccountsImpl;
8+
import com.azure.core.annotation.Generated;
89
import com.azure.core.annotation.ReturnType;
910
import com.azure.core.annotation.ServiceClient;
1011
import com.azure.core.annotation.ServiceMethod;
1112
import com.azure.core.exception.HttpResponseException;
1213
import com.azure.core.http.rest.RequestOptions;
1314
import com.azure.core.http.rest.Response;
1415
import com.azure.core.util.BinaryData;
15-
import com.azure.core.util.Context;
1616

1717
/** Initializes a new instance of the synchronous PurviewAccountClient type. */
1818
@ServiceClient(builder = PurviewAccountClientBuilder.class)
1919
public final class AccountsClient {
20-
private final AccountsImpl serviceClient;
20+
@Generated private final AccountsImpl serviceClient;
2121

2222
/**
2323
* Initializes an instance of Accounts client.
2424
*
2525
* @param serviceClient the service client implementation.
2626
*/
27+
@Generated
2728
AccountsClient(AccountsImpl serviceClient) {
2829
this.serviceClient = serviceClient;
2930
}
@@ -111,14 +112,14 @@ public final class AccountsClient {
111112
* }</pre>
112113
*
113114
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
114-
* @param context The context to associate with this operation.
115115
* @throws HttpResponseException thrown if status code is 400 or above, if throwOnError in requestOptions is not
116116
* false.
117117
* @return an account.
118118
*/
119+
@Generated
119120
@ServiceMethod(returns = ReturnType.SINGLE)
120-
public Response<BinaryData> getAccountPropertiesWithResponse(RequestOptions requestOptions, Context context) {
121-
return this.serviceClient.getAccountPropertiesWithResponse(requestOptions, context);
121+
public Response<BinaryData> getAccountPropertiesWithResponse(RequestOptions requestOptions) {
122+
return this.serviceClient.getAccountPropertiesWithResponse(requestOptions);
122123
}
123124

124125
/**
@@ -213,15 +214,15 @@ public Response<BinaryData> getAccountPropertiesWithResponse(RequestOptions requ
213214
*
214215
* @param accountUpdateParameters The account properties that can be updated through data plane.
215216
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
216-
* @param context The context to associate with this operation.
217217
* @throws HttpResponseException thrown if status code is 400 or above, if throwOnError in requestOptions is not
218218
* false.
219219
* @return account resource.
220220
*/
221+
@Generated
221222
@ServiceMethod(returns = ReturnType.SINGLE)
222223
public Response<BinaryData> updateAccountPropertiesWithResponse(
223-
BinaryData accountUpdateParameters, RequestOptions requestOptions, Context context) {
224-
return this.serviceClient.updateAccountPropertiesWithResponse(accountUpdateParameters, requestOptions, context);
224+
BinaryData accountUpdateParameters, RequestOptions requestOptions) {
225+
return this.serviceClient.updateAccountPropertiesWithResponse(accountUpdateParameters, requestOptions);
225226
}
226227

227228
/**
@@ -245,14 +246,14 @@ public Response<BinaryData> updateAccountPropertiesWithResponse(
245246
* }</pre>
246247
*
247248
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
248-
* @param context The context to associate with this operation.
249249
* @throws HttpResponseException thrown if status code is 400 or above, if throwOnError in requestOptions is not
250250
* false.
251251
* @return the Account access keys.
252252
*/
253+
@Generated
253254
@ServiceMethod(returns = ReturnType.SINGLE)
254-
public Response<BinaryData> getAccessKeysWithResponse(RequestOptions requestOptions, Context context) {
255-
return this.serviceClient.getAccessKeysWithResponse(requestOptions, context);
255+
public Response<BinaryData> getAccessKeysWithResponse(RequestOptions requestOptions) {
256+
return this.serviceClient.getAccessKeysWithResponse(requestOptions);
256257
}
257258

258259
/**
@@ -285,14 +286,13 @@ public Response<BinaryData> getAccessKeysWithResponse(RequestOptions requestOpti
285286
*
286287
* @param keyOptions A access key options used for regeneration.
287288
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
288-
* @param context The context to associate with this operation.
289289
* @throws HttpResponseException thrown if status code is 400 or above, if throwOnError in requestOptions is not
290290
* false.
291291
* @return the Account access keys.
292292
*/
293+
@Generated
293294
@ServiceMethod(returns = ReturnType.SINGLE)
294-
public Response<BinaryData> regenerateAccessKeyWithResponse(
295-
BinaryData keyOptions, RequestOptions requestOptions, Context context) {
296-
return this.serviceClient.regenerateAccessKeyWithResponse(keyOptions, requestOptions, context);
295+
public Response<BinaryData> regenerateAccessKeyWithResponse(BinaryData keyOptions, RequestOptions requestOptions) {
296+
return this.serviceClient.regenerateAccessKeyWithResponse(keyOptions, requestOptions);
297297
}
298298
}

sdk/purview/azure-analytics-purview-administration/src/main/java/com/azure/analytics/purview/administration/CollectionsAsyncClient.java

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
package com.azure.analytics.purview.administration;
66

77
import com.azure.analytics.purview.administration.implementation.CollectionsImpl;
8+
import com.azure.core.annotation.Generated;
89
import com.azure.core.annotation.ReturnType;
910
import com.azure.core.annotation.ServiceClient;
1011
import com.azure.core.annotation.ServiceMethod;
@@ -18,13 +19,14 @@
1819
/** Initializes a new instance of the asynchronous PurviewAccountClient type. */
1920
@ServiceClient(builder = PurviewAccountClientBuilder.class, isAsync = true)
2021
public final class CollectionsAsyncClient {
21-
private final CollectionsImpl serviceClient;
22+
@Generated private final CollectionsImpl serviceClient;
2223

2324
/**
2425
* Initializes an instance of Collections client.
2526
*
2627
* @param serviceClient the service client implementation.
2728
*/
29+
@Generated
2830
CollectionsAsyncClient(CollectionsImpl serviceClient) {
2931
this.serviceClient = serviceClient;
3032
}
@@ -69,6 +71,7 @@ public final class CollectionsAsyncClient {
6971
* false.
7072
* @return a collection.
7173
*/
74+
@Generated
7275
@ServiceMethod(returns = ReturnType.SINGLE)
7376
public Mono<Response<BinaryData>> getCollectionWithResponse(String collectionName, RequestOptions requestOptions) {
7477
return this.serviceClient.getCollectionWithResponseAsync(collectionName, requestOptions);
@@ -138,10 +141,11 @@ public Mono<Response<BinaryData>> getCollectionWithResponse(String collectionNam
138141
* false.
139142
* @return collection resource.
140143
*/
144+
@Generated
141145
@ServiceMethod(returns = ReturnType.SINGLE)
142-
public Mono<Response<BinaryData>> upsertCollectionWithResponse(
146+
public Mono<Response<BinaryData>> createOrUpdateCollectionWithResponse(
143147
String collectionName, BinaryData collection, RequestOptions requestOptions) {
144-
return this.serviceClient.upsertCollectionWithResponseAsync(collectionName, collection, requestOptions);
148+
return this.serviceClient.createOrUpdateCollectionWithResponseAsync(collectionName, collection, requestOptions);
145149
}
146150

147151
/**
@@ -161,6 +165,7 @@ public Mono<Response<BinaryData>> upsertCollectionWithResponse(
161165
* false.
162166
* @return the completion.
163167
*/
168+
@Generated
164169
@ServiceMethod(returns = ReturnType.SINGLE)
165170
public Mono<Response<Void>> deleteCollectionWithResponse(String collectionName, RequestOptions requestOptions) {
166171
return this.serviceClient.deleteCollectionWithResponseAsync(collectionName, requestOptions);
@@ -212,6 +217,7 @@ public Mono<Response<Void>> deleteCollectionWithResponse(String collectionName,
212217
* false.
213218
* @return paged list of collections.
214219
*/
220+
@Generated
215221
@ServiceMethod(returns = ReturnType.COLLECTION)
216222
public PagedFlux<BinaryData> listCollections(RequestOptions requestOptions) {
217223
return this.serviceClient.listCollectionsAsync(requestOptions);
@@ -250,6 +256,7 @@ public PagedFlux<BinaryData> listCollections(RequestOptions requestOptions) {
250256
* false.
251257
* @return paged list of collections.
252258
*/
259+
@Generated
253260
@ServiceMethod(returns = ReturnType.COLLECTION)
254261
public PagedFlux<BinaryData> listChildCollectionNames(String collectionName, RequestOptions requestOptions) {
255262
return this.serviceClient.listChildCollectionNamesAsync(collectionName, requestOptions);
@@ -285,6 +292,7 @@ public PagedFlux<BinaryData> listChildCollectionNames(String collectionName, Req
285292
* false.
286293
* @return the parent name and parent friendly name chains that represent the collection path.
287294
*/
295+
@Generated
288296
@ServiceMethod(returns = ReturnType.SINGLE)
289297
public Mono<Response<BinaryData>> getCollectionPathWithResponse(
290298
String collectionName, RequestOptions requestOptions) {

sdk/purview/azure-analytics-purview-administration/src/main/java/com/azure/analytics/purview/administration/CollectionsClient.java

Lines changed: 22 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
package com.azure.analytics.purview.administration;
66

77
import com.azure.analytics.purview.administration.implementation.CollectionsImpl;
8+
import com.azure.core.annotation.Generated;
89
import com.azure.core.annotation.ReturnType;
910
import com.azure.core.annotation.ServiceClient;
1011
import com.azure.core.annotation.ServiceMethod;
@@ -13,18 +14,18 @@
1314
import com.azure.core.http.rest.RequestOptions;
1415
import com.azure.core.http.rest.Response;
1516
import com.azure.core.util.BinaryData;
16-
import com.azure.core.util.Context;
1717

1818
/** Initializes a new instance of the synchronous PurviewAccountClient type. */
1919
@ServiceClient(builder = PurviewAccountClientBuilder.class)
2020
public final class CollectionsClient {
21-
private final CollectionsImpl serviceClient;
21+
@Generated private final CollectionsImpl serviceClient;
2222

2323
/**
2424
* Initializes an instance of Collections client.
2525
*
2626
* @param serviceClient the service client implementation.
2727
*/
28+
@Generated
2829
CollectionsClient(CollectionsImpl serviceClient) {
2930
this.serviceClient = serviceClient;
3031
}
@@ -65,15 +66,14 @@ public final class CollectionsClient {
6566
*
6667
* @param collectionName The collectionName parameter.
6768
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
68-
* @param context The context to associate with this operation.
6969
* @throws HttpResponseException thrown if status code is 400 or above, if throwOnError in requestOptions is not
7070
* false.
7171
* @return a collection.
7272
*/
73+
@Generated
7374
@ServiceMethod(returns = ReturnType.SINGLE)
74-
public Response<BinaryData> getCollectionWithResponse(
75-
String collectionName, RequestOptions requestOptions, Context context) {
76-
return this.serviceClient.getCollectionWithResponse(collectionName, requestOptions, context);
75+
public Response<BinaryData> getCollectionWithResponse(String collectionName, RequestOptions requestOptions) {
76+
return this.serviceClient.getCollectionWithResponse(collectionName, requestOptions);
7777
}
7878

7979
/**
@@ -136,16 +136,15 @@ public Response<BinaryData> getCollectionWithResponse(
136136
* @param collectionName The collectionName parameter.
137137
* @param collection Collection resource.
138138
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
139-
* @param context The context to associate with this operation.
140139
* @throws HttpResponseException thrown if status code is 400 or above, if throwOnError in requestOptions is not
141140
* false.
142141
* @return collection resource.
143142
*/
143+
@Generated
144144
@ServiceMethod(returns = ReturnType.SINGLE)
145-
public Response<BinaryData> upsertCollectionWithResponse(
146-
String collectionName, BinaryData collection, RequestOptions requestOptions, Context context) {
147-
return this.serviceClient.upsertCollectionWithResponse(
148-
collectionName, collection, requestOptions, context);
145+
public Response<BinaryData> createOrUpdateCollectionWithResponse(
146+
String collectionName, BinaryData collection, RequestOptions requestOptions) {
147+
return this.serviceClient.createOrUpdateCollectionWithResponse(collectionName, collection, requestOptions);
149148
}
150149

151150
/**
@@ -161,15 +160,14 @@ public Response<BinaryData> upsertCollectionWithResponse(
161160
*
162161
* @param collectionName The collectionName parameter.
163162
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
164-
* @param context The context to associate with this operation.
165163
* @throws HttpResponseException thrown if status code is 400 or above, if throwOnError in requestOptions is not
166164
* false.
167165
* @return the response.
168166
*/
167+
@Generated
169168
@ServiceMethod(returns = ReturnType.SINGLE)
170-
public Response<Void> deleteCollectionWithResponse(
171-
String collectionName, RequestOptions requestOptions, Context context) {
172-
return this.serviceClient.deleteCollectionWithResponse(collectionName, requestOptions, context);
169+
public Response<Void> deleteCollectionWithResponse(String collectionName, RequestOptions requestOptions) {
170+
return this.serviceClient.deleteCollectionWithResponse(collectionName, requestOptions);
173171
}
174172

175173
/**
@@ -214,14 +212,14 @@ public Response<Void> deleteCollectionWithResponse(
214212
* }</pre>
215213
*
216214
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
217-
* @param context The context to associate with this operation.
218215
* @throws HttpResponseException thrown if status code is 400 or above, if throwOnError in requestOptions is not
219216
* false.
220217
* @return paged list of collections.
221218
*/
219+
@Generated
222220
@ServiceMethod(returns = ReturnType.COLLECTION)
223-
public PagedIterable<BinaryData> listCollections(RequestOptions requestOptions, Context context) {
224-
return this.serviceClient.listCollections(requestOptions, context);
221+
public PagedIterable<BinaryData> listCollections(RequestOptions requestOptions) {
222+
return this.serviceClient.listCollections(requestOptions);
225223
}
226224

227225
/**
@@ -253,15 +251,14 @@ public PagedIterable<BinaryData> listCollections(RequestOptions requestOptions,
253251
*
254252
* @param collectionName The collectionName parameter.
255253
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
256-
* @param context The context to associate with this operation.
257254
* @throws HttpResponseException thrown if status code is 400 or above, if throwOnError in requestOptions is not
258255
* false.
259256
* @return paged list of collections.
260257
*/
258+
@Generated
261259
@ServiceMethod(returns = ReturnType.COLLECTION)
262-
public PagedIterable<BinaryData> listChildCollectionNames(
263-
String collectionName, RequestOptions requestOptions, Context context) {
264-
return this.serviceClient.listChildCollectionNames(collectionName, requestOptions, context);
260+
public PagedIterable<BinaryData> listChildCollectionNames(String collectionName, RequestOptions requestOptions) {
261+
return this.serviceClient.listChildCollectionNames(collectionName, requestOptions);
265262
}
266263

267264
/**
@@ -290,14 +287,13 @@ public PagedIterable<BinaryData> listChildCollectionNames(
290287
*
291288
* @param collectionName The collectionName parameter.
292289
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
293-
* @param context The context to associate with this operation.
294290
* @throws HttpResponseException thrown if status code is 400 or above, if throwOnError in requestOptions is not
295291
* false.
296292
* @return the parent name and parent friendly name chains that represent the collection path.
297293
*/
294+
@Generated
298295
@ServiceMethod(returns = ReturnType.SINGLE)
299-
public Response<BinaryData> getCollectionPathWithResponse(
300-
String collectionName, RequestOptions requestOptions, Context context) {
301-
return this.serviceClient.getCollectionPathWithResponse(collectionName, requestOptions, context);
296+
public Response<BinaryData> getCollectionPathWithResponse(String collectionName, RequestOptions requestOptions) {
297+
return this.serviceClient.getCollectionPathWithResponse(collectionName, requestOptions);
302298
}
303299
}

0 commit comments

Comments
 (0)