Skip to content

Commit 906a1c7

Browse files
Microsoft Purview Share Java SDK Changes for Version 2023-05-30-preview (Azure#35346)
1 parent cd4d781 commit 906a1c7

File tree

83 files changed

+6211
-1791
lines changed

Some content is hidden

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

83 files changed

+6211
-1791
lines changed
Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
# Release History
22

3-
## 1.0.0-beta.2 (Unreleased)
3+
## 1.0.0-beta.2 (2023-06-12)
4+
5+
### Features Added
6+
7+
- Added the new share resource capability that allows listing resources associated with sent and received shares.
8+
9+
### Breaking Changes
10+
11+
- Renamed all client method starting with getAll to start with list.
412

513
### Other Changes
614

@@ -10,4 +18,4 @@
1018

1119
### New Features
1220

13-
- Initial release of the Purview Share client library for Java
21+
- Initial release of the Microsoft Purview Share client library for Java

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

Lines changed: 182 additions & 77 deletions
Large diffs are not rendered by default.

sdk/purview/azure-analytics-purview-sharing/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
<version>1.0.0-beta.2</version> <!-- {x-version-update;com.azure:azure-analytics-purview-sharing;current} -->
1313
<packaging>jar</packaging>
1414

15-
<name>Microsoft Azure SDK for PurviewShareClient Management</name>
16-
<description>This package contains Microsoft Azure PurviewShareClient client library.</description>
15+
<name>Microsoft Azure SDK for Purview Sharing</name>
16+
<description>This package contains the Microsoft Azure Purview Sharing client library.</description>
1717
<url>https://github.com/Azure/azure-sdk-for-java</url>
1818

1919
<licenses>

sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/PurviewShareServiceVersion.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
/** Service version of PurviewShareClient. */
1010
public enum PurviewShareServiceVersion implements ServiceVersion {
11-
/** Enum value 2023-02-15-preview. */
12-
V2023_02_15_PREVIEW("2023-02-15-preview");
11+
/** Enum value 2023-05-30-preview. */
12+
V2023_05_30_PREVIEW("2023-05-30-preview");
1313

1414
private final String version;
1515

@@ -29,6 +29,6 @@ public String getVersion() {
2929
* @return The latest {@link PurviewShareServiceVersion}.
3030
*/
3131
public static PurviewShareServiceVersion getLatest() {
32-
return V2023_02_15_PREVIEW;
32+
return V2023_05_30_PREVIEW;
3333
}
3434
}

sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/ReceivedSharesAsyncClient.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@ public PollerFlux<BinaryData, Void> beginDeleteReceivedShare(
153153
* <table border="1">
154154
* <caption>Query Parameters</caption>
155155
* <tr><th>Name</th><th>Type</th><th>Required</th><th>Description</th></tr>
156-
* <tr><td>skipToken</td><td>String</td><td>No</td><td>The continuation token to list the next page</td></tr>
157156
* <tr><td>filter</td><td>String</td><td>No</td><td>Filters the results using OData syntax</td></tr>
158157
* <tr><td>orderby</td><td>String</td><td>No</td><td>Sorts the results using OData syntax</td></tr>
159158
* </table>
@@ -179,8 +178,8 @@ public PollerFlux<BinaryData, Void> beginDeleteReceivedShare(
179178
*/
180179
@Generated
181180
@ServiceMethod(returns = ReturnType.COLLECTION)
182-
public PagedFlux<BinaryData> getAllAttachedReceivedShares(String referenceName, RequestOptions requestOptions) {
183-
return this.serviceClient.getAllAttachedReceivedSharesAsync(referenceName, requestOptions);
181+
public PagedFlux<BinaryData> listAttachedReceivedShares(String referenceName, RequestOptions requestOptions) {
182+
return this.serviceClient.listAttachedReceivedSharesAsync(referenceName, requestOptions);
184183
}
185184

186185
/**
@@ -193,7 +192,6 @@ public PagedFlux<BinaryData> getAllAttachedReceivedShares(String referenceName,
193192
* <table border="1">
194193
* <caption>Query Parameters</caption>
195194
* <tr><th>Name</th><th>Type</th><th>Required</th><th>Description</th></tr>
196-
* <tr><td>skipToken</td><td>String</td><td>No</td><td>The continuation token to list the next page</td></tr>
197195
* <tr><td>filter</td><td>String</td><td>No</td><td>Filters the results using OData syntax</td></tr>
198196
* <tr><td>orderby</td><td>String</td><td>No</td><td>Sorts the results using OData syntax</td></tr>
199197
* </table>
@@ -218,8 +216,8 @@ public PagedFlux<BinaryData> getAllAttachedReceivedShares(String referenceName,
218216
*/
219217
@Generated
220218
@ServiceMethod(returns = ReturnType.COLLECTION)
221-
public PagedFlux<BinaryData> getAllDetachedReceivedShares(RequestOptions requestOptions) {
222-
return this.serviceClient.getAllDetachedReceivedSharesAsync(requestOptions);
219+
public PagedFlux<BinaryData> listDetachedReceivedShares(RequestOptions requestOptions) {
220+
return this.serviceClient.listDetachedReceivedSharesAsync(requestOptions);
223221
}
224222

225223
/**

sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/ReceivedSharesClient.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,6 @@ public SyncPoller<BinaryData, Void> beginDeleteReceivedShare(
151151
* <table border="1">
152152
* <caption>Query Parameters</caption>
153153
* <tr><th>Name</th><th>Type</th><th>Required</th><th>Description</th></tr>
154-
* <tr><td>skipToken</td><td>String</td><td>No</td><td>The continuation token to list the next page</td></tr>
155154
* <tr><td>filter</td><td>String</td><td>No</td><td>Filters the results using OData syntax</td></tr>
156155
* <tr><td>orderby</td><td>String</td><td>No</td><td>Sorts the results using OData syntax</td></tr>
157156
* </table>
@@ -177,8 +176,8 @@ public SyncPoller<BinaryData, Void> beginDeleteReceivedShare(
177176
*/
178177
@Generated
179178
@ServiceMethod(returns = ReturnType.COLLECTION)
180-
public PagedIterable<BinaryData> getAllAttachedReceivedShares(String referenceName, RequestOptions requestOptions) {
181-
return new PagedIterable<>(this.client.getAllAttachedReceivedShares(referenceName, requestOptions));
179+
public PagedIterable<BinaryData> listAttachedReceivedShares(String referenceName, RequestOptions requestOptions) {
180+
return new PagedIterable<>(this.client.listAttachedReceivedShares(referenceName, requestOptions));
182181
}
183182

184183
/**
@@ -191,7 +190,6 @@ public PagedIterable<BinaryData> getAllAttachedReceivedShares(String referenceNa
191190
* <table border="1">
192191
* <caption>Query Parameters</caption>
193192
* <tr><th>Name</th><th>Type</th><th>Required</th><th>Description</th></tr>
194-
* <tr><td>skipToken</td><td>String</td><td>No</td><td>The continuation token to list the next page</td></tr>
195193
* <tr><td>filter</td><td>String</td><td>No</td><td>Filters the results using OData syntax</td></tr>
196194
* <tr><td>orderby</td><td>String</td><td>No</td><td>Sorts the results using OData syntax</td></tr>
197195
* </table>
@@ -216,8 +214,8 @@ public PagedIterable<BinaryData> getAllAttachedReceivedShares(String referenceNa
216214
*/
217215
@Generated
218216
@ServiceMethod(returns = ReturnType.COLLECTION)
219-
public PagedIterable<BinaryData> getAllDetachedReceivedShares(RequestOptions requestOptions) {
220-
return new PagedIterable<>(this.client.getAllDetachedReceivedShares(requestOptions));
217+
public PagedIterable<BinaryData> listDetachedReceivedShares(RequestOptions requestOptions) {
218+
return new PagedIterable<>(this.client.listDetachedReceivedShares(requestOptions));
221219
}
222220

223221
/**

sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/SentSharesAsyncClient.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ public final class SentSharesAsyncClient {
4545
* <table border="1">
4646
* <caption>Query Parameters</caption>
4747
* <tr><th>Name</th><th>Type</th><th>Required</th><th>Description</th></tr>
48-
* <tr><td>skipToken</td><td>String</td><td>No</td><td>The continuation token to list the next page</td></tr>
4948
* <tr><td>filter</td><td>String</td><td>No</td><td>Filters the results using OData syntax</td></tr>
5049
* <tr><td>orderby</td><td>String</td><td>No</td><td>Sorts the results using OData syntax</td></tr>
5150
* </table>
@@ -71,8 +70,8 @@ public final class SentSharesAsyncClient {
7170
*/
7271
@Generated
7372
@ServiceMethod(returns = ReturnType.COLLECTION)
74-
public PagedFlux<BinaryData> getAllSentShares(String referenceName, RequestOptions requestOptions) {
75-
return this.serviceClient.getAllSentSharesAsync(referenceName, requestOptions);
73+
public PagedFlux<BinaryData> listSentShares(String referenceName, RequestOptions requestOptions) {
74+
return this.serviceClient.listSentSharesAsync(referenceName, requestOptions);
7675
}
7776

7877
/**
@@ -190,7 +189,6 @@ public PollerFlux<BinaryData, Void> beginDeleteSentShare(String sentShareId, Req
190189
* <table border="1">
191190
* <caption>Query Parameters</caption>
192191
* <tr><th>Name</th><th>Type</th><th>Required</th><th>Description</th></tr>
193-
* <tr><td>skipToken</td><td>String</td><td>No</td><td>The continuation token to list the next page</td></tr>
194192
* <tr><td>filter</td><td>String</td><td>No</td><td>Filters the results using OData syntax</td></tr>
195193
* <tr><td>orderby</td><td>String</td><td>No</td><td>Sorts the results using OData syntax</td></tr>
196194
* </table>
@@ -216,8 +214,8 @@ public PollerFlux<BinaryData, Void> beginDeleteSentShare(String sentShareId, Req
216214
*/
217215
@Generated
218216
@ServiceMethod(returns = ReturnType.COLLECTION)
219-
public PagedFlux<BinaryData> getAllSentShareInvitations(String sentShareId, RequestOptions requestOptions) {
220-
return this.serviceClient.getAllSentShareInvitationsAsync(sentShareId, requestOptions);
217+
public PagedFlux<BinaryData> listSentShareInvitations(String sentShareId, RequestOptions requestOptions) {
218+
return this.serviceClient.listSentShareInvitationsAsync(sentShareId, requestOptions);
221219
}
222220

223221
/**

sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/SentSharesClient.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ public final class SentSharesClient {
4343
* <table border="1">
4444
* <caption>Query Parameters</caption>
4545
* <tr><th>Name</th><th>Type</th><th>Required</th><th>Description</th></tr>
46-
* <tr><td>skipToken</td><td>String</td><td>No</td><td>The continuation token to list the next page</td></tr>
4746
* <tr><td>filter</td><td>String</td><td>No</td><td>Filters the results using OData syntax</td></tr>
4847
* <tr><td>orderby</td><td>String</td><td>No</td><td>Sorts the results using OData syntax</td></tr>
4948
* </table>
@@ -69,8 +68,8 @@ public final class SentSharesClient {
6968
*/
7069
@Generated
7170
@ServiceMethod(returns = ReturnType.COLLECTION)
72-
public PagedIterable<BinaryData> getAllSentShares(String referenceName, RequestOptions requestOptions) {
73-
return new PagedIterable<>(this.client.getAllSentShares(referenceName, requestOptions));
71+
public PagedIterable<BinaryData> listSentShares(String referenceName, RequestOptions requestOptions) {
72+
return new PagedIterable<>(this.client.listSentShares(referenceName, requestOptions));
7473
}
7574

7675
/**
@@ -188,7 +187,6 @@ public SyncPoller<BinaryData, Void> beginDeleteSentShare(String sentShareId, Req
188187
* <table border="1">
189188
* <caption>Query Parameters</caption>
190189
* <tr><th>Name</th><th>Type</th><th>Required</th><th>Description</th></tr>
191-
* <tr><td>skipToken</td><td>String</td><td>No</td><td>The continuation token to list the next page</td></tr>
192190
* <tr><td>filter</td><td>String</td><td>No</td><td>Filters the results using OData syntax</td></tr>
193191
* <tr><td>orderby</td><td>String</td><td>No</td><td>Sorts the results using OData syntax</td></tr>
194192
* </table>
@@ -214,8 +212,8 @@ public SyncPoller<BinaryData, Void> beginDeleteSentShare(String sentShareId, Req
214212
*/
215213
@Generated
216214
@ServiceMethod(returns = ReturnType.COLLECTION)
217-
public PagedIterable<BinaryData> getAllSentShareInvitations(String sentShareId, RequestOptions requestOptions) {
218-
return new PagedIterable<>(this.client.getAllSentShareInvitations(sentShareId, requestOptions));
215+
public PagedIterable<BinaryData> listSentShareInvitations(String sentShareId, RequestOptions requestOptions) {
216+
return new PagedIterable<>(this.client.listSentShareInvitations(sentShareId, requestOptions));
219217
}
220218

221219
/**
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
// Code generated by Microsoft (R) AutoRest Code Generator.
4+
5+
package com.azure.analytics.purview.sharing;
6+
7+
import com.azure.analytics.purview.sharing.implementation.ShareResourcesImpl;
8+
import com.azure.core.annotation.Generated;
9+
import com.azure.core.annotation.ReturnType;
10+
import com.azure.core.annotation.ServiceClient;
11+
import com.azure.core.annotation.ServiceMethod;
12+
import com.azure.core.exception.ClientAuthenticationException;
13+
import com.azure.core.exception.HttpResponseException;
14+
import com.azure.core.exception.ResourceModifiedException;
15+
import com.azure.core.exception.ResourceNotFoundException;
16+
import com.azure.core.http.rest.PagedFlux;
17+
import com.azure.core.http.rest.RequestOptions;
18+
import com.azure.core.util.BinaryData;
19+
20+
/** Initializes a new instance of the asynchronous PurviewShareClient type. */
21+
@ServiceClient(builder = ShareResourcesClientBuilder.class, isAsync = true)
22+
public final class ShareResourcesAsyncClient {
23+
@Generated private final ShareResourcesImpl serviceClient;
24+
25+
/**
26+
* Initializes an instance of ShareResourcesAsyncClient class.
27+
*
28+
* @param serviceClient the service client implementation.
29+
*/
30+
@Generated
31+
ShareResourcesAsyncClient(ShareResourcesImpl serviceClient) {
32+
this.serviceClient = serviceClient;
33+
}
34+
35+
/**
36+
* API operation to list ShareResources.
37+
*
38+
* <p>List share resources.
39+
*
40+
* <p><strong>Query Parameters</strong>
41+
*
42+
* <table border="1">
43+
* <caption>Query Parameters</caption>
44+
* <tr><th>Name</th><th>Type</th><th>Required</th><th>Description</th></tr>
45+
* <tr><td>filter</td><td>String</td><td>No</td><td>Filters the results using OData syntax</td></tr>
46+
* <tr><td>orderby</td><td>String</td><td>No</td><td>Sorts the results using OData syntax</td></tr>
47+
* </table>
48+
*
49+
* You can add these to a request with {@link RequestOptions#addQueryParam}
50+
*
51+
* <p><strong>Response Body Schema</strong>
52+
*
53+
* <pre>{@code
54+
* {
55+
* id: String (Optional)
56+
* type: String (Optional)
57+
* receivedSharesCount: Integer (Optional)
58+
* sentSharesCount: Integer (Optional)
59+
* storeKind: String(AdlsGen2Account/BlobAccount) (Optional)
60+
* storeReference (Optional): {
61+
* referenceName: String (Optional)
62+
* type: String(ArmResourceReference) (Optional)
63+
* }
64+
* }
65+
* }</pre>
66+
*
67+
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
68+
* @throws HttpResponseException thrown if the request is rejected by server.
69+
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
70+
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
71+
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
72+
* @return a page of ShareResource results as paginated response with {@link PagedFlux}.
73+
*/
74+
@Generated
75+
@ServiceMethod(returns = ReturnType.COLLECTION)
76+
public PagedFlux<BinaryData> listShareResources(RequestOptions requestOptions) {
77+
return this.serviceClient.listShareResourcesAsync(requestOptions);
78+
}
79+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
// Code generated by Microsoft (R) AutoRest Code Generator.
4+
5+
package com.azure.analytics.purview.sharing;
6+
7+
import com.azure.core.annotation.Generated;
8+
import com.azure.core.annotation.ReturnType;
9+
import com.azure.core.annotation.ServiceClient;
10+
import com.azure.core.annotation.ServiceMethod;
11+
import com.azure.core.exception.ClientAuthenticationException;
12+
import com.azure.core.exception.HttpResponseException;
13+
import com.azure.core.exception.ResourceModifiedException;
14+
import com.azure.core.exception.ResourceNotFoundException;
15+
import com.azure.core.http.rest.PagedIterable;
16+
import com.azure.core.http.rest.RequestOptions;
17+
import com.azure.core.util.BinaryData;
18+
19+
/** Initializes a new instance of the synchronous PurviewShareClient type. */
20+
@ServiceClient(builder = ShareResourcesClientBuilder.class)
21+
public final class ShareResourcesClient {
22+
@Generated private final ShareResourcesAsyncClient client;
23+
24+
/**
25+
* Initializes an instance of ShareResourcesClient class.
26+
*
27+
* @param client the async client.
28+
*/
29+
@Generated
30+
ShareResourcesClient(ShareResourcesAsyncClient client) {
31+
this.client = client;
32+
}
33+
34+
/**
35+
* API operation to list ShareResources.
36+
*
37+
* <p>List share resources.
38+
*
39+
* <p><strong>Query Parameters</strong>
40+
*
41+
* <table border="1">
42+
* <caption>Query Parameters</caption>
43+
* <tr><th>Name</th><th>Type</th><th>Required</th><th>Description</th></tr>
44+
* <tr><td>filter</td><td>String</td><td>No</td><td>Filters the results using OData syntax</td></tr>
45+
* <tr><td>orderby</td><td>String</td><td>No</td><td>Sorts the results using OData syntax</td></tr>
46+
* </table>
47+
*
48+
* You can add these to a request with {@link RequestOptions#addQueryParam}
49+
*
50+
* <p><strong>Response Body Schema</strong>
51+
*
52+
* <pre>{@code
53+
* {
54+
* id: String (Optional)
55+
* type: String (Optional)
56+
* receivedSharesCount: Integer (Optional)
57+
* sentSharesCount: Integer (Optional)
58+
* storeKind: String(AdlsGen2Account/BlobAccount) (Optional)
59+
* storeReference (Optional): {
60+
* referenceName: String (Optional)
61+
* type: String(ArmResourceReference) (Optional)
62+
* }
63+
* }
64+
* }</pre>
65+
*
66+
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
67+
* @throws HttpResponseException thrown if the request is rejected by server.
68+
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
69+
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
70+
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
71+
* @return a page of ShareResource results as paginated response with {@link PagedIterable}.
72+
*/
73+
@Generated
74+
@ServiceMethod(returns = ReturnType.COLLECTION)
75+
public PagedIterable<BinaryData> listShareResources(RequestOptions requestOptions) {
76+
return new PagedIterable<>(this.client.listShareResources(requestOptions));
77+
}
78+
}

0 commit comments

Comments
 (0)